/* Landing page only. Demos have their own CSS in each folder. */
:root {
  --accent: #0f766e; --accent-dark: #0b584f; --accent-tint: #eff8f6;
  --ink: #14171a; --ink-soft: #596067; --ink-faint: #878d94;
  --line: #e6e8eb; --line-soft: #f0f2f4;
  --bg: #ffffff; --neutral: #f7f8f9;
  --s1:4px; --s2:8px; --s3:16px; --s4:24px; --s5:32px; --s6:48px; --s7:64px; --s8:96px;
  --radius-sm: 8px; --radius: 14px; --radius-lg: 20px; --radius-pill: 999px;
  --wrap: 1120px;
  --shadow-rest: 0 1px 2px rgba(20,23,26,.04), 0 10px 30px -18px rgba(20,23,26,.28);
  --shadow-lift: 0 2px 6px rgba(20,23,26,.05), 0 22px 48px -24px rgba(20,23,26,.36);
  --ease-out: cubic-bezier(.23,1,.32,1);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Sora", ui-sans-serif, system-ui, sans-serif; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.section { padding-block: var(--s8); }
.section.alt { background: var(--neutral); }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--s3);
}
.lede { font-size: 19px; color: var(--ink-soft); max-width: 60ch; }

/* header */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr .wrap {
  display: flex; align-items: center; gap: var(--s4); min-height: 64px;
  padding-top: env(safe-area-inset-top, 0px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-right: auto; text-decoration: none; }
.brand .mk {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-family: "Sora", sans-serif; font-size: 16px;
}
.hdr nav { display: flex; gap: var(--s4); font-size: 15px; }
.hdr nav a { color: var(--ink-soft); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .hdr nav a:hover { color: var(--accent); }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 600; padding: 12px 20px; min-height: 44px;
  border-radius: var(--radius-pill); border: 0; cursor: pointer;
  transition: background 180ms ease, transform 140ms var(--ease-out);
}
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.sm { padding: 8px 14px; min-height: 38px; font-size: 14px; }

/* hero */
.hero { padding-block: calc(var(--s8) + var(--s4)) var(--s8); background: var(--accent-tint); }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); max-width: 16ch; margin-bottom: var(--s4); }
.hero .lede { margin-bottom: var(--s5); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--s6); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: var(--s4); }
.stat b { display: block; font-family: "Sora", sans-serif; font-size: 26px; }
.stat span { font-size: 14px; color: var(--ink-soft); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: var(--s4); margin-top: var(--s6); }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); }
.step b { display: block; font-family: "Sora", sans-serif; font-size: 13px; color: var(--accent); margin-bottom: var(--s2); }
.step h3 { font-size: 18px; margin-bottom: var(--s2); }
.step p { font-size: 15px; color: var(--ink-soft); }

/* pricing */
.anchor {
  margin-top: var(--s6); max-width: 620px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg); padding: var(--s4) var(--s5);
}
.anchor-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s3); flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--ink-soft);
}
.anchor-row b { font-family: "Sora", sans-serif; font-size: 20px; color: var(--ink-soft); }
.anchor-row b small { font-size: 13px; font-weight: 400; }
.anchor-row.us { color: var(--ink); font-weight: 600; }
.anchor-row.us b { color: var(--accent); font-size: 26px; text-decoration: none; }
.anchor p { font-size: 14.5px; color: var(--ink-soft); margin-top: var(--s3); }
.tbl tr.hi td { background: var(--accent-tint, rgba(0,0,0,.03)); font-weight: 600; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); gap: var(--s4); margin-top: var(--s6); align-items: start; }
.tier { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s5); background: var(--bg); }
.tier.hi { border-color: var(--accent); box-shadow: var(--shadow-lift); position: relative; }
.tier.hi::after {
  content: "Paling popular"; position: absolute; top: -11px; left: var(--s5);
  background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--radius-pill);
}
.tier h3 { font-size: 17px; margin-bottom: var(--s2); }
.price { font-family: "Sora", sans-serif; font-size: 36px; letter-spacing: -.03em; }
.price small { font-size: 14px; font-weight: 400; color: var(--ink-faint); letter-spacing: 0; }
.tier ul { list-style: none; padding: 0; margin: var(--s4) 0; display: grid; gap: 10px; }
.tier li { font-size: 15px; color: var(--ink-soft); padding-left: 24px; position: relative; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.tier li.no { color: var(--ink-faint); }
.tier li.no::before { content: "–"; color: var(--ink-faint); }

/* table */
.tbl { width: 100%; border-collapse: collapse; margin-top: var(--s5); font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.tbl th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); }
.tbl td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.scroller { overflow-x: auto; }

/* work */
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: var(--s4); margin-top: var(--s6); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg); text-decoration: none; display: block;
  transition: box-shadow 180ms ease, transform 180ms var(--ease-out);
}
.card .body { padding: var(--s4); }
.card h3 { font-size: 16px; margin-bottom: 4px; }
.card p { font-size: 14px; color: var(--ink-soft); }
.card .go { margin-top: var(--s3); font-size: 14px; font-weight: 600; color: var(--accent); }

