:root {
  color-scheme: dark;
  --bg: #090d0b;
  --bg-soft: #0d1210;
  --surface: #111713;
  --surface-raised: #161e19;
  --surface-strong: #1a231d;
  --text: #f4f7f5;
  --muted: #909b94;
  --muted-strong: #bbc4bf;
  --accent: #72d88f;
  --accent-strong: #9be9b1;
  --accent-ink: #07160d;
  --line: rgba(144, 155, 148, .18);
  --line-strong: rgba(114, 216, 143, .40);
  --danger: #ff746c;
  --warning: #e7c77f;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(720px 420px at 50% -180px, rgba(58, 128, 78, .16), transparent 72%),
    var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, a, [role="button"] {
  touch-action: manipulation;
}
button, .button, .nav-action, .plan-action {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
a { color: inherit; }
button { font: inherit; }

.shell {
  width: min(calc(100% - 32px - var(--safe-left) - var(--safe-right)), 1120px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgba(9, 13, 11, .80);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  border-bottom: 1px solid rgba(144, 155, 148, .08);
}
.nav {
  min-height: calc(62px + var(--safe-top));
  padding-top: var(--safe-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--accent);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -.04em;
}
.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}
.nav-links a { text-decoration: none; }
.nav-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text) !important;
  font-weight: 720;
  transition: transform 120ms var(--ease-out), border-color 120ms ease, background 120ms ease;
}
.nav-action.primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink) !important;
}
.nav-action:active, .button:active, .plan-action:active { transform: scale(.97); }

.hero {
  min-height: min(760px, calc(100svh - 62px));
  padding: clamp(58px, 9vw, 104px) 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: clamp(34px, 7vw, 82px);
  align-items: center;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7.4vw, 76px);
  line-height: .99;
  letter-spacing: -.055em;
  font-weight: 810;
}
.hero-lead {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted-strong);
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.5;
}
.hero-actions, .action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.button, .plan-action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 760;
  cursor: pointer;
  transition: transform 120ms var(--ease-out), border-color 120ms ease, background 120ms ease;
}
.button.primary, .plan-action.primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
}
.hero-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.product-preview {
  position: relative;
  min-height: 430px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(17, 23, 19, .90);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .035);
}
.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 14px;
}
.preview-head strong { font-size: 14px; }
.preview-head span { color: var(--muted); font-size: 11px; }
.preview-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-soft);
}
.preview-row {
  min-height: 70px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.preview-row:first-child { border-top: 0; }
.preview-time {
  font-size: 13px;
  font-weight: 730;
  font-variant-numeric: tabular-nums;
}
.preview-copy strong { display: block; font-size: 14px; }
.preview-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.preview-state {
  min-width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}
.preview-task {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-raised);
}
.preview-task span { color: var(--muted); font-size: 11px; }
.preview-task strong { display: block; margin-top: 5px; font-size: 14px; }
.preview-task small { display: block; margin-top: 7px; color: var(--accent); font-size: 11px; }

