/* Planabi marketing site. Brand tokens match the app (src/theme/tokens.css). */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #fa2d48;
  --accent-ink: #ffffff;
  --night: #000000;
  --night-fg: #f5f5f7;
  --night-muted: #a1a1a6;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1440px;
  --r: 22px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --t-hero: clamp(52px, 9vw, 148px);
  --t-1: clamp(40px, 6vw, 88px);
  --t-2: clamp(30px, 4vw, 56px);
  --t-3: clamp(22px, 2.2vw, 32px);
  --t-body: clamp(17px, 1.3vw, 21px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 var(--t-body)/1.5 var(--font); -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
section { padding: clamp(72px, 11vw, 160px) var(--gutter); }
section > * { max-width: var(--max); margin-inline: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; transition: transform .3s var(--ease), background .3s; }
.btn:hover { background: #e0213c; transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-small { min-height: 38px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* Bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px var(--gutter); background: var(--bg); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; letter-spacing: -0.03em; text-decoration: none; }
.wordmark img { border-radius: 7px; }
.bar nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: 15px; }
.bar nav a:not(.btn) { text-decoration: none; color: var(--muted); transition: color .2s; }
.bar nav a:not(.btn):hover { color: var(--fg); }
@media (max-width: 640px) { .bar nav a:not(.btn) { display: none; } }

/* Hero: the sentence splits around the app */
.hero { padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(56px, 8vw, 120px); overflow: clip; }
.hero-title { font-size: var(--t-hero); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 .3em; line-height: .95; }
.hero-title .half { display: block; transition: transform .1s linear; will-change: transform; }
.hero-title .right { color: var(--accent); margin-left: auto; }
.reel { position: relative; margin-top: clamp(24px, 3vw, 44px); aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.reel .frame { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.03); transition: opacity 1s var(--ease), transform 6s linear; }
.reel .frame.is-on { opacity: 1; transform: scale(1); }
.reel img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 7fr) auto; align-items: end; gap: 24px 48px; margin-top: clamp(28px, 3.5vw, 48px); }
.hero-foot p { font-size: clamp(19px, 1.7vw, 25px); line-height: 1.35; letter-spacing: -0.02em; font-weight: 500; max-width: 44ch; }
@media (max-width: 760px) {
  .hero-title { flex-direction: column; }
  .hero-foot { grid-template-columns: 1fr; }
  .hero-foot .btn { justify-self: start; }
  .reel { aspect-ratio: 4 / 3; }
}

