/* BobberIQ's public pages: the signed-out front page (index.html #auth-screen), /features,
   /why-bobberiq, /privacy and /terms. The palette and the typeface (Atkinson Hyperlegible Next)
   come from style.css, which the app shares; this file adds the page layouts. */


.site {
  --wide: 1120px;
  min-height: 100%; display: flex; flex-direction: column; overflow-x: clip;
  background: var(--bg); color: var(--text);
  font-size: 17px; line-height: 1.6;
}

.site :is(h1, h2, h3) { font-family: var(--font); font-weight: 700; color: var(--text); }
.site a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.site :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 18px;
  padding: 14px max(22px, calc((100% - var(--wide)) / 2));
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
}
.site .site-brand {
  display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none;
  font-weight: 800; font-size: 21px; letter-spacing: -0.02em;
}
.site-nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.site .site-nav a { color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 16px; }
.site .site-nav a:hover, .site .site-nav a[aria-current="page"] { color: var(--text); }
.site .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 0.5em; }
.site .site-nav a.site-cta { color: var(--text); border: 1px solid var(--rule); margin-left: 8px; font-weight: 600; }
.site .site-nav a.site-cta:hover { border-color: var(--text); }
@media (max-width: 600px) {
  .site .site-nav a:not(.site-cta) { display: none; }
}

.site-main { flex: 1; width: min(var(--wide), 100%); margin: 0 auto; padding: 0 22px 32px; }

/* Type */
.display {
  font-size: clamp(40px, 6.6vw, 74px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 22px;
  text-wrap: balance;
}
.display .sun { color: var(--sun); }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--muted); margin: 0 0 24px; max-width: 34em; text-wrap: pretty; }
.section-title { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 16px; max-width: 16em; text-wrap: balance; }
.eyebrow { font-size: 15px; color: var(--muted); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--sun); border-radius: 2px; }

/* Sections */
.block { padding: clamp(64px, 9vw, 112px) 0 0; }
.block-head { margin-bottom: clamp(32px, 4vw, 48px); }
.block-head .lead { margin-bottom: 0; }
.more-link { margin: 36px 0 0; font-weight: 600; }
.more-link a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.more-link a::after { content: " →"; }

/* A full-width tinted band, without making the page scroll sideways. */
.band {
  background: var(--surface-2); box-shadow: 0 0 0 100vmax var(--surface-2); clip-path: inset(0 -100vmax);
  margin-top: clamp(64px, 9vw, 112px); padding: clamp(56px, 8vw, 96px) 0;
}
.band + .block { padding-top: clamp(56px, 8vw, 96px); }

/* Hero: the pitch on the left, sign-in on the right. */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 5vw, 72px);
  align-items: end; padding: clamp(40px, 7vw, 96px) 0 0;
}
.hero-copy { padding-bottom: 8px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 15px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.page-hero { padding: clamp(48px, 8vw, 104px) 0 0; max-width: 860px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* Sign-in, in the hero. The card's states and ids belong to app.js. */
.auth.landing { display: block; place-items: initial; padding: 0; }
.site .auth-card {
  width: 100%; max-width: 440px; justify-self: end; text-align: left; justify-items: stretch; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow);
  padding: 28px;
}
.site .auth-card .auth-title { margin: 0; font-size: 27px; letter-spacing: -0.025em; line-height: 1.15; font-weight: 800; }
.site .auth-lede { color: var(--muted); font-size: 16px; }
.site .auth-form { margin-top: 4px; gap: 10px; }
.site .auth-form input { background: var(--bg); border-color: var(--border); border-radius: 12px; padding: 14px 16px; font-size: 17px; }
.site .auth-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.site .auth-form .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); border-radius: 12px; padding: 15px; font-size: 17px; font-weight: 650; }
.site .auth-card .link { font-size: 15px; justify-self: start; color: var(--accent); }
.site .auth-note { color: var(--faint); font-size: 14px; }
.site .auth-card .auth-note a { color: var(--muted); }
.landing .auth-bob { display: none; }
.for-app { display: none; }
@media (max-width: 900px) { .site .auth-card { justify-self: stretch; max-width: none; } }
.code-input { text-align: center; font-size: 24px !important; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }

