/* de•vice landing page. Rules live in DESIGN.md. */
:root {
  --forest: #22563f;
  --forest-dark: #173d2c;
  --night: #0f2a1e;
  --leaf: #7ccc98;
  --strike: #e0694a;
  --paper: #f7f5f0;
  --alt: #efebe2;
  --card: #ffffff;
  --ink: #111814;
  --muted: #5b665f;
  --line: rgba(17, 24, 20, 0.12);

  --sans: "Outfit", system-ui, sans-serif;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(44px, 5.6vw, 76px); letter-spacing: -0.04em; }
h2 { font-size: clamp(34px, 4.2vw, 56px); }
h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--forest); margin-bottom: 14px; }
.sub { font-size: clamp(18px, 1.5vw, 20px); color: var(--muted); max-width: 40ch; }
.head { max-width: 760px; margin-bottom: 48px; }
.head .sub { margin-top: 18px; }

.wordmark { font: 600 24px/1 var(--sans); letter-spacing: -0.03em; text-decoration: none; color: var(--forest); }
.wordmark span { display: inline-block; transform: translateY(-0.04em); margin: 0 0.02em; }

/* Buttons: one style, in sizes. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--forest); color: #fff;
  font: 600 17px/1 var(--sans);
  text-decoration: none; border-radius: 999px;
  padding: 16px 28px;
  transition: background 0.2s, transform 0.2s;
}
.button:hover { background: var(--forest-dark); }
.button:active { transform: scale(0.98); }
.button-small { padding: 12px 20px; font-size: 15px; }
.button-large { padding: 20px 40px; font-size: 19px; }
.button-block { width: 100%; }
.button-light { background: #fff; color: var(--forest); }
.button-light:hover { background: #eef5f0; }

/* Announcement and nav */
.announce { background: var(--forest); color: #fff; text-align: center; font-size: 14px; font-weight: 500; padding: 9px var(--gutter); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(247, 245, 240, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; margin-right: auto; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav .button-small { margin-left: auto; }

/* Placeholders: obviously unfinished, but tidy. */
.placeholder {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(34, 86, 63, 0.035) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, #e5eee8, #d3e2d8);
}
.ph-tag {
  position: absolute; left: 16px; bottom: 16px; width: fit-content; max-width: calc(100% - 32px);
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em; color: var(--forest-dark);
  background: rgba(255, 255, 255, 0.88); padding: 7px 12px; border-radius: 999px;
}
.stand-in { position: absolute; left: 50%; top: 46%; width: 46%; transform: translate(-50%, -50%) rotate(-8deg); border-radius: 22%; box-shadow: 0 40px 60px -20px rgba(15, 42, 30, 0.45); }

/* 1. Hero */
.hero { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 88px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .sub { max-width: 34ch; }
.price-block { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 36px; }
.price { display: grid; gap: 2px; }
.price strong { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price span { font-size: 15px; color: var(--muted); max-width: 28ch; line-height: 1.4; }
.trust { margin-top: 32px; display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 10px; }
.trust svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--forest); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-media { aspect-ratio: 4 / 5; }

/* 2. Problem */
.problem { background: var(--night); color: #fff; padding: 112px 0; }
.problem h2 { max-width: 14em; }
.excuses { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.excuses p { padding: 28px 28px 0 0; display: grid; gap: 6px; }
.excuses p + p { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.excuses s { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.02em; text-decoration-color: var(--strike); text-decoration-thickness: 3px; }
.excuses span { color: rgba(255, 255, 255, 0.65); }
.problem-close { margin-top: 56px; font-size: clamp(20px, 2vw, 26px); color: var(--leaf); font-weight: 500; max-width: 36ch; }

/* Sections */
.section { padding: 112px 0; }
.section-alt { background: var(--alt); }

/* 3. Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ph-step { aspect-ratio: 4 / 3; margin-bottom: 22px; }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--forest); color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.steps h3 { font-size: 24px; margin-bottom: 8px; }
.steps p { color: var(--muted); }
.footnote { margin-top: 40px; font-size: 15px; color: var(--muted); }
.inline-cta { margin-top: 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }

/* 4. Comparison */
.table-scroll { overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.compare { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; font-size: 16px; }
.compare th, .compare td { padding: 20px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 15px; font-weight: 600; color: var(--muted); }
.compare tbody th { font-weight: 500; width: 32%; }
.compare td { color: var(--muted); }
.compare i { font-style: normal; font-weight: 700; display: inline-block; width: 22px; }
.compare .no { color: #b8452c; }
.compare .some { color: #a08a3c; }
.compare .yes { color: var(--forest); }
.compare .us { background: #e9f3ed; color: var(--ink); font-weight: 500; }
.compare thead .us { background: var(--forest); color: #fff; font-size: 17px; }

/* 5. Protection */
.protection { background: var(--forest); color: #fff; padding: 112px 0; }
.protection .eyebrow { color: var(--leaf); }
.protection .sub { color: rgba(255, 255, 255, 0.75); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.features article { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); padding: 32px; }
.features .icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(124, 204, 152, 0.16); margin-bottom: 20px; }
.features svg { width: 24px; height: 24px; fill: none; stroke: var(--leaf); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.features h3 { margin-bottom: 10px; }
.features p { color: rgba(255, 255, 255, 0.75); font-size: 16px; }
.pays-for { margin-top: 40px; font-size: 18px; color: var(--leaf); max-width: 52ch; }

/* 6. Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.review blockquote { font-size: 19px; line-height: 1.45; letter-spacing: -0.01em; flex: 1; }
.review figcaption { font-size: 15px; color: var(--muted); }
.stars { color: #e3a52b; letter-spacing: 3px; }
.ph-badge { position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8a5a00; background: #fff1cc; padding: 4px 9px; border-radius: 999px; }

/* 7. Motivation */
.motivation { padding: 80px 0; }
.motivation-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
#forest-canvas { width: 100%; aspect-ratio: 4 / 3; display: block; }
.motivation h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 16px; }

/* 8. Offer */
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 32px; padding: 32px; }
.offer-media { aspect-ratio: 1; }
.offer-copy { padding: 16px 16px 16px 0; }
.offer h2 { font-size: clamp(32px, 3.4vw, 46px); margin-bottom: 24px; }
.offer-price { margin-bottom: 24px; }
.included { display: grid; gap: 12px; margin-bottom: 32px; }
.included li { position: relative; padding-left: 32px; }
.included li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #e1efe6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5 5.5-5.5' fill='none' stroke='%2322563f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.offer-fine { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }

/* 9. FAQ */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--forest); transition: transform 0.25s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { color: var(--muted); padding: 0 44px 24px 0; }

/* 10. Final */
.final { padding: 72px var(--gutter); }
.final-inner { max-width: calc(var(--max) - 2 * var(--gutter)); background: radial-gradient(ellipse 70% 90% at 50% 120%, rgba(124, 204, 152, 0.35), transparent 70%), var(--forest); color: #fff; border-radius: 32px; padding: 96px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.final h2 { font-size: clamp(38px, 5vw, 64px); }
.final p { color: rgba(255, 255, 255, 0.8); font-size: 18px; margin-bottom: 8px; }

/* Footer */
.footer { padding: 0 0 48px; color: var(--muted); font-size: 15px; }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 32px; }
.footer nav { display: flex; gap: 24px; margin-right: auto; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--ink); }

/* Sticky buy bar: phones only, after the hero's button scrolls away. */
.buy-bar { display: none; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .hero-media { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .ph-step { aspect-ratio: 16 / 9; }
  .reviews { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .offer-copy { padding: 8px; }
  .faq { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .hero { padding-bottom: 64px; }
  .price-block { flex-direction: column; align-items: stretch; gap: 18px; }
  .price-block .button { width: 100%; }
  .problem, .section, .protection { padding: 80px 0; }
  .excuses { grid-template-columns: 1fr; }
  .excuses p, .excuses p + p { padding: 22px 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .features { grid-template-columns: 1fr; }
  .features article { padding: 24px; }
  /* Fit the table on a phone: drop the middle column so de•vice stays in view. */
  .compare { min-width: 0; font-size: 14px; }
  .compare th, .compare td { padding: 14px 10px; }
  .compare tr > :nth-child(3) { display: none; }
  .compare tbody th { width: 42%; }
  .compare thead .us { font-size: 15px; }
  .motivation-inner { grid-template-columns: 1fr; gap: 24px; }
  .final { padding-inline: var(--gutter); }
  .final-inner { padding: 72px 20px; border-radius: 24px; }
  .footer { padding-bottom: 104px; }
  .buy-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 50;
    background: var(--card); border: 1px solid var(--line); border-radius: 20px;
    padding: 12px 12px 12px 18px; box-shadow: 0 12px 32px rgba(15, 42, 30, 0.18);
    transform: translateY(140%); transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
  }
  .buy-bar.show { transform: none; }
  .buy-bar div { display: grid; line-height: 1.25; }
  .buy-bar strong { font-size: 16px; }
  .buy-bar span { font-size: 13px; color: var(--muted); }
  .buy-bar .button { padding: 14px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
