@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/newsreader-vietnamese-400-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/newsreader-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/newsreader-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/newsreader-vietnamese-400-italic.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/newsreader-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/newsreader-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, 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"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-vietnamese-400-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, 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"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-vietnamese-500-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, 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"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-vietnamese-600-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #F8F5F1;
  --surface: #FCFAF7;
  --ink: #1C1916;
  --ink-2: #4D473E;
  --muted: #675F56;
  --divider: #DED9D4;
  --outline: #AAA39B;
  --outline-quiet: #CEC8C2;
  --ember: #B84E04;
  --on-ember: #FFFFFF;
  --press: rgba(28, 25, 22, 0.06);
  --print-shadow: 0 2px 4px rgba(60, 40, 20, 0.08), 0 18px 40px -12px rgba(60, 40, 20, 0.22);
  --phone-shadow: 0 2px 6px rgba(60, 40, 20, 0.06), 0 40px 80px -32px rgba(60, 40, 20, 0.32);

  --app-paper: #F8F5F1;
  --app-surface: #FCFAF7;
  --app-ink: #1C1916;
  --app-ink-2: #4D473E;
  --app-muted: #675F56;
  --app-divider: #DED9D4;
  --app-outline: #AAA39B;
  --app-ember: #B84E04;
  --app-incoming: #E5DFD7;
  --app-success: #1C813F;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
  --rail: 88px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1F1F1E;
    --surface: #2A2A28;
    --ink: #EDEBE8;
    --ink-2: #CBC8C3;
    --muted: #A3A09B;
    --divider: #3A3937;
    --outline: #6A6864;
    --outline-quiet: #4A4946;
    --ember: #F0936A;
    --on-ember: #2A1204;
    --press: rgba(237, 235, 232, 0.08);
    --print-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 18px 40px -12px rgba(0, 0, 0, 0.6);
    --phone-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 40px 80px -32px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #1F1F1E;
  --surface: #2A2A28;
  --ink: #EDEBE8;
  --ink-2: #CBC8C3;
  --muted: #A3A09B;
  --divider: #3A3937;
  --outline: #6A6864;
  --outline-quiet: #4A4946;
  --ember: #F0936A;
  --on-ember: #2A1204;
  --press: rgba(237, 235, 232, 0.08);
  --print-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  --phone-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 40px 80px -32px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-color: var(--outline) var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--ember); color: var(--on-ember); }

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
p, h1, h2, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

a { color: var(--ember); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.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;
}

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 50;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 16px; }

.icon {
  width: 24px; height: 24px; flex: none;
  fill: currentColor;
}


.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease-out);
}
.topbar.is-scrolled { border-bottom-color: var(--divider); }

.topbar__inner {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: max(12px, env(safe-area-inset-top));
}

.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-size: 26px; line-height: 1; letter-spacing: -0.01em;
  min-height: 44px;
}
.wordmark img { width: 32px; height: 32px; border-radius: 8px; }
.wordmark--quiet { font-size: 22px; min-height: 0; }
.wordmark--quiet img { width: 24px; height: 24px; border-radius: 6px; }

.topbar__tools { display: flex; align-items: center; gap: 8px; }

.lang { display: inline-flex; border: 1px solid var(--outline-quiet); border-radius: 999px; padding: 2px; }
.lang__btn {
  min-width: 40px; min-height: 36px; padding: 0 10px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}
.lang__btn:hover { color: var(--ink); }
.lang__btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.theme-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 12px 0 10px;
  border: 1px solid var(--outline-quiet); border-radius: 999px; background: transparent;
  color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}
.theme-btn .icon { width: 18px; height: 18px; }
.theme-btn:hover { color: var(--ink); background: var(--press); }


.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 16px; font-weight: 600; text-decoration: none;
  cursor: pointer;
  transition: opacity 160ms ease, background-color 160ms ease;
}
.btn:active { opacity: 0.72; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--ember { background: var(--ember); color: var(--on-ember); }
.btn--ember:hover { opacity: 0.88; }
.btn--quiet { background: transparent; color: var(--app-ink); border-color: var(--app-outline); }
.btn--quiet:hover { background: rgba(28, 25, 22, 0.05); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--outline); }
.btn--line:hover { background: var(--press); }
.btn .icon { width: 18px; height: 18px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }

.store {
  display: inline-flex; border-radius: 10px;
  transition: opacity 160ms ease;
}
.store:hover { opacity: 0.86; }
.store:active { opacity: 0.72; }
.store img { height: 56px; width: auto; }