/* The example chat, drawn in HTML, with ripples behind it. */
.demo { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.demo-copy .lead { margin-bottom: 28px; }
.demo-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.demo-points li { padding-left: 20px; border-left: 2px solid var(--rule); }
.demo-points strong { display: block; color: var(--text); font-weight: 650; }
.demo-points span { color: var(--muted); }
.demo-stage { position: relative; display: grid; justify-items: center; }
.demo-stage .ripples { position: absolute; inset: -12% -20%; width: 140%; height: 124%; color: var(--accent); opacity: 0.14; pointer-events: none; }
.sample-chat {
  position: relative; width: min(440px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: 28px; box-shadow: var(--shadow); padding: 22px 18px; display: grid; gap: 10px; font-size: 16px; line-height: 1.45;
}
.sample-chat .b { padding: 11px 15px; border-radius: 20px; max-width: 86%; }
.sample-chat .b.me { justify-self: end; background: var(--user); color: var(--user-ink); border-bottom-right-radius: 6px; }
.sample-chat .b.gf { justify-self: start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.sample-chat .who { font-size: 13px; color: var(--faint); margin: 4px 6px 0; }
.ex-bite { display: grid; gap: 8px; margin: 2px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.ex-bite-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.ex-score { font-size: 30px; line-height: 1; color: var(--text); font-weight: 800; letter-spacing: -0.02em; }
.ex-score small { font-size: 15px; color: var(--faint); font-weight: 400; }
.ex-bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; align-items: end; height: 38px; }
.ex-bars i { display: block; border-radius: 2px; background: color-mix(in srgb, var(--accent) 28%, transparent); }
.ex-bars i.hot { background: var(--sun); }
.ex-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); }
.sample-note { font-size: 13px; color: var(--faint); margin: 16px 0 0; text-align: center; position: relative; }
@media (max-width: 900px) { .demo { grid-template-columns: minmax(0, 1fr); } }

/* Benefits: an editorial grid with hairlines, not boxes. */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.benefit { border-top: 1px solid var(--rule); padding: 22px 0 34px; }
.benefit h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 8px; }
.benefit p { margin: 0; color: var(--muted); }
.benefit .try { margin-top: 12px; font-size: 15px; color: var(--faint); }
.benefit .try q { color: var(--text); quotes: "“" "”"; }
@media (max-width: 900px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .benefits { grid-template-columns: minmax(0, 1fr); } .benefit { padding-bottom: 26px; } }
.data-note { margin: 24px 0 0; color: var(--faint); font-size: 15px; max-width: 46em; }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--rule); padding-top: 20px; }
.steps li::before { content: counter(step); display: block; font-size: 44px; line-height: 1; color: var(--sun); margin-bottom: 14px; font-weight: 800; letter-spacing: -0.03em; }
.steps h3 { font-size: 21px; margin: 0 0 6px; letter-spacing: -0.015em; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Features page: jump links, then sections */
.page-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.site .page-jump a { display: inline-block; padding: 9px 16px; border: 1px solid var(--rule); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 15px; }
.site .page-jump a:hover { border-color: var(--text); }
.feature-section { scroll-margin-top: 80px; }
.feature-section .section-title { font-size: clamp(30px, 4vw, 44px); }

/* Comparison */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-top: 1px solid var(--rule); }
.compare thead th { border-top: 0; font-weight: 800; font-size: 19px; padding-bottom: 12px; }
.compare thead th:nth-child(3) { color: var(--faint); }
.compare tbody th { font-weight: 700; width: 24%; color: var(--text); }
.compare td.us { color: var(--text); width: 40%; }
.compare td.them { color: var(--faint); }
@media (max-width: 640px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { border-top: 1px solid var(--rule); padding: 18px 0; }
  .compare tbody th, .compare td { border: 0; padding: 0; }
  .compare tbody th { margin-bottom: 6px; }
  .compare td.us::before { content: "BobberIQ: "; font-weight: 650; }
  .compare td.them { margin-top: 6px; font-size: 15px; }
  .compare td.them::before { content: "Typical apps: "; }
}

/* Closing call to action */
.closer { text-align: center; padding: clamp(72px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); }
.closer .section-title { margin: 0 auto 14px; max-width: 14em; }
.closer .lead { margin: 0 auto 30px; }
.site .btn-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: 18px; text-decoration: none;
}
.site .btn-link:hover { filter: brightness(1.08); }

/* Long-form pages: privacy and terms */
.doc { max-width: 760px; margin: 0 auto; padding-top: 40px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 8px; }
.doc h2 { font-size: 26px; margin: 36px 0 8px; }
.doc h3 { font-size: 19px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc .updated { color: var(--faint); margin: 0 0 18px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 12px; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--border); padding: 8px 6px; vertical-align: top; }
.draft-banner {
  border: 1px solid color-mix(in srgb, var(--sun) 50%, transparent); background: color-mix(in srgb, var(--sun) 10%, var(--surface));
  border-radius: 14px; padding: 12px 16px; margin: 0 0 20px; font-size: 15px;
}

/* Footer */
.site-foot {
  border-top: 1px solid var(--rule); padding: 26px max(22px, calc((100% - var(--wide)) / 2)) 32px;
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center; color: var(--faint); font-size: 15px;
}
.site-foot nav { display: flex; gap: 6px 20px; flex-wrap: wrap; margin-left: auto; }
.site .site-foot a { color: var(--muted); text-decoration: none; }
.site .site-foot a:hover { color: var(--text); text-decoration: underline; }

/* In the Home Screen app there is nothing to sell: only the sign-in card shows, centred. */
html.standalone .landing .site-head,
html.standalone .landing .hero-copy,
html.standalone .landing .block,
html.standalone .landing .band,
html.standalone .landing .closer,
html.standalone .landing .site-foot nav { display: none; }
html.standalone .landing .hero { grid-template-columns: minmax(0, 1fr); min-height: 100dvh; padding: 24px 0; align-items: center; justify-items: center; }
html.standalone .landing .auth-card { justify-self: center; text-align: center; justify-items: center; max-width: 440px; }
html.standalone .landing .auth-bob { display: inline-block; }
html.standalone .landing .for-site { display: none; }
html.standalone .landing .for-app { display: inline; }
html.standalone .landing .site-foot { justify-content: center; }

@media (prefers-reduced-motion: no-preference) {
  html:has(.site) { scroll-behavior: smooth; }
}
