/* Weeksuite homepage. Tokens are the app's Soft Studio palette (atlas apps/web/app/globals.css),
   so the site and the product look like one thing. Logo blue is #4d70e7; buttons use the app blue. */

:root {
  --bg: #f4f2ed;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --sunk: #eeece6;
  --line: #e4e1d9;
  --line-strong: #d3cfc4;
  --ink: #1e2230;
  --ink-2: #4b5163;
  --ink-3: #636878;
  --blue: #2e5bdb;
  --blue-press: #2448b8;
  --blue-tint: #e6ecfb;
  --blue-edge: #c9d6f6;
  --on-blue: #ffffff;
  /* Site buttons match the logo W (#4d70e7, Jason 2026-11-15). The app keeps #2e5bdb inside its own UI mocks. */
  --btn: #4d70e7;
  --btn-press: #3a5bd0;
  --logo: #4d70e7;
  --regular: #e3f0e8;
  --regular-edge: #bcd9c6;
  --regular-dot: #3e8a5e;
  --deep: #ece8f7;
  --deep-edge: #d1c8ec;
  --deep-dot: #6e57b5;
  --vacate: #f8ebdd;
  --vacate-edge: #ebcfaf;
  --vacate-dot: #b66a2c;
  --office: #e2eef6;
  --office-edge: #bed7e8;
  --office-dot: #2f77a6;
  --amber: #8a5a00;
  --amber-tint: #fdf2de;
  --amber-line: #c58a12;
  --good: #2e7d4f;
  --good-tint: #e3f0e8;
  --coral: #b03421;
  --drive: #a9b3c9;
  --band: #1e2230;
  --band-ink: #ececee;
  --band-ink-2: #b4b4bb;
  --shadow-rgb: 30, 34, 48;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --figure: "Inter Tight", var(--sans);
  --display: "Sora", var(--sans);

  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 9px;
  --container: 1200px;
  --gutter: clamp(1rem, 4.5vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.45rem + 2vw, 3rem);
  --step-4: clamp(2.5rem, 1.7rem + 3.8vw, 4.6rem);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #141415;
  --surface: #1c1c1f;
  --surface-2: #222226;
  --sunk: #101012;
  --line: #2c2c31;
  --line-strong: #3a3a41;
  --ink: #ececee;
  --ink-2: #b4b4bb;
  --ink-3: #8f8f97;
  --blue: #3563e9;
  --blue-press: #2a52c8;
  --blue-tint: #1f2538;
  --blue-edge: #34407a;
  --regular: #1c2a22;
  --regular-edge: #2e4636;
  --regular-dot: #5cbf86;
  --deep: #25213a;
  --deep-edge: #3e3662;
  --deep-dot: #a08cf0;
  --vacate: #2f251b;
  --vacate-edge: #51402c;
  --vacate-dot: #e3a066;
  --office: #1b2730;
  --office-edge: #2c4354;
  --office-dot: #5aaee0;
  --amber: #f0b94e;
  --amber-tint: #2f2719;
  --amber-line: #d6a03c;
  --good: #63cc8e;
  --good-tint: #1c2a22;
  --coral: #ff8b78;
  --drive: #4a4f5e;
  --band: #0c0c0e;
  --shadow-rgb: 0, 0, 0;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--btn); color: var(--on-blue); padding: 0.7rem 1rem; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.lede { font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; max-width: 60ch; }
