@font-face{font-family:Plus Jakarta Sans;font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/12d4e8c1f08b4a66-s.0e__wj8580tc5.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:Plus Jakarta Sans;font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/cabb10e1d7cbc7c1-s.10u7vx61f1ie7.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:Plus Jakarta Sans;font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/9f5a2b9f13a4ecbb-s.p.35a5cae5tspm2.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Plus Jakarta Sans;font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/d8aeca813a9ab546-s.p.18rizl4rsrl42.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Plus Jakarta Sans Fallback;src:local(Arial);ascent-override:98.88%;descent-override:21.15%;line-gap-override:0.0%;size-adjust:104.98%}
@font-face{font-family:Playfair Display;font-style:italic;font-weight:500;font-display:swap;src:url(fonts/90bfca24981de995-s.0izitdbyxo4j2.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}
@font-face{font-family:Playfair Display;font-style:italic;font-weight:500;font-display:swap;src:url(fonts/813db4da1994ef51-s.0vmd737txk1h4.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:Playfair Display;font-style:italic;font-weight:500;font-display:swap;src:url(fonts/6e74c70e8d776c42-s.0iqen1t80zg64.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Playfair Display;font-style:italic;font-weight:500;font-display:swap;src:url(fonts/f462257512209772-s.p.39pl-v7c3qrze.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Playfair Display;font-style:italic;font-weight:600;font-display:swap;src:url(fonts/90bfca24981de995-s.0izitdbyxo4j2.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}
@font-face{font-family:Playfair Display;font-style:italic;font-weight:600;font-display:swap;src:url(fonts/813db4da1994ef51-s.0vmd737txk1h4.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:Playfair Display;font-style:italic;font-weight:600;font-display:swap;src:url(fonts/6e74c70e8d776c42-s.0iqen1t80zg64.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Playfair Display;font-style:italic;font-weight:600;font-display:swap;src:url(fonts/f462257512209772-s.p.39pl-v7c3qrze.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Playfair Display Fallback;src:local(Times New Roman);ascent-override:97.25%;descent-override:22.56%;line-gap-override:0.0%;size-adjust:111.26%}

:root {
  --font-sans: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback";
  --font-serif: "Playfair Display", "Playfair Display Fallback";
}

/* src/brand/tokens.css */
/* SoloSite design tokens. Source of truth: BRAND_GUIDELINES.md (§4 colour, §5 type, §6 paper, §9 motion).
   Components use these variables only; a raw hex value in a component is a review finding. */
:root {
  /* ink */
  --ink: #14213d;
  --ink-2: #24365f;
  --ink-3: #3b5189;
  --pen: #2a3f7a;

  /* marigold: fills, the highlighter, small accents. Never text on paper. */
  --gold: #f2a20c;
  --gold-hi: #ffc23d;
  --gold-d: #a85d00;
  --gold-l: #ffe7ad;

  /* paper */
  --paper: #fbf6ec;
  --paper-2: #f4ead8;
  --card: #fffdf9;

  /* text */
  --text: #3d4559;
  --muted: #646a7c;

  /* meaning: terracotta = owed, green = received */
  --terra: #c2512b;
  --terra-text: #ad4320;
  --terra-l: #fdebe3;
  --green: #157a4a;
  --green-l: #e2f4ea;

  /* lines, rules and the bahi margin */
  --line: rgb(20 33 61 / 10%);
  --line-2: rgb(20 33 61 / 17%);
  --rule: rgb(36 54 95 / 7.5%);
  --rule-gap: 36px;
  --margin: rgb(194 81 43 / 30%);
  --highlight: rgb(255 194 61 / 72%);

  /* shape */
  --r-card: 20px;
  --r-ctl: 12px;
  --shadow-card: inset 0 1px 0 #fff, 0 0 0 1px var(--line), 0 24px 48px -32px rgb(20 33 61 / 40%);

  /* type */
  --sans: var(--font-sans), ui-sans-serif, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: var(--font-serif), Georgia, serif;
  --mono: ui-monospace, 'SF Mono', Menlo, 'Roboto Mono', monospace;

  /* motion */
  --nb-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --nb-pen: cubic-bezier(0.55, 0.08, 0.35, 1);
  --nb-drop: cubic-bezier(0.3, 1.3, 0.45, 1);
  --ease: var(--nb-ease);
}

/* src/app/globals.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

/* No visible page scroll bar, on every route (the page still scrolls by wheel, touch, keys and links; the
   home page shows its position with the page index and page bar instead). The page is the only scroller.
   - scrollbar-width: Firefox, Chrome and Edge 121+, Safari 18.2+
   - ::-webkit-scrollbar: older Chrome and Edge, Safari before 18.2, iOS Safari
   - -ms-overflow-style: legacy Edge */
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* The ruled bahi page: faint rules on cream paper (BRAND_GUIDELINES.md §6). */
body {
  margin: 0;
  min-height: 100dvh;
  font: 16px/1.55 var(--sans);
  color: var(--text);
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 calc(var(--rule-gap) - 1px),
      var(--rule) calc(var(--rule-gap) - 1px) var(--rule-gap)
    ),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: inherit;
}

a {
  color: inherit;
}

::selection {
  background: var(--gold-l);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ink-3);
  outline-offset: 3px;
}

/* The highlighter: covers the lower part of the line, under the key word only. */
mark {
  color: inherit;
  padding: 0 0.08em;
  margin: 0 -0.08em;
  border-radius: 0.14em;
  background: linear-gradient(100deg, rgb(255 194 61 / 82%), rgb(255 194 61 / 62%)) no-repeat 0 88% / 100% 44%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* src/components/button/button.module.css */
/* Primary button (BRAND_GUIDELINES.md §8): marigold gradient, ink label, one per screen. */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--r-ctl);
  font: 700 16px/1 var(--sans);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold-hi), #f29100);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 50%),
    inset 0 -1px 0 rgb(150 80 0 / 25%),
    0 10px 24px -8px rgb(214 128 0 / 60%);
  transition: transform 0.15s var(--nb-ease);
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 45%) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.45s cubic-bezier(0.2, 0, 0, 1);
  pointer-events: none;
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn:active {
  transform: translateY(1px);
}

/* not open yet: pencilled in, a dashed space where the button will go (same as src/styles/notebook.css) */
.btn[aria-disabled='true'] {
  cursor: default;
  color: var(--ink-2);
  background: rgb(255 255 255 / 40%);
  box-shadow: none;
  outline: 1.5px dashed rgb(36 54 95 / 42%);
  outline-offset: -1.5px;
}

.btn[aria-disabled='true']:active {
  transform: none;
}

.btn[aria-disabled='true']::after {
  display: none;
}

/* src/app/coming-soon/coming-soon.module.css */
/* The simple coming-soon page (kept at the founder's request, 5 Dec 2026): a single screen for the period before launch. */
.page {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 100dvh;
  padding: 72px max(20px, calc((100% - 1160px) / 2));
}

/* the red double margin of a bahi */
.page::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(8px, calc((100% - 1160px) / 2 - 34px));
  width: 5px;
  border-inline: 1.5px solid var(--margin);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 99px;
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
}

.badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgb(242 162 12 / 22%);
}

.title {
  margin: 22px 0 18px;
}

.ser {
  display: block;
  font: italic 500 clamp(28px, 3vw, 42px) / 1.1 var(--serif);
  letter-spacing: -0.01em;
  color: var(--gold-d);
}

.caps {
  display: block;
  margin-top: 2px;
  font: 800 clamp(40px, 6vw, 76px) / 0.95 var(--sans);
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--ink);
}

.lead {
  max-width: 32em;
  font-size: clamp(17px, 1.6vw, 19px);
}

.cta {
  margin-top: 30px;
}

.note {
  margin-top: 26px;
  padding-top: 18px;
  max-width: 34em;
  border-top: 1px dashed var(--line-2);
  font-size: 14.5px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .page::before {
    display: none;
  }
}

/* src/styles/notebook.css (picked rules) */
.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i--fill {
  fill: currentColor;
  stroke: none;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.wm {
  display: inline-flex;
  align-items: baseline;
  font-size: 21px;
}
.wm b {
  font-weight: 800;
  letter-spacing: -0.03em;
}
.wm em {
  margin-left: 1px;
  font: italic 600 1.1em/1 var(--serif);
  color: var(--gold-d);
}
.logo--sm .wm {
  font-size: 18px;
}
.ticks-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.ticks-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}
.ticks-list .i {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 7px;
  color: var(--green);
  background: var(--green-l);
  stroke-width: 3;
}
.stamp {
  position: absolute;
  right: -18px;
  bottom: -26px;
  display: grid;
  justify-items: center;
  padding: 10px 16px 9px;
  border: 3px solid currentColor;
  border-radius: 10px;
  color: rgb(194 81 43 / 88%);
  transform: rotate(-11deg);
  font: 800 22px/1 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgb(251 246 236 / 70%);
  box-shadow:
    inset 0 0 0 2px rgb(251 246 236),
    inset 0 0 0 3.5px currentColor;
  mix-blend-mode: multiply;
}
.stamp small {
  margin-top: 4px;
  font: 700 10.5px/1 var(--sans);
  letter-spacing: 0.14em;
}
.receipt {
  position: relative;
  width: 100%;
  padding: 30px 28px 26px;
  background: #fff;
  font: 13.5px/1.5 var(--mono);
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgb(20 33 61 / 6%),
    0 34px 50px -34px rgb(20 33 61 / 50%);
}
.receipt::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 9px;
  background: conic-gradient(from -45deg at 50% 100%, #fff 90deg, transparent 0) 0 0 / 18px 9px repeat-x;
  filter: drop-shadow(0 2px 1px rgb(20 33 61 / 8%));
}
.rc__brand {
  text-align: center;
  font-family: var(--sans);
}
.rc__brand .wm {
  font-size: 26px;
}
.rc__sub {
  margin-top: 4px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.rc__lines {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1.5px dashed rgb(20 33 61 / 30%);
}
.rc__lines li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0;
}
.rc__lines b {
  flex: none;
  font-weight: 700;
}
.rc__lines--sum li b {
  color: var(--ink);
}
.rc__lines .tot {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 3px double rgb(20 33 61 / 35%);
  font-size: 18px;
  font-weight: 700;
}
.rc__lines .tot b {
  color: var(--gold-d);
}
.rc__btn {
  width: 100%;
  margin-top: 22px;
  font-family: var(--sans);
}
.rc__note {
  margin-top: 14px;
  font: 12.5px/1.5 var(--sans);
  color: var(--muted);
}
.rc__thanks {
  margin-top: 16px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* src/styles/notebook-motion.css (picked rules) */
@property --nb-p {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 112%;
}
@keyframes nb-write {
  to {
    --nb-p: 112%;
  }
}
@keyframes nb-nib {
  0%,
  90% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
  }
}
@keyframes nb-stamp {
  0% {
    opacity: 0;
    scale: 1.7;
    rotate: -10deg;
  }
  55% {
    opacity: 1;
    scale: 0.94;
  }
  100% {
    opacity: 1;
    scale: 1;
    rotate: 0deg;
  }
}

/* src/static/coming-soon/page.css */
/* Static coming-soon page only (scripts/build-coming-soon.mjs appends this after the site's own CSS:
   tokens, globals, the button, src/app/coming-soon/coming-soon.module.css, and the wordmark, receipt and pen
   rules picked from src/styles/notebook.css and notebook-motion.css). */

/* ---------- the content width: the top bar, the words and the receipt share it, centred ----------
   --cs-max is the container, --cs-side the smallest margin: on wide screens 80% of the width, up to 1440 px (the founder's choice). */
body {
  --cs-max: 1160px;
  --cs-side: 20px;
}

/* ---------- top: the name, and the language switch ---------- */
.cs-top {
  position: absolute;
  z-index: 3;
  top: max(16px, env(safe-area-inset-top));
  left: max(var(--cs-side), calc((100% - var(--cs-max)) / 2));
  right: max(var(--cs-side), calc((100% - var(--cs-max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cs-top .logo {
  margin: 0;
}

.cs-top .wm {
  font-size: 24px;
  color: var(--ink);
}

/* Hinglish / English: the site's segmented switch (.seg in src/styles/notebook.css), as two plain links so
   it works without JavaScript; each link is 44 px tall to stay a full tap target. */
.cs-lang {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-ctl);
  background: rgb(20 33 61 / 5.5%);
  border: 1px solid rgb(20 33 61 / 8%);
}

.cs-lang a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 9px;
  font: 600 13px/1 var(--sans);
  color: var(--muted);
  text-decoration: none;
}

.cs-lang a:hover {
  color: var(--ink);
}

.cs-lang a[aria-current='page'] {
  color: var(--ink);
  background: #fff;
  box-shadow:
    inset 0 1px 0 #fff,
    0 0 0 1px var(--line),
    0 4px 12px -6px rgb(20 33 61 / 35%);
}

.cs-lang a:focus-visible {
  border-radius: var(--r-ctl);
}

/* ---------- the page: the words, and the receipt ---------- */
.page {
  padding-top: 100px;
  /* the pen's nib ends past a full-width italic line; it must not make the page scroll sideways */
  overflow-x: clip;
}

.cs-words {
  position: relative;
  z-index: 2;
}

/* "Coming soon" as the brand's stamp, in the flow above the title instead of on a slip's corner */
.cs-stamp {
  position: relative;
  right: auto;
  bottom: auto;
  width: fit-content;
  margin: 6px 0 4px 4px;
  padding: 12px 20px 11px;
  font-size: clamp(22px, 2.4vw, 30px);
  transform: rotate(-8deg);
}

/* what it does, as ticked points; then the price line in the pen's italic, and the data promise */
.cs-points {
  gap: 12px;
  padding: 0;
  list-style: none;
}

.cs-points li {
  gap: 12px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.3;
}

.cs-points .i {
  width: 26px;
  height: 26px;
  padding: 5px;
}

.cs-chai {
  margin-top: 22px;
  font: italic 500 clamp(22px, 2.2vw, 28px) / 1.2 var(--serif);
  color: var(--gold-d);
}

.cs-data {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}

/* the receipt: lists as notebook.css resets them, a little tilt, the add-on line quieter */
.cs-receipt ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-receipt {
  width: min(360px, 100%);
  margin-top: 44px;
  rotate: 1.5deg;
}

.rc__add,
.rc__add b {
  color: var(--muted);
  font-weight: 500;
}

/* Tablets: one centred column, the receipt under the words at the column's width. */
@media (min-width: 641px) and (max-width: 899px) {
  body {
    --cs-max: 480px;
  }

  .page {
    padding-inline: max(20px, calc((100% - var(--cs-max)) / 2));
    padding-bottom: 40px;
  }

  .page::before {
    left: max(8px, calc((100% - var(--cs-max)) / 2 - 34px));
  }

  .cs-receipt {
    width: 100%;
    margin-top: 32px;
  }
}

/* Narrower screens: the receipt under the words. Wide: two columns, the receipt beside them.
   The two columns fill the container exactly, so the words start where the name does and the receipt ends
   where the language switch does. --cs-rc is the receipt's drawn width (after zoom). */
@media (min-width: 900px) and (min-height: 620px) {
  /* the words' measure follows the title (its capitals are 6vw, up to 76 px) */
  body {
    --cs-words: min(470px, 37vw);
    --cs-gap: 64px;
    --cs-zoom: 1;
    --cs-rc: calc(340px * var(--cs-zoom));
    --cs-max: 1440px;
    --cs-side: 10vw;
  }

  .page {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: var(--cs-gap);
    padding-inline: max(var(--cs-side), calc((100% - var(--cs-max)) / 2));
  }

  .cs-words {
    max-width: var(--cs-words);
  }

  /* the red bahi margin follows the content */
  .page::before {
    left: max(8px, calc(max(var(--cs-side), (100% - var(--cs-max)) / 2) - 34px));
  }

  .cs-receipt {
    width: calc(var(--cs-rc) / var(--cs-zoom));
    margin-top: 0;
    zoom: var(--cs-zoom);
  }
}

@media (min-width: 1200px) and (min-height: 620px) {
  body {
    --cs-gap: 96px;
    --cs-rc: calc(420px * var(--cs-zoom));
  }

  .cs-receipt .receipt {
    font-size: 15px;
  }
}

/* short wide screens: the receipt drawn at 0.86 */
@media (min-width: 900px) and (min-height: 620px) and (max-height: 720px) {
  body {
    --cs-zoom: 0.86;
  }

  .page {
    padding-bottom: 40px;
  }
}

/* shorter still (a 1333 × 640 window): English's capitals take two lines, so the title follows the height and the
   spacing tightens, and the screen still fits */
@media (min-width: 900px) and (min-height: 620px) and (max-height: 680px) {
  .page {
    padding-top: 80px;
  }

  .title {
    margin: 14px 0;
  }

  .caps {
    font-size: min(76px, 6vw, 10.5vh);
  }

  .cs-points {
    gap: 8px;
  }

  .cs-chai {
    margin-top: 14px;
  }

  .cta {
    margin-top: 18px;
  }
}

/* Phones: one app-like screen, no scroll. The receipt is the main card and carries the points, so the separate
   points and chai line are left out; the button sits at the bottom like an app's action bar. */
@media (max-width: 640px) {
  .page {
    height: 100dvh;
    min-height: 0;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    align-content: stretch;
    padding-top: 88px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  /* the words' parts become the screen's rows, in app order */
  .cs-words {
    display: contents;
  }

  .cs-points,
  .cs-chai {
    display: none;
  }

  .cs-stamp {
    margin: 0 0 0 4px;
    padding: 9px 15px 8px;
    font-size: 19px;
  }

  .title {
    margin: 14px 0 0;
  }

  .cs-receipt {
    order: 1;
    align-self: center;
    width: 100%;
    margin-top: 16px;
    rotate: none;
  }

  .cs-receipt .receipt {
    padding: 18px 18px 16px;
    font-size: 13px;
  }

  .cs-receipt .rc__brand .wm {
    font-size: 22px;
  }

  .cs-receipt .rc__lines {
    margin-top: 12px;
    padding-top: 10px;
  }

  .cs-receipt .rc__lines li {
    padding: 3px 0;
  }

  .cs-receipt .rc__lines .tot {
    font-size: 16px;
  }

  .cs-receipt .rc__thanks {
    margin-top: 10px;
  }

  .cs-data {
    order: 2;
    margin-top: 18px;
    text-align: center;
    font-size: 13.5px;
  }

  .cta {
    order: 3;
    margin-top: 10px;
  }

  .cta .btn {
    width: 100%;
  }
}

/* shorter phones: the receipt drops its own name and subtitle (the top bar shows the name), keeping the price note */
@media (max-width: 640px) and (max-height: 720px) {
  .cs-receipt .rc__brand,
  .cs-receipt .rc__sub {
    display: none;
  }

  .cs-receipt .rc__lines:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
}

/* ---------- motion: the home page's vocabulary (BRAND_GUIDELINES.md §9), on load ----------
   The page runs no JavaScript, so instead of html.nbm the motion waits only for prefers-reduced-motion:
   with reduced motion every element shows in its final state. The receipt stands still. */
@media (prefers-reduced-motion: no-preference) {
  /* write: the pen writes the italic line, a nib riding its edge (as the home page's h1) */
  .ser {
    --nb-p: 0%;
    position: relative;
    width: fit-content;
    max-width: 100%;
    clip-path: inset(-0.35em calc(100% - var(--nb-p)) -0.45em -0.35em);
    animation: nb-write 0.95s var(--nb-pen) 0.25s forwards;
  }

  .ser::after {
    content: '';
    position: absolute;
    top: 0.2em;
    bottom: 0.12em;
    left: calc(var(--nb-p) - 3px);
    width: 3px;
    border-radius: 3px;
    background: var(--pen);
    transform: skewX(-16deg);
    opacity: 0;
    pointer-events: none;
    animation: nb-nib 0.95s linear 0.25s;
  }

  /* stamp: "Coming soon" thumps down first */
  .cs-stamp {
    animation: nb-stamp 0.5s var(--nb-ease) 0.1s both;
  }

  /* tick: each point's check mark is drawn, one after another */
  .cs-points .i {
    stroke-dasharray: 26;
    stroke-dashoffset: 26;
    animation: cs-tick 0.6s var(--nb-pen) 1.2s forwards;
  }

  .cs-points li:nth-child(2) .i {
    animation-delay: 1.5s;
  }

  .cs-points li:nth-child(3) .i {
    animation-delay: 1.8s;
  }

  /* mark: the highlighter sweeps over "phone" after the line is written */
  .caps mark {
    animation: cs-mark 1s var(--nb-pen) 1.45s both;
  }
}

@keyframes cs-tick {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes cs-mark {
  from {
    background-size: 0% 44%;
  }
}
