@import url("./site-chrome.css?v=site-chrome-1");

:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #06130f;
  --bg-soft: #0a1c16;
  --surface: rgba(14, 39, 30, 0.82);
  --surface-solid: #0e271e;
  --surface-raised: #14372a;
  --line: rgba(141, 207, 178, 0.18);
  --line-strong: rgba(86, 229, 169, 0.42);
  --text: #f4faf7;
  --muted: #a9bdb5;
  --mint: #56e5a9;
  --mint-fill: #56e5a9;
  --mint-dark: #09251a;
  --yellow: #f5cf67;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  --page-background:
    radial-gradient(circle at 12% 7%, rgba(48, 164, 116, 0.18), transparent 30rem),
    radial-gradient(circle at 92% 22%, rgba(40, 113, 83, 0.14), transparent 34rem),
    var(--bg);
  --header-background: rgba(6, 19, 15, .84);
  --section-background: rgba(5, 22, 16, .58);
  --card-background: linear-gradient(145deg, rgba(17, 47, 36, .8), rgba(9, 29, 22, .88));
  --plan-background: linear-gradient(145deg, rgba(19, 53, 41, .88), rgba(9, 30, 22, .95));
  --accent-card-background: linear-gradient(145deg, rgba(31, 88, 65, .65), rgba(10, 35, 26, .9));
  --cta-background: linear-gradient(120deg, rgba(21, 72, 52, .9), rgba(8, 30, 22, .96));
  --footer-background: rgba(3, 14, 10, .5);
  --control-background: rgba(255, 255, 255, .04);
  --control-hover-background: rgba(86, 229, 169, .09);
  --text-soft: #c8d9d2;
  --on-accent: #032116;
  --focus-ring: rgba(86, 229, 169, .32);
  --button-shadow: 0 9px 26px rgba(86, 229, 169, .13);
  --button-hover-shadow: 0 14px 34px rgba(86, 229, 169, .22);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f8f5;
  --bg-soft: #eaf4ee;
  --surface: rgba(255, 255, 255, .9);
  --surface-solid: #ffffff;
  --surface-raised: #e7f3ec;
  --line: rgba(29, 78, 59, .16);
  --line-strong: rgba(8, 126, 82, .42);
  --text: #10251d;
  --muted: #587067;
  --mint: #087e52;
  --mint-fill: #4bd9a1;
  --mint-dark: #d9f3e6;
  --yellow: #806000;
  --shadow: 0 24px 70px rgba(24, 67, 50, .13);
  --page-background:
    radial-gradient(circle at 10% 5%, rgba(75, 217, 161, .19), transparent 31rem),
    radial-gradient(circle at 93% 21%, rgba(115, 190, 156, .13), transparent 35rem),
    var(--bg);
  --header-background: rgba(248, 252, 250, .9);
  --section-background: rgba(229, 242, 235, .72);
  --card-background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(239, 247, 242, .98));
  --plan-background: linear-gradient(145deg, #ffffff, #edf7f1);
  --accent-card-background: linear-gradient(145deg, #e1f4e9, #f7fbf9);
  --cta-background: linear-gradient(120deg, #d9f3e6, #f7fbf9);
  --footer-background: rgba(236, 245, 240, .78);
  --control-background: rgba(29, 78, 59, .055);
  --control-hover-background: rgba(8, 126, 82, .1);
  --text-soft: #294b3e;
  --on-accent: #052218;
  --focus-ring: rgba(8, 126, 82, .24);
  --button-shadow: 0 9px 24px rgba(8, 126, 82, .14);
  --button-hover-shadow: 0 14px 32px rgba(8, 126, 82, .21);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: var(--page-background);
}

a { color: inherit; }
button, input { font: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { color: var(--muted); line-height: 1.65; }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 850;
  touch-action: manipulation;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, filter .16s ease;
}
.button-primary { color: var(--on-accent); background: var(--mint-fill); box-shadow: var(--button-shadow); }
.button-secondary { color: var(--text); background: var(--control-background); border-color: var(--line); }
.button-small { min-height: 40px; padding: .55rem .82rem; }

:where(a[href], button, summary):focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.button:active { transform: translateY(1px) scale(.985); filter: brightness(.97); }

@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-2px); box-shadow: var(--button-hover-shadow); filter: brightness(1.025); }
  .button-primary:hover { filter: brightness(1.04); }
  .button-secondary:hover { color: var(--text); border-color: var(--line-strong); background: var(--control-hover-background); box-shadow: 0 8px 22px rgba(18, 64, 46, .12); transform: translateY(-1px); }
}

