:root {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --surface: #ffffff;
  --surface-elevated: rgba(255, 255, 255, 0.92);
  --surface-muted: #f8fafc;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #0f766e;
  --accent-hover: #115e59;
  --accent-soft: #ccfbf1;
  --accent-faint: rgba(15, 118, 110, 0.08);
  --accent-text: #f0fdfa;
  --warning: #b45309;
  --warning-soft: #fffbeb;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 32px 80px rgba(15, 23, 42, 0.14);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --page: min(1180px, calc(100% - 48px));
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  background: var(--bg);
  color: var(--text);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #071a1b;
  --bg-soft: #0a2021;
  --surface: #0d2728;
  --surface-elevated: rgba(13, 39, 40, 0.94);
  --surface-muted: #102d2e;
  --text: #f8fafc;
  --text-soft: #d5e3e2;
  --muted: #94aaa8;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.28);
  --accent: #5eead4;
  --accent-hover: #99f6e4;
  --accent-soft: #123c3a;
  --accent-faint: rgba(94, 234, 212, 0.08);
  --accent-text: #042f2e;
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.08);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 36px 90px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 86% 2%, var(--accent-faint), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition:
    background-color 300ms ease,
    color 300ms ease;
}

body,
button,
input,
select {
  font-family: inherit;
}

button,
select {
  font-size: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
a,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 200ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell,
.header-inner,
.site-footer {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(16px);
  transition:
    background-color 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 15px;
  background: var(--accent-faint);
  color: var(--accent);
  transition:
    transform 300ms ease,
    background-color 300ms ease;
}

.brand:hover .brand-mark {
  transform: rotate(-4deg) scale(1.04);
  background: var(--accent-soft);
}

.brand-mark svg {
  width: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-copy {
  display: grid;
  line-height: 1.25;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.nav a {
  position: relative;
  padding: 10px 0;
  transition: color 300ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms ease;
}

.nav a:hover {
  color: var(--accent);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-elevated);
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition:
    color 300ms ease,
    border-color 300ms ease,
    background-color 300ms ease,
    transform 300ms ease,
    box-shadow 300ms ease;
}

.icon-button:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.menu-toggle {
  display: none;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition:
    color 300ms ease,
    border-color 300ms ease,
    background-color 300ms ease,
    transform 300ms ease,
    box-shadow 300ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button:hover {
  transform: translateY(-2px) scale(1.015);
}

.button:active {
  transform: translateY(0) scale(0.985);
}

.button--small {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 12px;
}

.button--large {
  min-height: 56px;
  padding: 0 24px;
  font-size: 14px;
}

.button--primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 24%, transparent);
}

.button--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--accent) 31%, transparent);
}

.button--secondary {
  border-color: var(--line-strong);
  background: var(--surface-elevated);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.button--secondary:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  color: var(--accent);
  box-shadow: var(--shadow-md);
}

:where(a, button, select, summary):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 34%, transparent);
  outline-offset: 3px;
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
  padding-block: 92px 100px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-faint);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin: 22px 0 26px;
  font-size: clamp(50px, 6.5vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

h1 span {
  color: var(--accent);
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.72;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-list {
  margin: 34px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  list-style: none;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-list svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.forecast-card {
  position: relative;
  isolation: isolate;
  padding: 30px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, var(--accent) 8%), var(--surface));
  box-shadow: var(--shadow-lg);
  transition:
    transform 300ms ease,
    box-shadow 300ms ease,
    border-color 300ms ease;
}

.forecast-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  transform: translateY(-4px);
  box-shadow: 0 38px 90px color-mix(in srgb, var(--text) 16%, transparent);
}

.forecast-card__glow {
  position: absolute;
  z-index: -1;
  top: -110px;
  right: -90px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  filter: blur(10px);
}

.forecast-card__header,
.score-row,
.demo-result__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.card-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.forecast-card__header strong {
  font-size: 17px;
}

.condition-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-elevated);
  color: var(--accent);
}

.condition-icon svg {
  width: 24px;
  height: 24px;
}

.score-row {
  justify-content: flex-start;
  margin: 28px 0 22px;
}

.score-ring {
  width: 108px;
  height: 108px;
  display: grid;
  place-content: center;
  flex: 0 0 auto;
  text-align: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--surface) 58%, transparent 59%),
    conic-gradient(var(--accent) 0 72%, var(--line) 72%);
}