/* faq */
.faq { margin-top: var(--s6); display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
summary { padding: var(--s4); cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { padding: 0 var(--s4) var(--s4); color: var(--ink-soft); font-size: 15px; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: var(--s6); font-size: 14px; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between; }

.notice {
  background: #fff4e5; border-bottom: 1px solid #f0d6a8; color: #7a4f00;
  padding: 10px 20px; font-size: 14px; text-align: center;
}

/* full system band, visibly a different product from the three tiers */
.sys {
  margin-top: var(--s8);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: var(--s6);
  align-items: center;
  background: var(--ink); color: #fff;
  border-radius: var(--radius-lg); padding: var(--s7) var(--s6);
}
.sys h3 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 var(--s3); }
.sys > div > p { color: rgba(255,255,255,.78); max-width: 52ch; }
.sys .eyebrow { color: #5eead4; }
.syslist { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: 9px; }
.syslist li { font-size: 15px; color: rgba(255,255,255,.82); padding-left: 24px; position: relative; }
.syslist li::before { content: "✓"; position: absolute; left: 0; color: #5eead4; font-weight: 700; }
.sysbox { background: rgba(255,255,255,.07); border-radius: var(--radius); padding: var(--s5); }
.sysbox .price { color: #fff; }
.sysbox .price small { color: rgba(255,255,255,.55); }
.syshint { font-size: 14px; color: rgba(255,255,255,.7); margin: var(--s3) 0 var(--s4); }
@media (max-width: 860px) { .sys { grid-template-columns: 1fr; padding: var(--s6) var(--s5); } }

/* trust facts. plain numbers a stranger can check, not claims */
.facts {
  margin-top: var(--s6);
  display: grid; gap: var(--s4);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.facts .fact {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s5);
}
.facts .fact b {
  display: block; font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
  font-size: 23px; letter-spacing: -.02em; margin-bottom: var(--s2);
}
.facts .fact span { font-size: 14.5px; color: var(--ink-soft); }

/* touch targets. a logo and a header button are still things people tap */
@media (max-width: 900px) {
  .btn.sm { min-height: 44px; padding-block: 11px; }
  .brand { min-height: 44px; }
}

/* --- motion ------------------------------------------------------
   Same system as the demo template: one `rise` keyframe, the shared
   --ease-out curve, and scroll reveal driven by animation-timeline so
   no JavaScript is needed. Browsers without it simply show the content.
------------------------------------------------------------------ */

/* press feedback. not gated on hover: a tap is a press on every device */
.btn:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
  .btn:hover:active { transform: translateY(0) scale(0.97); }
  .btn.ghost:hover { background: var(--accent-tint); }
  .card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1, .hero .lede, .hero .cta, .stats {
    animation: rise 560ms var(--ease-out) both;
  }
  .hero .eyebrow { animation-delay: 0ms; }
  .hero h1       { animation-delay: 60ms; }
  .hero .lede    { animation-delay: 110ms; }
  .hero .cta     { animation-delay: 160ms; }
  .stats         { animation-delay: 210ms; }

  /* Progressive enhancement only. Without animation-timeline the content
     is simply there, never hidden by an opacity:0 that nothing resets. */
  @supports (animation-timeline: view()) {
    .step, .tier, .facts .fact, .work .card, .faq details, .sys {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

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

/* --- mobile platform layer ---------------------------------------
   The tells that give a website away on a phone. Each line has one
   reason; none of them reproduce in desktop device emulation.
------------------------------------------------------------------ */

html {
  -webkit-tap-highlight-color: transparent;  /* no grey flash over a tapped button */
  -webkit-text-size-adjust: 100%;            /* no font inflation in landscape */
}

/* controls are controls: instant click, no long-press text selection */
a, button, [role="button"], summary {
  touch-action: manipulation;
}
.btn, .nav-toggle, summary {
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}

/* body copy stays selectable. people copy phone numbers and prices. */

/* --- mobile menu -------------------------------------------------- */
.hdr-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hdr nav { margin-left: auto; }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  padding: 11px 10px; gap: 5px;
  flex-direction: column; justify-content: center;
}
.nav-toggle span {
  display: block; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform 200ms var(--ease-out), opacity 150ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .hdr nav {
    position: fixed; inset: 0 0 auto;
    top: calc(64px + env(safe-area-inset-top, 0px));
    flex-direction: column; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: var(--s2) 20px calc(var(--s4) + env(safe-area-inset-bottom, 0px));
    box-shadow: var(--shadow-rest);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform 200ms var(--ease-out), opacity 160ms ease;
  }
  .hdr nav a {
    padding: 14px 0; font-size: 17px; color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
  }
  body.nav-open .hdr nav { transform: none; opacity: 1; pointer-events: auto; }
}
