:root {
  --bg: #ffffff;
  --surface: #f6f6f9;
  --line: #e6e6ec;
  --text: #121218;
  --muted: #62626d;
  --primary: #5b5bd6;
  --primary-hover: #4a4ac2;
  --primary-soft: #ededfb;
  --radius: 10px;
  --max: 1040px;
  --measure: 720px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --display: "New York", ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(46px, 6.4vw, 80px); letter-spacing: -0.025em; line-height: 1; }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
::selection { background: var(--primary-soft); }
.tag { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--primary); vertical-align: 1px; }

/* Layout */
.section { max-width: var(--max); margin: 0 auto; padding: 128px 24px 0; }
.section-head { max-width: var(--measure); margin-bottom: 56px; }
.section-lede { color: var(--muted); font-size: 18px; margin-top: 18px; max-width: 56ch; }
.aside { color: var(--muted); font-size: 16px; max-width: 60ch; margin-top: 40px; }
.fineprint { color: var(--muted); font-size: 14px; line-height: 1.6; }
.gloss { color: var(--muted); font-size: 15px; margin-top: 2px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: 20px 24px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; }
.brand .mark, footer .mark { fill: currentColor; display: block; }
.nav-right { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 15px; }
.nav-right a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius); font-weight: 500; font-size: 15px; line-height: 1.3;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--surface); border-color: #d6d6df; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-ghost { background: transparent; }
.btn-small { padding: 8px 15px; font-size: 14px; border-radius: 8px; }
.btn-large { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.link-arrow { color: var(--text); font-weight: 500; font-size: 16px; }
.link-arrow::after { content: " →"; color: var(--muted); }
.link-arrow:hover::after { color: var(--text); }

/* Hero */
.hero { max-width: var(--max); margin: 0 auto; padding: 120px 24px 0; }
.hero h1 { max-width: 12ch; }
.lede { color: var(--muted); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; margin-top: 28px; max-width: 52ch; }
.cta-row { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 40px; }
.hero .fineprint { margin-top: 18px; }

/* Notch demo */
.demo { max-width: var(--max); margin: 80px auto 0; padding: 0 24px; }
.macbook {
  width: 100%; aspect-ratio: 16 / 5.2; position: relative; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(160deg, #e7e9ff 0%, #f1ecff 45%, #e8f1ff 100%);
  box-shadow: 0 1px 2px rgba(18,18,24,.04), 0 30px 70px -30px rgba(18,18,24,.18);
}
.menubar {
  position: relative; z-index: 1; height: 30px; padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.66); color: #1c1c22; font-size: 12px; white-space: nowrap;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.mb-left b { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: #1c1c22; vertical-align: -2px; margin-right: 6px; }
.mb-left strong { font-weight: 600; }
.mb-left i, .mb-right i { font-style: normal; margin-left: 12px; opacity: .8; }
.mb-icon { display: inline-block; width: 14px; height: 10px; border-radius: 3px; background: rgba(28,28,34,.75); vertical-align: -1px; }
.mb-icon.mustache { width: 18px; height: 7px; border-radius: 0 0 8px 8px; }
.mb-icon.wifi { border-radius: 8px 8px 0 0; height: 9px; }
.mb-icon.batt { width: 20px; height: 9px; border-radius: 2px; }
.screen { position: absolute; inset: 30px 0 0 0; }
/* The notch block is centred on its own; the bubble hangs off its right edge. */
.notch-wrap { position: absolute; top: -30px; left: 0; right: 0; height: 0; z-index: 2; }
.block {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 30px; background: #000; overflow: hidden; border-radius: 0 0 20px 20px;
  transition: width .45s cubic-bezier(.2,.9,.25,1.15), height .45s cubic-bezier(.2,.9,.25,1.15);
  box-shadow: 0 10px 30px rgba(18,18,24,.25);
}
.block.open { width: 170px; height: 118px; }
.block .papa {
  position: absolute; left: 50%; bottom: 0; height: 88px; transform: translate(-50%, -110px); opacity: 0;
  transition: transform .5s cubic-bezier(.2,.9,.25,1.12), opacity .3s ease;
  animation: sway 2.6s ease-in-out infinite alternate; transform-origin: bottom center;
}
.block.open .papa { transform: translate(-50%, 0); opacity: 1; }
@keyframes sway { from { rotate: -1.4deg; } to { rotate: 1.4deg; } }
.bubble {
  position: absolute; top: 40px; left: calc(50% + 96px); width: 260px; background: #fff; color: var(--text);
  border-radius: 16px; padding: 12px 14px 12px 16px; text-align: left;
  border: 1px solid rgba(0,0,0,.06); box-shadow: 0 16px 40px -12px rgba(18,18,24,.25);
  transform-origin: 0 20%; transform: scale(.3); opacity: 0; transition: transform .45s cubic-bezier(.2,.9,.25,1.15), opacity .3s ease;
}
.bubble.open { transform: scale(1); opacity: 1; }
.bubble::before { content: ""; position: absolute; left: -11px; top: 30px; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-right: 12px solid #fff; }
.speaker { color: var(--primary); font-weight: 600; font-size: 10px; display: block; letter-spacing: .02em; }
.bubble .line { font-weight: 600; font-size: 12.5px; line-height: 1.35; margin-top: 3px; }
.bubble .gloss { font-size: 11px; margin-top: 4px; line-height: 1.4; }
.actions { display: flex; gap: 6px; margin-top: 10px; }
.pill { font-size: 10px; font-weight: 500; padding: 4px 9px; border-radius: 999px; background: #f0f0f4; color: var(--text); }
.pill-accent { background: var(--primary); color: #fff; cursor: pointer; }
.demo-caption { color: var(--muted); font-size: 15px; margin-top: 20px; max-width: 64ch; }
.demo-caption em { font-style: normal; color: var(--text); font-weight: 500; }

/* A day with Papa */
.day { list-style: none; margin: 0; padding: 0; max-width: 820px; border-top: 1px solid var(--line); }
.day li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.day time { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.day .say { font-size: 18px; line-height: 1.45; margin-top: 6px; }

/* Faces */
.faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; max-width: 900px; }
.faces figure { margin: 0; }
.face-block { background: #0a0a0c; border-radius: 0 0 26px 26px; height: 150px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.face-block img { height: 132px; transition: transform .3s ease; }
.faces figure:hover img { transform: translateY(-4px) scale(1.03); }
.faces figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); text-align: center; }

/* Languages */
.langs { font-family: var(--display); font-size: clamp(26px, 3.4vw, 40px); line-height: 1.5; letter-spacing: -0.01em; max-width: 960px; }
.langs span { color: #c9c9d3; }

/* Voices */
.tones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; max-width: 960px; }
.tones blockquote { margin: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.tones blockquote p { font-family: var(--display); font-size: 24px; line-height: 1.3; letter-spacing: -0.01em; }
.tones blockquote footer { margin-top: 18px; font-size: 15px; color: var(--muted); padding: 0; max-width: none; display: block; }
.tones blockquote footer b { color: var(--text); font-weight: 600; margin-right: 8px; }
.tones blockquote footer .tag { margin-left: 0; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: 20px; overflow: hidden; }
.plan { padding: 40px; display: flex; flex-direction: column; }
.plan-pro { background: #fff; margin: 8px; border-radius: 14px; border: 1px solid var(--line); padding: 32px; }
.plan h3 { font-size: 20px; display: flex; justify-content: space-between; align-items: baseline; }
.plan .price { font-family: var(--display); font-weight: 500; font-size: 28px; letter-spacing: -0.02em; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; color: var(--muted); font-size: 15.5px; flex: 1; line-height: 1.5; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 1px; top: 9px; width: 11px; height: 5px; border-left: 1.5px solid var(--primary); border-bottom: 1.5px solid var(--primary); transform: rotate(-45deg); }
.plan li b { color: var(--text); font-weight: 500; }
.plan .btn { align-self: flex-start; }
.plan .fineprint { margin-top: 16px; }

/* FAQ */
.faq { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; }
.faq dt { font-weight: 600; font-size: 17px; }
.faq dd { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.faq a { color: var(--primary); }

footer { max-width: var(--max); margin: 0 auto; padding: 128px 24px 56px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer p { display: flex; align-items: center; gap: 8px; }
footer a:hover { color: var(--text); }

/* Thanks page */
.thanks main { text-align: center; }
.narrow { max-width: 620px; padding-top: 80px; }
.face-block.big { width: 220px; height: 170px; margin: 0 auto 32px; border-radius: 0 0 30px 30px; }
.face-block.big img { height: 150px; }
.thanks h1 { font-size: clamp(34px, 5vw, 52px); }
.thanks .lede { margin: 20px auto 0; font-size: 18px; }
.steps { text-align: left; color: var(--muted); margin: 32px auto; max-width: 460px; display: grid; gap: 12px; padding-left: 22px; }
.steps b { color: var(--text); font-weight: 500; }
.thanks .fineprint a { color: var(--primary); }
.keybox { border: 1px solid var(--primary); border-radius: 16px; padding: 24px; margin: 28px auto 0; max-width: 520px; }
.keybox pre { margin: 0 0 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; letter-spacing: .04em; white-space: pre-wrap; word-break: break-all; }
.keybox-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.keybox .fineprint { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .block, .bubble, .papa { transition: none !important; animation: none !important; }
}
@media (max-width: 900px) {
  .hero { padding-top: 72px; }
  .section, footer { padding-top: 88px; }
  .demo { margin-top: 56px; }
  .macbook { aspect-ratio: 16 / 7; }
  .faces { grid-template-columns: repeat(3, 1fr); }
  .tones { grid-template-columns: 1fr; gap: 0; }
  .tones blockquote { padding: 22px 0; }
  .tones blockquote:last-child { border-bottom: 1px solid var(--line); }
  .plans { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .nav-right a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  .day li { grid-template-columns: 1fr; gap: 4px; }
  .faces { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .face-block { height: 110px; border-radius: 0 0 20px 20px; }
  .face-block img { height: 96px; }
  .macbook { aspect-ratio: 16 / 11; }
  .mb-left i { display: none; }
  .block.open { width: 140px; height: 96px; }
  .block .papa { height: 72px; }
  .bubble { left: 50%; top: 108px; transform-origin: 50% 0; transform: translateX(-50%) scale(.3); width: min(260px, 86%); }
  .bubble.open { transform: translateX(-50%) scale(1); }
  .bubble::before { display: none; }
  .plan { padding: 28px 24px; }
}
