/* App intro page. Layout: hero with phone shot, then alternating text/shot rows, then the AI flow as a strip of four stations. Colours follow the iOS app (cream ground, terracotta action, sage secondary). */
:root {
  --bg: #faf7f2; --surface: #ffffff; --soft: #f3ece4; --sage-soft: #ecefe9;
  --fg: #30302d; --muted: #6f6a62; --line: #e7ddd4;
  --accent: #b65340; --accent-ink: #ffffff; --sage: #47705c;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "PingFang SC", "Noto Sans SC", "Noto Sans JP", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1b19; --surface: #272421; --soft: #2f2a26; --sage-soft: #24302a;
    --fg: #eee8df; --muted: #a8a197; --line: #3b3631;
    --accent: #e08a74; --accent-ink: #1d1b19; --sage: #8fc0a6;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); line-height: 1.75; font-size: 16px; overflow-wrap: anywhere; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 24px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--fg); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.top nav a[aria-current="page"] { color: var(--fg); font-weight: 700; }

.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding-block: 40px 56px; }
.hero > * { min-width: 0; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .1em; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5.4vw, 54px); line-height: 1.18; letter-spacing: -.02em; margin: 0 0 18px; text-wrap: balance; }
.lede { font-size: 18px; color: var(--muted); max-width: 34em; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { border: 1px solid var(--line); color: var(--fg); background: var(--surface); }
.btn.soon { border: 1px dashed var(--line); color: var(--muted); cursor: default; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.badges span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }

.phone { width: 100%; max-width: 300px; justify-self: center; aspect-ratio: 552 / 1200; border-radius: 40px; border: 8px solid #262321; background: #262321; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(60, 40, 30, .45); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

section { padding-block: 56px; border-top: 1px solid var(--line); }
h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.3; margin: 0 0 12px; text-wrap: balance; }
h3 { font-size: 18px; margin: 0 0 6px; line-height: 1.4; }
.sub { color: var(--muted); max-width: 40em; margin: 0 0 32px; }

.tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.tab { display: grid; gap: 12px; align-content: start; }
.tab .phone { max-width: 220px; border-width: 6px; border-radius: 30px; }
.tab p { margin: 0; font-size: 14.5px; color: var(--muted); }
.tab .label { font-size: 12px; font-weight: 700; color: var(--sage); letter-spacing: .06em; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; min-width: 0; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sage-soft); color: var(--sage); font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 14.5px; color: var(--muted); }

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 8px 0 40px; }
.station { position: relative; padding: 18px 22px 18px 0; }
.station + .station { padding-left: 22px; border-left: 1px dashed var(--line); }
.station .who { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--sage); }
.station p { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }
.station .say { margin-top: 10px; background: var(--soft); border-radius: 12px 12px 12px 4px; padding: 10px 12px; font-size: 14px; color: var(--fg); }

.connect { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.connect > * { min-width: 0; }
.endpoint { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 10px 0 0; }
.endpoint code { font-family: var(--mono); font-size: 14px; flex: 1 1 220px; min-width: 0; user-select: all; }
button.copy { font: inherit; font-size: 13px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 999px; padding: 4px 12px; cursor: pointer; min-height: 32px; }
ol.plain { margin: 0; padding-left: 20px; }
ol.plain li { margin-bottom: 10px; }
ol.plain li::marker { color: var(--accent); font-weight: 700; }
.note { font-size: 14px; color: var(--muted); }

.prompts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.prompt { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.prompt .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.prompt blockquote { margin: 0; padding: 12px 14px; background: var(--soft); border-radius: 12px; font-size: 14.5px; }
.prompt .where { font-size: 13.5px; color: var(--muted); margin: 0; }
.prompt .where b { color: var(--sage); font-weight: 700; }

.table-wrap { overflow-x: auto; margin-top: 32px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; background: var(--surface); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--soft); font-weight: 700; font-size: 13px; }
tr:last-child td { border-bottom: 0; }

.loop { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.loop > * { min-width: 0; }
.loop .phone { max-width: 260px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.facts p { margin: 0; color: var(--muted); font-size: 15px; }

.faq details { border-bottom: 1px solid var(--line); padding-block: 14px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero, .connect, .loop { grid-template-columns: 1fr; }
  .hero .phone { max-width: 240px; }
  .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow { grid-template-columns: 1fr; }
  .station, .station + .station { padding: 14px 0 14px 18px; border-left: 2px solid var(--line); }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .tabs { grid-template-columns: 1fr 1fr; gap: 14px; }
  .lede { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Supported AI clients table */
.clients td:first-child { font-weight: 700; white-space: nowrap; }
.clients td code { font-family: var(--mono); font-size: 12.5px; background: var(--soft); padding: 1px 6px; border-radius: 4px; word-break: break-all; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 999px; white-space: nowrap; }
.chip.tested { background: var(--sage-soft); color: var(--sage); }
.chip.likely { background: var(--soft); color: var(--fg); }
.chip.extra { background: transparent; border: 1px solid var(--line); color: var(--muted); }
