/* Nurt landing. Dark is the design's home; light mirrors Final · Light. */
:root {
  --bg: #0e0e10;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #8e8e93;
  --field: #1c1c1e;
  --field-border: rgba(255, 255, 255, .14);
  --surface: #1c1c1e;
  --surface-border: rgba(255, 255, 255, .08);
  --chip: #2c2c2e;
  --hairline: rgba(255, 255, 255, .12);
  --accent: #0a84ff;
  /* Buttons with white text: #0071e3 keeps 4.7:1 (the design's #0a84ff is 3.6:1). */
  --button: #0071e3;
  --button-hover: #0077ed;
  --accent-press: #006edb;
  --red: #ff375f;
  --teal: #40c8e0;
  --purple: #bf5af2;
  --blue: #0a84ff;
  --shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-card: 0 18px 50px rgba(0, 0, 0, .45);
  /* Storm cards */
  --card: #1c1c1e;
  --card-2: #242426;
  --card-far: #161618;
  --card-border: rgba(255, 255, 255, .06);
  --card-title: #f5f5f7;
  --card-sub: #d1d1d6;
  --card-far-title: #8e8e93;
  --card-far-sub: #636366;
  --card-time: #8e8e93;
  --card-shadow: rgba(0, 0, 0, .6);
  --av: #2c2c2e;
  --nav-chip: rgba(28, 28, 30, .72);
  --toggle-bg: rgba(255, 255, 255, .08);
  --toggle-border: rgba(255, 255, 255, .12);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 7.6vw, 110px);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #6e6e73;
  --field: #ffffff;
  --field-border: rgba(0, 0, 0, .12);
  --surface: #ffffff;
  --surface-border: rgba(0, 0, 0, .06);
  --chip: #ffffff;
  --hairline: rgba(0, 0, 0, .1);
  --red: #e0244d;
  --teal: #0a6a7e;
  --purple: #7f2bb3;
  --blue: #0058b0;
  --shadow: 0 30px 70px rgba(0, 0, 0, .12), 0 6px 18px rgba(0, 0, 0, .06);
  --shadow-card: 0 14px 40px rgba(0, 0, 0, .08);
  --card: #ffffff;
  --card-2: #ffffff;
  --card-far: #fbfbfd;
  --card-border: rgba(0, 0, 0, .05);
  --card-title: #1d1d1f;
  --card-sub: #3a3a3c;
  --card-far-title: #8e8e93;
  --card-far-sub: #aeaeb2;
  --card-time: #8e8e93;
  --card-shadow: rgba(0, 0, 0, .1);
  --av: #f2f2f7;
  --nav-chip: rgba(255, 255, 255, .78);
  --toggle-bg: rgba(0, 0, 0, .04);
  --toggle-border: rgba(0, 0, 0, .1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Theme-specific images: only the visible one is fetched (lazy + display:none). */
:root[data-theme="dark"] .t-light, :root[data-theme="light"] .t-dark { display: none !important; }

.m-only, .m-word { display: none; }
.m-br { display: none; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 40px 0 26px;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -.01em;
  padding: 8px 14px 8px 14px; border-radius: 16px;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav.over-storm .brand {
  background: var(--nav-chip);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 0 0 1px var(--card-border), 0 10px 30px var(--card-shadow);
}
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  color: var(--text);
  background: var(--toggle-bg);
  border: 1px solid var(--toggle-border);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform .2s ease, background-color .3s ease;
}
.theme-toggle:hover { transform: scale(1.06); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { overflow: visible; }
.theme-toggle .sun-core, .theme-toggle .moon-bite, .theme-toggle .sun-rays {
  transform-box: fill-box; transform-origin: center;
  transition: transform .5s cubic-bezier(.5, 1.4, .4, 1), r .5s cubic-bezier(.5, 1.4, .4, 1), opacity .3s ease, cx .5s ease, cy .5s ease;
}
/* Moon on the dark page, sun on the light one. */
.theme-toggle .sun-rays { opacity: 0; transform: rotate(-45deg) scale(.4); }
:root[data-theme="light"] .theme-toggle .sun-core { r: 4.6px; }
:root[data-theme="light"] .theme-toggle .moon-bite { cx: 30px; cy: -6px; }
:root[data-theme="light"] .theme-toggle .sun-rays { opacity: 1; transform: rotate(0) scale(1); }

/* ── Type ────────────────────────────────────────────── */
h1, h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.06;
  text-align: center;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 8.4vw, 122px); letter-spacing: -.05em; }
h2 { font-size: clamp(36px, 5.6vw, 80px); line-height: 1.1; }
.sub {
  color: var(--text-2);
  font-size: clamp(17px, 1.7vw, 24px);
  letter-spacing: .01em;
  text-align: center;
  margin-top: 24px;
  text-wrap: balance;
}

section { position: relative; }

/* ── Hero ────────────────────────────────────────────── */
.hero { --reveal: 120vh; height: calc(max(1340px, 100vh + 440px) + var(--reveal)); }
.hero-pin {
  position: sticky; top: 0;
  height: max(1340px, 100vh + 440px);
  padding-top: 156px;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; padding: 0 20px; }
