/* Kathā. Warm, soft and rounded; mobile first; big type and big tap targets. */

:root {
  --sakura: #fff3f5;
  --paper: #ffffff;
  --ink: #35222e;
  --ink-soft: #6b5162;
  --ume: #a83262;
  --ume-hover: #962a56;
  --ume-deep: #7e2049;
  --ume-tint: #fbe3ec;
  --line: #eed3dd;
  --sky: #ddedfb;
  --matcha: #e3f1de;
  --turmeric: #f2b93b;
  --blush: #f7a9bc;
  --leaf: #2f7a47;
  --danger: #b3261e;

  --font-latin-ui: ui-rounded, 'SF Pro Rounded', 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans',
    sans-serif;
  --font-ui: ui-rounded, 'SF Pro Rounded', 'Hiragino Maru Gothic ProN', 'Zen Maru Gothic', 'M PLUS Rounded 1c', 'Nunito',
    system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans JP', 'Noto Sans Devanagari', 'Noto Sans Tamil',
    sans-serif;
  --font-story: ui-serif, 'New York', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, 'Noto Serif', 'Noto Serif JP',
    'Noto Serif Devanagari', 'Noto Serif Tamil', serif;

  --r-sheet: 36px;
  --r-card: 26px;
  --r-input: 18px;
  --gutter: 20px;
  --shadow-paper: 0 1px 0 #f3d9e1, 0 22px 44px -22px rgba(84, 30, 58, 0.38);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

/* Elements hidden by script stay hidden even when a class gives them a display value. */
[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--sakura);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--ume);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

/* Each script gets fonts made for it; Japanese text must not fall back to Chinese glyph shapes. */
:lang(ja) {
  --font-ui: 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Zen Maru Gothic', 'M PLUS Rounded 1c', 'Noto Sans JP',
    'Noto Sans CJK JP', 'Yu Gothic', Meiryo, sans-serif;
  --font-story: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', 'Noto Serif CJK JP', serif;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

:lang(hi) {
  --font-ui: 'Noto Sans Devanagari', 'Kohinoor Devanagari', 'Nirmala UI', Mangal, var(--font-latin-ui);
  --font-story: 'Noto Serif Devanagari', 'Devanagari Sangam MN', 'Nirmala UI', var(--font-latin-ui);
}

:lang(ta) {
  --font-ui: 'Noto Sans Tamil', 'Tamil Sangam MN', 'Nirmala UI', Latha, var(--font-latin-ui);
  --font-story: 'Noto Serif Tamil', 'Tamil Sangam MN', 'Nirmala UI', Latha, var(--font-latin-ui);
}

:lang(ja) h1,
:lang(ja) h2,
:lang(ja) h3 {
  line-height: 1.45;
  letter-spacing: 0.01em;
}

/* Break Japanese lines between phrases, not inside words or dates (where supported). */
:lang(ja) h1,
:lang(ja) h2,
:lang(ja) h3,
:lang(ja) .talk p,
:lang(ja) .message p,
:lang(ja) .manage-hero p,
:lang(ja) .hint {
  word-break: auto-phrase;
}

:lang(hi),
:lang(ta) {
  line-height: 1.8;
}

:lang(hi) h1,
:lang(ta) h1,
:lang(hi) h2,
:lang(ta) h2 {
  line-height: 1.45;
  letter-spacing: 0;
}

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

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

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

/* Header and footer */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px var(--gutter);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark-bird {
  width: 40px;
  height: 41px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  display: grid;
  gap: 8px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px var(--gutter) calc(112px + var(--safe-bottom));
  color: var(--ink-soft);
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
}

/* Buttons: candy-like, with a pressed edge */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ume);
  box-shadow: 0 4px 0 var(--ume-deep);
  color: #fff;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  background: var(--ume-hover);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ume-deep);
}

.btn[aria-busy='true'] {
  opacity: 0.75;
  cursor: progress;
}

.btn-wide {
  width: 100%;
}

.btn-soft {
  border: 2px solid var(--line);
  background: var(--paper);
  box-shadow: 0 3px 0 var(--line);
  color: var(--ume);
}

.btn-soft:hover {
  background: #fff8fa;
}

.btn-soft:active {
  box-shadow: 0 0 0 var(--line);
}

.btn-danger {
  background: var(--danger);
  box-shadow: 0 4px 0 #7f1a15;
}

.btn-danger:hover {
  background: #9c2019;
}

/* Landing: hero */