.public-main { overflow: hidden; }
.page-shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.hero {
  min-height: 690px;
  padding: clamp(4.2rem, 9vw, 8.2rem) 0 clamp(3.2rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .84fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  color: var(--mint);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 25px; height: 1px; background: var(--mint); }
.hero h1 {
  max-width: 760px;
  margin-bottom: 1.35rem;
  font-size: clamp(3rem, 6.3vw, 5.8rem);
  line-height: .96;
  letter-spacing: -.058em;
}
.hero h1 span { color: var(--mint); }
.hero-lead { max-width: 650px; margin-bottom: 1.8rem; font-size: clamp(1rem, 1.65vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2rem; }
.hero-facts span {
  padding: .42rem .66rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--control-background);
  font-size: .72rem;
  font-weight: 750;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  background: #06130f;
  box-shadow: var(--shadow);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.hero-visual picture,
.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-visual img { object-fit: cover; }

.public-section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section-muted { border-block: 1px solid var(--line); background: var(--section-background); }
.section-heading { max-width: 720px; margin-bottom: 2rem; }
.section-heading h2 { margin-bottom: .85rem; font-size: clamp(2rem, 4.3vw, 3.8rem); line-height: 1.03; letter-spacing: -.047em; }
.section-heading p { font-size: 1.02rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.feature-card {
  min-height: 225px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card-background);
}
.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--mint);
  background: rgba(86,229,169,.09);
  font-size: .8rem;
  font-weight: 950;
}
.feature-card h3 { margin-bottom: .55rem; font-size: 1rem; }
.feature-card p { margin-bottom: 0; font-size: .82rem; }

.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.step-card { position: relative; padding: 1.6rem; border-top: 1px solid var(--line-strong); }
.step-number { color: var(--mint); font-size: .72rem; font-weight: 900; letter-spacing: .15em; }
.step-card h3 { margin: 1.4rem 0 .65rem; font-size: 1.25rem; }
.step-card p { margin-bottom: 0; font-size: .88rem; }

.public-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.public-plan-grid .plan-card {
  min-height: 176px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--plan-background);
}
.public-plan-grid .plan-period { margin-bottom: .45rem; color: var(--text); font-size: 1.04rem; font-weight: 850; }
.public-plan-grid .plan-terms { margin-bottom: 1.25rem; font-size: .76rem; }
.public-plan-grid .plan-prices { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: .6rem; }
.public-plan-grid .plan-prices strong { color: var(--text); font-size: 1.25rem; }
.public-plan-grid .plan-prices span { color: var(--yellow); font-size: .75rem; font-weight: 850; }
.public-plan-grid .plans-unavailable { grid-column: 1 / -1; padding: 1.2rem; border: 1px solid var(--line); border-radius: 16px; }
.plans-note { margin: 1.2rem 0 0; }

.control-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.control-card {
  min-height: 315px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
}
.control-card-accent { background: var(--accent-card-background); }
.control-card .eyebrow { margin-bottom: 2.2rem; }
.control-card h3 { max-width: 480px; font-size: clamp(1.55rem, 3vw, 2.3rem); letter-spacing: -.035em; }
.control-card p { max-width: 520px; }
.text-link { color: var(--mint); text-underline-offset: .25em; font-weight: 800; }