.hero h1 { white-space: nowrap; }
.hero .sub { margin-top: 26px; }

.beta {
  display: grid; grid-template-columns: minmax(0, 360px) 180px; gap: 12px;
  justify-content: center; margin: 40px auto 0; max-width: 552px;
}
.beta input[type="email"] {
  height: 56px; width: 100%;
  padding: 0 20px; border-radius: 14px;
  background: var(--field); color: var(--text);
  border: 1px solid var(--field-border);
  font: inherit; font-size: 17px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.beta input[type="email"]::placeholder { color: var(--text-3); }
.beta input[type="email"]:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); }
.beta input[aria-invalid="true"] { border-color: var(--red); }
.beta button {
  height: 56px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--button); color: #fff;
  font: inherit; font-size: 17px; font-weight: 600;
  transition: background-color .2s ease, transform .15s ease, opacity .2s ease;
}
.beta button:hover { background: var(--button-hover); }
.beta button:active { transform: scale(.98); background: var(--accent-press); }
.beta button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px; }
.beta button[disabled] { opacity: .6; cursor: progress; }
.beta .hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.form-note {
  grid-column: 1 / -1; text-align: center;
  color: var(--text-3); font-size: 15px; margin-top: 4px;
  min-height: 1.4em;
}
.form-note.err { color: var(--red); }
.beta.done input, .beta.done button { display: none; }
.beta.done .form-note { color: var(--text); font-size: 20px; font-weight: 600; margin-top: 0; min-height: 56px; display: grid; place-items: center; }

.hero-device { position: relative; z-index: 1; width: min(1080px, 75vw); margin: 134px auto 0; }
.hero-device img { border-radius: 14px; box-shadow: var(--shadow); }

/* Storm ─ cards are positioned by app.js; transforms only. */
.storm {
  position: fixed; inset: 0; z-index: 10;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}
