/* Tempo website. Same tokens as the app's Daylight design system. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; font-display: swap; src: url("/fonts/BricolageGrotesque-Medium.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url("/fonts/BricolageGrotesque-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("/fonts/BricolageGrotesque-Bold.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("/fonts/InstrumentSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url("/fonts/InstrumentSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("/fonts/InstrumentSans-SemiBold.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #16161B;
  --band: #1A1A20;
  --surface: #1E1E24;
  --raised: #26262F;
  --line: #26262F;
  --line-strong: #34343E;
  --frame: #2E2E37;
  --text: #F2F0EB;
  --text-2: #D4D2CF;
  --soft: #B9B8C2;
  --muted: #8C8A93;
  --accent: #F2B847;
  --accent-hover: #F7CC77;
  --on-accent: #1D1608;
  --dawn: #F5A66B;
  --morning: #F2C76E;
  --noon: #8FC7E6;
  --dusk: #E58AA6;
  --night: #7D79D6;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--ui); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--text); margin: 0; }
p { margin: 0; }
strong { color: var(--text); font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { left: 8px; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.5px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 28px; flex: 1 1 auto; font-weight: 500; font-size: 16px; }
.site-nav a { color: var(--soft); text-decoration: none; padding: 11px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { color: var(--text); border-color: var(--soft); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 15px; }

.sky { display: flex; gap: 6px; }
.sky i { width: 44px; height: 8px; border-radius: 4px; display: block; }
.sky i:nth-child(1) { background: var(--dawn); }
.sky i:nth-child(2) { background: var(--morning); }
.sky i:nth-child(3) { background: var(--noon); }
.sky i:nth-child(4) { background: var(--dusk); }
.sky i:nth-child(5) { background: var(--night); }
.sky.small i { width: 32px; height: 6px; border-radius: 3px; }

.kicker { color: var(--accent); font-weight: 600; font-size: 16px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--soft); }
.fine { font-size: 14px; color: var(--muted); }

.phone { border-radius: 38px; border: 1px solid var(--frame); background: #0E0E12; }
.phone.lift { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }

/* Home: hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 64px; padding-bottom: 96px; }
.hero-copy { flex: 1.15 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-weight: 700; font-size: clamp(46px, 7vw, 88px); line-height: 0.98; letter-spacing: -2.5px; }
.hero .lead { font-size: 20px; max-width: 540px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-art { flex: 1 1 440px; min-width: 0; display: flex; justify-content: center; align-items: flex-end; gap: 20px; position: relative; }
.hero-art .phone { width: 47%; max-width: 290px; }
.hero-art .phone:nth-child(2) { margin-bottom: 56px; }
.hero-art .sol { position: absolute; left: -8px; bottom: -36px; width: 120px; }

.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--band); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.facts div { display: flex; flex-direction: column; gap: 6px; }
.facts b { font-family: var(--display); font-weight: 600; font-size: 22px; }
.facts span { color: var(--soft); font-size: 16px; line-height: 1.5; }

/* Home: features */
.features { display: flex; flex-direction: column; gap: 140px; padding-top: 120px; padding-bottom: 40px; }
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.feature.flip { flex-wrap: wrap-reverse; }
.feature-art { flex: 1 1 380px; display: flex; justify-content: center; gap: 16px; }
.feature-art .phone { width: 100%; max-width: 300px; border-radius: 40px; }
.feature-art.pair .phone { width: 48%; max-width: 270px; border-radius: 34px; }
.feature-art.pair .phone:nth-child(2) { margin-top: 60px; }
.feature-copy { flex: 1.25 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.feature-copy h2, .section-title { font-weight: 700; font-size: clamp(34px, 4.4vw, 48px); line-height: 1.05; letter-spacing: -1.2px; }
.feature-copy p:not(.kicker) { font-size: 18px; color: var(--soft); max-width: 560px; }
.feature-copy p.fine { font-size: 15px; color: var(--muted); }
.feature-copy ul { margin: 0; padding-left: 20px; font-size: 17px; line-height: 1.9; color: var(--text-2); }

/* Home: Sol */
.sol-panel { background: var(--surface); border-radius: 32px; padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px); display: flex; flex-direction: column; gap: 40px; }
.sol-panel header { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.sol-panel header p:not(.kicker) { font-size: 18px; color: var(--soft); }
.poses { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.pose { background: var(--raised); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pose img { width: 96px; height: 96px; }
.pose b { font-weight: 600; }
.pose span { font-size: 14px; color: var(--soft); line-height: 1.45; }

/* Home: privacy + docs teaser */
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > div:first-child { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split > div:first-child p:not(.kicker) { font-size: 18px; color: var(--soft); }
.cards { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.card b { font-weight: 600; font-size: 18px; }
.card span { color: var(--soft); font-size: 15px; line-height: 1.55; }
.teaser { border: 1px solid var(--frame); border-radius: 32px; padding: clamp(28px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.teaser > div:first-child { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.teaser h2 { font-weight: 700; font-size: 40px; line-height: 1.1; letter-spacing: -1px; }
.teaser p { font-size: 17px; color: var(--soft); }
.toc { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 24px; font-size: 16px; }
.toc a { color: var(--text-2); text-decoration: none; padding: 11px 0; border-bottom: 1px solid var(--line); }
.toc a:hover { color: var(--text); }
.section { padding-top: 120px; padding-bottom: 0; }
.section.last { padding-bottom: 120px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 120px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-top: 48px; padding-bottom: 56px; }
.footer-brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.footer-brand .brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-brand .brand span { font-size: 20px; }
.footer-brand p { font-size: 14px; color: var(--muted); max-width: 320px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-cols div { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.footer-cols span { color: var(--muted); font-size: 13px; font-weight: 600; padding-bottom: 4px; }
.footer-cols a { color: var(--text-2); text-decoration: none; padding: 6px 0; }
.footer-cols a:hover { color: var(--text); }
.footer-legal { flex: 1 1 100%; font-size: 13px; color: var(--muted); }

/* Page heads (docs, support, legal) */
.page-head { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 40px; }
.page-head img.sol { width: 96px; height: 96px; }
.page-head > div { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.page-head h1 { font-weight: 700; font-size: clamp(40px, 6vw, 56px); line-height: 1.02; letter-spacing: -1.6px; }
.page-head p { font-size: 19px; line-height: 1.55; color: var(--soft); max-width: 680px; }

.search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--frame); border-radius: 14px; padding: 0 16px; height: 52px; }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font: inherit; font-size: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-bottom: 40px; }
.sidebar { flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.sidebar .group { color: var(--muted); font-size: 13px; font-weight: 600; padding: 18px 12px 8px; }
.sidebar .group:first-child { padding-top: 0; }
.sidebar a { color: var(--soft); text-decoration: none; padding: 10px 12px; border-radius: 10px; }
.sidebar a:hover { color: var(--text); background: var(--surface); }
.sidebar a.active { color: var(--text); background: var(--raised); font-weight: 600; }
@media (min-width: 900px) { .sidebar { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; } }

.prose { flex: 999 1 560px; min-width: 0; max-width: 760px; font-size: 17px; line-height: 1.7; color: #CFCDD3; }
.prose h2 { font-weight: 700; font-size: 32px; line-height: 1.15; letter-spacing: -0.8px; margin: 0 0 14px; }
.prose h3 { font-family: var(--ui); font-weight: 600; font-size: 19px; margin: 24px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose code { font-size: 15px; background: var(--raised); padding: 2px 6px; border-radius: 6px; }
.doc-section { padding: 0 0 48px; margin: 0 0 48px; border-bottom: 1px solid var(--line); }
.doc-section:last-of-type { border-bottom: 0; }
.doc-section .summary { color: var(--muted); font-size: 15px; margin: -6px 0 16px; }
.doc-figure { float: right; width: 200px; margin: 4px 0 16px 28px; }
.doc-figure img { border-radius: 28px; border: 1px solid var(--frame); }
@media (max-width: 640px) { .doc-figure { float: none; margin: 0 auto 20px; } }
.no-results { color: var(--soft); background: var(--surface); border-radius: 16px; padding: 20px; }

/* Support */
.contact-card { flex: 1 1 340px; min-width: 0; background: var(--surface); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.contact-card img { width: 72px; height: 72px; }
.contact-card b { font-family: var(--display); font-weight: 600; font-size: 24px; }
.contact-card a { font-size: 18px; font-weight: 600; padding: 4px 0; }
.faq { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.faq h2 { font-weight: 700; font-size: 32px; letter-spacing: -0.8px; margin: 0 0 8px; }
.faq details { background: var(--surface); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: 0 0 auto; transition: transform 0.2s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .faq summary svg { transition: none; } }
.faq .answer { padding: 0 0 20px; font-size: 16px; line-height: 1.65; color: #CFCDD3; }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin: 0; }
.aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.aside .box { border: 1px solid var(--frame); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.aside .box b { font-size: 18px; }
.aside .box span { font-size: 15px; line-height: 1.6; color: var(--soft); }

/* Legal */
.legal-tabs { display: flex; background: var(--surface); border-radius: 999px; padding: 4px; gap: 4px; }
.legal-tabs a { flex: 1; text-align: center; color: var(--soft); text-decoration: none; font-weight: 600; font-size: 15px; padding: 11px 12px; border-radius: 999px; }
.legal-tabs a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.legal-meta { font-size: 15px; color: var(--muted); margin: 8px 0 20px; }
.short { background: var(--surface); border-radius: 20px; padding: 24px; display: flex; gap: 18px; align-items: flex-start; margin: 0 0 28px; }
.short img { width: 52px; height: 52px; flex: 0 0 auto; }
.short b { display: block; font-size: 18px; margin-bottom: 6px; }
.short span { font-size: 16px; line-height: 1.6; }
.legal h1 { font-weight: 700; font-size: clamp(40px, 6vw, 56px); line-height: 1.02; letter-spacing: -1.6px; margin: 18px 0 0; }
.legal h2 { font-size: 26px; margin: 36px 0 12px; scroll-margin-top: 16px; }

/* 404 */
.missing { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 96px; padding-bottom: 96px; }
.missing img { width: 140px; }
.missing h1 { font-size: 48px; letter-spacing: -1.2px; }