.hero {
  display: grid;
  gap: 40px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px var(--gutter) 64px;
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.15rem, 8.6vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

:lang(ja) .hero h1 {
  max-width: 12em;
  font-size: clamp(1.85rem, 7.2vw, 3rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.lead {
  max-width: 36rem;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.buy {
  margin: 28px 0 0;
}

.btn-buy {
  min-height: 64px;
  padding: 0 32px;
  font-size: 1.25rem;
}

.price-note {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* Landing: sample chapter, drawn as a bound page */

.sample {
  position: relative;
  margin: 36px 0 0;
  padding: 22px 22px 26px 34px;
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: var(--shadow-paper);
}

.sample::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 14px;
  border-radius: var(--r-card) 0 0 var(--r-card);
  background: var(--ume-tint);
}

.sample::after {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 6px;
  border-left: 2px dashed #fff;
}

.sample-bird {
  position: absolute;
  top: -60px;
  right: 22px;
  width: 78px;
  height: 80px;
}

.sample-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.sample-label {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.sample-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--sakura);
}

.sample-tab {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.sample-tab[aria-selected='true'] {
  background: var(--paper);
  box-shadow:
    0 1px 0 var(--line),
    0 3px 8px -3px rgba(84, 30, 58, 0.3);
  color: var(--ume);
}

.sample-panel {
  margin-top: 18px;
}

.sample-chapter {
  color: var(--ume);
  font-size: 0.95rem;
  font-weight: 800;
}

.sample-title {
  margin-top: 4px;
  font-family: var(--font-story);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.sample-text {
  margin-top: 10px;
  font-family: var(--font-story);
  font-size: 1.15rem;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.sample-voice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: var(--sky);
}

.voice-dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ume);
}

.voice-dot .icon {
  width: 22px;
  height: 22px;
}

.wave {
  width: 118px;
  height: 30px;
  fill: var(--ume);
}

.voice-time {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.sample-en {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px dotted var(--line);
}

.sample-en-label {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.sample-title-en {
  margin-top: 4px;
  font-family: var(--font-story);
  font-size: 1.1rem;
  font-weight: 700;
}

.sample-text-en {
  margin-top: 6px;
  color: var(--ink-soft);
  font-family: var(--font-story);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Landing: sections */

.sheet {
  margin: 0 12px;
  padding: 52px var(--gutter) 58px;
  border-radius: var(--r-sheet);
}

.sheet > * {
  max-width: 1040px;
  margin-right: auto;
  margin-left: auto;
}

.sheet-sky {
  background: var(--sky);
}

.sheet-matcha {
  background: var(--matcha);
}

main h2 {
  font-size: clamp(1.75rem, 6.2vw, 2.5rem);
}

.steps {
  position: relative;
  display: grid;
  gap: 30px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: '';
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 39px;
  border-left: 3px dotted rgba(53, 34, 46, 0.32);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  align-content: start;
  align-items: start;
}

.step-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--paper);
}

.step-art {
  width: 56px;
  height: 56px;
}

.step-num {
  position: absolute;
  top: -4px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 3px solid var(--sky);
  border-radius: 50%;
  background: var(--ume);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.step h3 {
  margin-top: 8px;
  font-size: 1.3rem;
}

.step p {
  margin-top: 6px;
  color: var(--ink-soft);
}

.langs {
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px var(--gutter);
}

.lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 20px;
  padding: 0;
  list-style: none;
}

.lang-chips li {
  padding: 8px 22px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 1.65rem;
  font-weight: 800;
}

.lang-chips li:nth-child(1) {
  background: #fde4ec;
}

.lang-chips li:nth-child(2) {
  background: #fff0cf;
}

.lang-chips li:nth-child(3) {
  background: var(--matcha);
}

.lang-chips li:nth-child(4) {
  background: var(--sky);
}

.langs p {
  max-width: 36rem;
  color: var(--ink-soft);
}

.promise-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.promise-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 700;
}

.promise-icon {
  width: 52px;
  height: 52px;
  padding: 6px;
  border-radius: 50%;
  background: var(--paper);
}

/* Landing: price as a gift tag */

.price {
  padding: 84px var(--gutter) 64px;
}

.tag {
  position: relative;
  max-width: 30rem;
  margin: 0 auto;
  padding: 60px 24px 28px;
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow-paper);
  text-align: center;
}

.tag-string {
  position: absolute;
  top: -30px;
  left: 50%;
  z-index: 1;
  width: 120px;
  height: 64px;
  transform: translateX(-50%);
}

.tag-hole {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: var(--sakura);
  box-shadow: inset 0 0 0 3px var(--line);
}

.tag h2 {
  font-size: 1.5rem;
}

.tag-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 12px;
  margin-top: 8px;
}

.tag-amount {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.tag-price s {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.tag-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.tag-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
}

.tag-check {
  width: 26px;
  height: 26px;
  margin-top: 2px;
  padding: 4px;
  border-radius: 50%;
  background: #5fae78;
  color: #fff;
}

.tag .buy {
  margin: 0;
}

.secure {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Landing: questions */

.faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px var(--gutter) 64px;
}

.faq-list {
  margin-top: 18px;
}

.faq-item {
  border-bottom: 2px dotted var(--line);
}

.faq-item summary {
  position: relative;
  padding: 20px 52px 20px 0;
  font-size: 1.15rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 6px;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 50%;
  background: var(--ume-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%23a83262' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 15px no-repeat;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 40rem;
  padding: 0 0 22px;
  color: var(--ink-soft);
}

/* Landing: buy bar that appears after the first button scrolls away (phones only) */

.sticky-buy {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 243, 245, 0.95);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

.sticky-buy.is-shown {
  transform: none;
}

.sticky-buy .buy {
  max-width: 30rem;
  margin: 0 auto;
}

.sticky-price {
  font-weight: 700;
  opacity: 0.85;
}

/* Message pages: thanks, errors, deleted */

.message {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 34rem;
  margin: 0 auto;
  padding: 24px var(--gutter) 64px;
  text-align: center;
}

.message h1 {
  font-size: clamp(1.7rem, 6.4vw, 2.3rem);
}

.message p {
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.message .btn,
.message form {
  margin-top: 8px;
}

.message form {
  width: 100%;
}

.message-bird {
  width: 120px;
  height: 124px;
}

.message .message-small {
  font-size: 1rem;
}

.dots {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ume);
  animation: bob 1s ease-in-out infinite;
}

.dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

/* The one celebration: the bird hops once when something good happens. */
.is-happy {
  animation: hop 0.8s ease-out 0.15s 1 both;
}

@keyframes hop {
  0% {
    transform: none;
  }
  30% {
    transform: translateY(-20px) rotate(-6deg);
  }
  55% {
    transform: translateY(0) rotate(3deg);
  }
  75% {
    transform: translateY(-6px) rotate(0);
  }
  100% {
    transform: none;
  }
}

/* Setup flow: one question per screen */

.flow {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 var(--gutter) calc(48px + var(--safe-bottom));
}

.flow-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin-bottom: 8px;
}

.flow-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  padding: 0 16px 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.flow-back .icon {
  width: 22px;
  height: 22px;
}

.flow-dots {
  display: flex;
  gap: 6px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.flow-dots li {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  transition:
    background-color 0.2s ease,
    width 0.2s ease;
}

.flow-dots li.is-done {
  background: var(--blush);
}

.flow-dots li.is-current {
  width: 26px;
  background: var(--ume);
}

.screen {
  padding-top: 8px;
}

.q {
  font-size: clamp(1.7rem, 7vw, 2.2rem);
}

.q:focus {
  outline: none;
}

.hint {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.choices {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.choices:empty {
  display: none;
}

.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 12px 16px 12px 18px;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    transform 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}

.choice:active {
  transform: scale(0.98);
}

.choice[aria-pressed='true'] {
  border-color: var(--ume);
  background: #fff0f5;
}

.choice-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sakura);
  color: var(--ume);
}

.choice-text {
  display: grid;
  flex: 1;
}

.choice-sub {
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 600;
}

.choice-tick {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border: 2px solid var(--line);
  border-radius: 50%;
  color: transparent;
}

.choice-tick .icon {
  width: 18px;
  height: 18px;
}

.choice[aria-pressed='true'] .choice-tick {
  border-color: var(--ume);
  background: var(--ume);
  color: #fff;
}

.choice-quiet {
  min-height: 60px;
  margin-top: 12px;
  border-style: dashed;
  background: transparent;
}

.field-label {
  display: block;
  margin-top: 24px;
  font-size: 1.05rem;
  font-weight: 700;
}

.input {
  display: block;
  width: 100%;
  min-height: 60px;
  margin-top: 8px;
  padding: 14px 18px;
  border: 2px solid var(--line);
  border-radius: var(--r-input);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.25rem;
}

.input::placeholder {
  color: #a8909e;
}

.input:focus {
  border-color: var(--ume);
  outline: none;
  box-shadow: 0 0 0 4px var(--ume-tint);
}

.textarea {
  min-height: 116px;
  line-height: 1.5;
  resize: vertical;
}

select.input {
  padding-right: 52px;
  background: var(--paper)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2335222e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    right 16px center / 22px no-repeat;
  appearance: none;
}

.field-error {
  margin-top: 12px;
  color: var(--danger);
  font-weight: 700;
}

.screen-actions {
  margin-top: 28px;
}

.review {
  margin: 20px 0 0;
  padding: 4px 18px;
  border-radius: var(--r-card);
  background: var(--paper);
}

.review-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 14px 0;
  border-bottom: 2px dotted var(--line);
}

.review-row:last-child {
  border-bottom: 0;
}

.review dt {
  grid-column: 1;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.review dd {
  grid-column: 1;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.review-change {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--ume);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

/* Owner's gift page */

.manage {
  display: grid;
  gap: 32px;
  max-width: 36rem;
  margin: 0 auto;
  padding: 8px var(--gutter) 64px;
}

.manage-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.manage-bird {
  width: 104px;
  height: 108px;
}

.manage-hero h1 {
  font-size: clamp(1.75rem, 6.6vw, 2.3rem);
}

.manage-hero p {
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.link-card {
  padding: 20px 18px 22px;
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: var(--shadow-paper);
}

.link-card .field-label {
  margin-top: 0;
}

.link-input {
  background: var(--sakura);
  color: var(--ink-soft);
  font-size: 1rem;
}

.link-actions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.manage h2 {
  font-size: 1.5rem;
}

.next-list {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: next;
}

.next-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  counter-increment: next;
}

.next-list li::before {
  content: counter(next);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sky);
  font-weight: 800;
}

.manage-details .btn {
  margin-top: 16px;
}

.manage-delete {
  text-align: center;
}

.manage-delete a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink-soft);
  font-weight: 700;
}