.score-ring span {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.score-ring small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.score-label {
  color: var(--accent);
  font-size: 23px;
}

.score-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.best-window {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 18px;
  background: var(--accent-faint);
}

.best-window__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: var(--surface-elevated);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.best-window__icon svg {
  width: 20px;
  height: 20px;
}

.best-window span,
.best-window small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.best-window strong {
  display: block;
  margin: 3px 0;
  color: var(--text);
  font-size: 23px;
  letter-spacing: -0.025em;
}

.hour-chart {
  height: 94px;
  margin: 24px 0 18px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 8px;
}

.hour-chart > div {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
}

.hour-chart span {
  width: 100%;
  height: var(--bar);
  min-height: 9px;
  border-radius: 7px 7px 3px 3px;
  background: var(--line-strong);
  transition:
    height 400ms ease,
    background-color 300ms ease,
    transform 300ms ease;
}

.hour-chart .bar--30 {
  height: 30%;
}

.hour-chart .bar--43 {
  height: 43%;
}

.hour-chart .bar--48 {
  height: 48%;
}

.hour-chart .bar--58 {
  height: 58%;
}

.hour-chart .bar--76 {
  height: 76%;
}

.hour-chart .bar--82 {
  height: 82%;
}

.hour-chart .bar--100 {
  height: 100%;
}

.hour-chart > div:hover span {
  transform: scaleX(1.08);
}

.hour-chart .is-best span {
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #0f172a));
}

.hour-chart small {
  color: var(--muted);
  font-size: 9px;
}

.condition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.condition-grid > div {
  min-width: 0;
  padding: 13px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-muted);
}

.condition-grid svg {
  width: 15px;
  height: 15px;
  margin-bottom: 9px;
  color: var(--accent);
}

.condition-grid span,
.condition-grid strong {
  display: block;
}

.condition-grid span {
  margin-bottom: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.condition-grid strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-note {
  margin: 13px 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
}

.demo-note svg {
  width: 12px;
  height: 12px;
}

.factor-strip {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface-elevated);
}

.factor-strip__track {
  width: var(--page);
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.factor-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.factor-strip svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.section {
  padding-block: 128px;
}

.section--compact {
  padding-block: 40px 128px;
}

.section--soft {
  background: var(--bg-soft);
  box-shadow: inset 0 1px var(--line), inset 0 -1px var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 52px;
}

h2 {
  margin: 18px 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.section-heading p,
.method-intro > p,
.return-card p,
.cta-section p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.forecast-demo {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.forecast-form,
.demo-result {
  padding: 30px;
  border-radius: 22px;
}

.forecast-form {
  display: grid;
  align-content: center;
  gap: 20px;
  background: var(--surface-muted);
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.select-wrap {
  position: relative;
}

.select-wrap > svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.select-wrap > svg:first-child {
  left: 16px;
}

.select-wrap > svg:last-child {
  right: 16px;
}

select {
  width: 100%;
  height: 54px;
  padding: 0 46px;
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 300ms ease,
    box-shadow 300ms ease,
    background-color 300ms ease;
}

select:hover {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
}

select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.demo-submit {
  width: 100%;
  margin-top: 4px;
}

.demo-submit.is-loading {
  pointer-events: none;
  opacity: 0.86;
}

.demo-submit.is-loading .button-icon {
  animation: spin 700ms linear infinite;
}

.demo-result {
  min-height: 304px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  background:
    radial-gradient(circle at 90% 0, var(--accent-faint), transparent 15rem),
    var(--surface);
}

.demo-result.is-updating {
  animation: resultPulse 650ms ease;
}

.demo-result__top span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.demo-result__top strong {
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.035em;
}

.result-badge {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px !important;
  font-weight: 800;
}

.demo-window {
  margin: 26px 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-window > svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 13px;
  background: var(--accent-faint);
  color: var(--accent);
}

.demo-window span,
.demo-window strong {
  display: block;
}

.demo-window span {
  color: var(--muted);
  font-size: 10px;
}

.demo-window strong {
  font-size: 20px;
}

.demo-result > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.value-card {
  min-height: 300px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 300ms ease,
    transform 300ms ease,
    box-shadow 300ms ease;
}

.value-card:hover {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-md);
}

.icon-tile {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 52px;
  border-radius: 15px;
  background: var(--accent-faint);
  color: var(--accent);
}

.icon-tile svg {
  width: 22px;
  height: 22px;
}

.value-card h3 {
  margin-bottom: 12px;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.value-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(60px, 9vw, 120px);
}

.method-intro {
  position: sticky;
  top: 120px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  transition:
    gap 300ms ease,
    color 300ms ease;
}

.text-link:hover {
  gap: 12px;
  color: var(--accent-hover);
}

.text-link svg {
  width: 17px;
  height: 17px;
}

.method-list {
  border-top: 1px solid var(--line);
}

.method-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 30px 6px;
  border-bottom: 1px solid var(--line);
  transition:
    padding-left 300ms ease,
    background-color 300ms ease;
}

.method-item:hover {
  padding-left: 14px;
  background: linear-gradient(90deg, var(--accent-faint), transparent 70%);
}

.method-item > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.method-item h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.method-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.return-card,
.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: center;
  gap: 60px;
  padding: 52px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 0, var(--accent-faint), transparent 22rem),
    var(--surface);
  box-shadow: var(--shadow-md);
}