.h2 { font-size: var(--step-3); max-width: 18ch; }
.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { justify-items: center; text-align: center; }
.section-head.center .h2 { max-width: 20ch; }
.section-head.center .lede { max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.35rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 var(--step-0)/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .15s ease; }
.btn:hover .icon { transform: translateX(2px); }
.btn-primary { background: var(--btn); color: var(--on-blue); }
.btn-primary:hover { background: var(--btn-press); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-3); }
.btn-sm { min-height: 40px; padding: 0 1rem; font-size: var(--step--1); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s ease, background-color .2s ease; }
.site-header.stuck { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 2rem; height: 72px; }
.brand { display: inline-flex; text-decoration: none; }
.brand img { height: 26px; width: auto; }
.brand .logo-dark { display: none; }
.nav-links { display: none; gap: 1.75rem; margin-right: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: var(--step--1); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.nav-actions .signin { display: none; text-decoration: none; font-weight: 500; font-size: var(--step--1); color: var(--ink-2); }
.nav-actions .signin:hover { color: var(--ink); }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 0.75rem var(--gutter) 1.25rem; }
.mobile-nav.open { display: grid; gap: 0.25rem; }
.mobile-nav a { text-decoration: none; padding: 0.75rem 0; font-weight: 500; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-actions { margin-left: 0; }
  .nav-actions .signin { display: inline; }
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.hero-copy { display: grid; gap: 1.5rem; min-width: 0; }
.hero h1 { font-size: var(--step-4); max-width: 12ch; }
.hero h1 .w { color: var(--logo); }
.hero .lede { max-width: 46ch; }
.signup { display: flex; flex-wrap: wrap; gap: 0.6rem; max-width: 30rem; }
.signup input {
  flex: 1 1 14rem; min-width: 0; min-height: 48px; padding: 0 1.15rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit;
}
.signup input::placeholder { color: var(--ink-3); }
.signup input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.signup .note { flex-basis: 100%; font-size: var(--step--1); color: var(--ink-3); }
.signup .note.ok { color: var(--good); font-weight: 500; }
.signup .note.err { color: var(--coral); font-weight: 500; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: var(--step--1); color: var(--ink-2); }
.hero-points li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-points .icon { color: var(--good); width: 1.05em; height: 1.05em; }

.hero-visual { position: relative; min-width: 0; padding-bottom: 4rem; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .hero-visual { padding: 0 0 2rem 0; margin-right: calc(var(--gutter) * -0.5); }
}

/* ---------- Product mocks (shared) ---------- */
.window {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .05), 0 24px 48px -24px rgba(var(--shadow-rgb), .22);
  overflow: hidden;
}
.window-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 0.8rem; }
.window-bar .title { font-family: var(--figure); font-weight: 600; font-size: 0.92rem; }
.window-bar .seg { margin-left: auto; display: inline-flex; background: var(--sunk); border-radius: 999px; padding: 3px; gap: 2px; }
.window-bar .seg span { padding: 0.2rem 0.65rem; border-radius: 999px; color: var(--ink-3); font-weight: 500; }
.window-bar .seg span.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .12); }

/* Day view */
.dayview { font-size: 0.74rem; }
.dv-scroll { overflow-x: auto; }
.dv-inner { min-width: 560px; }
.dv-hours { display: grid; grid-template-columns: 128px repeat(5, 1fr); border-bottom: 1px solid var(--line); color: var(--ink-3); font-family: var(--figure); font-weight: 500; }
.dv-hours span { padding: 0.45rem 0.5rem; border-left: 1px solid var(--line); }
.dv-hours span:first-child { border-left: 0; }
.lane { display: grid; grid-template-columns: 128px 1fr; border-bottom: 1px solid var(--line); min-height: 74px; }
.lane:last-child { border-bottom: 0; }
.who { display: flex; align-items: center; gap: 0.5rem; padding: 0 0.6rem; border-right: 1px solid var(--line); min-width: 0; }
.who b { display: block; font-weight: 600; font-size: 0.78rem; }
.who small { display: block; color: var(--ink-3); font-size: 0.68rem; white-space: nowrap; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 0.72rem; flex: none; color: var(--ink); }
.track { position: relative; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: 20% 100%; }
.job {
  position: absolute; top: 8px; bottom: 22px; border-radius: 8px; border: 1px solid; padding: 0.3rem 0.45rem;
  overflow: hidden; line-height: 1.25; display: grid; align-content: start; gap: 1px;
}
.job b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.job small { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.66rem; }
.job.reg { background: var(--regular); border-color: var(--regular-edge); }
.job.deep { background: var(--deep); border-color: var(--deep-edge); }
.job.vac { background: var(--vacate); border-color: var(--vacate-edge); }
.job.off { background: var(--office); border-color: var(--office-edge); }
.job.warn { border-color: var(--amber-line); border-width: 1.5px; }
.drive { position: absolute; top: calc(50% - 7px); height: 0; border-top: 2px dotted var(--drive); }
.drive span { position: absolute; top: calc(50% + 0.9rem - 7px); left: 50%; transform: translateX(-50%); font-size: 0.6rem; color: var(--ink-3); white-space: nowrap; font-family: var(--figure); }
.dv-foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0.7rem 1rem; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); font-size: 0.72rem; }
.dv-foot .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.35rem; vertical-align: 1px; }
.dv-foot .alert { order: -1; flex-basis: 100%; color: var(--amber); display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 500; }

