/* 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: promise left, the app cycling on the right, all in the first screen */
.hero { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 40px clamp(32px, 4vw, 72px); align-items: center; min-height: calc(100svh - 58px); padding-top: clamp(24px, 3vw, 48px); padding-bottom: clamp(40px, 5vw, 72px); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.hero > * { max-width: none; margin: 0; }
.hero-title { font-size: clamp(46px, 5vw, 84px); line-height: .98; letter-spacing: -0.045em; }
.hero-title .accent { color: var(--accent); }
.hero-lede { margin-top: clamp(20px, 2vw, 28px); font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(24px, 2.6vw, 36px); }
.text-link { font-size: 18px; font-weight: 600; color: var(--accent); text-decoration: none; }
.text-link::after { content: " ›"; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.reel { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--surface); }
.reel .frame { position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateX(6%) scale(.98); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.reel .frame.is-out { opacity: 0; transform: translateX(-6%) scale(.98); }
.reel .frame.is-on { opacity: 1; transform: none; }
.reel img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.reel-tabs { display: flex; gap: 8px; margin-top: 18px; }
.reel-tabs button { flex: 1; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--muted); transition: color .3s; }
.reel-tabs button[aria-selected="true"], .reel-tabs button:hover { color: var(--fg); }
.reel-tabs i { display: block; position: relative; height: 4px; margin-top: 8px; border-radius: 4px; background: #e3e3e8; overflow: hidden; }
.reel-tabs i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.reel-tabs button.done i::after { transform: scaleX(1); background: #c7c7cc; }
.reel-tabs button[aria-selected="true"] i::after { animation: fill var(--dwell, 4.2s) linear forwards; }
.reel-tabs.paused button[aria-selected="true"] i::after { animation: none; transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-show { max-width: 520px; width: 100%; justify-self: center; }
}
@media (max-width: 760px) { .reel { aspect-ratio: 4 / 5; } .reel-tabs button span { font-size: 13px; } }

/* Every screenshot sits in a frame with a soft shadow so it lifts off the grey */
.shot, .stages-shot, .install-phones img {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 2px 6px rgba(0, 0, 0, .05), 0 24px 60px -18px rgba(0, 0, 0, .28); /* taste-skill-ignore: owner asked for framed screenshots */
}
.install-phones img { box-shadow: 0 30px 80px -20px rgba(250, 45, 72, .35); } /* taste-skill-ignore: phone frame on black */

/* Features: each line lights up as it scrolls into the middle of the screen */
.finder { background: var(--surface); }
.finder-title { font-size: var(--t-2); }
.finder-list { list-style: none; margin: clamp(28px, 4vw, 56px) 0 0; padding: 0; }
.finder-list li { --p: 0; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 8px 48px; align-items: baseline; padding: clamp(12px, 1.6vw, 22px) 0; }
.finder-list .name { font-size: var(--t-1); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; color: color-mix(in srgb, var(--fg) calc(var(--p) * 100%), #d2d2d7); }
.finder-list .say { font-size: var(--t-body); color: var(--fg); opacity: var(--p); transform: translateY(calc((1 - var(--p)) * 16px)); }
html:not(.js) .finder-list li { --p: 1; }
@media (max-width: 760px) { .finder-list li { grid-template-columns: 1fr; } }

/* 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: a card per reason, the screen bleeding off the card's corner */
.tour h2 { font-size: var(--t-1); }
.tour-cards { display: grid; gap: clamp(16px, 2vw, 24px); margin-top: clamp(32px, 4vw, 56px); }
.tour-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 4vw, 64px); align-items: center; background: var(--surface); border-radius: 28px; padding: clamp(28px, 4vw, 56px) 0 0 clamp(28px, 4vw, 56px); overflow: hidden; }
.tour-copy { padding-bottom: clamp(28px, 4vw, 56px); }
.tour-copy h3 { font-size: var(--t-3); letter-spacing: -0.025em; line-height: 1.1; }
.tour-copy p { margin-top: 14px; max-width: 40ch; }
.tour-fig { margin: 0; align-self: end; }
.tour-fig img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 16px 0 0 0; }
.tour-card:nth-child(even) { background: var(--fg); color: var(--bg); }
@media (max-width: 760px) {
  .tour-card { grid-template-columns: 1fr; padding: 28px 28px 0; }
  .tour-copy { padding-bottom: 0; }
  .tour-fig img { aspect-ratio: 4 / 5; border-radius: 18px 18px 0 0; }
}

/* 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: one button 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-go { justify-self: end; display: grid; justify-items: center; gap: 16px; }
.btn-light { background: #fff; color: var(--accent); min-height: 64px; padding: 0 44px; font-size: 21px; }
.btn-light:hover { background: #fff; color: #c81d36; }
.start-signin { font-size: 16px; }
.start-signin a { font-weight: 600; }
@media (max-width: 860px) { .start-go { justify-self: start; justify-items: start; } }
@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-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 */
@media (max-width: 760px) {
  .reel { aspect-ratio: 4 / 5; }
  .stages-shot { aspect-ratio: 4 / 5; }
}
.reel-tabs button span { white-space: nowrap; }

/* Privacy and terms pages */
.legal-page { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 88px) var(--gutter) 64px; }
.legal-page h1 { font-size: var(--t-2); }
.legal-date { margin-top: 12px; color: var(--muted); font-size: 16px; }
.legal-page h2 { font-size: clamp(22px, 2vw, 28px); margin-top: 44px; letter-spacing: -0.02em; }
.legal-page p, .legal-page ul { margin-top: 14px; }
.legal-page ul { padding-left: 1.2em; }
.legal-page li + li { margin-top: 8px; }
.legal-page a { color: var(--accent); }
.legal-foot { max-width: 760px; margin: 0 auto; padding: 32px var(--gutter) 56px; color: var(--muted); font-size: 16px; }
.legal-foot a { color: inherit; }