/* Storyteller's page */

.page-talk {
  font-size: 1.35rem;
}

.talk {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 34rem;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top, 0px)) var(--gutter) calc(40px + var(--safe-bottom));
  text-align: center;
}

.talk-bird {
  width: 170px;
  height: 160px;
}

.talk-hello {
  font-size: clamp(2.2rem, 9.5vw, 2.9rem);
}

.talk-from {
  padding: 8px 20px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ume);
  font-weight: 800;
}

.talk-intro {
  max-width: 28rem;
}

.talk-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  padding: 24px 20px;
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: var(--shadow-paper);
  font-weight: 800;
}

.talk-card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--ume);
}

.talk-card-icon .icon {
  width: 30px;
  height: 30px;
}

.talk-card-small {
  color: var(--ink-soft);
  font-weight: 700;
}

.btn-talk {
  width: 100%;
  min-height: 96px;
  font-size: 1.6rem;
}

.btn-talk .icon {
  width: 34px;
  height: 34px;
}

.mic-check {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
}

.mic-meter {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 40px;
}

.mic-meter span {
  width: 10px;
  height: 8px;
  border-radius: 5px;
  background: var(--ume);
  transition: height 0.08s linear;
}

.mic-status {
  min-height: 1.6em;
  font-size: 1.15rem;
  font-weight: 700;
}