/* Phone: iPhone 15/16 Pro proportions. Body 71.5 x 146.6 mm, display 393 x 852 pt,
   Dynamic Island 126 x 37.33 pt at 11 pt from the top, home indicator 134 x 5 pt at 8 pt
   from the bottom, status bar 54 pt. Everything inside scales off the phone's width
   (container units), so text and spacing keep their real proportions at any size.
   1 pt of the 393 pt display = 0.2276cqw of the phone. */
.phone {
  position: absolute; right: clamp(-1rem, -1.5vw, 0rem); bottom: -1.5rem; width: clamp(200px, 37%, 262px);
  aspect-ratio: 71.5 / 146.6; container-type: inline-size;
  background: #0b0b0c; border-radius: 16.8% / 8.2%;
  box-shadow: inset 0 0 0 2.5px #4a4a4f, inset 0 0 0 3.5px #1c1c1f,
    0 2px 4px rgba(var(--shadow-rgb), .18), 0 34px 64px -22px rgba(var(--shadow-rgb), .5);
}
/* Side buttons: action button and two volume buttons on the left, side button on the right. */
.phone::before, .phone::after { content: ""; position: absolute; width: 1.1%; border-radius: 2px; }
.phone::before {
  left: -0.9%; top: 17%; height: 29%;
  background: linear-gradient(to bottom, #3a3a3e 0 15.5%, transparent 15.5% 27.6%, #3a3a3e 27.6% 60.3%, transparent 60.3% 67.2%, #3a3a3e 67.2% 100%);
}
.phone::after { right: -0.9%; top: 27%; height: 14.5%; background: #3a3a3e; }

/* Display inset: 3.2 mm each side of 71.5 mm, 2.7 mm top and bottom of 146.6 mm.
   Padding is in cqw (phone width): status bar 54 pt, sides 16 pt, bottom 34 pt. */
.screen {
  position: absolute; left: 4.48%; right: 4.48%; top: 1.84%; bottom: 1.84%;
  overflow: hidden; background: var(--bg);
  border-radius: 14% / 6.45%;
  padding: 12.3cqw 3.64cqw 7.74cqw;
  font-size: 3.87cqw; line-height: 1.3; display: grid; align-content: start; gap: 2.7cqw;
}
.screen::before { /* Dynamic Island */
  content: ""; position: absolute; z-index: 2; top: 1.29%; left: 50%; transform: translateX(-50%);
  width: 32%; height: 4.38%; background: #000; border-radius: 999px;
}
.screen::after { /* home indicator */
  content: ""; position: absolute; bottom: 0.94%; left: 50%; transform: translateX(-50%);
  width: 34%; height: 0.59%; background: var(--ink); border-radius: 999px; opacity: .85; z-index: 3;
}
/* Tab bar: 49 pt bar plus the 34 pt home indicator area. */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 18.9cqw; padding-bottom: 7.74cqw;
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center;
  background: var(--surface); border-top: 1px solid var(--line);
}
.tabbar span { display: grid; justify-items: center; gap: 0.6cqw; font-size: 2.28cqw; font-weight: 500; color: var(--ink-3); }
.tabbar span.on { color: var(--blue); }
.tabbar .icon { width: 5.6cqw; height: 5.6cqw; }
.status {
  position: absolute; top: 0; left: 0; right: 0; height: 6.34%;
  display: flex; align-items: center; justify-content: space-between; padding: 0.6% 7.5% 0 11%;
  font-family: var(--figure); font-weight: 600; font-size: 3.9cqw; color: var(--ink);
}
.status span { display: inline-flex; align-items: center; gap: 1.3cqw; }
.status .icon { width: 4.3cqw; height: 4.3cqw; stroke-width: 2.4; }
.status .icon.batt { width: 6cqw; height: 6cqw; stroke-width: 1.8; }
.screen .hi { font-family: var(--display); font-weight: 600; font-size: 7.74cqw; letter-spacing: -0.02em; line-height: 1.15; margin-top: 1cqw; }
.screen .sub { color: var(--ink-3); margin-top: -1.8cqw; font-size: 2.96cqw; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4.6cqw; padding: 3.4cqw; display: grid; gap: 1.6cqw; }
.card .row { display: flex; align-items: center; gap: 1.6cqw; color: var(--ink-2); }
.card .row .icon { width: 4cqw; height: 4cqw; color: var(--ink-3); }
.card .t { font-weight: 600; color: var(--ink); font-size: 3.87cqw; }
.card .row { font-size: 3.41cqw; }
.card .later { display: flex; gap: 2.4cqw; font-size: 3.41cqw; color: var(--ink-2); }
.card .later b { font-family: var(--figure); font-weight: 600; color: var(--ink); min-width: 10cqw; }
.pill { display: inline-flex; align-items: center; gap: 0.25rem; border-radius: 999px; padding: 0.12rem 0.5rem; font-size: 0.64rem; font-weight: 600; width: fit-content; }
.screen .pill { font-size: 2.96cqw; padding: 0.4cqw 2.2cqw; }
.pill.reg { background: var(--regular); color: var(--regular-dot); }
.pill.blue { background: var(--blue-tint); color: var(--blue); }
.pill.amber { background: var(--amber-tint); color: var(--amber); }
.clock { background: var(--blue); color: var(--on-blue); border-radius: 999px; text-align: center; padding: 2.9cqw; font-weight: 600; font-size: 3.87cqw; }
.progress { height: 1.6cqw; background: var(--sunk); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 60%; background: var(--good); border-radius: 999px; }
@media (max-width: 560px) { .phone { width: 44%; right: -0.25rem; bottom: -1rem; } }

/* ---------- Proof strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.strip ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.strip li { display: flex; align-items: center; gap: 0.75rem; padding: 1.25rem 0.75rem; font-size: var(--step--1); color: var(--ink-2); min-width: 0; }
.strip li b { display: block; color: var(--ink); font-weight: 600; font-size: var(--step-0); }
.strip .icon { width: 1.5rem; height: 1.5rem; color: var(--blue); }
@media (min-width: 900px) {
  .strip ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .strip li + li { border-left: 1px solid var(--line); padding-left: 1.5rem; }
}

/* ---------- Tabs (the hub) ---------- */
.tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; margin-bottom: 1.75rem; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 0.5rem; flex: none; min-height: 46px; padding: 0 1.1rem;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2);
  font: 500 var(--step--1)/1 var(--sans); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.tab:hover { color: var(--ink); border-color: var(--ink-3); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.panel { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.5rem, 4vw, 3.5rem); }
