/* ==========================================================================
   Callin — product page (app 009)
   Imported from claudedesign/callin/v1 (the "Bundled Page" export).

   The handoff shipped every rule as an inline style attribute; they are
   consolidated into the classes below per CLAUDE.md (external by default).

   Three deliberate deviations from the handoff, all house rules:
     1. Theme is driven by [data-dark="true"] on <html> (site-wide `hls-dark`
        key). Dark is the site default and the design IS dark, so the dark
        tokens live on :root and light is the opt-out branch. Never data-theme.
     2. The design's darkest text tier (#5b6068 on #111214 = 2.9:1) is not used
        for text anywhere — footer, metadata and mockup labels use --faint
        (#8f959e, 6.2:1) so the a11y gate stays >= 95.
     3. IBM Plex Sans/Mono are self-hosted (latin subsets lifted straight out of
        the bundle) instead of pulled from Google Fonts: same look, one fewer
        third-party origin, no render-blocking cross-origin stylesheet.
   ========================================================================== */

/* ── Fonts: latin subsets only, straight from the handoff bundle ────────── */
@font-face {
  font-family: 'IBM Plex Sans Local';
  font-style: normal;
  font-weight: 400 600;          /* the bundled latin face is variable */
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
                 U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono Local';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
                 U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono Local';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
                 U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* Dark — the design's palette, and the site default */
  --bg:        #111214;
  --bg-alt:    #0d0e10;
  --surface:   #17181b;
  --line:      #1f2126;
  --line-2:    #26282c;
  --line-3:    #33363b;
  --ink:       #f1f3f4;
  --body:      #d7dade;
  --muted:     #9aa0a6;
  --faint:     #8f959e;
  --accent:    #2fd4f0;
  --accent-ink:#2fd4f0;
  --rec:       #ff4d52;
  --btn-bg:    linear-gradient(180deg, #f7f8fa, #dfe2e6);
  --btn-bg-hover: #ffffff;
  --btn-ink:   #111214;
  --shadow-btn: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 6px 18px rgba(0, 0, 0, .4);

  --font-sans: 'IBM Plex Sans Local', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono Local', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap:      1080px;
  --gutter:    32px;
}

html:not([data-dark="true"]) {
  /* Light — same structure, contrast-checked against white/near-white */
  --bg:        #f5f6f7;
  --bg-alt:    #ffffff;
  --surface:   #ffffff;
  --line:      #e3e6e9;
  --line-2:    #dcdfe3;
  --line-3:    #c8cdd3;
  --ink:       #16181b;
  --body:      #3f444a;
  --muted:     #565c63;   /* 6.9:1 on #f5f6f7 */
  --faint:     #565c63;
  --accent:    #0b6f83;   /* the design's cyan is 1.9:1 on white — darkened */
  --accent-ink:#0b6f83;
  --rec:       #c0272b;
  --btn-bg:    #16181b;
  --btn-bg-hover: #000000;
  --btn-ink:   #ffffff;
  --shadow-btn: 0 6px 18px rgba(0, 0, 0, .16);
}

/* ── Base ───────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent-ink); text-decoration: none; }
/* Inline links inside prose are underlined: colour alone is not a 3:1
   distinction from the surrounding body text (axe link-in-text-block). */
p a { text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); }

