/* focalkeys.com — shared styles. Focal brand: Ink, Paper, Amber. */
:root {
  --ink: #14171C;
  --ink-line: #2E333D;
  --paper: #EFEEE8;
  --paper-dim: #E3E1D9;
  --paper-raised: #F7F6F2;
  --line: #D6D3C9;
  --field-line: #A9A69C;
  --muted: #4B4F57;
  --muted-on-ink: #B9B8B0;
  --amber: #E7A23C;
  --amber-hover: #D9922A;
  --amber-text: #8F5416;
  --amber-text-hover: #6E3F0E;
  --green: #3E8E7E;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; width: 100%; min-width: 0; }
img, svg { display: block; }
a { color: var(--amber-text); }
a:hover { color: var(--amber-text-hover); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.label {
  font-family: var(--mono); font-weight: 500; font-size: 12px; line-height: 16px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.pill {
  align-self: flex-start; display: inline-block; padding: 5px 12px; border-radius: 9999px;
  background: var(--amber); color: var(--ink);
  font-family: var(--mono); font-weight: 600; font-size: 12px; line-height: 16px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.skip {
  position: absolute; left: 16px; top: -60px; padding: 10px 14px; border-radius: 8px;
  background: var(--ink); color: var(--paper); z-index: 10;
}
.skip:focus { top: 12px; color: var(--paper); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 12px;
  background: var(--amber); color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--amber-hover); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2A2F38; color: var(--paper); }

/* Header: centered stacked logo */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; justify-content: center; padding-top: 28px; padding-bottom: 28px; }
.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo svg { width: 42px; height: 67px; }
.logo span { font-family: var(--display); font-weight: 700; font-size: 42px; line-height: 1; letter-spacing: -0.015em; }

/* Hero */
.hero {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 64px; padding-top: 96px; padding-bottom: 112px;
}
.hero-copy { flex: 999 1 520px; min-width: 0; max-width: 640px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 72px; line-height: 1.06; letter-spacing: -0.03em; }
.mark { background: linear-gradient(transparent 62%, var(--amber) 62%, var(--amber) 92%, transparent 92%); }
.lede { margin: 0; max-width: 540px; font-size: 20px; line-height: 1.5; color: var(--muted); }

.waitlist { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; max-width: 520px; }
.waitlist label { font-size: 14px; font-weight: 600; }
.waitlist .row { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist input {
  flex: 1 1 260px; min-width: 0; min-height: 52px; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--field-line); background: var(--paper-raised);
  color: var(--ink); font: inherit; font-size: 16px;
}
.waitlist input::placeholder { color: #6B6E75; }
.waitlist .btn { flex: none; }
.waitlist .fine { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.thanks { display: flex; align-items: center; gap: 10px; margin-top: 8px; max-width: 520px; padding: 16px 18px; border-radius: 12px; background: var(--paper-dim); font-weight: 600; }
.thanks[hidden], .waitlist[hidden] { display: none; }
.promise { margin: 0; display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 22px; }
.promise svg { flex: none; margin-top: 1px; }
.promise strong { font-weight: 600; }

/* Phone glimpse: chat + the Focal Keys keyboard as built */
.phone-wrap { flex: 1 1 340px; display: flex; justify-content: center; }
.phone { width: 340px; padding: 12px; border-radius: 56px; background: var(--ink); box-shadow: 0 40px 80px -40px rgba(20, 23, 28, 0.55); }
.screen { height: 668px; border-radius: 44px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; color: #1A1C1E; }
.chat-head { padding: 42px 14px 10px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(26,28,30,0.10); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--paper-dim); display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 13px; }
.who { display: flex; flex-direction: column; }
.who b { font-weight: 600; font-size: 14px; line-height: 18px; }
.who small { font-size: 11px; line-height: 14px; color: #6B6E68; }
.chat { flex: 1; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; font-size: 13px; line-height: 17px; }
.bubble { max-width: 80%; padding: 8px 11px; }
.bubble.them { align-self: flex-start; border-radius: 16px 16px 16px 5px; background: var(--paper-dim); }
.bubble.me { align-self: flex-end; border-radius: 16px 16px 5px 16px; background: #1A1C1E; color: #F2F1EC; }
.copied { align-self: flex-start; max-width: 82%; display: flex; flex-direction: column; gap: 4px; }
.copied .bubble { max-width: none; box-shadow: 0 0 0 2px var(--amber); }
.copied span { padding-left: 4px; font-family: var(--mono); font-weight: 600; font-size: 9px; letter-spacing: 0.05em; color: var(--amber-text); }
.compose { padding: 6px 10px 8px; display: flex; align-items: center; gap: 7px; }
.compose .field { flex: 1; height: 34px; border-radius: 9999px; border: 1px solid rgba(26,28,30,0.14); background: var(--paper-raised); display: flex; align-items: center; padding: 0 13px; font-size: 13px; color: #6B6E68; }
.compose .send { width: 34px; height: 34px; border-radius: 50%; background: var(--paper-dim); display: inline-flex; align-items: center; justify-content: center; }

.kb { background: #E4E2DB; padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.kb-top { display: flex; align-items: center; gap: 6px; }
.kb-top > svg { flex: none; }
.replying { flex: 1 1 auto; min-width: 0; height: 26px; padding: 0 8px; border-radius: 9999px; background: var(--paper); display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; white-space: nowrap; overflow: hidden; }
.replying b { flex: none; font-weight: 600; }
.replying i { min-width: 0; font-style: normal; overflow: hidden; text-overflow: ellipsis; color: #6B6E68; }
.replying svg { flex: none; }
.chip { flex: none; height: 24px; padding: 0 7px; border-radius: 9999px; border: 1px solid var(--field-line); display: inline-flex; align-items: center; font-family: var(--mono); font-size: 10px; }
.flirty { flex: none; font-family: var(--mono); font-size: 10px; }
.toggle { flex: none; position: relative; width: 30px; height: 18px; border-radius: 9999px; background: var(--amber); }
.toggle::after { content: ""; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.reply { position: relative; padding: 14px 16px; background: var(--paper); font-size: 15px; line-height: 22px; }
.reply i { position: absolute; width: 14px; height: 14px; border: 0 solid var(--amber); }
.reply .tl { top: 0; left: 0; border-top-width: 2.5px; border-left-width: 2.5px; border-top-left-radius: 2px; }
.reply .tr { top: 0; right: 0; border-top-width: 2.5px; border-right-width: 2.5px; border-top-right-radius: 2px; }
.reply .bl { bottom: 0; left: 0; border-bottom-width: 2.5px; border-left-width: 2.5px; border-bottom-left-radius: 2px; }
.reply .br { bottom: 0; right: 0; border-bottom-width: 2.5px; border-right-width: 2.5px; border-bottom-right-radius: 2px; }
.kb-actions { display: flex; gap: 8px; }
.kb-actions .insert { flex: 1; height: 44px; border-radius: 11px; background: var(--amber); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; }
.kb-actions .again { flex: none; width: 44px; height: 44px; border-radius: 11px; border: 1.5px solid rgba(26,28,30,0.18); display: inline-flex; align-items: center; justify-content: center; }
.tones-row { display: flex; align-items: center; gap: 5px; }
.tones-row .abc { flex: none; width: 40px; height: 30px; border-radius: 7px; background: #CFCCC2; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; }
.tones-row .t { flex: 1; height: 26px; border-radius: 9999px; border: 1px solid var(--field-line); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 9.5px; }
.tones-row .t.on { border-color: var(--amber); background: var(--amber); font-weight: 600; }
.ios-bar { height: 46px; padding: 0 18px; background: #DEDFE3; display: flex; align-items: center; justify-content: space-between; }

/* Sections */
.band { background: var(--paper-dim); }
.section { padding-top: 104px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 44px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.section h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 48px; line-height: 1.12; letter-spacing: -0.02em; }
.section-head p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.step { background: var(--paper); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.step .num { width: 40px; height: 40px; border-radius: 12px; background: var(--amber); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; font-size: 14px; }
.step h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.25; }
.step p { margin: 0; color: var(--muted); }
.aside { margin: 0; font-size: 17px; line-height: 1.55; }
.aside strong { font-weight: 600; }
.aside span { color: var(--muted); }

.their-msg { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 15px; }
.their-msg .bubble { max-width: none; padding: 9px 14px; box-shadow: 0 0 0 2px var(--amber); }
.tones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tone-card { border: 1px solid var(--line); border-top-width: 4px; border-radius: 20px; padding: 28px 32px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.tone-card figcaption { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; }
.fine-note { margin: -20px 0 0; font-size: 14px; color: var(--muted); }
.tone-card blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.36; }

.dark { background: var(--ink); color: var(--paper); }
.dark .label { color: var(--amber); }
.privacy-row { display: flex; flex-wrap: wrap; gap: 48px 80px; padding-top: 112px; padding-bottom: 112px; }
.privacy-intro { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.privacy-intro h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 1.07; letter-spacing: -0.02em; }
.privacy-intro h2 span { color: var(--amber); }
.privacy-intro p { margin: 0; max-width: 460px; font-size: 18px; line-height: 1.55; color: var(--muted-on-ink); }
.privacy-intro a { align-self: flex-start; margin-top: 8px; color: var(--amber); font-weight: 600; }
.privacy-intro a:hover { color: #F2BE6E; }
.checks { flex: 1 1 460px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--ink-line); }
.checks li:last-child { border-bottom: 1px solid var(--ink-line); }
.checks svg { flex: none; margin-top: 2px; }
.checks strong { display: block; font-weight: 600; font-size: 18px; }
.checks span { color: var(--muted-on-ink); }

.cta-band { background: var(--amber); }
.cta { padding-top: 104px; padding-bottom: 104px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.cta h2 { margin: 0; max-width: 720px; font-family: var(--display); font-weight: 700; font-size: 48px; line-height: 1.12; letter-spacing: -0.02em; }
.cta p { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.55; }
.cta .btn { margin-top: 8px; }

/* Footer */
.site-footer { margin-top: auto; background: var(--ink); color: var(--muted-on-ink); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 32px; padding-bottom: 40px; font-size: 14px; line-height: 20px;
}
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--amber); }
.site-footer nav { display: flex; gap: 24px; }

/* Sub pages */
.page-head { display: flex; flex-direction: column; gap: 20px; }
.page-head h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 1.07; letter-spacing: -0.02em; }
.page-head p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); }

.support { display: flex; flex-wrap: wrap; gap: 56px 80px; padding-top: 88px; padding-bottom: 112px; }
.support-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-card { margin-top: 12px; padding: 28px; border-radius: 20px; background: var(--paper-dim); display: flex; flex-direction: column; gap: 12px; }
.contact-card h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.25; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card .btn { align-self: flex-start; margin-top: 4px; min-height: 48px; }
.contact-card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.jump { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.jump a { color: var(--ink); }
.faq { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.faq h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.2; scroll-margin-top: 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform 150ms ease-out;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { margin: 0 0 22px; max-width: 660px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.faq details > div p { margin: 0 0 10px; }
.faq details > div ol, .faq details > div ul { margin: 0 0 10px; padding-left: 22px; }
.faq details > div li { margin-bottom: 4px; }
.faq strong { color: var(--ink); font-weight: 600; }

.legal { max-width: 820px; margin: 0 auto; padding: 88px 40px 112px; font-size: 17px; line-height: 1.65; }
.legal .page-head { margin-bottom: 8px; }
.legal .summary { margin: 0; font-size: 20px; line-height: 1.55; }
.legal h2 { margin: 52px 0 12px; font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.25; scroll-margin-top: 24px; }
.legal h3 { margin: 28px 0 8px; font-size: 18px; font-weight: 600; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { font-weight: 600; }
.note-box { margin: 24px 0 0; padding: 22px 24px; border-radius: 16px; background: var(--paper-dim); }
.note-box h2 { margin: 0 0 10px; font-size: 20px; }
.note-box ul { margin: 0; }
.note-box li { margin-bottom: 6px; }
.toc { margin: 28px 0 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; font-size: 15px; line-height: 1.6; }
.toc ol { margin: 8px 0 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc a { color: var(--ink); }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; }
.table-box table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 1.55; text-align: left; }
.table-box th, .table-box td { padding: 13px 16px; vertical-align: top; }
.table-box thead tr { background: var(--paper-dim); }
.table-box th { font-weight: 600; }
.table-box tbody tr { border-top: 1px solid var(--line); }

/* Phone and tablet */
@media (max-width: 900px) {
  .steps, .tones { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-header .wrap { padding-top: 20px; padding-bottom: 20px; }
  .logo { gap: 9px; }
  .logo svg { width: 32px; height: 51px; }
  .logo span { font-size: 31px; }
  .hero { padding-top: 44px; padding-bottom: 64px; gap: 44px; }
  .hero h1 { font-size: 44px; line-height: 1.09; }
  .lede { font-size: 18px; }
  .waitlist .btn { flex: 1 1 100%; }
  .phone { width: 310px; padding: 11px; border-radius: 52px; }
  .screen { height: 616px; border-radius: 41px; }
  .kb-top { gap: 5px; }
  .replying { font-size: 10px; padding: 0 7px; }
  .chip, .flirty { font-size: 9.5px; }
  .tones-row .t { font-size: 9px; }
  .reply { font-size: 14px; line-height: 20px; }
  .section { padding-top: 64px; padding-bottom: 64px; gap: 28px; }
  .section h2, .cta h2 { font-size: 34px; }
  .step { padding: 24px; }
  .tone-card { padding: 22px; }
  .tone-card blockquote { font-size: 19px; }
  .privacy-row { padding-top: 64px; padding-bottom: 64px; gap: 32px; }
  .privacy-intro h2 { font-size: 38px; }
  .cta { padding-top: 64px; padding-bottom: 64px; align-items: stretch; text-align: left; }
  .page-head h1 { font-size: 40px; }
  .support { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .faq summary { font-size: 18px; }
  .legal { padding: 48px 16px 64px; }
  .legal .summary { font-size: 18px; }
  .toc ol { columns: 1; }
  .site-footer .wrap { flex-direction: column-reverse; align-items: flex-start; }
}