.storm .card, .edge-cards .card, .side-mail .sm { will-change: transform, opacity; }
.card {
  position: absolute; left: 0; top: 0;
  display: grid; grid-template-columns: auto 1fr auto; column-gap: .9em; align-items: start;
  width: 22em; padding: 1.05em 1.2em;
  border-radius: 1.35em;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 1.1em 2.6em var(--card-shadow);
  color: var(--card-title);
  font-size: 16px; line-height: 1.3;
  transform-origin: center;
  white-space: nowrap;
}
.card.alt { background: var(--card-2); }
.card .av {
  grid-row: 1 / span 3;
  width: 2.6em; height: 2.6em; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--av-bg, var(--av)); color: var(--av-fg, var(--card-far-title));
  font-size: .82em; font-weight: 600; letter-spacing: .02em;
}
.card .av.app { border-radius: .7em; color: #fff; font-size: 1em; font-weight: 700; }
.card b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.card time { color: var(--card-time); font-size: .9em; justify-self: end; }
.card p { grid-column: 2 / span 2; color: var(--card-sub); overflow: hidden; text-overflow: ellipsis; margin-top: .15em; }
.card p + p { color: var(--card-time); }
.card .unread { position: absolute; right: 1.3em; bottom: 1.25em; width: .5em; height: .5em; border-radius: 50%; background: var(--accent); }
.card.far {
  background: var(--card-far);
  box-shadow: 0 .6em 1.4em var(--card-shadow);
  color: var(--card-far-title);
}
.card.far p { color: var(--card-far-sub); }
.card.far time { color: var(--card-far-sub); }
/* Avatar tints, as in the app (dark, then light below). */
.tint-g { --av-bg: #16301f; --av-fg: #30d158; }
.tint-b { --av-bg: #1f2a3d; --av-fg: #64a8ff; }
.tint-r { --av-bg: #3a1a24; --av-fg: #ff6482; }
.tint-o { --av-bg: #3a2a14; --av-fg: #ffb340; }
.tint-n { --av-bg: #2c2c2e; --av-fg: #a1a1a6; }
.card.far .av { --av-bg: #232325; --av-fg: #636366; }
:root[data-theme="light"] .tint-g { --av-bg: #e3f6e8; --av-fg: #248a3d; }
:root[data-theme="light"] .tint-b { --av-bg: #e5f0ff; --av-fg: #0066cc; }
:root[data-theme="light"] .tint-r { --av-bg: #fde8ec; --av-fg: #d70f43; }
:root[data-theme="light"] .tint-o { --av-bg: #fff1dd; --av-fg: #c96b00; }
:root[data-theme="light"] .tint-n { --av-bg: #f2f2f7; --av-fg: #6e6e73; }
:root[data-theme="light"] .card.far .av { --av-bg: #f2f2f7; --av-fg: #aeaeb2; }
.app-blue { background: linear-gradient(180deg, #2c9bff, #0a6cff); }
.app-red { background: linear-gradient(180deg, #ff5a70, #e5223f); }
.app-orange { background: linear-gradient(180deg, #ffb340, #ff8a00); }
.app-green { background: linear-gradient(180deg, #4cd964, #28b446); }
.card.far .av.app { background: #3a3a3c; }
:root[data-theme="light"] .card.far .av.app { background: #d1d1d6; }
.card.glow {
  width: 6em; height: 6em; padding: 0; border-radius: 1.4em; border: 0;
  background: var(--glow); box-shadow: none;
}

.scroll-hint {
  position: fixed; left: 50%; bottom: 36px; z-index: 30;
  transform: translateX(-50%);
  padding: 12px 22px; border-radius: 999px;
  background: var(--nav-chip);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px var(--card-border), 0 10px 30px var(--card-shadow);
  font-size: 17px; font-weight: 500;
  pointer-events: none;
  transition: opacity .4s ease;
}
.scroll-hint span { display: inline-block; margin-left: 4px; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }

.edge-cards { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
@keyframes drift {
  from { transform: translate3d(var(--x0), var(--y0), 0) rotate(var(--r0)) scale(var(--s)); }
  to { transform: translate3d(var(--x1), var(--y1), 0) rotate(var(--r1)) scale(var(--s)); }
}
.drifting { animation: drift var(--d, 18s) ease-in-out infinite alternate; }

/* ── Sections ────────────────────────────────────────── */
main > section:not(.hero) { padding: 140px var(--gutter) 0; z-index: 1; }
main { position: relative; }
main > section:not(.hero) > *:not(.storm-returns) { position: relative; z-index: 1; }

.folders { overflow-x: clip; }
/* Bottom space of each section, from the group heights in A · Desktop. */
main > section.folders { padding-bottom: 160px; }
main > section.why { padding-bottom: 210px; }
main > section.on-device { padding-bottom: 86px; }
main > section.more { padding-bottom: 130px; }
main > section.iphone { padding-bottom: 206px; }
.folders-grid {
  display: grid; grid-template-columns: minmax(0, 330fr) minmax(0, 870fr);
  column-gap: 20px; margin: 68px auto 0; max-width: 1220px; align-items: start;
}
.folder-card {
  padding: 22px 22px 26px; border-radius: 22px;
  background: var(--surface);
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent), var(--shadow-card);
}
.folder-head { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.folder-head img { width: 40px; height: 40px; }
.folder-desc { margin-top: 18px; font-size: 22px; line-height: 1.45; min-height: 2.9em; }
.caret {
  display: inline-block; width: 2px; height: 1.15em; vertical-align: -.2em; margin-left: 2px;
  background: var(--accent); animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.pills { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 32px; }
.pills li {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px 0 13px; border-radius: 999px;
  color: var(--c); font-weight: 600; font-size: 17px;
  background: color-mix(in srgb, var(--c) 16%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
.pills li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pills .pill-teal { --c: var(--teal); }
.pills .pill-purple { --c: var(--purple); }
.pills .pill-blue { --c: var(--blue); }
.pills li.pill-new { color: var(--text-3); background: transparent; border-color: var(--hairline); padding-left: 18px; }
.pills li.pill-new::before { display: none; }
.threshold { position: relative; }

.why-grid {
  display: grid; grid-template-columns: minmax(0, 720fr) minmax(0, 460fr);
  grid-template-rows: auto auto; gap: 20px 40px;
  max-width: 1220px; margin: 96px auto 0;
}
.why-reply { grid-row: 1 / span 2; }

.on-device .device-stage { position: relative; max-width: 1220px; margin: 48px auto 0; }
.macbook { width: 67.2%; margin-left: 5.7%; }
.model-card { position: absolute; right: 0; top: 68.5%; width: 55.7%; }
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 70px auto 0; max-width: 820px; }
.langs li {
  height: 44px; padding: 0 18px; border-radius: 999px;
  display: inline-flex; align-items: center;
  background: var(--chip); border: 1px solid var(--surface-border);
  font-size: 17px; font-weight: 500;
}

/* Columns 440 · 300 · 440 with 20 gaps give the 760/440 and 440/760 rows. */
.bento {
  display: grid; max-width: 1220px; margin: 70px auto 0; gap: 20px;
  grid-template-columns: 440fr 300fr 440fr;
}
.bento .b-search { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.bento .b-remind { grid-column: 3; grid-row: 1; }
.bento .b-accounts { grid-column: 3; grid-row: 2; }
.bento .b-promises { grid-column: 1; grid-row: 3; }
.bento .b-today { grid-column: 2 / span 2; grid-row: 3; }
.bento .b-remind, .bento .b-accounts { align-self: start; }

.phones { display: flex; justify-content: center; gap: 70px; margin: 56px auto 0; max-width: 1100px; align-items: flex-start; }
.phone { width: 320px; flex: 0 1 320px; margin-top: 40px; position: relative; }
.phone.mid { margin-top: 0; }
.phone img { filter: drop-shadow(0 28px 34px rgba(0, 0, 0, .45)); }
:root[data-theme="light"] .phone img { filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .14)); }

.closing { padding-top: 150px !important; padding-bottom: 0 !important; min-height: 820px; overflow: hidden; }
.closing .beta { margin-top: 46px; }
.storm-returns {
  position: relative; height: 320px; margin: 60px calc(-1 * var(--gutter)) 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 35%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 35%, #000 55%, transparent 100%);
  opacity: .55;
}

.footer {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: 1220px; margin: 0 auto; padding: 36px 0 48px;
  border-top: 1px solid var(--hairline);
  position: relative; z-index: 1;
}
.footer { margin-inline: var(--gutter); max-width: none; }
@media (min-width: 1440px) { .footer { margin-inline: auto; max-width: 1220px; } }
.footer .brand { padding: 0; font-size: 17px; justify-self: start; }
.footer .brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer .made { color: var(--text-2); font-size: 15px; }
.footer .links { justify-self: end; display: flex; gap: 26px; font-size: 15px; color: var(--text-2); }
.footer .links a { text-decoration: none; }
.footer .links a:hover { color: var(--text); }

/* ── Live app components (sections below the hero) ───── */
:root {
  --app-card: #1c1c1e;
  --app-border: rgba(255, 255, 255, .08);
  --app-inner: #242426;
  --app-inner-2: #2c2c2e;
  --app-line: rgba(255, 255, 255, .08);
  --app-text: #f5f5f7;
  --app-text-2: #d1d1d6;
  --app-text-3: #8e8e93;
  --orange: #ff9f0a;
  --green: #30d158;
  --link: #0a84ff;
  --orange-bg: rgba(255, 159, 10, .14);
  --green-bg: rgba(48, 209, 88, .13);
  --red-bg: rgba(255, 55, 95, .075);
  --blue-bg: rgba(10, 132, 255, .2);
}
:root[data-theme="light"] {
  --app-card: #ffffff;
  --app-border: rgba(0, 0, 0, .06);
  --app-inner: #f5f5f7;
  --app-inner-2: #ebebf0;
  --app-line: rgba(0, 0, 0, .08);
  --app-text: #1d1d1f;
  --app-text-2: #3a3a3c;
  --app-text-3: #6e6e73;
  --orange: #b35900;
  --green: #1c7f37;
  --link: #0060c7;
  --orange-bg: rgba(255, 149, 0, .14);
  --green-bg: rgba(52, 199, 89, .14);
  --red-bg: rgba(255, 45, 85, .06);
  --blue-bg: rgba(0, 122, 255, .12);
}

.app-card {
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  color: var(--app-text);
  padding: 26px 28px;
}
.app-card h3 { margin: 0 0 24px; font-size: 21px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 12px; }
.app-card time { color: var(--app-text-3); font-variant-numeric: tabular-nums; }
.app-card em { font-style: normal; color: var(--orange); }
.app-card .o { color: var(--orange); }
.app-card .g { color: var(--green); }
.app-card .b { color: var(--link); }
.app-card .t { color: var(--teal); }
.app-card .from { color: var(--app-text-3); margin-top: 22px; font-size: 16px; }

.ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico-red { background: rgba(255, 55, 95, .16); color: var(--red); }
.ico-plain { background: var(--app-inner-2); color: var(--app-text); }

.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 15px; font-weight: 600;
  background: var(--av-bg); color: var(--av-fg);
}
.avatar.xs { width: 30px; height: 30px; font-size: 11px; }
.ring { display: inline-block; width: 17px; height: 17px; border-radius: 50%; border: 2.2px solid currentColor; flex: none; vertical-align: -3px; }
.ring.sm { width: 12px; height: 12px; border-width: 2px; vertical-align: -1px; }
.ring-orange { color: var(--orange); }
.ring-green { color: var(--green); }
.ring-blue { color: var(--link); }
.ring-teal { color: var(--teal); }
.ring.dashed { border-style: dashed; }
.dot-green, .dot-blue, .dot-purple, .dot-orange { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-green { background: var(--green); }
.dot-blue { background: var(--link); }
.dot-purple { background: var(--purple); }
.dot-orange { background: var(--orange); }

.act {
  height: 40px; padding: 0 18px; border-radius: 11px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 600;
  background: var(--app-inner-2); color: var(--app-text);
  border: 1px solid var(--app-border);
  transition: background-color .2s ease, color .2s ease, transform .12s ease;
}
.act:hover { filter: brightness(1.12); }
.act:active { transform: scale(.96); }
.act:focus-visible { outline: 3px solid color-mix(in srgb, var(--link) 50%, transparent); outline-offset: 2px; }
.act-green { background: var(--green-bg); color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.act.on { background: var(--green); color: #fff; border-color: transparent; }

/* Folder with its line */
.folder-head .ico { width: 40px; height: 40px; }
.folder-list { padding: 22px 22px 18px; border-radius: 26px; }
.fl-head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--app-line); }
.fl-title { display: grid; gap: 2px; flex: 1; min-width: 0; }
.fl-title b { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.fl-title span { color: var(--app-text-3); font-size: 14px; }
.fl-count { display: grid; justify-items: end; gap: 2px; color: var(--app-text-3); font-size: 18px; font-variant-numeric: tabular-nums; }
.fl-count b { color: var(--red); font-size: 20px; font-weight: 600; }
.fl-count small { font-size: 13px; }
.fl-body { display: grid; grid-template-columns: 1fr 40px; gap: 14px; margin-top: 14px; }
.fl-rows { list-style: none; margin: 0; padding: 0; position: relative; }
.fl-rows::before {
  /* Tinted block behind the rows that are in the folder. */
  content: ""; position: absolute; inset: 0 0 auto 0; height: var(--in-h, 0px);
  background: var(--red-bg); border-radius: 12px;
  transition: height .28s cubic-bezier(.3, .7, .2, 1);
}
.fl-row {
  position: relative; height: 35px;
  display: grid; grid-template-columns: 22px minmax(0, 170px) minmax(0, 1fr) auto 46px; column-gap: 12px; align-items: center;
  padding: 0 14px; font-size: 14.5px;
}
.fl-row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-row .subj { color: var(--app-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-row .pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--app-text-3); font-size: 13.5px; transition: color .2s ease; }
.fl-row .close { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--app-inner-2); color: var(--app-text-3); }
.fl-row .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--app-text-3); transition: all .2s ease; }
.fl-row.in .pct { color: var(--red); }
.fl-row.in .dot { border-color: var(--red); background: var(--red); }
.fl-row.near .dot { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.fl-row.in.near .dot { color: var(--red); background: linear-gradient(90deg, var(--red) 50%, transparent 50%); }
.fl-row.near:not(.in) .dot { color: var(--red); border-color: var(--red); }
.fl-scale {
  position: relative; border-radius: 6px;
  background: repeating-linear-gradient(to bottom, var(--app-line) 0 2px, transparent 2px 5px);
  background-size: 14px 100%; background-repeat: no-repeat; background-position: center;
  font-size: 11px; color: var(--app-text-3); font-variant-numeric: tabular-nums;
}
.fl-scale-fill {
  position: absolute; left: 50%; top: 0; width: 22px; transform: translateX(-50%);
  height: var(--fill, 12%); border: 1.5px solid var(--app-text-3); border-radius: 5px;
  background: repeating-linear-gradient(to bottom, var(--red) 0 2px, transparent 2px 5px) center / 14px 100% no-repeat;
  transition: height .28s cubic-bezier(.3, .7, .2, 1);
}
.fl-scale-n { position: absolute; top: -18px; left: 0; right: 0; text-align: center; color: var(--red); font-weight: 500; }
.fl-scale span { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; }
.fl-more { margin: 12px 0 0 14px; font-size: 14px; font-weight: 600; color: var(--app-text-3); }
.fl-more span { font-weight: 400; }
.fl-line, .fl-handle, .fl-tag { position: absolute; top: 0; z-index: 3; transform: translateY(var(--line-y, 0px)); transition: transform .28s cubic-bezier(.3, .7, .2, 1); }
/* The folder's line runs across the whole page. */
.fl-line { left: -100vw; right: -100vw; height: 2px; margin-top: -1px; background: var(--red); pointer-events: none; }
.threshold { z-index: 2; }
.fl-handle {
  left: -8px; margin-top: -17px; height: 34px; padding: 0 14px 0 10px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff; border-radius: 999px;
  font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums;
  cursor: grab; touch-action: none; user-select: none;
  box-shadow: 0 6px 18px rgba(255, 55, 95, .35);
}
.fl-handle svg { width: 11px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fl-handle:active, .fl-handle.drag { cursor: grabbing; transition: none; }
.threshold.dragging .fl-line, .threshold.dragging .fl-tag { transition: transform .08s linear; }
.fl-handle:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 45%, transparent); outline-offset: 3px; }
.fl-tag {
  right: 74px; margin-top: -12px; height: 24px; padding: 0 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: .3em; font-size: 12.5px; font-weight: 600;
  background: var(--app-card); color: var(--app-text); border: 1.5px solid var(--red);
  font-variant-numeric: tabular-nums; pointer-events: none;
}
.fl-row.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: translateX(4px); } }

/* Why */
.why-grid { align-items: start; }
.mail-head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--app-line); }
.mail-head div { flex: 1; display: grid; gap: 2px; }
.mail-head b { font-size: 21px; font-weight: 600; }
.mail-head div > span { color: var(--app-text-3); font-size: 17px; }
.mail-head time { font-size: 17px; align-self: start; padding-top: 4px; }
.mail-body { padding-top: 22px; color: var(--app-text-2); font-size: 16.5px; line-height: 1.55; }
.mail-body .ask { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0 10px; color: var(--app-text); }
.mail-body .ask .ring { margin-top: 6px; }
.mail-body .indent { padding-left: 29px; }
mark {
  color: inherit; padding: 2px 6px; border-radius: 6px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 1.75;
  background: linear-gradient(var(--orange-bg), var(--orange-bg)) no-repeat left / 100% 100%;
  box-shadow: inset 0 -2px 0 var(--orange);
}
.js mark { background-size: 0% 100%; box-shadow: inset 0 0 0 transparent; transition: background-size .9s cubic-bezier(.6, .1, .2, 1) .35s, box-shadow .4s ease 1.2s; }
.js .in mark { background-size: 100% 100%; box-shadow: inset 0 -2px 0 var(--orange); }
.reply-foot { display: flex; align-items: center; gap: 28px; margin-top: 24px; }
.mini-mail { flex: 1; padding: 14px 18px; border-radius: 14px; background: var(--app-inner); border: 1px solid color-mix(in srgb, var(--orange) 55%, transparent); font-size: 14.5px; }
.mini-mail div { display: flex; justify-content: space-between; }
.mini-mail p { color: var(--app-text-3); margin-top: 4px; }
.mini-mail p.o { color: var(--orange); display: flex; align-items: center; gap: 6px; }
.mini-mail p.o span { color: var(--app-text-3); }
.reply-actions { display: flex; gap: 14px; }
.tag-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 18px; font-weight: 600; }
.tag-head > span { display: inline-flex; align-items: center; gap: 10px; }
.tag-head time { font-weight: 400; font-size: 17px; }
.why-promise blockquote {
  margin: 20px 0 0; padding: 22px 22px; border-radius: 16px;
  background: var(--green-bg); border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
  font-size: 21px; line-height: 1.45;
}
.person { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.person b { display: block; font-size: 18px; font-weight: 600; }
.person > div > span { color: var(--app-text-3); font-size: 16px; }
.person.sm { gap: 12px; margin-top: 14px; }
.person.sm b { font-size: 15px; }
.person.sm > div > span { font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.person.sm + .person.sm { padding-top: 14px; border-top: 1px solid var(--app-line); }

/* Model card */
.model-card { padding: 22px 24px; border-radius: 22px; }
.mc-head { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--app-line); }
.mc-head .ico { width: 42px; height: 42px; }
.mc-head b { display: block; font-size: 20px; font-weight: 600; }
.mc-head > div > span { color: var(--app-text-3); font-size: 15px; display: inline-flex; align-items: center; gap: 7px; }
.mc-head strong { color: var(--app-text); font-weight: 600; }
.paused .dot-green { background: var(--orange); }
.mc-progress { display: flex; align-items: flex-end; gap: 20px; margin-top: 16px; }
.mc-bar { flex: 1; display: grid; gap: 12px; }
.mc-count { color: var(--app-text-3); font-size: 15px; font-variant-numeric: tabular-nums; }
.mc-count b { font-weight: 400; color: var(--app-text-2); }
.mc-track { display: block; height: 6px; border-radius: 3px; background: var(--app-inner-2); overflow: hidden; }
.mc-fill { display: block; height: 100%; width: var(--p, 65%); background: var(--link); border-radius: 3px; transition: width .3s linear; }
.mc-pause { display: inline-flex; align-items: center; gap: 8px; }
.mc-pause svg { width: 12px; height: 12px; fill: currentColor; }
.mc-pause .play { display: none; }
.mc-pause[aria-pressed="true"] .pp { display: none; }
.mc-pause[aria-pressed="true"] .play { display: inline; }

/* Bento */
.bento .app-card { padding: 28px; }
.bento kbd { font: inherit; font-size: 14px; font-weight: 600; padding: 4px 9px; border-radius: 7px; background: var(--app-inner-2); color: var(--app-text-2); }
.sk { border-radius: 16px; background: var(--app-inner); border: 1px solid var(--app-border); overflow: hidden; }
.sk-field { display: flex; align-items: center; gap: 4px; height: 58px; padding: 0 20px; border-bottom: 1px solid var(--app-line); font-size: 19px; }
.sk-field svg { width: 19px; height: 19px; margin-right: 12px; fill: none; stroke: var(--app-text-3); stroke-width: 1.8; stroke-linecap: round; }
.sk-caret { width: 2px; height: 22px; background: var(--link); animation: blink 1.05s steps(1) infinite; }
.sk-ghost { color: var(--app-text-3); transition: opacity .3s ease; }
.sk-results { padding: 10px 10px 12px; }
.sk-group { font-size: 13px; color: var(--app-text-3); margin: 10px 10px 6px; }
.sk-row { display: flex; align-items: center; gap: 14px; padding: 9px 10px; border-radius: 11px; font-size: 15.5px; transition: opacity .35s ease, transform .35s ease; }
.sk-row > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sk-row b { font-weight: 500; }
.sk-row b span { color: var(--app-text-3); font-weight: 400; margin-left: 6px; font-size: 14px; }
.sk-row > div > span { color: var(--app-text-3); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-row em.g { color: var(--green); }
.sk-row time { font-size: 13.5px; white-space: nowrap; }
.sk-row.sel { background: var(--blue-bg); }
.sk-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--app-inner-2); flex: none; }
.sk-ic svg { width: 17px; height: 17px; fill: none; stroke: var(--app-text-3); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.sk-ic-blue { background: var(--link); }
.sk-ic-blue svg { stroke: #fff; }
.sk-ic-cal svg { stroke: var(--link); }
.sk-row .join { display: inline-flex; align-items: center; gap: 12px; color: var(--app-text); font-weight: 500; }
.sk-row .join i { font-style: normal; padding: 5px 12px; border-radius: 8px; border: 1px solid var(--app-line); }
.js .sk:not(.ready) .sk-row, .js .sk:not(.ready) .sk-group { opacity: 0; transform: translateY(6px); }
.js .sk:not(.ghosted) .sk-ghost { opacity: 0; }
.accts li { display: flex; align-items: center; gap: 14px; padding: 14px 0; font-size: 18px; }
.accts li + li { border-top: 1px solid var(--app-line); }
.accts span { margin-left: auto; color: var(--app-text-3); }
.promise { display: flex; gap: 14px; padding: 18px; border-radius: 16px; background: var(--app-inner); border: 1px solid var(--app-border); }
.promise b { display: block; font-size: 17px; font-weight: 600; }
.promise > div > span { color: var(--app-text-3); font-size: 15px; display: block; margin-top: 6px; }
.waits { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 4px 11px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--orange); background: var(--orange-bg); border: 1px solid color-mix(in srgb, var(--orange) 45%, transparent); }
.waits::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.today { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tl, .tr { border-radius: 16px; background: var(--app-inner); border: 1px solid var(--app-border); padding: 14px 16px; }
.tl p { display: flex; align-items: center; gap: 12px; min-height: 34px; font-size: 13px; }
.tl time { width: 44px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
.tl i { flex: 1; height: 1px; background: var(--app-line); }
.tl .now time { color: #fff; background: #ff3b30; border-radius: 6px; padding: 2px 5px; width: auto; animation: nowpulse 2.4s ease-in-out infinite; }
.tl .now i { height: 2px; background: #ff3b30; }
@keyframes nowpulse { 50% { box-shadow: 0 0 0 5px rgba(255, 59, 48, .18); } }
.ev { flex: 1; padding: 7px 11px; border-radius: 8px; font-size: 13px; line-height: 1.35; }
.ev b { display: block; font-weight: 600; }
.ev-blue { background: var(--blue-bg); border: 1px solid color-mix(in srgb, var(--link) 55%, transparent); color: var(--app-text-2); }
.ev-green { background: var(--green-bg); border: 1px solid color-mix(in srgb, var(--green) 45%, transparent); color: var(--green); }
.tr-h { font-size: 15px; color: var(--app-text-3); }
.tr-h b { color: var(--app-text); font-weight: 600; margin-right: 4px; }
.b-owes .owe { padding: 14px 0; }
.b-owes .owe + .owe { border-top: 1px solid var(--app-line); }
.owe p { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.owe div { display: flex; justify-content: space-between; margin-top: 6px; font-size: 17px; }
.owe div b { font-weight: 600; }
.owe strong { font-weight: 500; }
.owe > span { color: var(--app-text-3); font-size: 14.5px; }

/* Reveal on scroll (only with JS, so the page is complete without it) */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rv-delay, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* Blurred mail beside and between the sections */
.side-mail { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.side-mail .sm { position: absolute; left: 0; top: 0; }
.side-mail .card { position: relative; }

.tune {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  background: var(--nav-chip); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px var(--card-border), 0 10px 30px var(--card-shadow); font-size: 14px; font-weight: 600;
}
.tune input { width: 180px; accent-color: var(--accent); }
.tune output { font-variant-numeric: tabular-nums; min-width: 3ch; }

/* ── Privacy and other text pages ─────────────────────── */
.prose { max-width: 680px; margin: 0 auto; padding: 160px 20px 120px; }
.prose h1 { text-align: left; font-size: clamp(44px, 7vw, 72px); }
.prose h2 { text-align: left; font-size: 24px; letter-spacing: -.02em; margin-top: 44px; }
.prose p { color: var(--text-2); font-size: 19px; line-height: 1.55; margin-top: 12px; }
.prose .lead { color: var(--text); font-size: 24px; line-height: 1.4; margin-top: 24px; }
.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose .updated { font-size: 15px; color: var(--text-3); margin-top: 56px; }
.footer .links a[aria-current="page"] { color: var(--text); }

/* ── Tablet ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .phones { gap: 32px; }
  .hero-device { width: 82vw; }
}

/* ── Mobile (A · Mobile, 390) ────────────────────────── */
@media (max-width: 759px) {
  .m-only { display: block; }
  .m-word { display: inline; }
  .d-word { display: none; }
  .d-only { display: none !important; }
  .m-br { display: inline; }
  .nav { padding: 18px 20px 0 10px; }
  .brand { font-size: 17px; gap: 9px; padding: 6px 10px; border-radius: 13px; }
  .brand img { width: 28px; height: 28px; border-radius: 7px; }
  .theme-toggle { width: 32px; height: 32px; }
  .theme-toggle svg { width: 17px; height: 17px; }

  h1 { font-size: clamp(40px, 13.3vw, 60px); line-height: 1.05; letter-spacing: -.045em; }
  h2 { font-size: clamp(30px, 9.3vw, 40px); letter-spacing: -.04em; text-align: left; }
  .sub { font-size: 17px; margin-top: 14px; text-align: left; letter-spacing: 0; }
  .hero .sub, .closing .sub { text-align: center; }
  .closing h2 { text-align: center; }
  .hero h1 { white-space: normal; }

  .hero { --reveal: 110vh; height: calc(max(1126px, 100svh + 296px) + var(--reveal)); }
  .hero-pin { height: max(1126px, 100svh + 296px); padding-top: 140px; }
  .hero .sub { margin-top: 14px; }
  .beta { grid-template-columns: 1fr; gap: 10px; margin-top: 30px; max-width: 350px; padding: 0; }
  .beta input[type="email"], .beta button { height: 52px; }
  .form-note { margin-top: 6px; }
  .hero-device { width: 250px; margin-top: 40px; }
  .hero-device img { border-radius: 0; box-shadow: none; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .45)); }

  main > section:not(.hero) { padding: 80px 20px 0; }
  .mac-app { padding-top: 40px !important; }
  .mac-app .shot { margin: 36px -20px 0; }
  .folders-grid { grid-template-columns: 1fr; margin-top: 32px; row-gap: 32px; }
  .folder-card { padding: 18px 18px 20px; border-radius: 20px; }
  .folder-head { font-size: 21px; gap: 10px; }
  .folder-head img { width: 36px; height: 36px; }
  .folder-desc { font-size: 18px; margin-top: 14px; }
  .pills { gap: 10px; margin-top: 18px; }
  .pills li { height: 34px; font-size: 15px; }

  .why-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .why-reply { grid-row: auto; }
  .on-device .device-stage { margin-top: 32px; }
  .model-card { position: static; width: 100%; }
  .langs { justify-content: flex-start; gap: 8px; margin-top: 24px; }
  .langs li { height: 36px; padding: 0 14px; font-size: 15px; }
  .bento { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .bento > * { grid-column: auto !important; grid-row: auto !important; }

  .app-card { padding: 20px; border-radius: 20px; }
  .app-card h3 { font-size: 18px; margin-bottom: 14px; }
  .folder-list { padding: 16px 14px 14px; }
  .fl-head { gap: 10px; padding-bottom: 14px; }
  .fl-head .ico { width: 34px; height: 34px; }
  .fl-title b { font-size: 18px; }
  .fl-title span { font-size: 12px; }
  .fl-body { grid-template-columns: 1fr 22px; gap: 8px; }
  .fl-row { grid-template-columns: 14px minmax(0, 104px) minmax(0, 1fr) 38px; column-gap: 8px; padding: 0 8px; height: 34px; font-size: 14px; }
  .fl-row .close { display: none; }
  .fl-scale-fill { width: 16px; }
  .fl-tag { right: 34px; }
  .fl-handle { left: -6px; }
  .mail-head b { font-size: 18px; }
  .mail-head div > span, .mail-head time { font-size: 15px; }
  .mail-body { padding-top: 14px; }
  .mail-body .ask { margin: 4px 0 0; font-size: 16px; }
  .reply-foot { margin-top: 18px; }
  .reply-actions { width: 100%; }
  .reply-actions .act { flex: 1; }
  .why-promise blockquote { font-size: 17px; padding: 16px; }
  .person b { font-size: 17px; }
  .person > div > span { font-size: 15px; }
  .mc-head b { font-size: 17px; }
  .mc-progress { gap: 14px; }
  .closing { padding-top: 90px !important; min-height: 0; }
  .closing .beta { margin-top: 32px; }
  .storm-returns { height: 220px; margin: 30px -20px 0; }

  .footer {
    grid-template-columns: 1fr auto; grid-template-areas: "brand links" "made made";
    margin-inline: 20px; padding: 34px 0 40px; row-gap: 26px;
  }
  .footer .brand { grid-area: brand; }
  .footer .links { grid-area: links; gap: 22px; }
  .footer .made { grid-area: made; }
}

/* ── Reduced motion: no storm, the hero is there from the start. ── */
@media (prefers-reduced-motion: reduce) {
  .storm, .scroll-hint { display: none; }
  .hero { height: auto; }
  .hero-pin { position: relative; height: auto; padding-bottom: 40px; }
  .drifting, .caret, .scroll-hint span, .sk-caret, .tl .now time { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .js mark { transition: none; }
  .fl-line, .fl-handle, .fl-tag, .fl-rows::before, .fl-scale-fill { transition: none; }
  .theme-toggle * { transition: none !important; }
}
:root.no-motion .storm, :root.no-motion .scroll-hint { display: none; }
:root.no-motion .hero { height: auto; }
:root.no-motion .hero-pin { position: relative; height: auto; padding-bottom: 40px; }