.wrap {
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── humbleha.us site chrome (standard nav — CLAUDE.md) ─────────────────── */
nav[aria-label="Site navigation"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
@media (max-width: 540px) { nav[aria-label="Site navigation"] { padding: .75rem 1rem; } }
.nav-brand { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.nav-brand a {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-brand a:hover { color: var(--accent-ink); text-decoration: none; }
.exp-badge {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--faint);
  border: 1px solid var(--line-3);
  border-radius: 6px;
  padding: .15rem .4rem;
  flex-shrink: 0;
}
.nav-right { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.donate-link {
  font-size: .8rem;
  color: var(--muted);
  white-space: nowrap;
  position: relative;
}
.donate-link:hover { color: var(--accent-ink); text-decoration: none; }
.donate-link::before {   /* 44px tap target without changing the visual box */
  content: ''; position: absolute; top: 50%; left: 0;
  width: 100%; height: 44px; transform: translateY(-50%);
}
.dark-toggle {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-3);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  color: var(--ink);
}
.dark-toggle::after { content: '🌙'; }
html:not([data-dark="true"]) .dark-toggle::after { content: '☀️'; }
.dark-toggle::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; transform: translate(-50%, -50%);
}

/* ── Brand row (the design's header, minus its own nav links) ───────────── */
.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
}
.brand-row img { width: 48px; height: 48px; }
.brand-name {
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -.03em;
  color: var(--ink);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 88px;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 13px;
  border: 1px solid var(--line-3);
  color: var(--faint);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .1em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.05;
  letter-spacing: -.02em;
  font-weight: 600;
  text-wrap: balance;
}
.lede {
  margin: 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.ctas { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-ink);
  box-shadow: var(--shadow-btn);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
a.btn:hover { background: var(--btn-bg-hover); color: var(--btn-ink); text-decoration: none; }
.btn[disabled] { cursor: default; opacity: .85; }
.btn-ghost {
  background: none;
  box-shadow: none;
  border-color: var(--line-3);
  color: var(--body);
  font-weight: 500;
}
a.btn-ghost:hover { background: none; color: var(--ink); border-color: var(--faint); text-decoration: none; }
.cta-note {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--faint);
}

/* ── Menu-bar mockup (stays dark in both themes: it is a picture of the app)  */
.mock {
  --m-bg:    #1d1f22;
  --m-well:  #0d0e10;
  --m-line:  #2b2e33;
  --m-edge:  #33363b;
  --m-ink:   #d7dade;
  --m-muted: #8f959e;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .7));
}
.mock-tip {
  width: 0; height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 11px solid var(--m-bg);
}
.mock-body {
  display: flex;
  flex-direction: column;
  width: 268px;
  max-width: 100%;
  border-radius: 18px;
  background: var(--m-bg);
  border: 1px solid var(--m-edge);
  overflow: hidden;
}
.mock-feed {
  position: relative;
  margin: 12px 12px 0;
  height: 244px;
  border-radius: 13px;
  background: repeating-linear-gradient(45deg, #0d0e10 0 10px, #131418 10px 20px);
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, .9), inset 0 -1px 0 rgba(255, 255, 255, .05);
  display: grid;
  place-items: center;
}
.mock-feed-label { color: var(--m-muted); font-family: var(--font-mono); font-size: 11px; }
.mock-live {
  position: absolute; top: 10px; left: 12px;
  display: flex; align-items: center; gap: 6px;
  color: #e8eaed; font-family: var(--font-mono); font-weight: 500; font-size: 10px;
}
.mock-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff4d52;
  animation: callin-rec 1.4s infinite;
}
@keyframes callin-rec { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .mock-live-dot { animation: none; } }
.mock-conn {
  position: absolute; top: 8px; right: 10px;
  display: flex; align-items: center; gap: 6px;
  height: 20px; padding: 0 9px;
  border-radius: 10px;
  background: rgba(13, 14, 16, .8);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #2fd4f0;
  font-family: var(--font-mono); font-weight: 500; font-size: 9px; letter-spacing: .06em;
}
.mock-conn span { width: 6px; height: 6px; border-radius: 50%; background: #2fd4f0; }
.mock-rows { display: flex; flex-direction: column; padding: 6px 0; margin-top: 6px; }
.mock-row {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 40px; padding: 0 16px;
  color: var(--m-ink); font-size: 12px;
}
.mock-row + .mock-row::before {   /* inset hairline, drawn rather than an <hr> */
  content: '';
  position: absolute; top: 0; left: 16px; right: 16px;
  height: 1px; background: var(--m-line);
}
.mock-row dt { color: var(--m-muted); margin: 0; }
.mock-row dd { margin: 0; display: flex; align-items: center; gap: 6px; }
.mock-row .caret { color: var(--m-muted); }
.mock-meter { flex: 1; display: flex; gap: 2px; align-items: center; }
.mock-meter i { flex: 1; height: 10px; background: var(--m-line); }
.mock-meter i.on { background: #2fd4f0; }
.mock-meter i.peak { background: #ff4d52; }
.mock-code { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: .1em; }
.mock-input {
  width: 110px; height: 26px;
  border-radius: 7px;
  border: 1px solid var(--m-line);
  background: #141518;
  color: var(--m-ink);
  font-family: var(--font-mono); font-weight: 500; font-size: 12px;
  text-align: center; letter-spacing: .08em;
}

/* ── Section scaffolding ────────────────────────────────────────────────── */
.band { border-top: 1px solid var(--line); background: var(--bg-alt); }
.band-last { border-bottom: 1px solid var(--line); }
.section { padding-top: 80px; padding-bottom: 80px; }
.section-key, h2.section-key {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--faint);
  margin-bottom: 32px;
}
.section h2.section-key {
  margin: 0 0 32px;
  font-size: 10px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.section h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 600;
}

/* Problem band */
.problem { display: grid; grid-template-columns: 200px 1fr; gap: 48px; padding-top: 56px; padding-bottom: 56px; }
.problem .section-key { margin: 6px 0 0; }
.problem p {
  margin: 0;
  max-width: 640px;
  font-size: 22px;
  line-height: 1.45;
  color: var(--body);
  text-wrap: pretty;
}
.problem strong { color: var(--ink); font-weight: 500; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.step {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line-2);
}
.step-key { font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--accent-ink); }
.step h3 { margin: 0; font-size: 17px; font-weight: 600; }
.step p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; margin: 0; padding: 0; }
.feature { display: flex; flex-direction: column; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); }
.feature:last-child { border-bottom: 1px solid var(--line); grid-column: 1 / -1; }
.feature strong { font-size: 15px; color: var(--ink); font-weight: 600; }
.feature span { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Two-column prose (who it's for / what it isn't) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.duo .section-key { margin-bottom: 16px; }
.duo p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--body); text-wrap: pretty; }

