/* ==========================================================================
   Helios Solar Systems - demo website
   Register: technical energy brand. Deep navy, sky blue, solar amber.
   Typography: Sora (display) + Inter (interface)
   ========================================================================== */

:root {
  --navy: #06101f;
  --navy-2: #0b1a2e;
  --navy-3: #122440;
  --sky: #0ea5e9;
  --sky-2: #0284c7;
  --sky-soft: #7dd3fc;
  --amber: #f59e0b;
  --amber-soft: #fcd34d;
  --mint: #10b981;

  --page: #f6f8fb;
  --paper: #ffffff;
  --ink: #0f172a;
  --body: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-dark: rgba(125, 211, 252, 0.18);

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;

  --shell: 1240px;
  --gutter: 24px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 44px -20px rgba(15, 23, 42, 0.26);
  --shadow-lg: 0 30px 70px -28px rgba(15, 23, 42, 0.42);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  background: var(--page);
  color: var(--body);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; background: #dfe7ef; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.16; color: var(--ink); letter-spacing: -0.02em; }

::selection { background: var(--sky); color: #fff; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 50%; top: -80px; transform: translateX(-50%); z-index: 300; background: var(--sky-2); color: #fff; padding: 12px 22px; border-radius: 0 0 10px 10px; font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sky-2); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--amber); border-radius: 2px; }
.section-title { font-size: clamp(1.8rem, 3.8vw, 2.8rem); margin-bottom: 16px; }
.lede { font-size: 1.02rem; color: var(--muted); max-width: 64ch; }

.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 0.92rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--sky), var(--sky-2)); color: #fff; box-shadow: 0 14px 34px -14px rgba(14, 165, 233, 0.8); }
.btn-primary:hover { box-shadow: 0 20px 44px -14px rgba(14, 165, 233, 0.9); }
.btn-amber { background: var(--amber); color: #1a1205; box-shadow: 0 14px 34px -14px rgba(245, 158, 11, 0.7); }
.btn-amber:hover { background: var(--amber-soft); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--sky); color: var(--sky-2); }
.btn-ghost-dark { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.14); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Topbar + header ---------- */

.topbar {
  background: var(--navy); color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem; padding: 9px 0;
}
.topbar .shell { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.topbar b { color: var(--amber-soft); }
.topbar a { color: #fff; font-weight: 500; }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--sky), var(--navy-3));
  color: var(--amber-soft);
}
.logo-mark svg { width: 21px; height: 21px; }
.logo .txt { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.logo .txt small { display: block; font-family: var(--font-ui); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 9px 13px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--body); transition: background 0.2s, color 0.2s; }
.nav a:hover { background: rgba(14, 165, 233, 0.09); color: var(--sky-2); }
.header-right { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 17px; height: 2px; background: var(--ink); border-radius: 2px;
  transform: translateX(-50%); transition: transform 0.28s var(--ease), background 0.2s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { content: ""; left: 0; transform: translateY(-6px); }
.nav-toggle span::after { content: ""; left: 0; transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero { position: relative; background: var(--navy); color: rgba(255, 255, 255, 0.78); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 78% 12%, rgba(14, 165, 233, 0.3), transparent 68%),
    radial-gradient(620px 360px at 8% 88%, rgba(245, 158, 11, 0.16), transparent 70%);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(30px, 5vw, 60px); align-items: center; padding: clamp(52px, 7vw, 92px) 0; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: #fff; margin-bottom: 20px; }
.hero h1 span { background: linear-gradient(100deg, var(--sky-soft), var(--amber-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { color: rgba(255, 255, 255, 0.76); margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-badges li {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem; color: #fff;
}
.hero-badges svg { width: 15px; height: 15px; color: var(--mint); }

.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line-dark); }
.hero-chip {
  position: absolute; left: -16px; bottom: 26px;
  background: var(--paper); border-radius: var(--r); padding: 16px 20px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px;
}
.hero-chip .big { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--ink); line-height: 1; }
.hero-chip span { font-size: 0.78rem; color: var(--muted); display: block; }
.hero-chip .ring {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--mint) 0 78%, #e2e8f0 78% 100%);
  display: grid; place-items: center;
}
.hero-chip .ring::after { content: ""; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); }

/* ---------- Brand strip ---------- */

.brands { background: var(--paper); border-bottom: 1px solid var(--line); padding: 26px 0; }
.brands .shell { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; justify-content: center; }
.brands p { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.brands li { font-family: var(--font-display); font-weight: 700; font-size: clamp(0.95rem, 1.8vw, 1.18rem); color: var(--ink); opacity: 0.42; letter-spacing: -0.01em; transition: opacity 0.25s; }
.brands li:hover { opacity: 0.9; }
.brands ul { display: flex; gap: clamp(18px, 3.5vw, 40px); flex-wrap: wrap; align-items: center; justify-content: center; }

/* ---------- Calculator ---------- */

.calc { background: var(--paper); }
.calc-card {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.calc-input { padding: clamp(26px, 4vw, 42px); background: var(--paper); }
.calc-input h3 { font-size: 1.3rem; margin-bottom: 8px; }
.calc-input > p { font-size: 0.9rem; color: var(--muted); margin-bottom: 26px; }

.ctrl { margin-bottom: 24px; }
.ctrl label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 0.86rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.ctrl label output { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--sky-2); font-variant-numeric: tabular-nums; }
.ctrl input[type="range"] {
  width: 100%; height: 6px; border-radius: 6px; appearance: none; -webkit-appearance: none;
  background: linear-gradient(90deg, var(--sky) var(--pct, 40%), var(--line) var(--pct, 40%));
  cursor: pointer;
}
.ctrl input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--sky-2); box-shadow: 0 3px 10px rgba(2, 132, 199, 0.4); cursor: grab;
}
.ctrl input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  border: 3px solid var(--sky-2); box-shadow: 0 3px 10px rgba(2, 132, 199, 0.4); cursor: grab;
}
.ctrl .scale { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--muted); margin-top: 7px; }