.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 6.2vw, 88px);
  line-height: 1.02; letter-spacing: -0.025em;
  text-wrap: balance;
}

.title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.06; letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}


.bubble {
  position: relative;
  display: inline-flex; align-items: center;
  max-width: 34em; min-height: 52px;
  padding: 14px 22px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 24px 24px 24px 6px;
  font-family: var(--serif); font-size: clamp(20px, 1.9vw, 26px); line-height: 1.35;
  color: var(--ink);
  text-wrap: pretty;
}

.bubble__dots { display: none; gap: 5px; align-items: center; height: 24px; }
.bubble__dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted); opacity: 0.4;
  animation: dot 1.1s var(--ease-in-out) infinite;
}
.bubble__dots i:nth-child(2) { animation-delay: 0.16s; }
.bubble__dots i:nth-child(3) { animation-delay: 0.32s; }

@keyframes dot {
  0%, 60%, 100% { opacity: 0.32; transform: translateY(0); }
  30% { opacity: 0.9; transform: translateY(-3px); }
}

.bubble.is-typing .bubble__dots { display: inline-flex; }
.bubble.is-typing .bubble__text { position: absolute; opacity: 0; pointer-events: none; }
.bubble.is-said .bubble__text { animation: said 520ms var(--ease-out) both; }

@keyframes said {
  from { opacity: 0; filter: blur(4px); transform: translateY(4px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}


.hero {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 40px) var(--gutter) clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  column-gap: clamp(24px, 4vw, 64px);
  min-height: min(calc(100svh - 68px), 820px);
}

.hero__art { position: relative; align-self: center; margin-inline: -6%; }
.hero__paira {
  width: 100%; max-width: 680px; margin-inline: auto;
  animation: hover 7s var(--ease-in-out) infinite;
}

@keyframes hover {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}

.hero__copy { display: grid; gap: 24px; justify-items: start; }
.bubble--hero { font-size: clamp(22px, 2.2vw, 30px); padding: 14px 24px; }
.hero__copy .lede { margin-top: -4px; }
.hero__copy .stores { margin-top: 8px; }

.hero__meta { font-size: 14px; color: var(--muted); }

.hero__next {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: clamp(16px, 2vw, 24px);
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 4px;
  color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: color 160ms ease;
}
.hero__next .icon { width: 18px; height: 18px; transform: rotate(90deg); }
.hero__next:hover { color: var(--ink); }


.chapter {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 144px) var(--gutter) 0;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: clamp(16px, 2.4vw, 32px);
  row-gap: clamp(32px, 4vw, 48px);
  position: relative;
}

.chapter + .chapter::before,
.hero + .chapter::before {
  content: "";
  position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  border-top: 1px solid var(--divider);
}

.chapter__rail { grid-column: 1; grid-row: 1 / span 2; }
.chapter > .bubble { grid-column: 2; grid-row: 1; justify-self: start; align-self: center; }
.chapter__main { grid-column: 2; grid-row: 2; }

.face {
  position: sticky; top: 104px;
  width: var(--rail); height: auto;
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
:root[data-theme="dark"] .face { filter: brightness(0.94); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .face { filter: brightness(0.94); } }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(32px, 5vw, 80px);
}
.split__text { display: grid; gap: 24px; align-content: start; }
.split__media { display: grid; justify-items: center; position: relative; }
.split--flip .split__text { order: 2; }
.split--flip .split__media { order: 1; }


.rows { border-top: 1px solid var(--divider); margin-top: 8px; }
.row {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--divider);
}
.row .icon { color: var(--muted); margin-top: 1px; }
.row__label { font-weight: 600; font-size: 16px; line-height: 1.5; color: var(--ink); }
.row__sub { font-size: 15px; line-height: 1.6; color: var(--muted); margin-top: 2px; }

.promises {
  max-width: 44rem;
  margin-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--divider);
}
.promise { padding: 22px 0 24px; border-bottom: 1px solid var(--divider); }
.promise__line {
  font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3;
  color: var(--ink); text-wrap: balance;
}
.promise__sub { margin-top: 6px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 36em; }


.phone {
  --w: clamp(264px, 26vw, 330px);
  position: relative;
  width: var(--w);
  aspect-ratio: 1170 / 2532;
  border-radius: calc(var(--w) * 0.118);
  overflow: hidden;
  background: var(--app-paper);
  box-shadow: 0 0 0 1px rgba(28, 25, 22, 0.08), var(--phone-shadow);
  isolation: isolate;
}
.phone > img { width: 100%; height: 100%; object-fit: cover; }