.return-card h2,
.cta-section h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 4.5vw, 52px);
}

.return-actions {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.api-state {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
}

.api-state__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
}

.api-state[data-state="online"] .api-state__dot {
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-faint);
}

.api-state[data-state="offline"] .api-state__dot {
  background: #dc2626;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition:
    color 300ms ease,
    padding-left 300ms ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  padding-left: 8px;
  color: var(--accent);
}

.faq-item summary svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  transition: transform 300ms ease;
}

.faq-item[open] summary {
  color: var(--accent);
}

.faq-item[open] summary svg {
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 820px;
  margin: -4px 0 28px;
  color: var(--muted);
  line-height: 1.75;
}

.cta-section {
  margin-bottom: 120px;
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 24rem),
    color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.site-footer {
  padding: 56px 0 34px;
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.4fr) auto;
  align-items: start;
  gap: 60px;
}

.footer-main > p {
  max-width: 470px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.footer-main nav {
  display: grid;
  gap: 10px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 650;
}

.footer-main nav a {
  transition:
    color 300ms ease,
    transform 300ms ease;
}

.footer-main nav a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.footer-meta {
  margin-top: 48px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes resultPulse {
  0% {
    opacity: 0.58;
    transform: scale(0.985);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Страница методики */
.article-page {
  background: var(--bg);
}

.article-shell {
  width: min(820px, calc(100% - 48px));
  margin-inline: auto;
  padding: 80px 0 120px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 54px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.article-shell h1 {
  margin-bottom: 30px;
  font-size: clamp(48px, 8vw, 76px);
}

.article-shell h2 {
  margin-top: 68px;
  font-size: clamp(30px, 5vw, 43px);
}

.article-shell p,
.article-shell li {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.82;
}

.article-shell li {
  margin-bottom: 12px;
}

.principle {
  margin: 18px 0;
  padding: 26px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: 18px;
  background: var(--accent-faint);
}

.principle strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
}

@media (max-width: 980px) {
  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 78px 92px;
  }

  .hero-copy {
    max-width: 780px;
  }

  .forecast-card {
    width: min(560px, 100%);
    margin-inline: auto;
  }

  .factor-strip__track {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .factor-strip__track::-webkit-scrollbar {
    display: none;
  }

  .forecast-demo,
  .method-layout {
    grid-template-columns: 1fr;
  }

  .method-intro {
    position: static;
  }

  .return-card,
  .cta-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main nav {
    grid-column: 1 / -1;
    grid-auto-flow: column;
    justify-content: start;
    gap: 24px;
  }
}

@media (max-width: 767px) {
  :root {
    --page: min(100% - 28px, 1180px);
  }

  html {
    scroll-padding-top: 78px;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .brand-copy small {
    display: none;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    left: 14px;
    padding: 12px;
    display: grid;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 250ms ease,
      transform 250ms ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav a:hover {
    background: var(--accent-faint);
  }

  .nav a::after {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .hero {
    gap: 50px;
    padding-block: 58px 72px;
  }

  h1 {
    margin-top: 18px;
    font-size: clamp(45px, 14vw, 64px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-list {
    display: grid;
  }

  .forecast-card {
    padding: 22px;
    border-radius: 25px;
  }

  .score-ring {
    width: 96px;
    height: 96px;
  }

  .best-window strong {
    font-size: 20px;
  }

  .factor-strip__track {
    min-height: 70px;
  }

  .section {
    padding-block: 86px;
  }

  .section--compact {
    padding-block: 18px 86px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .forecast-demo {
    grid-template-columns: 1fr;
    padding: 10px;
    border-radius: 24px;
  }

  .forecast-form,
  .demo-result {
    padding: 24px;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .value-card {
    min-height: auto;
    padding: 28px;
  }

  .icon-tile {
    margin-bottom: 36px;
  }

  .method-item {
    grid-template-columns: 36px 1fr;
    gap: 12px;
  }

  .return-card,
  .cta-section {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .faq-item summary {
    min-height: 78px;
    font-size: 16px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-main nav {
    grid-column: auto;
    grid-auto-flow: row;
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-shell {
    width: min(100% - 28px, 820px);
    padding: 56px 0 90px;
  }
}

@media (max-width: 420px) {
  .brand-copy strong {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .condition-grid {
    gap: 5px;
  }

  .condition-grid > div {
    padding-inline: 8px;
  }

  .demo-result__top {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