/* Finder: the features as the app's own search */
.finder { background: var(--surface); }
.finder-search input { width: 100%; border: 0; border-bottom: 2px solid var(--fg); background: transparent; padding: 0 0 14px; font-size: var(--t-2); font-weight: 700; letter-spacing: -0.035em; outline: none; border-radius: 0; }
.finder-search input::placeholder { color: var(--fg); }
.finder-search input:focus::placeholder { color: var(--line); }
.finder-list { list-style: none; margin: clamp(16px, 2vw, 28px) 0 0; padding: 0; }
.finder-list li { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 8px 48px; align-items: baseline; padding: clamp(10px, 1.2vw, 16px) 0; cursor: pointer; outline: none; }
.finder-list .name { font-size: var(--t-1); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; color: #86868b; transition: color .35s var(--ease), transform .45s var(--ease); }
.finder-list .say { font-size: var(--t-body); color: var(--fg); opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.finder-list li:hover .name { color: var(--fg); }
.finder-list li[aria-selected="true"] .name { color: var(--fg); transform: translateX(10px); }
.finder-list li[aria-selected="true"] .say { opacity: 1; transform: none; }
.finder-list li:focus-visible .name { text-decoration: underline 3px var(--accent); text-underline-offset: 8px; }
.finder-empty { margin-top: 24px; font-size: var(--t-3); }
html:not(.js) .finder-list .say { opacity: 1; transform: none; }
html:not(.js) .finder-list .name { color: var(--fg); }
@media (max-width: 760px) {
  .finder-list li { grid-template-columns: 1fr; }
  .finder-list .say { display: none; }
  .finder-list li[aria-selected="true"] .say { display: block; }
  html:not(.js) .finder-list .say { display: block; }
  .finder-list li[aria-selected="true"] .name { transform: none; color: var(--accent); }
}

/* Typer: type a wedding, see its schedule */
.typer { background: var(--accent); color: var(--accent-ink); }
.typer-title { font-size: var(--t-1); max-width: 14ch; margin: 0; }
.typer-ui { margin-top: clamp(28px, 4vw, 56px); background: var(--surface); color: var(--fg); border-radius: var(--r); padding: clamp(20px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(24px, 4vw, 64px); }
.typer-input { width: 100%; border: 0; background: var(--bg); border-radius: 14px; padding: 18px 20px; font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -0.02em; align-self: start; caret-color: var(--accent); }
.typer-input:focus { outline: 3px solid var(--accent); outline-offset: 0; }
.typer-meta { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.typer-meta strong { color: var(--fg); }
.typer-rows { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.typer-rows li { display: grid; grid-template-columns: 7.2em minmax(0, 1fr) 5.5em; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); /* taste-skill-ignore: rows inside a data-ui fragment */ animation: row-in .5s var(--ease) both; }
.typer-rows li:first-child { border-top: 0; }
.typer-rows .d { color: var(--muted); font-variant-numeric: tabular-nums; }
.typer-rows .n { font-weight: 600; }
.typer-rows .t { text-align: right; font-variant-numeric: tabular-nums; }
.typer-rows li.day0 .d { color: var(--accent); font-weight: 600; }
@keyframes row-in { from { opacity: 0; transform: translateY(10px); } }
.typer-examples { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.typer-examples button { border: 2px solid var(--accent-ink); background: transparent; border-radius: 999px; padding: 9px 18px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background .25s, color .25s; }
.typer-examples button:hover { background: var(--accent-ink); color: var(--accent); }
.typer-note { margin-top: 20px; font-size: 17px; max-width: 60ch; }
@media (max-width: 860px) { .typer-ui { grid-template-columns: 1fr; } }

/* Stages: one slider moves both halves */
.stages { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "text shot" "ctrl shot"; gap: 32px clamp(24px, 5vw, 80px); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; align-items: start; }
.stages > * { max-width: none; margin: 0; }
.stages-text { grid-area: text; align-self: end; }
.stages-clause { font-size: var(--t-2); min-height: 2.1em; }
.stages-detail { margin-top: 20px; color: var(--fg); max-width: 34ch; min-height: 4.5em; }
.stages-shot { grid-area: shot; border-radius: var(--r); overflow: hidden; background: var(--surface); aspect-ratio: 16 / 10; }
.stages-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: opacity .4s var(--ease); }
.stages-shot img.fading { opacity: 0; }
.stages-control { grid-area: ctrl; }
.stages-control input { width: 100%; accent-color: var(--accent); height: 32px; cursor: pointer; }
.stages-names { list-style: none; padding: 0; margin: 6px 0 0; display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.stages-names li.on { color: var(--fg); font-weight: 600; }
@media (max-width: 860px) { .stages { grid-template-columns: 1fr; grid-template-areas: "text" "shot" "ctrl"; } }

/* Tour: the screen holds, the reasons scroll */
.tour { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 clamp(32px, 5vw, 80px); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; background: var(--bg); }
.tour > * { max-width: none; margin: 0; }
.tour-pin { position: sticky; top: 88px; height: max-content; }
.tour-shot { position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.tour-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.tour-shot img.is-on { opacity: 1; transform: none; }
.tour-read h2 { font-size: var(--t-2); }
.tour-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .5s var(--ease); }
.tour-step.is-on { opacity: 1; }
.tour-step h3 { font-size: var(--t-3); letter-spacing: -0.025em; line-height: 1.1; }
.tour-step p { margin-top: 14px; max-width: 36ch; }
html:not(.js) .tour-step { opacity: 1; }
@media (max-width: 860px) {
  .tour { grid-template-columns: 1fr; }
  .tour-pin { top: 60px; z-index: 2; background: var(--bg); padding-bottom: 12px; }
  .tour-read { margin-top: 24px; }
  .tour-step { min-height: 46vh; }
}

/* Install: night field, two phones */
.install { background: var(--night); color: var(--night-fg); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px clamp(32px, 5vw, 80px); align-items: center; }
.install > * { max-width: none; margin: 0; }
.install { padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.install h2 { font-size: var(--t-1); }
.install-lede { margin-top: 24px; max-width: 34ch; }
.segmented { display: inline-flex; margin-top: 32px; padding: 4px; border-radius: 999px; background: #1d1d1f; }
.segmented button { border: 0; background: transparent; color: var(--night-muted); padding: 10px 24px; border-radius: 999px; font-weight: 600; font-size: 16px; cursor: pointer; transition: background .3s var(--ease), color .3s; }
.segmented button[aria-selected="true"] { background: var(--night-fg); color: var(--night); }
.steps { list-style: none; counter-reset: s; margin: 28px 0 0; padding: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; padding: 10px 0; animation: row-in .5s var(--ease) both; }
.steps li:nth-child(2) { animation-delay: .06s; } .steps li:nth-child(3) { animation-delay: .12s; } .steps li:nth-child(4) { animation-delay: .18s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.install-note { margin-top: 24px; color: var(--night-muted); }
.install-phones { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 28px); align-items: start; }
.install-phones img { border-radius: clamp(22px, 3vw, 40px); border: 6px solid #2c2c2e; }
.install-phones img:nth-child(2) { margin-top: 18%; }
@media (max-width: 860px) { .install { grid-template-columns: 1fr; } }

/* Start: the create-workspace dialog on an accent field */
.start { background: var(--accent); color: var(--accent-ink); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(32px, 5vw, 80px); align-items: center; padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.start > * { max-width: none; margin: 0; }
.start h2 { font-size: var(--t-1); }
.start-words p { margin-top: 24px; font-size: clamp(19px, 1.7vw, 25px); line-height: 1.35; font-weight: 500; letter-spacing: -0.02em; max-width: 40ch; }
.start-dialog { background: var(--surface); color: var(--fg); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); font-size: 15px; }
.dialog-title { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.dialog-steps { list-style: none; counter-reset: d; margin: 20px 0 24px; padding: 0; }
.dialog-steps li { counter-increment: d; display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; column-gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); /* taste-skill-ignore: rows inside a data-ui fragment */ }
.dialog-steps li::before { content: counter(d); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); font-weight: 700; }
.dialog-steps li:first-child::before { background: var(--accent); color: #fff; }
.dialog-steps span:first-child { font-weight: 600; font-size: 17px; }
.muted { color: var(--muted); }
.dialog-foot { margin-top: 16px; text-align: center; color: var(--muted); }
@media (max-width: 860px) { .start { grid-template-columns: 1fr; } }

/* FAQ: list on the left, the open answer large on the right */
.faq { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px clamp(32px, 5vw, 80px); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; align-items: start; }
.faq > * { max-width: none; margin: 0; }
.faq h2 { font-size: var(--t-1); margin-bottom: 24px; }
.faq ul { list-style: none; margin: 0; padding: 0; }
.faq li button { width: 100%; text-align: left; border: 0; background: transparent; padding: 14px 0; font-size: var(--t-3); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; color: var(--muted); cursor: pointer; transition: color .25s, transform .35s var(--ease); }
.faq li button:hover { color: var(--fg); }
.faq li button[aria-expanded="true"] { color: var(--fg); transform: translateX(10px); }
.faq-pane { position: sticky; top: 120px; background: var(--surface); border-radius: var(--r); padding: clamp(28px, 4vw, 56px); min-height: 320px; display: flex; align-items: flex-end; }
.faq-pane p { font-size: clamp(19px, 1.7vw, 25px); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; animation: row-in .5s var(--ease) both; }
@media (min-width: 861px) { .faq-inline { display: none; } }
@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; }
  .faq-pane { display: none; }
  .faq li button[aria-expanded="true"] { transform: none; color: var(--accent); }
  .faq-inline { padding-bottom: 14px; }
}

/* Footer tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(180px, auto); gap: 12px; padding: 12px var(--gutter) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.tile { border-radius: var(--r); padding: 28px; background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; }
.t-statement { grid-column: span 2; background: var(--fg); color: var(--bg); }
.t-statement p:first-child { font-size: var(--t-3); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; max-width: 20ch; }
.legal { font-size: 14px; color: var(--night-muted); }
.t-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 17px; }
.t-nav a { text-decoration: none; } .t-nav a:hover { color: var(--accent); }
.t-time .clock { font-size: var(--t-2); font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.t-mail a { font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; text-decoration: none; word-break: break-all; }
.t-mail a:hover { color: var(--accent); }
.t-word { grid-column: span 3; background: var(--bg); padding: 0; justify-content: flex-end; font-size: clamp(64px, 14vw, 230px); font-weight: 800; letter-spacing: -0.06em; line-height: .78; color: var(--fg); overflow: hidden; }
.t-go { background: var(--accent); color: #fff; font-size: var(--t-3); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.t-go svg { align-self: flex-end; transition: transform .4s var(--ease); }
.t-go:hover svg { transform: translate(6px, -6px); }
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .t-statement, .t-word { grid-column: span 2; }
}

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Phones: show the phone screens, and let the tour read straight down */
.step-shot { display: none; }
@media (max-width: 760px) {
  .reel { aspect-ratio: 4 / 5; }
  .stages-shot { aspect-ratio: 4 / 5; }
  .tour-pin { display: none; }
  .tour-step { min-height: 0; opacity: 1; padding: 28px 0; }
  .step-shot { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--r); margin-bottom: 20px; background: var(--surface); }
}
@media (max-width: 480px) { .finder-search input { font-size: 26px; } }