.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button {
  flex: 1; min-width: 92px; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--page); font-size: 0.86rem; font-weight: 500;
  cursor: pointer; transition: all 0.22s var(--ease);
}
.seg button:hover { border-color: var(--sky); }
.seg button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.calc-output { padding: clamp(26px, 4vw, 42px); background: var(--navy); color: rgba(255, 255, 255, 0.76); position: relative; }
.calc-output::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 80% 0%, rgba(14, 165, 233, 0.22), transparent 70%);
}
.calc-output > * { position: relative; z-index: 2; }
.calc-output h3 { color: #fff; font-size: 1.3rem; margin-bottom: 22px; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border-radius: var(--r); overflow: hidden; margin-bottom: 22px; }
.result { background: var(--navy-2); padding: 20px 18px; }
.result b {
  display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.95rem);
  font-weight: 700; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.result b.accent { color: var(--amber-soft); }
.result b.good { color: #6ee7b7; }
.result span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.62); }
.calc-breakdown { display: grid; gap: 8px; font-size: 0.87rem; margin-bottom: 20px; }
.calc-breakdown div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 7px; border-bottom: 1px dashed var(--line-dark); }
.calc-breakdown dt { color: rgba(255, 255, 255, 0.66); }
.calc-breakdown dd { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-note { font-size: 0.76rem; color: rgba(255, 255, 255, 0.5); margin-top: 14px; }

/* ---------- Products ---------- */

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 26px; padding: 5px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; width: fit-content; }
.tabs button {
  padding: 10px 22px; border: 0; border-radius: 999px; background: transparent;
  font-size: 0.9rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all 0.22s;
}
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }

.panel[hidden] { display: none; }
.product-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.pcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.pcard:hover { border-color: var(--sky); transform: translateY(-5px); box-shadow: var(--shadow); }
.pcard-media { aspect-ratio: 16 / 11; overflow: hidden; background: #e6eef5; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.06); }
.pcard-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.pcard h3 { font-size: 1.08rem; margin-bottom: 4px; }
.pcard .brand { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky-2); margin-bottom: 12px; }
.spec { display: grid; gap: 7px; font-size: 0.86rem; margin-bottom: 16px; }
.spec div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.spec dt { color: var(--muted); }
.spec dd { color: var(--ink); font-weight: 600; }
.pcard .btn { margin-top: auto; width: 100%; }

/* ---------- Timeline ---------- */

.timeline { background: var(--paper); }
.tl { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; position: relative; }
.tl-step { position: relative; padding: 0 18px; }
.tl-step::before {
  content: ""; position: absolute; left: 18px; right: 0; top: 19px; height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--line));
}
.tl-step:last-child::before { display: none; }
.tl-step .dot {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--amber-soft); font-family: var(--font-display);
  font-weight: 700; font-size: 0.95rem; position: relative; z-index: 2; margin-bottom: 16px;
}
.tl-step h3 { font-size: 1.04rem; margin-bottom: 7px; }
.tl-step p { font-size: 0.89rem; }
.tl-step .when { font-size: 0.76rem; font-weight: 600; color: var(--sky-2); letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-top: 8px; }

/* ---------- Subsidy ---------- */

