/* Bedrock site. One stylesheet, no build step. Tokens match the app's Theme brief. */

:root {
  --bg: #FFFFFF;
  --surface: #F5F5F5;
  --text: #000000;
  --secondary: #6B6B6B;
  --hairline: #E5E5E5;
  --fill: #000000;
  --onfill: #FFFFFF;
  --frame: #111111;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 16px;
  --max: 1040px;
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1C1C1E;
    --text: #FFFFFF;
    --secondary: #9A9A9A;
    --hairline: #2C2C2E;
    --fill: #FFFFFF;
    --onfill: #000000;
    --frame: #3A3A3C;
  }
}
/* Sections that are always black, whatever the system setting. */
.dark {
  --bg: #000000;
  --surface: #1C1C1E;
  --text: #FFFFFF;
  --secondary: #9A9A9A;
  --hairline: #2C2C2E;
  --fill: #FFFFFF;
  --onfill: #000000;
  --frame: #3A3A3C;
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
strong { font-weight: 600; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 680px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: -0.04em; }
.mark { width: 26px; height: 26px; flex: none; }
.mark rect:first-child { fill: var(--fill); }
.mark rect { fill: var(--onfill); }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 500; }
.nav-links a:hover { text-decoration: underline; }
.badge { display: inline-block; line-height: 0; }
.badge img { height: 34px; width: auto; }
.nav-links .badge img { height: 30px; }
@media (max-width: 419px) {
  .nav-links .hide-narrow { display: none; }
  .nav-links { gap: 12px; }
  .nav-links .badge img { height: 28px; }
}

/* Type */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
h1 { font-size: clamp(40px, 8vw, 72px); letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(28px, 4.5vw, 44px); }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.sub { color: var(--secondary); font-size: clamp(17px, 2.2vw, 21px); }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--secondary); }
.small { font-size: 14px; color: var(--secondary); line-height: 1.5; }

/* Sections */
.section { padding: 72px 0; }
.section.tight { padding-top: 32px; }
.center { text-align: center; }
.hero { padding: 56px 0 24px; text-align: center; }
.hero .sub { max-width: 560px; margin: 20px auto 0; }
.hero .badge { margin: 28px auto 0; }
.hero .phone-wrap { margin-top: 48px; }
.section .sub { max-width: 560px; margin-top: 12px; }
.center .sub { margin-left: auto; margin-right: auto; }

/* Buttons. One filled button per page. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 28px;
  border-radius: var(--radius);
  background: var(--fill);
  color: var(--onfill);
  font-size: 17px;
  font-weight: 600;
  border: 0;
  font-family: var(--font);
  cursor: pointer;
}
.btn.pill { border-radius: 28px; padding: 0 32px; }
.btn.block { width: 100%; }
.textbtn {
  display: inline-block;
  background: none;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--secondary);
  cursor: pointer;
  padding: 8px 0;
}
.textbtn:hover { text-decoration: underline; }

/* Feature cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 40px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.card svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-top: 18px; }
.card p { color: var(--secondary); margin-top: 8px; font-size: 16px; }
@media (prefers-color-scheme: dark) { .card { border: 1px solid var(--hairline); } }
.dark .card { border: 1px solid var(--hairline); }

/* Included list */
.included { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.included li { list-style: none; background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 15px; }
@media (prefers-color-scheme: dark) { .included li { border: 1px solid var(--hairline); } }

/* Spotlight */
.spot .wrap { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.spot .phone-wrap { max-width: 340px; }
@media (min-width: 800px) { .spot .wrap { grid-template-columns: 1fr 1fr; } }
.spot h2 { margin-top: 10px; }
.spot .small { margin-top: 14px; max-width: 420px; }

/* FAQ */
.faq { max-width: 720px; margin: 32px auto 0; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 400;
  color: var(--secondary);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--secondary); padding: 0 44px 20px 0; font-size: 17px; }

/* CTA band */
.cta { text-align: center; padding: 80px 0; }
.cta .small { margin: 16px auto 28px; max-width: 460px; }

/* Footer */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--hairline); font-size: 15px; }
.footer .cols { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 640px) { .footer .cols { grid-template-columns: 1fr 1fr 1fr; } }
.footer h4 { font-size: 13px; font-weight: 600; color: var(--secondary); margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer li { margin: 8px 0; }
.footer a:hover { text-decoration: underline; }
.footer .copy { color: var(--secondary); margin-top: 40px; font-size: 13px; }

/* Text pages */
.page { max-width: 680px; margin: 0 auto; padding: 48px var(--gutter) 80px; }
.page h1 { font-size: 40px; letter-spacing: -0.03em; }
.page .updated { color: var(--secondary); font-size: 14px; margin: 8px 0 32px; }
.page h2 { font-size: 24px; margin: 40px 0 10px; }
.page h3 { font-size: 18px; margin: 24px 0 4px; }
.page p { margin: 0 0 14px; }
.page p a, .page li a { text-decoration: underline; text-underline-offset: 2px; }
.page .card { margin: 24px 0; }
.page .card p { margin: 0; }
.page .card p + p { margin-top: 8px; }
.page ul { padding-left: 20px; margin-bottom: 14px; }

/* Phone rendering. Built in HTML and CSS at iPhone point scale (390 wide) and scaled by container width. */
.phone-wrap { container-type: inline-size; width: 100%; max-width: 390px; margin-left: auto; margin-right: auto; }
.phone {
  --u: calc(100cqw / 390);
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 844;
  background: var(--bg);
  color: var(--text);
  border-radius: calc(var(--u) * 44);
  border: calc(var(--u) * 8) solid var(--frame);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.ph-status { height: calc(var(--u) * 44); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--u) * 26); font-size: calc(var(--u) * 13); font-weight: 600; }