.public-cta {
  margin: clamp(3.5rem, 8vw, 7rem) 0;
  padding: clamp(2rem, 7vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: var(--cta-background);
  box-shadow: var(--shadow);
}
.public-cta h2 { max-width: 650px; margin-bottom: .6rem; font-size: clamp(2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.05em; }
.public-cta p { margin-bottom: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .65rem; flex: 0 0 auto; }

.public-footer { border-top: 1px solid var(--line); background: var(--footer-background); }
.footer-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.2rem 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand p { max-width: 390px; margin: .8rem 0 0; font-size: .78rem; }
.footer-links { display: flex; flex-direction: column; gap: .55rem; }
.footer-links strong { margin-bottom: .25rem; font-size: .77rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .8rem; }
.footer-links a:hover { color: var(--mint); }
.footer-bottom { grid-column: 1 / -1; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }

.page-hero { padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(2.8rem, 6vw, 5rem); }
.page-hero h1 { max-width: 850px; margin-bottom: 1rem; font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: .97; letter-spacing: -.052em; }
.page-hero p { max-width: 720px; font-size: 1.05rem; }
.page-intro-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.guide-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); padding-bottom: clamp(4rem, 9vw, 8rem); }
.guide-index { align-self: start; position: sticky; top: 98px; display: flex; flex-direction: column; gap: .35rem; }
.guide-index a { padding: .7rem .85rem; border-left: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: .78rem; font-weight: 750; }
.guide-index a:hover { color: var(--mint); border-left-color: var(--mint); }
.guide-content { display: flex; flex-direction: column; gap: 1rem; }
.guide-card { padding: clamp(1.3rem, 4vw, 2.2rem); border: 1px solid var(--line); border-radius: 23px; background: var(--surface); }
.guide-card h2 { margin-bottom: .75rem; font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -.03em; }
.guide-card h3 { margin-top: 1.6rem; }
.guide-card > p:last-child { margin-bottom: 0; }
.guide-step-heading { display: flex; align-items: center; gap: .8rem; }
.guide-step-heading > span { min-width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; color: var(--on-accent); background: var(--mint-fill); font-weight: 950; }
.device-picker { margin-top: 1.2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 15px; background: var(--control-background); }
.device-picker-copy { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.device-picker-copy h3 { margin: 0; font-size: 1rem; }
.device-picker-copy p { max-width: 520px; margin: 0; font-size: .78rem; text-align: right; }
.device-switcher { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.device-switcher button { min-height: 40px; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: var(--surface); cursor: pointer; font-size: .76rem; font-weight: 800; touch-action: manipulation; }
.device-switcher button[aria-pressed="true"] { border-color: var(--mint); color: var(--on-accent); background: var(--mint-fill); box-shadow: var(--button-shadow); }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-top: 1.2rem; }
.download-link { padding: .9rem; border: 1px solid var(--line); border-radius: 13px; text-decoration: none; background: var(--control-background); transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
.download-link[hidden] { display: none; }
.download-link[data-selected="true"] { grid-column: 1 / -1; }
.download-link[data-recommended="true"]::before { content: attr(data-recommended-label); display: inline-flex; margin-bottom: .55rem; border-radius: 999px; padding: .22rem .48rem; color: var(--on-accent); background: var(--mint-fill); font-size: .65rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.download-link:hover { border-color: var(--line-strong); }
.download-link strong { display: block; margin-bottom: .22rem; }
.download-link small { color: var(--muted); }
.callout { padding: 1rem; border-left: 2px solid var(--mint); border-radius: 0 13px 13px 0; background: rgba(86, 229, 169, .06); }
.callout p { margin: 0; font-size: .82rem; }

.faq-list { display: flex; flex-direction: column; gap: .65rem; }
.faq-list details { border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.faq-list summary { padding: 1.05rem 1.2rem; list-style: none; cursor: pointer; font-weight: 800; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--mint); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 1.2rem 1.1rem; margin: 0; font-size: .86rem; }
.support-card { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.support-card h2 { margin-bottom: .45rem; }
.support-card p { margin-bottom: 0; }

@media (max-width: 980px) {
  .hero { min-height: 0; grid-template-columns: 1fr; padding-top: 4.5rem; }
  .hero-copy { max-width: 760px; }
  .hero-visual { width: min(620px, 100%); }
  .feature-grid, .public-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-shell { grid-template-columns: 1.3fr 1fr; }
}

@media (max-width: 720px) {
  .page-shell, .footer-shell { width: min(100% - 1.25rem, 1180px); }
  .hero { padding-top: 3.5rem; gap: 2.5rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .hero-visual { border-radius: 23px; }
  .feature-grid, .steps-grid, .control-split, .public-plan-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .public-cta, .support-card { align-items: flex-start; flex-direction: column; }
  .cta-actions, .cta-actions .button, .support-card .button { width: 100%; }
  .footer-shell { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .guide-layout { display: block; }
  .guide-index { position: static; flex-direction: row; margin-bottom: 1.2rem; overflow-x: auto; }
  .guide-index a { white-space: nowrap; border-left: 0; border-bottom: 1px solid var(--line); }
  .device-picker-copy { display: block; }
  .device-picker-copy p { margin-top: .35rem; text-align: left; }
  .download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .hero-actions .button { width: 100%; }
  .footer-shell { grid-template-columns: 1fr; }
  .footer-brand, .footer-bottom { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  :where(.button, .download-link) { transform: none !important; }
}

@media (forced-colors: active) {
  .button, .device-switcher button, .feature-card, .control-card, .guide-card, .faq-list details { border: 1px solid CanvasText; }
}