.phone--stack > img {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 360ms var(--ease-out);
}
.phone--stack > img.is-on { opacity: 1; }


.commands { display: grid; border-top: 1px solid var(--divider); margin-top: 8px; }
.command {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 16px;
  width: 100%; padding: 18px 12px 18px 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--divider);
  text-align: left; cursor: pointer;
  color: var(--muted);
  transition: color 200ms ease, background-color 200ms ease;
}
.command:hover { color: var(--ink-2); }
.command:active { background: var(--press); }
.command .icon { margin-top: 1px; }
.command__head { display: block; font-size: 16px; line-height: 1.5; }
.command__name { font-weight: 600; color: inherit; }
.command__label { color: inherit; }
.command__sub {
  display: grid; grid-template-rows: 0fr;
  margin-top: 0;
  font-size: 15px; line-height: 1.6; color: var(--muted);
  transition: grid-template-rows 360ms var(--ease-out), opacity 240ms ease, margin 360ms var(--ease-out);
  opacity: 0;
}
.command__sub, .command__sub > * { min-height: 0; overflow: hidden; }
.command[aria-selected="true"] { color: var(--ink); }
.command[aria-selected="true"] .icon,
.command[aria-selected="true"] .command__name { color: var(--ember); }
.command[aria-selected="true"] .command__sub { grid-template-rows: 1fr; opacity: 1; margin-top: 4px; }


.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 0 20px 20px;
  background: var(--app-paper); color: var(--app-ink);
  font-size: 14px; line-height: 1.5;
}
.screen__status {
  flex: none; height: 52px;
  display: flex; align-items: flex-end; padding-left: 12px;
  font-weight: 600; font-size: 14px;
}
.screen__head {
  flex: none;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--app-divider);
  font-family: var(--serif); font-size: 22px;
}
.screen__head img { width: 32px; height: 32px; }

.agent { display: grid; gap: 14px; padding-top: 18px; align-content: start; }
.agent__request {
  font-family: var(--serif); font-size: 20px; line-height: 1.3; color: var(--app-ink);
  text-wrap: pretty;
}

.ledger { display: grid; gap: 8px; padding: 2px 0; }
.ledger__step {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start;
  color: var(--app-muted); font-size: 13px; line-height: 1.5;
}
.ledger__mark {
  width: 20px; height: 20px; margin-top: 0;
  display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--app-outline);
  color: var(--app-success);
}
.ledger__mark .icon { width: 12px; height: 12px; }
.ledger__label { display: block; color: var(--app-ink-2); font-weight: 500; }
.ledger__detail { display: block; color: var(--app-muted); }

.agent__answer { font-size: 15px; line-height: 1.55; color: var(--app-ink); text-wrap: pretty; }

.approval {
  display: grid; gap: 6px;
  padding: 14px 16px 16px;
  border: 1px solid var(--app-divider); border-radius: 18px;
  background: var(--app-surface);
}
.approval__title { font-weight: 600; font-size: 14px; }
.approval__body { font-size: 13px; color: var(--app-muted); }
.approval__item {
  display: flex; gap: 8px; align-items: center;
  margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--app-divider);
  font-size: 13px; color: var(--app-ink-2);
}
.approval__item .icon { width: 16px; height: 16px; color: var(--app-muted); }
.approval__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.approval__actions .btn { min-height: 40px; }
.approval .btn--ember { background: var(--app-ember); color: #FFFFFF; }
.approval__done {
  display: none; align-items: center; gap: 8px;
  margin-top: 6px;
  font-weight: 600; font-size: 14px; color: var(--app-ink);
}
.approval__done .icon { width: 18px; height: 18px; color: var(--app-success); }
.approval.is-resolved .approval__actions { display: none; }
.approval.is-resolved .approval__done { display: flex; animation: said 420ms var(--ease-out) both; }
.approval.is-denied .approval__done .icon { color: var(--app-muted); }

.screen__replay {
  margin-top: auto; align-self: center;
  min-height: 40px; padding: 0 16px;
  background: transparent; border: 0; border-radius: 999px;
  color: var(--app-muted); font-size: 13px; font-weight: 600; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity 240ms ease;
}
.screen__replay:hover { color: var(--app-ink); }
[data-ask].is-done .screen__replay { opacity: 1; pointer-events: auto; }

[data-ask].is-armed [data-step] { opacity: 0; transform: translateY(6px); visibility: hidden; }
[data-ask] [data-step] { transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out), visibility 0s linear 0s; }
[data-ask].is-armed [data-step].is-in { visibility: visible; }
[data-ask] [data-step].is-in { opacity: 1; transform: none; }
[data-ask].is-armed .ledger__step:not(.is-in) .ledger__mark { color: transparent; }