.mic-status.is-ok {
  color: var(--leaf);
}

.mic-status.is-bad {
  color: var(--danger);
}

.talk-note {
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.bird-waves {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.talk.is-hearing .bird-waves {
  opacity: 1;
}

/* Privacy and terms */

.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: 16px var(--gutter) 64px;
}

.doc h1 {
  font-size: clamp(2rem, 7vw, 2.6rem);
}

.doc h2 {
  margin-top: 34px;
  font-size: 1.35rem;
}

.doc p,
.doc li {
  margin-top: 10px;
}

.doc ul {
  margin: 0;
  padding-left: 1.2em;
}

.doc-updated {
  margin-top: 8px;
  color: var(--ink-soft);
}

.draft-note {
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff0cf;
  font-weight: 700;
}

/* Larger screens */

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
    padding-top: 72px;
    padding-bottom: 96px;
  }

  .sample {
    margin-top: 0;
  }

  .sheet {
    margin: 0 24px;
    padding: 72px 40px 80px;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }

  /* From the centre of the first icon to the centre of the last (4 columns, 28px gaps). */
  .steps::before {
    top: 40px;
    right: calc((100% - 84px) / 4 - 40px);
    bottom: auto;
    left: 40px;
    border-top: 3px dotted rgba(53, 34, 46, 0.32);
    border-left: 0;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .promise-list {
    grid-template-columns: 1fr 1fr;
    gap: 22px 40px;
  }

  .sticky-buy {
    display: none;
  }

  .site-footer {
    padding-bottom: 48px;
  }
}

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