/* Fact lists (privacy + requirements) */
.facts {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 48px;
  color: var(--muted);
}
.facts li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.55; }
.facts li::before {
  content: '';
  position: absolute;
  left: 0; top: .6em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.facts strong { color: var(--ink); font-weight: 600; }
.section > p { max-width: 640px; color: var(--muted); }

/* ── Get it ─────────────────────────────────────────────────────────────── */
.get { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.get img { width: 96px; height: 96px; }
.get h2 { margin: 0; }
.get > p { margin: 0; font-size: 16px; color: var(--muted); max-width: 46ch; }
.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
  width: 100%;
  max-width: 640px;
  text-align: left;
}
.tier {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line-3);
}
.tier-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tier-head strong { font-size: 15px; color: var(--ink); font-weight: 600; }
.tier-price { font-family: var(--font-mono); font-weight: 500; font-size: 22px; color: var(--ink); }
.tier-price.free { color: var(--accent-ink); }
.tier p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.tier .btn { width: 100%; }
.status-band {
  margin-top: 8px;
  padding: 24px;
  border-radius: 16px;
  border: 1px dashed var(--line-3);
  max-width: 640px;
  width: 100%;
}
.status-band h3 { margin: 8px 0 8px; font-size: 18px; font-weight: 600; }
.status-band p { margin: 0 0 10px; font-size: 15px; color: var(--muted); }
.status-band p:last-child { margin-bottom: 0; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
  color: var(--faint);
  font-size: 12px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  color: var(--faint);
  position: relative;
  display: inline-block;
  padding: 6px 0;
}
.footer-links a::before {   /* 44px tap target, same trick as the nav donate link */
  content: ''; position: absolute; top: 50%; left: -6px;
  width: calc(100% + 12px); height: 44px; transform: translateY(-50%);
}
.footer-links a:hover { color: var(--ink); }

/* ── Responsive: the handoff's own breakpoints, 900px and 560px ─────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 72px;
    justify-items: center;
    text-align: center;
  }
  .hero-copy { align-items: center; }
  .hero .lede { max-width: 560px; }
  .problem { grid-template-columns: 1fr; gap: 16px; }
  .problem .section-key { margin-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; gap: 0; }
  .facts { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; gap: 40px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  :root { --gutter: 24px; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .tiers { grid-template-columns: 1fr; }
  .ctas { flex-direction: column; width: 100%; align-items: stretch; }
  .ctas .btn { width: 100%; }
  .problem p { font-size: 18px; }
  .brand-name { font-size: 24px; }
  .footer-row { justify-content: flex-start; }
}
@media (max-width: 360px) {
  .mock-body { width: 100%; }
  .mock-row { padding: 0 12px; font-size: 11px; }
}