.subsidy { background: linear-gradient(160deg, var(--navy), var(--navy-3)); color: rgba(255, 255, 255, 0.78); }
.subsidy h2, .subsidy h3 { color: #fff; }
.subsidy .lede { color: rgba(255, 255, 255, 0.72); }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(26px, 4vw, 48px); align-items: start; }
.sub-table { border: 1px solid var(--line-dark); border-radius: var(--r); overflow: hidden; }
.sub-table th, .sub-table td { padding: 14px 16px; text-align: left; font-size: 0.9rem; border-bottom: 1px solid var(--line-dark); }
.sub-table th { background: rgba(255, 255, 255, 0.06); color: #fff; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.sub-table td:last-child { color: var(--amber-soft); font-weight: 700; font-variant-numeric: tabular-nums; }
.sub-table tr:last-child td { border-bottom: 0; }
.sub-steps { display: grid; gap: 14px; margin-top: 22px; }
.sub-steps li { display: flex; gap: 13px; align-items: flex-start; font-size: 0.92rem; }
.sub-steps .n { width: 26px; height: 26px; flex: none; border-radius: 50%; background: rgba(14, 165, 233, 0.22); border: 1px solid rgba(125, 211, 252, 0.4); color: var(--sky-soft); display: grid; place-items: center; font-size: 0.76rem; font-weight: 700; }

/* ---------- Projects ---------- */

.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.proj { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.proj:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.proj img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.proj-body { padding: 20px; }
.proj h3 { font-size: 1.06rem; margin-bottom: 6px; }
.proj .loc { font-size: 0.8rem; color: var(--sky-2); font-weight: 600; margin-bottom: 12px; }
.proj ul { display: flex; gap: 16px; flex-wrap: wrap; }
.proj ul li { font-size: 0.82rem; color: var(--muted); }
.proj ul b { display: block; font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); }

/* ---------- Survey form ---------- */

.survey { background: var(--paper); }
.survey-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--page); font-size: 0.95rem; transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sky); background: var(--paper); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}
.field textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: 0.8rem; color: var(--muted); }
.form-status { display: none; padding: 13px 16px; border-radius: var(--r-sm); background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-size: 0.9rem; }
.form-status.is-visible { display: block; }

.assure { display: grid; gap: 14px; }
.assure li { display: flex; gap: 13px; align-items: flex-start; padding: 18px 20px; background: var(--page); border: 1px solid var(--line); border-radius: var(--r); }
.assure svg { width: 20px; height: 20px; flex: none; color: var(--sky-2); margin-top: 3px; }
.assure strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1rem; }
.assure span { font-size: 0.88rem; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color 0.25s; }
.faq-item[open] { border-color: var(--sky); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--sky-2); border-bottom: 2px solid var(--sky-2);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.28s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq-item .answer { padding: 0 22px 20px; font-size: 0.93rem; }
.faq-item .answer p + p { margin-top: 10px; }

/* ---------- CTA + Footer ---------- */

.cta {
  background: linear-gradient(135deg, var(--sky-2), var(--navy));
  color: #fff; text-align: center; padding: clamp(44px, 6vw, 76px) 0;
}
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 14px; }
.cta p { color: rgba(255, 255, 255, 0.84); max-width: 58ch; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.6); padding: clamp(44px, 6vw, 72px) 0 26px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
.footer-grid p { font-size: 0.9rem; margin-top: 14px; max-width: 38ch; }
.footer-grid h4 { font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky-soft); margin-bottom: 14px; }
.footer-grid ul { display: grid; gap: 9px; }
.footer-grid ul a { font-size: 0.9rem; transition: color 0.2s; }
.footer-grid ul a:hover { color: #fff; }
.footer-grid .logo .txt { color: #fff; }
.footer-grid .logo .txt small { color: rgba(255, 255, 255, 0.5); }
.footer-base { padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.8rem; }
.footer-base a { color: var(--sky-soft); }

.demo-ribbon { background: var(--amber); color: #1a1205; text-align: center; font-size: 0.74rem; font-weight: 600; padding: 9px var(--gutter); }
.demo-ribbon a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid, .calc-card, .survey-grid { grid-template-columns: 1fr; }
  .nav {
    position: fixed; inset: 74px 0 auto; z-index: 80;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 20px;
    transform: translateY(-130%); transition: transform 0.38s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 13px 14px; border-radius: 10px; }
  .nav-toggle { display: block; }
  .header-right .btn-lg, .header-right .btn:not(.btn-sm) { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .tl-step::before { display: none; }
  .tl-step { padding: 0 0 26px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .hero-chip { position: static; margin-top: 14px; box-shadow: none; border: 1px solid var(--line); }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 10px 12px; font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ==========================================================================
   Mobile header overflow fix
   The header bar only has room for the logo and the menu toggle on a phone,
   so every call-to-action is hidden there and re-rendered inside the menu.
   ========================================================================== */

.nav a.nav-cta { display: none; }

.header-inner { min-width: 0; }
.logo { min-width: 0; }

@media (max-width: 980px) {
  /* --- Mobile header: CTA moves into the menu panel --- */
  .header-right .btn { display: none !important; }
  .nav a.nav-cta {
    display: block;
    margin-top: 14px;
    padding: 14px 20px;
    text-align: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sky), var(--sky-2));
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 14px 34px -14px rgba(14, 165, 233, 0.8);
    border-bottom: 0;
  }

  /* The sticky header uses backdrop-filter, which makes it the containing
     block for this fixed panel. translateY() therefore measures from the
     header, not the viewport, so the slide alone cannot be trusted to push the
     menu off screen - hide it explicitly as well. */
  .nav {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.25s var(--ease),
                visibility 0.25s var(--ease);
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}