.ph-status i { display: block; width: calc(var(--u) * 22); height: calc(var(--u) * 10); border-radius: calc(var(--u) * 3); border: calc(var(--u) * 1.5) solid currentColor; }
.ph-screen { flex: 1; padding: calc(var(--u) * 12) calc(var(--u) * 20) calc(var(--u) * 20); display: flex; flex-direction: column; min-height: 0; }
.ph-gear { display: flex; justify-content: flex-end; }
.ph-gear svg { width: calc(var(--u) * 22); height: calc(var(--u) * 22); stroke: currentColor; fill: none; stroke-width: 1.8; }
.ph-streak { font-size: calc(var(--u) * 96); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-top: calc(var(--u) * 20); }
.ph-streak small { font-size: calc(var(--u) * 22); font-weight: 400; color: var(--secondary); letter-spacing: 0; margin-left: calc(var(--u) * 6); }
.ph-sub { color: var(--secondary); font-size: calc(var(--u) * 15); margin-top: calc(var(--u) * 6); }
.ph-card { background: var(--surface); border-radius: calc(var(--u) * 16); padding: calc(var(--u) * 18); margin-top: calc(var(--u) * 32); }
.dark .ph-card { border: calc(var(--u) * 1) solid var(--hairline); }
@media (prefers-color-scheme: dark) { .ph-card { border: calc(var(--u) * 1) solid var(--hairline); } }
.ph-card.row { display: flex; gap: calc(var(--u) * 14); align-items: center; }
.ph-thumb { width: calc(var(--u) * 56); height: calc(var(--u) * 56); border-radius: calc(var(--u) * 12); background: var(--hairline); flex: none; }
.ph-eyebrow { font-size: calc(var(--u) * 13); color: var(--secondary); }
.ph-cardtitle { font-size: calc(var(--u) * 20); font-weight: 600; margin-top: calc(var(--u) * 4); }
.ph-cardsub { font-size: calc(var(--u) * 14); color: var(--secondary); margin-top: calc(var(--u) * 4); }
.ph-btn { height: calc(var(--u) * 56); border-radius: calc(var(--u) * 16); background: var(--fill); color: var(--onfill); display: flex; align-items: center; justify-content: center; font-size: calc(var(--u) * 17); font-weight: 600; margin-top: auto; }
.ph-btn.disabled { background: var(--surface); color: var(--secondary); }
.ph-nav { margin-top: auto; display: flex; justify-content: space-around; border-top: calc(var(--u) * 1) solid var(--hairline); padding: calc(var(--u) * 10) 0 calc(var(--u) * 4); font-size: calc(var(--u) * 11); color: var(--secondary); text-align: center; }
.ph-btn + .ph-nav { margin-top: calc(var(--u) * 12); }
.ph-nav b { color: var(--text); font-weight: 600; }
.ph-tab { width: calc(var(--u) * 22); height: calc(var(--u) * 22); border-radius: calc(var(--u) * 6); border: calc(var(--u) * 1.5) solid currentColor; margin: 0 auto calc(var(--u) * 4); }
.ph-tab.on { background: var(--text); border-color: var(--text); }