.section { padding: 64px 0; }
.section.tight { padding-top: 30px; }
.section-heading { max-width: 720px; margin-bottom: 24px; }
.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.04;
  letter-spacing: -.043em;
  font-weight: 790;
}
.section-heading p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}
.feature-card { min-height: 190px; padding: 20px; }
.feature-index {
  display: inline-flex;
  min-width: 34px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.feature-card h3 { margin: 28px 0 7px; font-size: 17px; letter-spacing: -.02em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; }

.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.flow-step { padding: 18px; }
.flow-step strong { display: block; font-size: 15px; }
.flow-step p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.flow-num { color: var(--accent); font-size: 12px; font-weight: 780; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.plan-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 18px;
}
.plan-card.recommended {
  border-color: var(--line-strong);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}
.plan-label { color: var(--muted); font-size: 12px; }
.plan-price {
  margin-top: 8px;
  font-size: 29px;
  line-height: 1;
  font-weight: 820;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.plan-cycle { margin-top: 7px; color: var(--muted); font-size: 12px; }
.plan-benefit {
  min-height: 42px;
  margin-top: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.plan-spacer { flex: 1; }
.plan-action { width: 100%; margin-top: 18px; }

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.trust-card { padding: 22px; }
.trust-card h3 { margin: 0; font-size: 17px; }
.trust-card p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.faq { display: grid; gap: 9px; }
details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 1px rgba(255, 255, 255, .02);
  padding: 0 16px;
}
summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
}
details p { margin: 0 0 16px; color: var(--muted); }

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  border-color: var(--line-strong);
}
.cta-panel h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.06; letter-spacing: -.04em; }
.cta-panel p { margin: 8px 0 0; color: var(--muted); }

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.footer-inner {
  min-height: 104px;
  padding-bottom: var(--safe-bottom);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { text-decoration: none; }

.page-head { max-width: 760px; padding: 62px 0 28px; }
.page-head h1 {
  font-size: clamp(38px, 7vw, 62px);
  max-width: none;
}
.page-head p { margin: 14px 0 0; color: var(--muted); font-size: 16px; }

.account-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 12px;
  padding-bottom: 52px;
}
.account-card { padding: 20px; }
.account-card h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.account-card p { color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 16px; }
.metric {
  min-height: 100px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
}
.metric span { display: block; color: var(--muted); font-size: 11px; }
.metric strong { display: block; margin-top: 8px; font-size: 21px; letter-spacing: -.03em; }
.info-list { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.info-list li { display: flex; gap: 16px; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-list span { color: var(--muted); }

.document { max-width: 780px; padding: 58px 0 50px; }
.document h1 { max-width: none; font-size: clamp(38px, 7vw, 58px); }
.document h2 { margin: 34px 0 9px; font-size: 21px; letter-spacing: -.025em; }
.document p, .document li { color: var(--muted-strong); }
.document a { color: var(--accent); }
.notice {
  margin: 22px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--muted-strong);
}
.notice.warning { border-color: rgba(231, 199, 127, .42); }
.notice.error { border-color: rgba(255, 116, 108, .52); }

.checkout-card { max-width: 620px; margin-bottom: 58px; padding: 22px; }
.checkout-summary { display: grid; gap: 11px; margin-top: 18px; }
.checkout-row { display: flex; justify-content: space-between; gap: 18px; padding-top: 11px; border-top: 1px solid var(--line); }
.checkout-row span { color: var(--muted); }
.checkout-row strong { text-align: right; }

form.inline { margin: 0; }
button.button { appearance: none; }
button[disabled] { opacity: .48; cursor: not-allowed; transform: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 12px;
  top: 12px;
  transform: translateY(-140%);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:not(.nav-action):hover, .footer-links a:hover { color: var(--text); }
  .button:hover, .plan-action:hover, .nav-action:hover { border-color: var(--line-strong); }
  .button.primary:hover, .plan-action.primary:hover, .nav-action.primary:hover { background: var(--accent-strong); }
  .plan-card:hover { border-color: rgba(144, 155, 148, .34); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 66px; }
  .product-preview { min-height: 0; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 24px - var(--safe-left) - var(--safe-right)), 1120px); }
  .nav-links > a:not(.nav-action) { display: none; }
  .nav-links { gap: 8px; }
  .nav-action { min-height: 42px; padding-inline: 12px; }
  .hero { padding-top: 50px; }
  .hero-actions .button { width: 100%; }
  .product-preview { border-radius: 24px; }
  .preview-row { grid-template-columns: 54px minmax(0, 1fr); }
  .preview-state { display: none; }
  .section { padding: 48px 0; }
  .feature-grid, .flow, .plan-grid, .trust-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .plan-card { min-height: 0; }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-panel .button { width: 100%; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 26px calc(26px + var(--safe-bottom)); }
  .metric-grid { grid-template-columns: 1fr 1fr; }
}

@media (pointer: coarse) {
  input, textarea, select, button { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-action, .button, .plan-action { transition: none; }
  .nav-action:active, .button:active, .plan-action:active { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(255, 255, 255, .58); --line-strong: var(--accent); --muted: #c4cec8; }
  .card, details, .preview-list, .product-preview { border-width: 2px; }
}
