/* Paperbeak website: Sunrise.
   One idea runs through the site: a day of sky. Each page sits at a different hour
   (set with data-sky on <body>), and every page ends at night in the footer.
   Plain CSS, no build step, no packages. Type is the system font, the same one the app uses. */

/* ---------- Tokens ---------- */
:root {
  /* Brand colors: the same names and values as the Brand Colors board in Figma.
     Five core colors come from the logo and the app icons: copper, cream, night, ink, and paper.
     The rest support them. Copper is for buttons and big shapes; small copper text on a light page
     uses copper-deep, and on a dark page copper becomes ember, so text always passes AA contrast */
  --copper: #c04f2a;
  --copper-deep: #a03e1b;
  --copper-light: #de8c59;
  --copper-shadow: #713823;
  --ember: #f0814f;
  --cream: #f8efe2;
  --night: #211f52;
  --night-deep: #14132b;
  --dusk: #3b3676;
  --peach: #f6b58d;
  --periwinkle: #c3c9f3;
  --indigo: #4b5bd6;

  /* Jobs. Paper and ink are the brand Paper and Ink by day, and trade places at night */
  --paper: #fbfaf8;
  --paper-2: var(--cream);
  --panel: #ffffff;
  --ink: #1f1c1a;
  --ink-2: #54504c;
  --ink-3: #68645f;
  --line: rgba(31, 28, 26, 0.12);
  --accent: var(--copper);
  --accent-hover: #ae4623;
  --accent-text: var(--copper-deep);
  --focus: var(--copper);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --r-panel: clamp(24px, 3vw, 40px);

  /* Sky: dawn is the default hour */
  --sky: linear-gradient(180deg, #c3c9f3 0%, #dcd7ee 15%, #f3e3df 31%, #f9e0cd 46%, #f9cfae 63%, #f6b58d 100%);
  --sun: radial-gradient(circle at 50% 22%, #ffd9b6 0%, #fbb184 24%, #f28a57 52%, #e8693a 100%);
  --halo: 255, 226, 200;
  --halo-a: 1;
  --sun-size: min(1240px, 150vw);
  --sun-x: 50%;
  --sun-y: 590px;
  --cloud: rgba(255, 255, 255, 0.62);
  --haze: #fbe7d6;
  --on-sky: #1f1c1a;
  --on-sky-2: #3a3633; /* darker than body gray, so small text stays readable where it crosses the sun */
  --on-sky-accent: #a03e1b;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-line: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 18px 50px rgba(110, 60, 30, 0.14);
  --trail: #ffffff;
}

body[data-sky="first-light"] {
  --sky: linear-gradient(180deg, #a3abe8 0%, #bfc0ee 26%, #e2d1e6 54%, #f5ccbb 80%, #f5b596 100%);
  --sun-size: min(1100px, 150vw);
  --sun-y: calc(100% - 120px);
  --haze: #f9dccd;
}
body[data-sky="morning"] {
  --sky: linear-gradient(180deg, #b5cdf2 0%, #d9e3f4 28%, #f7ecdf 58%, #fbdcb9 100%);
  --sun: radial-gradient(circle at 42% 34%, #fff3cf 0%, #ffd183 38%, #f7a54a 100%);
  --halo: 255, 236, 196;
  --sun-size: clamp(300px, 46vw, 620px);
  --sun-x: 86%;
  --sun-y: 34%;
  --haze: #fbe6cf;
}
body[data-sky="noon"] {
  --sky: linear-gradient(180deg, #97bdee 0%, #bfd8f5 36%, #e6f0fa 70%, #fbfaf8 100%);
  --sun: radial-gradient(circle, #fffef4 0%, #fff3c0 55%, #ffe391 100%);
  --halo: 255, 252, 232;
  --sun-size: clamp(150px, 16vw, 220px);
  --sun-x: 96%;
  --sun-y: 34px;
  --on-sky-accent: #8f3513;
  --cloud: rgba(255, 255, 255, 0.78);
  --haze: #fbfaf8;
}
body[data-sky="afternoon"] {
  --sky: linear-gradient(180deg, #88ade4 0%, #b7cff0 34%, #ebe5de 74%, #f8e8d3 100%);
  --sun: radial-gradient(circle at 46% 40%, #fff8dc 0%, #ffdb90 50%, #f9b755 100%);
  --halo: 255, 240, 205;
  --sun-size: clamp(190px, 26vw, 340px);
  --sun-x: 8%;
  --sun-y: 92px;
  --on-sky-accent: #8f3513;
  --cloud: rgba(255, 255, 255, 0.74);
  --haze: #f9ecdc;
}
body[data-sky="golden"] {
  --sky: linear-gradient(180deg, #eeb074 0%, #f5cb95 34%, #fae2c2 68%, #fbf1e3 100%);
  --sun: radial-gradient(circle at 50% 30%, #ffedba 0%, #ffc362 40%, #f28f3b 100%);
  --halo: 255, 238, 200;
  --sun-size: clamp(360px, 56vw, 760px);
  --sun-x: 14%;
  --sun-y: 60%;
  --cloud: rgba(255, 248, 234, 0.6);
  --haze: #fbf1e3;
}
body[data-sky="dusk"] {
  --sky: linear-gradient(180deg, #27284f 0%, #3a3268 30%, #55407c 54%, #7d4b83 73%, #dd7d6f 90%, #f7bf93 100%);
  --sun: radial-gradient(circle at 50% 26%, #ffdcae 0%, #fca06f 34%, #ea5a42 100%);
  --halo: 255, 170, 140;
  --halo-a: 0.55;
  --sun-size: min(900px, 130vw);
  --sun-y: calc(100% - 210px);
  --cloud: rgba(255, 214, 200, 0.2);
  --haze: #f9d2b4;
  --on-sky: #fff4ec;
  --on-sky-2: #ebe2f2;
  --on-sky-accent: #ffc9a6;
}
body[data-sky="night"], .night {
  --paper: var(--night-deep);
  --paper-2: #1b1a3a;
  --panel: #252349;
  --ink: #f5f1eb;
  --ink-2: #c7c2cf;
  --ink-3: #aaa5b5;
  --line: rgba(245, 241, 235, 0.14);
  --accent: var(--ember);
  --accent-hover: #f4936a;
  --accent-text: #ff9a6c;
  --focus: var(--ember);
  --sky: linear-gradient(180deg, #0b0b1f 0%, #14163a 40%, #1d1b4a 74%, #2a2459 100%);
  --sun: radial-gradient(circle at 36% 34%, #fffdf5 0%, #f4ecdb 58%, #dccfb9 100%);
  --halo: 226, 220, 255;
  --halo-a: 0.32;
  --sun-size: clamp(120px, 15vw, 190px);
  --sun-x: 82%;
  --sun-y: 120px;
  --haze: var(--night-deep);
  --on-sky: #f5f1eb;
  --on-sky-2: #c7c2cf;
  --on-sky-accent: #ff9a6c;
  --glass: rgba(42, 40, 84, 0.62);
  --glass-line: rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  --trail: rgba(255, 255, 255, 0.7);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(192, 79, 42, 0.22); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 12px;
  background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 11px 20px; border-radius: 999px; border: 0;
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  background: var(--ink); color: var(--paper);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--accent { background: #c04f2a; color: #fff; box-shadow: 0 14px 30px rgba(160, 62, 27, 0.3); }
.btn--accent:hover { background: #ae4623; }
.btn--lg { min-height: 58px; padding: 17px 32px; font-size: 18px; }
.btn--ghost { background: var(--glass); color: var(--on-sky); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.link { font-weight: 600; color: var(--accent-text); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 1px; }
.link:hover { color: var(--ink); }
.link::after { content: " \2192"; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 60; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  width: max-content; max-width: calc(100% - 24px);
  padding: 7px 7px 7px 18px; border-radius: 999px; color: var(--ink);
}
.word { display: inline-flex; align-items: center; gap: 8px; margin-right: 10px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; min-height: 44px; }
/* The logo: the Return Stroke script, drawn from clean centerlines by tools/brand/wordmark.py.
   Dark ink on light skies, and a light copy at night and in the footer. On phones the nav takes the
   bold cut, which holds its shape when the logo is small. The name itself is still in the link, for
   screen readers. The two ratios below are the sizes of the files; the builder prints them */
.word .logo { display: block; flex: none; width: 168px; aspect-ratio: 1379.3 / 254; background: url("brand/wordmark.svg") center / contain no-repeat; }
body[data-sky="night"] .word .logo, .footer .word .logo { background-image: url("brand/wordmark-light.svg"); }
.footer .word .logo { width: 196px; }
@media (max-width: 520px) {
  .nav .word .logo { width: 136px; aspect-ratio: 1424.5 / 260; background-image: url("brand/wordmark-bold.svg"); }
  body[data-sky="night"] .nav .word .logo { background-image: url("brand/wordmark-bold-light.svg"); }
}
@media (max-width: 380px) { .nav .word .logo { width: 112px; } }
@media (max-width: 340px) { .nav .word .logo { width: 88px; } .nav { padding-left: 10px; } .nav .nav__cta { padding-inline: 10px; font-size: 12.5px; } .nav .word { margin-right: 0; gap: 4px; } }
.nav__links { display: none; align-items: center; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; }
.nav__links a:hover { background: rgba(127, 120, 112, 0.14); }
.nav__links a[aria-current="page"] { background: rgba(127, 120, 112, 0.18); font-weight: 600; }
.nav__cta { margin-left: 6px; }
body[data-sky="night"] .nav__cta { background: #f5f1eb; color: #1f1c1a; }
.nav__menu { position: relative; }
.nav__menu summary {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; list-style: none;
}
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu summary svg { width: 22px; height: 22px; }
.nav__sheet {
  position: absolute; right: -7px; top: 58px; display: grid; gap: 2px; width: min(280px, calc(100vw - 24px));
  padding: 10px; border-radius: 24px; background: var(--paper);
}
.nav__sheet a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 14px; font-size: 17px; font-weight: 600; text-decoration: none; }
.nav__sheet a[aria-current="page"] { background: rgba(127, 120, 112, 0.16); }
@media (max-width: 420px) { .nav__cta { padding-inline: 14px; font-size: 14px; } .word { margin-right: 2px; } }
@media (min-width: 940px) {
  .nav__links { display: flex; }
  .nav__menu { display: none; }
}

/* ---------- Sky ---------- */
.sky {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 128px var(--gutter) 150px; background: var(--sky); color: var(--on-sky); text-align: center;
}
.sky::before { /* haze where the sky meets the page */
  content: ""; position: absolute; inset: auto 0 0 0; height: 170px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--haze));
}
.sky::after { /* grain */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: soft-light; opacity: 0.5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.sky > * { position: relative; z-index: 5; }
.sun {
  position: absolute !important; z-index: 0 !important; left: var(--sun-x); top: var(--sun-y);
  width: var(--sun-size); aspect-ratio: 1; border-radius: 50%; translate: -50% 0;
  background: var(--sun);
  box-shadow:
    0 0 0 calc(var(--sun-size) * 0.052) rgba(var(--halo), calc(0.34 * var(--halo-a))),
    0 0 0 calc(var(--sun-size) * 0.122) rgba(var(--halo), calc(0.2 * var(--halo-a))),
    0 0 0 calc(var(--sun-size) * 0.21) rgba(var(--halo), calc(0.1 * var(--halo-a)));
}
.cloud { position: absolute !important; z-index: 1 !important; height: 34px; border-radius: 999px; background: var(--cloud); }
.cloud::before, .cloud::after { content: ""; position: absolute; height: 100%; border-radius: 999px; background: inherit; }
.cloud::before { left: 16%; right: 22%; top: -70%; }
.cloud::after { left: -12%; right: 38%; top: 70%; }
.cloud--sm { height: 20px; opacity: 0.75; }
.stars { position: absolute !important; inset: 0; z-index: 0 !important; opacity: 0.9;
  background:
    radial-gradient(1.6px 1.6px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 22% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 34% 12%, #fff 50%, transparent 51%), radial-gradient(1.1px 1.1px at 41% 30%, #cfd3ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 20%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 63% 46%, #fff 50%, transparent 51%),
    radial-gradient(1.9px 1.9px at 71% 9%, #ffe9d6 50%, transparent 51%), radial-gradient(1.2px 1.2px at 91% 38%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 6% 55%, #fff 50%, transparent 51%), radial-gradient(1.1px 1.1px at 48% 58%, #cfd3ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 28% 68%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 78% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 95% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 16% 82%, #fff 50%, transparent 51%);
}
.glide { position: absolute !important; z-index: 2 !important; display: none; pointer-events: none; }
.glide path { stroke: var(--trail); }
@media (min-width: 1000px) { .glide { display: block; } }

/* Hero type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 13px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: var(--on-sky-2);
}
.eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--indigo); }
body[data-sky="night"] .eyebrow i, body[data-sky="dusk"] .eyebrow i { background: #f0814f; }
body[data-sky="dusk"] .eyebrow { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.22); }
.display {
  margin-top: 22px; font-weight: 800; letter-spacing: -0.04em; line-height: 0.96;
  font-size: clamp(46px, 8.4vw, 118px); text-wrap: balance;
}
.display--home { font-size: clamp(48px, 8.2vw, 120px); line-height: 0.95; }
.display span { display: block; color: var(--on-sky-accent); }
.sub { max-width: 31em; margin: 28px auto 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; font-weight: 450; color: var(--on-sky-2); text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 30px; }
.fine { margin-top: 18px; font-size: 14.5px; font-weight: 500; color: var(--on-sky-2); }

/* Home hero: the Catch Up window lives in assets/hero-window.css. The hero cuts it off at the bottom. */
.sky--home { padding-top: 112px; padding-bottom: 0; }
.sky--home .display { margin-top: 18px; }
.sky--home .sub { margin-top: 22px; }
.sky--home .cta { margin-top: 24px; }
.sky--home .fine { margin-top: 14px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 136px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--tint { background: var(--paper-2); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; letter-spacing: 0.01em; color: var(--accent-text); }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.h2 { margin-top: 14px; font-size: clamp(34px, 5vw, 68px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; text-wrap: balance; }
.h2 span { color: var(--accent-text); }
.h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 750; letter-spacing: -0.03em; line-height: 1.12; }
.lede { margin-top: 22px; max-width: 34em; font-size: clamp(18px, 1.5vw, 20.5px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Provider chips */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.chips li { padding: 10px 18px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; font-weight: 600; }
/* Works with: each mail service's own logo beside its name */
.works { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.works li { display: flex; align-items: center; gap: 12px; padding: 11px 20px 11px 14px; border-radius: 18px; background: #fff; font-size: 16px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(60, 34, 20, 0.07); }
.works img, .works svg { flex: none; width: 34px; height: 30px; object-fit: contain; }
.works svg { color: var(--ink-2); }
@media (max-width: 520px) {
  .works { gap: 9px; }
  .works li { gap: 9px; padding: 9px 15px 9px 11px; border-radius: 15px; font-size: 15px; }
  .works img, .works svg { width: 28px; height: 25px; }
}

/* Spread: words on one side, one snippet on a small sky on the other */
.spread { display: grid; gap: 36px; align-items: center; }
.spread + .spread { margin-top: clamp(72px, 9vw, 128px); }
.spread__copy > .lede + .ticks, .spread__copy > .lede + .link, .spread__copy > .ticks + .link { margin-top: 26px; }
.spread__copy .link { display: inline-block; }
@media (min-width: 940px) {
  .spread { grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: clamp(48px, 6vw, 96px); }
  .spread--flip .spread__copy { order: 2; }
}
.ticks { display: grid; gap: 11px; margin-top: 26px; }
.ticks li { position: relative; padding-left: 30px; font-size: 17px; line-height: 1.42; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.34em; width: 17px; height: 17px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6.300l2 2L9 4.200'/%3E%3C/svg%3E") center / 11px no-repeat;
}
body[data-sky="night"] .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%232a0f05' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6.300l2 2L9 4.200'/%3E%3C/svg%3E"); }
.ticks b { color: var(--ink); font-weight: 600; }

/* Stage: a small piece of sky that holds one snippet */
.stage {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; gap: 18px; align-content: center;
  min-height: clamp(340px, 38vw, 480px); padding: clamp(28px, 4vw, 56px) clamp(18px, 3.4vw, 48px);
  border-radius: var(--r-panel); background: var(--stage, linear-gradient(180deg, #d5d6f3 0%, #f6e3da 52%, #f8cba9 100%));
}
.stage > * { position: relative; z-index: 2; max-width: 100%; }
.stage > .gm { width: min(100%, var(--w, 420px)); box-shadow: 0 24px 60px rgba(60, 34, 20, 0.2); }
.stage > .gm.gm-keys, .stage > .gm.gm-progress, .stage > .gm.gm-toast { width: auto; }
.stage__sun { position: absolute !important; z-index: 0 !important; width: var(--s, 320px); aspect-ratio: 1; border-radius: 50%; left: var(--x, 50%); top: var(--y, 60%); translate: -50% 0;
  background: var(--sun-bg, radial-gradient(circle at 50% 24%, #ffd9b6 0%, #fbb184 30%, #f28a57 70%, #e8693a 100%));
  box-shadow: 0 0 0 calc(var(--s, 320px) * 0.07) rgba(var(--halo-rgb, 255, 226, 200), 0.32), 0 0 0 calc(var(--s, 320px) * 0.16) rgba(var(--halo-rgb, 255, 226, 200), 0.16); }
.stage .cloud { --cloud: rgba(255, 255, 255, 0.6); height: 22px; }
.stage--noon { --stage: linear-gradient(180deg, #a9c9f0 0%, #d3e4f7 55%, #f1f5fa 100%); --sun-bg: radial-gradient(circle, #fffef4 0%, #fff3c0 55%, #ffe391 100%); --halo-rgb: 255, 252, 232; }
.stage--morning { --stage: linear-gradient(180deg, #bcd2f3 0%, #f0e9e2 55%, #fbdcb9 100%); --sun-bg: radial-gradient(circle at 42% 34%, #fff3cf 0%, #ffd183 38%, #f7a54a 100%); --halo-rgb: 255, 236, 196; }
.stage--golden { --stage: linear-gradient(180deg, #f1bb82 0%, #f8d9ae 55%, #fbeedb 100%); --sun-bg: radial-gradient(circle at 50% 30%, #ffedba 0%, #ffc362 40%, #f28f3b 100%); --halo-rgb: 255, 238, 200; }
.stage--dusk { --stage: linear-gradient(180deg, #34305f 0%, #6a487f 46%, #d27a70 84%, #f3ad85 100%); --sun-bg: radial-gradient(circle at 50% 26%, #ffdcae 0%, #fca06f 34%, #ea5a42 100%); --halo-rgb: 255, 170, 140; }
.stage--night { --stage: linear-gradient(180deg, #0f1020 0%, #1a1c36 55%, #2c2340 100%); --sun-bg: radial-gradient(circle at 36% 34%, #fffdf5 0%, #f4ecdb 58%, #dccfb9 100%); --halo-rgb: 226, 220, 255; }
.stage--night > .gm, .stage--dusk > .gm { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42); }
.stage--paper { --stage: var(--paper-2); }
.tilt-l { rotate: -2.5deg; } .tilt-r { rotate: 2.5deg; }
.stage .stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: center; width: min(100%, var(--w, 420px)); }
.stage .stack > * { min-width: 0; max-width: 100%; }
.stage .stack > .gm { width: 100%; box-shadow: 0 24px 60px rgba(60, 34, 20, 0.2); }
.stage .stack > .gm.gm-toast, .stage .stack > .gm.gm-progress, .stage .stack > .gm.gm-keys { width: auto; }
.stage__flyer { position: absolute !important; z-index: 1 !important; pointer-events: none; }
.stage__flyer path { stroke: #fff; }

/* Hold: the bird kept in the air while Undo Send counts down. An illustration, not app UI */
@property --hold { syntax: "<angle>"; inherits: false; initial-value: 262deg; }
.hold { position: relative; display: grid; place-items: center; width: clamp(150px, 17vw, 196px); aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(#c04f2a var(--hold), rgba(255, 255, 255, 0.6) 0); box-shadow: 0 24px 60px rgba(60, 34, 20, 0.22); }
.hold::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fffdfa; }
.hold svg { position: relative; width: 48%; height: 48%; }
.hold__trail { position: absolute !important; right: 86%; top: 56%; width: clamp(90px, 12vw, 150px); }

/* Art: a hand-drawn illustration on its own flat color. Each SVG carries its own motion,
   so a plain <img> animates, and Reduce Motion switches it off inside the file. */
.art { margin: 0; border-radius: var(--r-panel); overflow: hidden; background: var(--art, #f8d7bd); }
.art img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.art-stack { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.art-stack > .gm { position: relative; margin-top: -34px; max-width: calc(100% - 28px); font-size: 14px; box-shadow: 0 18px 44px rgba(60, 34, 20, 0.24); }
.lead { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.lead .art { width: min(100%, 560px); }
@media (min-width: 940px) {
  .lead { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(40px, 6vw, 96px); }
  .lead .art { justify-self: end; }
}
.close.close--art { padding-bottom: 0; background: var(--art, #f8d7bd); }
.close__art { width: min(580px, 100%); margin: 26px auto 0; }
.close__art img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }

/* Stops: a morning in three steps */
.stops { display: grid; gap: 44px; margin-top: clamp(40px, 5vw, 64px); }
.stop { display: grid; gap: 12px; align-content: start; justify-items: start; }
.stop time, .stop .when { font-size: 15px; font-weight: 700; color: var(--accent-text); }
.stop p { font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 25em; }
.stop .gm { margin-top: 10px; font-size: 15px; max-width: 100%; }
.stop .gm-row { width: min(380px, 100%); box-shadow: 0 16px 40px rgba(110, 60, 30, 0.12), 0 0 0 1px rgba(31, 28, 26, 0.08); }
@media (min-width: 940px) {
  .stops { grid-template-columns: repeat(3, 1fr); gap: 56px; }
  .stop { position: relative; padding-top: 28px; border-top: 2px dashed rgba(127, 120, 112, 0.5); }
  .stop::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--paper); }
  .section--tint .stop::before { box-shadow: 0 0 0 5px var(--paper-2); }
}

/* More: the long tail, as lists */
.more { display: grid; gap: 40px 48px; margin-top: clamp(40px, 5vw, 60px); }
.more h3 { padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-size: 19px; font-weight: 750; letter-spacing: -0.02em; }
.more li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; color: var(--ink-2); }
@media (min-width: 620px) { .more { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .more { grid-template-columns: repeat(4, 1fr); } .more--3 { grid-template-columns: repeat(3, 1fr); } }

/* Facts: label and value rows, like the app's Settings */
.facts { display: grid; margin-top: clamp(32px, 4vw, 52px); border-top: 2px solid var(--ink); }
.facts > div { display: grid; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 18px; font-weight: 650; letter-spacing: -0.015em; }
.facts dt small { display: block; margin-top: 3px; font-size: 15.5px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
.facts dd { font-size: 18px; font-weight: 700; color: var(--accent-text); }
@media (min-width: 720px) { .facts > div { grid-template-columns: 1fr auto; align-items: center; } .facts dd { text-align: right; } }

/* Notes: the honest lists */
.notes { display: grid; gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.notes li { padding: 22px 24px; border-radius: 22px; border: 1.5px dashed rgba(127, 120, 112, 0.6); }
.notes b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.notes span { display: block; margin-top: 5px; font-size: 16.5px; color: var(--ink-2); }
@media (min-width: 860px) { .notes { grid-template-columns: repeat(var(--cols, 3), 1fr); } }

/* Steps */
.steps { display: grid; gap: 28px; margin-top: clamp(36px, 5vw, 56px); counter-reset: step; }
.steps li { counter-increment: step; padding: 28px; border-radius: 28px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 20px; font-weight: 800; }
.steps p { margin-top: 8px; font-size: 16.5px; color: var(--ink-2); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Keys: big keycaps */
.keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 4vw, 48px); }
.keys li { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 22px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 17px; font-weight: 600; }
.keys kbd {
  display: grid; place-items: center; flex: none; min-width: 54px; height: 54px; padding: 0 12px; border-radius: 14px;
  font: 700 22px/1 var(--font); color: var(--ink); background: linear-gradient(180deg, #fff, #f1ece5);
  box-shadow: 0 2px 0 #d9d2c8, 0 0 0 1px rgba(31, 28, 26, 0.14);
}
.keys small { display: block; font-size: 14.5px; font-weight: 400; color: var(--ink-2); }
@media (min-width: 860px) { .keys { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Plans */
.plans { display: grid; gap: 20px; margin-top: clamp(36px, 5vw, 60px); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 6px; padding: clamp(26px, 3vw, 36px); border-radius: 32px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.plan--now { background: linear-gradient(180deg, #fff6ea 0%, #ffffff 60%); box-shadow: inset 0 0 0 2px var(--accent), 0 30px 70px rgba(160, 62, 27, 0.16); }
.plan__tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: rgba(31, 28, 26, 0.07); font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.plan--now .plan__tag { background: var(--accent); color: #fff; }
.plan h3 { margin-top: 14px; font-size: 24px; font-weight: 750; letter-spacing: -0.03em; }
.plan p.plan__price { font-size: clamp(44px, 5vw, 64px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; }
.plan p.plan__price small { font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.plan p.plan__price--tbd { font-size: clamp(30px, 3.2vw, 40px); color: var(--ink-3); padding-block: 0.3em; }
.plan p { color: var(--ink-2); font-size: 16.5px; }
.plan .ticks { margin-block: 18px 26px; }
.plan .btn { margin-top: auto; align-self: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: 1.15fr 1fr 1fr; } }

/* FAQ */
.faq { margin-top: clamp(32px, 4vw, 48px); border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); rotate: 45deg; translate: 0 -3px; transition: rotate 0.2s ease, translate 0.2s ease; }
.faq details[open] summary::after { rotate: -135deg; translate: 0 3px; }
.faq p { padding: 0 0 24px; max-width: 42em; color: var(--ink-2); font-size: 17.5px; }

/* Statement */
.statement { font-size: clamp(30px, 4.6vw, 60px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; text-wrap: balance; }
.statement span { color: var(--accent-text); }

/* Jump links */
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 34px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15.5px; font-weight: 600; text-decoration: none; color: var(--ink); }

/* Principles */
.principles { display: grid; gap: 0; margin-top: clamp(36px, 5vw, 60px); counter-reset: p; border-top: 2px solid var(--ink); }
.principles li { counter-increment: p; display: grid; gap: 10px 40px; padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); }
.principles li::before { content: "0" counter(p); font-size: 15px; font-weight: 700; color: var(--accent-text); }
.principles h3 { font-size: clamp(30px, 4.2vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.principles p { max-width: 32em; font-size: 18.5px; color: var(--ink-2); }
@media (min-width: 900px) { .principles li { grid-template-columns: 70px 1fr 1fr; align-items: start; } }

/* Closing sky */
.close { position: relative; isolation: isolate; overflow: hidden; margin: 0 var(--gutter) clamp(56px, 8vw, 96px); padding: clamp(64px, 9vw, 120px) 24px clamp(150px, 20vw, 250px); border-radius: var(--r-panel); text-align: center; color: #1f1c1a;
  background: linear-gradient(180deg, #c3c9f3 0%, #f3e3df 40%, #f9cfae 78%, #f6b58d 100%); }
.close > * { position: relative; z-index: 2; }
.close .stage__sun { top: calc(100% - clamp(110px, 15vw, 190px)); --s: min(900px, 120vw); }
.close .h2 span { color: #a03e1b; }
.close .fine { color: #3a3633; }
.close .btn { margin-top: 30px; }

/* Band: a rounded panel that breaks the page, used for the night block on light pages */
.band { position: relative; isolation: isolate; overflow: hidden; margin-inline: var(--gutter); padding: clamp(44px, 6vw, 92px) clamp(22px, 5vw, 84px); border-radius: var(--r-panel); }
.band > * { position: relative; z-index: 2; }
.night { background: var(--sky); color: var(--ink); }
.band .moon { position: absolute; z-index: 1; right: 5%; top: 30px; width: clamp(70px, 9vw, 120px); aspect-ratio: 1; border-radius: 50%; background: var(--sun);
  box-shadow: 0 0 0 10px rgba(226, 220, 255, 0.1), 0 0 0 26px rgba(226, 220, 255, 0.05); }
.band .gm { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42); }

/* ---------- Footer: every page ends at night ---------- */
.footer { position: relative; isolation: isolate; overflow: hidden; padding: clamp(64px, 8vw, 100px) var(--gutter) 40px; color: #f5f1eb;
  background: linear-gradient(180deg, #0b0b1f 0%, #14163a 55%, var(--night) 100%); }
.footer > * { position: relative; z-index: 2; }
.footer .stars { opacity: 0.7; }
.footer__moon { position: absolute !important; z-index: 1 !important; right: clamp(24px, 9vw, 150px); top: 56px; width: 86px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fffdf5 0%, #f4ecdb 58%, #dccfb9 100%); box-shadow: 0 0 0 9px rgba(226, 220, 255, 0.1), 0 0 0 22px rgba(226, 220, 255, 0.05); }
.footer__grid { display: grid; gap: 40px; width: min(var(--wrap), 100%); margin-inline: auto; }
.footer__pitch { max-width: 19em; font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.footer__pitch span { color: #ff9a6c; }
.footer h2 { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; color: #b8b3c6; }
.footer ul { display: grid; gap: 2px; margin-top: 8px; }
.footer li a { display: inline-flex; align-items: center; min-height: 40px; font-size: 16.5px; font-weight: 500; text-decoration: none; color: #f5f1eb; }
.footer li a:hover { color: #ff9a6c; }
.footer :focus-visible { outline-color: var(--ember); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; width: min(var(--wrap), 100%); margin: 56px auto 0; padding-top: 22px; border-top: 1px solid rgba(245, 241, 235, 0.16); font-size: 14.5px; color: #b8b3c6; }
.footer .word { color: #f5f1eb; }
@media (min-width: 860px) { .footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; } }

/* ---------- Small screens: keep the sun and moon clear of the words ---------- */
@media (max-width: 700px) {
  body[data-sky="night"] { --sun-size: 84px; --sun-x: 84%; --sun-y: 70px; }
  body[data-sky="golden"] { --sun-y: 76%; }
  .footer__moon { top: 26px; right: 20px; width: 54px; }
  .stage { font-size: 14px; }
}
@media (max-width: 360px) {
  .stage { padding-inline: 12px; }
  .stage .gm, .stop .gm { font-size: 12.5px; }
  .nav { padding-left: 14px; }
}

/* Pause Motion: one button in the footer stops everything that moves */
.motion-toggle { appearance: none; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(245, 241, 235, 0.45);
  background: transparent; color: #f5f1eb; font: inherit; font-weight: 600; cursor: pointer; }
.motion-toggle:hover { border-color: #ff9a6c; color: #ff9a6c; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .sun { animation: sunrise 1.8s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
  @keyframes sunrise { from { translate: -50% 140px; opacity: 0.4; } }
  .hold { animation: hold 30s linear infinite; }
  @keyframes hold { from { --hold: 360deg; } to { --hold: 0deg; } }
  .hold svg { animation: bob 5s ease-in-out infinite; }
  .glide use, .stage__flyer use { animation: bob 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes bob { 50% { transform: translateY(-9px) rotate(-2deg); } }
  .cloud { animation: drift 38s ease-in-out infinite alternate; }
  .cloud:nth-of-type(even) { animation-duration: 52s; animation-direction: alternate-reverse; }
  @keyframes drift { to { transform: translateX(46px); } }
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 42%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(28px); } }
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Reference pages: Shortcuts, Help, Accessibility, Privacy Policy, Not Found ---------- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sky--short { padding-bottom: clamp(120px, 15vw, 190px); }
.sc-groups { display: grid; gap: clamp(28px, 4vw, 48px) clamp(28px, 5vw, 72px); margin-top: clamp(36px, 5vw, 56px); }
@media (min-width: 860px) { .sc-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sc { margin-top: 14px; border-top: 2px solid var(--ink); }
.sc > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 18px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.sc dt > span:first-child { display: inline-flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.sc dt i { padding: 0 2px; font-style: normal; font-size: 13px; color: var(--ink-3); }
.sc kbd { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 9px; border-radius: 9px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), 0 2px 0 var(--line); font: inherit; font-size: 14.5px; font-weight: 650; }
.sc dd { font-size: 17px; }
.prose { max-width: 44em; margin-top: clamp(28px, 4vw, 44px); }
.prose h3 { margin-top: 38px; }
.prose h3:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 12px; font-size: 17.5px; line-height: 1.55; color: var(--ink-2); }
.prose ul { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
.draft { display: inline-block; margin-top: 26px; padding: 9px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 650; }