/* Record screen */
.rec-head { display: flex; align-items: flex-end; gap: calc(var(--u) * 18); margin-top: calc(var(--u) * 4); }
.rec-num b { display: block; font-size: calc(var(--u) * 80); font-weight: 800; letter-spacing: -0.045em; line-height: 0.85; }
.rec-num small { display: block; font-size: calc(var(--u) * 15); font-weight: 500; color: var(--secondary); margin-top: calc(var(--u) * 8); white-space: nowrap; }
.rec-side { flex: 1; min-width: 0; }
.rec-side .k { font-size: calc(var(--u) * 22); font-weight: 700; letter-spacing: -0.01em; }
.bar { height: calc(var(--u) * 38); border-radius: calc(var(--u) * 8); background: var(--hairline); overflow: hidden; margin-top: calc(var(--u) * 10); }
.bar i { display: flex; align-items: center; justify-content: flex-end; padding-right: calc(var(--u) * 10); height: 100%; background: var(--text); border-radius: calc(var(--u) * 8); color: var(--bg); font-size: calc(var(--u) * 15); font-weight: 700; font-style: normal; }
.seg { display: flex; background: var(--surface); border-radius: calc(var(--u) * 12); padding: calc(var(--u) * 3); margin-top: calc(var(--u) * 16); }
.seg span { flex: 1; text-align: center; font-size: calc(var(--u) * 14); font-weight: 600; padding: calc(var(--u) * 8) 0; border-radius: calc(var(--u) * 10); color: var(--secondary); }
.seg span.on { background: var(--fill); color: var(--onfill); }
.ydots { display: grid; grid-template-columns: repeat(20, 1fr); gap: calc(var(--u) * 3); margin-top: calc(var(--u) * 16); }
.ydots i { aspect-ratio: 1; border-radius: calc(var(--u) * 4); background: var(--hairline); display: block; }
.ydots i.on { background: var(--text); }
.ydots i.future { background: var(--surface); }
.yr { font-size: calc(var(--u) * 13); color: var(--secondary); margin-top: calc(var(--u) * 10); display: flex; justify-content: space-between; }
.rec-stats { display: flex; gap: calc(var(--u) * 10); margin-top: calc(var(--u) * 16); }
.rec-stats div { flex: 1; min-width: 0; background: var(--surface); border-radius: calc(var(--u) * 12); padding: calc(var(--u) * 10) calc(var(--u) * 12); display: flex; justify-content: center; align-items: baseline; gap: calc(var(--u) * 8); }
.rec-stats .k { font-size: calc(var(--u) * 12); color: var(--secondary); }
.rec-stats .v { font-size: calc(var(--u) * 16); font-weight: 700; white-space: nowrap; }

/* Invite */
.invite { max-width: 440px; margin: 0 auto; padding: 48px var(--gutter) 64px; text-align: center; }
.invite h1 { font-size: 36px; letter-spacing: -0.03em; margin-top: 32px; }
.invite .sub { margin-top: 12px; }
.invite .code-card { background: var(--surface); border-radius: var(--radius); padding: 20px; margin-top: 28px; }
@media (prefers-color-scheme: dark) { .invite .code-card { border: 1px solid var(--hairline); } }
.invite .code { font-size: 32px; font-weight: 700; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.invite .btn { margin-top: 24px; }
.invite .actions { display: flex; justify-content: center; gap: 24px; margin-top: 8px; }
.invite .mark-big { width: 72px; height: 72px; margin: 0 auto; }
.invite .mark-big rect:first-child { fill: var(--fill); }
.invite .mark-big rect { fill: var(--onfill); }
#clip { position: absolute; left: -9999px; top: 0; opacity: 0; }

/* Utility */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

[hidden] { display: none !important; }