.sheet { display: grid; gap: 0; padding-top: 24px; }
.sheet__save {
  margin-top: auto;
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; border-radius: 999px;
  background: var(--app-ember); color: #FFFFFF;
  font-weight: 600; font-size: 15px;
}
.sheet__kind { font-size: 13px; color: var(--app-muted); }
.sheet__title { font-family: var(--serif); font-size: 28px; line-height: 1.15; margin: 4px 0 14px; }
.field {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--app-divider);
}
.field--stack { flex-direction: column; align-items: stretch; gap: 10px; }
.field__label { font-weight: 600; font-size: 14px; }
.field__value { color: var(--app-muted); font-size: 14px; text-align: right; }
.field__hint {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--app-muted);
  min-height: 20px;
}
.field__hint .icon { width: 14px; height: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 36px; padding: 0 12px;
  border: 1px solid var(--app-outline); border-radius: 999px;
  background: transparent; color: var(--app-ink-2);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.chip:hover { background: rgba(28, 25, 22, 0.04); }
.chip[aria-checked="true"] { background: var(--app-ember); border-color: var(--app-ember); color: #FFFFFF; }

.input {
  width: 100%; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--app-outline); border-radius: 12px;
  background: var(--app-surface); color: var(--app-ink);
  font: inherit; font-size: 15px;
}
.input:focus-visible { outline: 2px solid var(--app-ember); outline-offset: 1px; border-color: var(--app-ember); }

.presets { display: grid; gap: 6px; }
.preset {
  min-height: 40px; padding: 0 14px;
  border: 1px solid var(--app-outline); border-radius: 999px;
  background: transparent; color: var(--app-ink-2);
  font-size: 13px; font-weight: 500; text-align: left; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.preset:hover { background: rgba(28, 25, 22, 0.04); }
.preset[aria-checked="true"] { border-color: var(--app-ember); color: var(--app-ink); box-shadow: inset 0 0 0 1px var(--app-ember); font-weight: 600; }

.sample {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start;
  margin-top: 12px; padding: 12px 14px;
  border: 1px solid var(--app-divider); border-radius: 18px 18px 18px 6px;
  background: var(--app-surface);
}
.sample img { width: 32px; height: 32px; }
.sample__label { font-size: 12px; color: var(--app-muted); }
.sample__text { font-family: var(--serif); font-size: 16px; line-height: 1.35; color: var(--app-ink); text-wrap: pretty; }

.bridge {
  font-family: var(--serif); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45;
  color: var(--ink-2); max-width: 32em; text-wrap: pretty;
}

.segmented {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 3px; border-radius: 999px;
  border: 1px solid var(--app-outline);
}
.segmented__btn {
  min-height: 36px; border: 0; border-radius: 999px;
  background: transparent; color: var(--app-ink-2);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.segmented__btn[aria-checked="true"] { background: var(--app-ink); color: var(--app-paper); }


.album { min-height: 100%; }
.album .phone { z-index: 1; }
.print {
  position: absolute; z-index: 0;
  width: clamp(120px, 12vw, 168px);
  padding: 8px 8px 10px;
  background: var(--surface);
  border-radius: 4px;
  box-shadow: var(--print-shadow);
  font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.3; color: var(--ink-2);
  transition: transform 600ms var(--ease-out);
}
.print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; margin-bottom: 8px; }
.print--a { left: calc(50% - var(--pw) / 2 - 156px); top: 14%; transform: rotate(-5deg); }
.print--b { right: calc(50% - var(--pw) / 2 - 164px); top: 44%; transform: rotate(4deg); }
.print--c { left: calc(50% - var(--pw) / 2 - 168px); bottom: 2%; transform: rotate(2deg); }
.album { --pw: clamp(264px, 26vw, 330px); }
.album:hover .print--a { transform: rotate(-7deg) translateX(-6px); }
.album:hover .print--b { transform: rotate(6deg) translateX(6px); }
.album:hover .print--c { transform: rotate(0deg) translateX(-6px); }


.steps { display: grid; border-top: 1px solid var(--divider); margin-top: 8px; counter-reset: none; }
.step {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid var(--divider);
}
.step__n {
  font-family: var(--serif); font-size: 36px; line-height: 1; color: var(--ember);
  font-variant-numeric: lining-nums;
}


.finale {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: clamp(80px, 10vw, 144px) auto 0;
  padding: clamp(64px, 8vw, 112px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  column-gap: clamp(24px, 4vw, 64px);
  position: relative;
}
.finale::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  border-top: 1px solid var(--divider);
}
.finale__art img { width: 100%; max-width: 520px; margin-inline: auto; }
.finale__copy { display: grid; gap: 24px; justify-items: start; }


.invite {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(64px, 8vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  align-items: start;
  column-gap: clamp(24px, 5vw, 80px);
}
.invite__art { position: sticky; top: 96px; }
.invite__art img { width: 100%; max-width: 440px; margin-inline: auto; }
.invite__body { display: grid; gap: 24px; justify-items: start; max-width: 40rem; }
.invite__body .steps { width: 100%; margin-top: 0; border-top: 0; }
.invite__body .step__body { display: grid; gap: 4px; justify-items: start; }
.invite__body .step .stores, .invite__body .step .btn { margin-top: 12px; }
.invite__home { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

.code {
  width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 16px;
  padding: 20px 0 22px;
  border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider);
}
.code__label { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.code__value {
  font-family: var(--serif); font-size: clamp(40px, 6vw, 64px); line-height: 1.1;
  letter-spacing: 0.12em; font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink); user-select: all; overflow-wrap: anywhere;
}
.code__status { grid-column: 1 / -1; min-height: 22px; margin-top: 6px; font-size: 14px; color: var(--muted); }
.code__status:empty { display: none; }

.footer { border-top: 1px solid var(--divider); }
.footer__inner {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 32px var(--gutter) max(32px, env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
}
.footer__note { font-size: 14px; color: var(--muted); }


@media (max-width: 1080px) {
  :root { --rail: 64px; }
}

@media (max-width: 900px) {
  :root { --rail: 48px; }

  .theme-btn__label { display: none; }
  .theme-btn { padding: 0; width: 40px; justify-content: center; }

  .hero, .finale { grid-template-columns: minmax(0, 1fr); row-gap: 16px; min-height: 0; }
  .hero__art { width: min(72%, 380px); justify-self: center; }
  .finale__art { width: min(64%, 340px); justify-self: center; }
  .hero__copy, .finale__copy { justify-items: start; }

  .chapter {
    grid-template-columns: var(--rail) minmax(0, 1fr);
    column-gap: 12px;
  }
  .chapter__rail { grid-row: 1; align-self: end; }
  .face { position: static; }
  .chapter > .bubble { align-self: end; }
  .chapter__main { grid-column: 1 / -1; }

  .invite { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .invite__art { position: static; width: min(48%, 220px); justify-self: center; }
  .split { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .split--flip .split__text { order: 1; }
  .split--flip .split__media { order: 2; }


  .phone { --w: min(300px, 78vw); }
  .album { --pw: min(300px, 78vw); padding-block: 24px; }
  .print { width: clamp(96px, 24vw, 140px); font-size: 13px; }
  .print--a { left: max(-8px, calc(50% - var(--pw) / 2 - 88px)); top: 24%; }
  .print--b { right: max(-8px, calc(50% - var(--pw) / 2 - 88px)); }
  .print--c { left: max(-8px, calc(50% - var(--pw) / 2 - 72px)); }
}

@media (max-width: 520px) {
  .topbar .btn--small { display: none; }
  .bubble { padding: 12px 18px; border-radius: 20px 20px 20px 6px; }
  .stores { gap: 10px; }
  .store img { height: 48px; }
  .album { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 12px; padding-block: 0 24px; }
  .album .phone { flex: 0 0 auto; margin-bottom: 20px; }
  .print { position: relative; inset: auto; width: calc((100% - 24px) / 3); padding: 6px 6px 8px; font-size: 12px; }
  .print--a { transform: rotate(-3deg); }
  .print--b { transform: rotate(2deg); margin-top: 10px; }
  .print--c { transform: rotate(-1deg); }
  .album:hover .print--a, .album:hover .print--b, .album:hover .print--c { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .hero__paira { animation: none; }
}