.panel[hidden] { display: none; }
.panel-copy { display: grid; gap: 1.1rem; min-width: 0; }
.panel-copy h3 { font-size: var(--step-2); max-width: 20ch; }
.panel-copy p { color: var(--ink-2); max-width: 46ch; }
.ticks { display: grid; gap: 0.7rem; margin-top: 0.4rem; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: 0.65rem; align-items: start; }
.ticks .icon { color: var(--blue); margin-top: 0.2rem; width: 1.1rem; height: 1.1rem; }
.panel-visual { min-width: 0; background: var(--bg); border-radius: var(--r-lg); padding: clamp(1rem, 3vw, 2rem); }
@media (min-width: 960px) { .panel { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }

/* Mini UI for panels */
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 0.8rem; overflow: hidden; }
.mini-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); font-weight: 600; font-family: var(--figure); }
.mini-head small { font-family: var(--sans); font-weight: 500; color: var(--ink-3); font-size: 0.72rem; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 0.7rem; padding: 0.55rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.tbl td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-family: var(--figure); }
.tbl-wrap { overflow-x: auto; }
.ok { color: var(--good); font-weight: 600; display: inline-flex; align-items: center; gap: 0.3rem; }
.ok .icon { width: 0.95rem; height: 0.95rem; }
.list-rows { display: grid; }
.list-rows > div { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); min-width: 0; }
.list-rows > div:last-child { border-bottom: 0; }
.list-rows .grow { flex: 1; min-width: 0; }
.list-rows .grow b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-rows .grow small { color: var(--ink-3); }
.ic-tile { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.ic-tile .icon { width: 1.05rem; height: 1.05rem; }
.ic-tile.green { background: var(--regular); color: var(--regular-dot); }
.ic-tile.blue { background: var(--blue-tint); color: var(--blue); }
.ic-tile.purple { background: var(--deep); color: var(--deep-dot); }
.ic-tile.orange { background: var(--vacate); color: var(--vacate-dot); }
.stars { display: inline-flex; gap: 1px; color: #d9a21b; }
.stars .icon { width: 0.85rem; height: 0.85rem; fill: currentColor; stroke: #b07a00; stroke-width: 1; }
.two-phone { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.two-phone { max-width: 520px; margin: 0 auto; gap: clamp(0.75rem, 3vw, 1.5rem); }
.two-phone .phone { position: relative; right: auto; bottom: auto; width: 100%; }
.check-item { display: flex; align-items: center; gap: 2cqw; color: var(--ink-2); font-size: 3.41cqw; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8cqw; }
.thumbs i { aspect-ratio: 1; border-radius: 2.4cqw; background: var(--office); }
.thumbs i:nth-child(2) { background: var(--regular); }
.thumbs i.add { background: var(--sunk); display: grid; place-items: center; color: var(--ink-3); }
.thumbs .icon { width: 5cqw; height: 5cqw; }
.check-item .box { width: 3.6cqw; height: 3.6cqw; border-radius: 4px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; }
.check-item.done .box { background: var(--good); border-color: var(--good); color: #fff; }
.check-item.done .box .icon { width: 2.6cqw; height: 2.6cqw; stroke-width: 3; }
.check-item.done span { text-decoration: line-through; color: var(--ink-3); }

/* ---------- Recurring (signature) ---------- */
.recur { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.recur-copy { display: grid; gap: 1.25rem; min-width: 0; }
.recur-copy .lede { font-size: var(--step-0); }
.freqs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.freqs span { border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.35rem 0.85rem; font-size: var(--step--1); color: var(--ink-2); background: var(--surface); }
.series { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.25rem; min-width: 0; }
.series-top { display: flex; align-items: flex-start; gap: 0.9rem; }
.series-top .grow { flex: 1; min-width: 0; }
.series-top h3 { font-size: var(--step-1); letter-spacing: -0.015em; }
.series-top p { color: var(--ink-3); font-size: var(--step--1); }
.rule { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; font-size: var(--step--1); }
.rule div { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.6rem 0.75rem; min-width: 0; }
.rule small { display: block; color: var(--ink-3); font-size: 0.72rem; }
.rule b { font-weight: 600; }
.runway { position: relative; overflow: hidden; }
.runway-label { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--ink-3); margin-bottom: 0.6rem; font-family: var(--figure); }
.dots { display: grid; grid-template-columns: repeat(26, 1fr); gap: 5px; mask-image: linear-gradient(to right, #000 75%, transparent); -webkit-mask-image: linear-gradient(to right, #000 75%, transparent); }
.dots i { aspect-ratio: 1; border-radius: 50%; background: var(--regular-edge); }
.dots i.past { background: var(--regular-dot); }
.dots i.skip { background: transparent; border: 1.5px dashed var(--line-strong); }
.dots i.moved { background: var(--amber-line); }
.series-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.72rem; color: var(--ink-3); }
.series-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.series-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.edit-scope { display: grid; gap: 0.4rem; font-size: var(--step--1); }
.edit-scope label { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.75rem; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink-2); }
.edit-scope label.on { border-color: var(--blue); background: var(--blue-tint); color: var(--ink); font-weight: 500; }
.radio { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; }
.on .radio { border: 4px solid var(--blue); background: var(--surface); }
@media (min-width: 960px) { .recur { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Replace the stack ---------- */
.stack { display: grid; gap: 1.25rem; align-items: stretch; }
.stack-before, .stack-after { border-radius: 24px; padding: clamp(1.5rem, 3.5vw, 2.5rem); display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
.stack-before { background: var(--sunk); }
.stack-after { background: var(--surface); border: 1px solid var(--line); }
.stack h3 { font-size: var(--step-1); letter-spacing: -0.015em; }
.stack-before li { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px dashed var(--line-strong); color: var(--ink-2); }
.stack-before li:last-child { border-bottom: 0; }
.stack-before li .icon { color: var(--ink-3); }
.stack-before li s { text-decoration-color: var(--coral); text-decoration-thickness: 1.5px; }
.stack-after .mark { width: 56px; height: auto; color: var(--logo); }
.stack-after p { color: var(--ink-2); max-width: 42ch; }
.stack-after ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1rem; }
.stack-after li { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; font-size: var(--step--1); min-width: 0; }
.stack-after li .icon { color: var(--blue); width: 1.05rem; height: 1.05rem; }
.arrow-mid { display: none; }
@media (min-width: 960px) {
  .stack { grid-template-columns: minmax(0, 0.8fr) auto minmax(0, 1.2fr); align-items: center; }
  .arrow-mid { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--bg); }
}

/* ---------- Roles ---------- */
.roles { display: grid; gap: 1.25rem; }
.role { border-radius: 24px; padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1rem; align-content: start; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.role .ic-tile { width: 44px; height: 44px; border-radius: 12px; }
.role .ic-tile .icon { width: 1.3rem; height: 1.3rem; }
.role h3 { font-size: var(--step-2); }
.role p { color: var(--ink-2); }
.role ul { display: grid; gap: 0.5rem; font-size: var(--step--1); color: var(--ink-2); }
.role li { display: flex; gap: 0.5rem; align-items: flex-start; }
.role li .icon { color: var(--good); width: 1rem; height: 1rem; margin-top: 0.25rem; }
.role.lead { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.role.lead p, .role.lead ul { color: color-mix(in srgb, var(--bg) 78%, var(--ink)); }
.role.lead .ic-tile { background: color-mix(in srgb, var(--bg) 14%, var(--ink)); color: var(--bg); }
.role.lead li .icon { color: var(--regular-edge); }
@media (min-width: 900px) {
  .roles { grid-template-columns: 1.3fr 1fr 1fr; }
  .role.lead { grid-row: span 1; }
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step { position: relative; padding: 1.75rem 0 0; border-top: 2px solid var(--ink); display: grid; gap: 0.6rem; min-width: 0; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--figure); font-weight: 600; color: var(--blue); font-size: var(--step--1); }
.step h3 { font-size: var(--step-1); letter-spacing: -0.015em; }
.step p { color: var(--ink-2); max-width: 36ch; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }

/* ---------- Story ---------- */
.story { background: var(--band); color: var(--band-ink); border-radius: clamp(24px, 3vw, 36px); padding: clamp(2rem, 6vw, 5rem); display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.story .h2 { max-width: 16ch; color: #fff; }
.story-body { display: grid; gap: 1.1rem; color: var(--band-ink-2); max-width: 58ch; font-size: var(--step-1); line-height: 1.55; }
.story-body strong { color: var(--band-ink); font-weight: 600; }
.pains { display: grid; gap: 1px; background: rgba(255,255,255,.1); border-radius: var(--r-lg); overflow: hidden; }
.pains div { background: var(--band); padding: 1.25rem 1.4rem; display: grid; gap: 0.3rem; }
.pains b { color: #fff; font-family: var(--display); font-weight: 600; font-size: var(--step-1); letter-spacing: -0.015em; }
.pains span { color: var(--band-ink-2); font-size: var(--step--1); }
@media (min-width: 960px) {
  .story { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; }
}

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: 1.25rem; align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.75rem, 4vw, 3rem); display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
.price-card .big { font-family: var(--display); font-weight: 600; font-size: var(--step-3); letter-spacing: -0.03em; line-height: 1; }
.price-card .big small { font-family: var(--sans); font-size: var(--step-0); color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.price-card p { color: var(--ink-2); }
.promise { display: grid; gap: 0.9rem; align-content: start; padding: clamp(1.75rem, 4vw, 3rem); border-radius: 28px; border: 1px dashed var(--line-strong); }
.promise li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; }
.promise li .icon { color: var(--blue); margin-top: 0.15rem; }
.promise b { display: block; font-weight: 600; }
.promise span { color: var(--ink-2); font-size: var(--step--1); }
@media (min-width: 900px) { .pricing { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 2rem; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; font-weight: 600; font-size: var(--step-1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s ease; color: var(--ink-3); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 0 1.4rem; color: var(--ink-2); max-width: 64ch; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; } }

/* ---------- Final CTA ---------- */
.cta-band { background: var(--btn); color: var(--on-blue); border-radius: clamp(24px, 3vw, 36px); padding: clamp(2.25rem, 6vw, 4.5rem); display: grid; gap: 1.75rem; align-items: center; }
.cta-band h2 { font-size: var(--step-3); max-width: 16ch; color: #fff; }
.cta-band p { color: rgba(255,255,255,.86); max-width: 44ch; margin-top: 0.75rem; }
.cta-band .signup input { border-color: transparent; }
.cta-band .signup input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.cta-band .btn-primary { background: var(--ink); color: #fff; }
:root[data-theme="dark"] .cta-band .btn-primary { background: #0c0c0e; }
.cta-band .btn-primary:hover { background: #000; }
.cta-band .signup .note { color: rgba(255,255,255,.8); }
.cta-band .signup .note.ok, .cta-band .signup .note.err { color: #fff; }
@media (min-width: 960px) { .cta-band { grid-template-columns: 1fr auto; } .cta-band .signup { min-width: 26rem; } }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(3.5rem, 7vw, 5rem) 0 2.5rem; }
.foot-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-brand { grid-column: 1 / -1; display: grid; gap: 1rem; align-content: start; }
.foot-brand img { height: 26px; width: auto; }
.foot-brand .logo-dark { display: none; }
.foot-brand p { color: var(--ink-2); max-width: 34ch; font-size: var(--step--1); }
.foot-col h4 { font-family: var(--sans); font-size: var(--step--1); font-weight: 600; letter-spacing: 0; margin-bottom: 0.9rem; }
.foot-col ul { display: grid; gap: 0.55rem; font-size: var(--step--1); }
.foot-col a { text-decoration: none; color: var(--ink-2); }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; color: var(--ink-3); font-size: 0.82rem; }
.foot-base a { color: var(--ink-3); }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } .foot-brand { grid-column: auto; } }

/* Dark logo swap */
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.hero-copy > * { animation: rise .7s ease both; }
.hero-copy > *:nth-child(2) { animation-delay: .06s; }
.hero-copy > *:nth-child(3) { animation-delay: .12s; }
.hero-copy > *:nth-child(4) { animation-delay: .18s; }
.hero-visual { animation: rise .9s .15s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-copy > *, .hero-visual { animation: none; opacity: 1; transform: none; transition: none; }
}
