/* HONE — landing page.
   Same constitution as the app: hard-edged, monochrome, zero softness.
   No border-radius, no color, no shadows-as-decoration, no motion as spectacle.

   TOKENS + RESET BELOW ARE COPIED VERBATIM FROM ../src/styles.css :root
   If you change one, change both. There is no build step to keep them in sync. */

:root {
  --bg: #000;
  --panel: #0a0a0a;
  --line: #222;
  --ink: #fff;
  --dim: #8a8a8a;
  --faint: #4d4d4d;
  --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --col: 1120px;
  --pad: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

/* --faint fails AA on black (~2.4:1). On the landing page it may only ever
   decorate — every load-bearing string uses --dim (~6.2:1) or --ink. */

/* ---------- page column: the app's bordered .app, scaled up ---------- */

.page {
  max-width: var(--col);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

section {
  border-top: 1px solid var(--line);
  padding: 72px var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 16px;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 12px;
}
.skip-link:focus {
  left: 0;
  top: 0;
  z-index: 100;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- type ---------- */

/* 2.25rem floor, not 2.5: three lines of headline at 40px pushed the hero
   CTA under the fold on a 390×700 in-app-browser viewport. */
h1 {
  font-size: clamp(2.25rem, 7.5vw, 6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

p {
  max-width: 60ch;
}

.eyebrow,
.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
  font-family: var(--mono);
}

.section-title {
  margin-bottom: 24px;
}

.lede {
  color: var(--dim);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  margin-top: 20px;
}

.note {
  color: var(--dim);
  font-size: 14px;
  margin-top: 14px;
}

/* ---------- header ---------- */

.topbar {
  max-width: var(--col);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.wordmark {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

/* ---------- CTA ---------- */

.cta {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 28px;
  margin-top: 28px;
}

.btn-small {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .cta,
  .btn-small {
    transition: background 120ms linear, color 120ms linear;
  }
}

.cta:hover,
.cta:focus-visible {
  background: var(--bg);
  color: var(--ink);
}
.btn-small:hover,
.btn-small:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

.cta-sub {
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 12px;
}

/* ---------- in-app browser escape hatch ----------
   Only ever rendered inside the Instagram/TikTok webview, where the App
   Store button cannot work. These are load-bearing instructions, so --ink
   and a real border — never --dim, which would read as fine print. */

.iab-note {
  border: 1px solid var(--ink);
  padding: 14px 16px;
  margin-top: 18px;
  max-width: 44ch;
}

.iab-line {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

.iab-line b {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.iab-copy {
  display: inline-block;
  margin-top: 12px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
}

.closing .iab-note {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* App Store rating — injected only when real and above threshold. */
.rating {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--dim);
  margin-top: 14px;
}

/* ---------- hero ---------- */

/* Mobile hero is a tight budget, not a comfortable one: headline + CTA +
   trust line + the top of the phone must all clear a 700px viewport. The
   generous padding only comes back at the 720px breakpoint. */
.hero {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 56px;
  border-top: 0;
}

.shot {
  border: 1px solid var(--line);
  width: 100%;
  max-width: 320px;
}

.shot-wrap {
  display: flex;
  justify-content: center;
}

.step-shot {
  margin-top: 20px;
}

/* ---------- creed band (inverted) ---------- */

.creed {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: 40px var(--pad);
  border-top: 1px solid var(--line);
}

.creed-line {
  font-size: clamp(1.125rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.creed-sub {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 10px auto 0;
  opacity: 0.7;
}

.creed :focus-visible {
  outline-color: var(--bg);
}

/* ---------- hairline grid: 1px gaps read as rules, not gutters ---------- */

.grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.grid > * {
  background: var(--bg);
  padding: 28px;
}

.g3 {
  grid-template-columns: repeat(3, 1fr);
}
.g2 {
  grid-template-columns: repeat(2, 1fr);
}

/* :where() keeps this at element-level specificity (0,0,1). Written as a
   plain `.cell p` it scored (0,1,1) and out-specified every single-class
   override below it — .stat-num, .plan-price, .stepnum, .id-name and the
   rest all collapsed to this 14px dim body style, flattening the whole
   hierarchy inside a cell. Do not drop the :where(). */
:where(.cell) p {
  color: var(--dim);
  font-size: 14px;
  margin-top: 10px;
}

/* ---------- stats ---------- */

/* the three below carry the cell's emphasis, so they state --ink explicitly
   rather than inheriting the dim body colour from :where(.cell) p */
.stat-num {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 8px;
}

/* ---------- split rows ---------- */

.split {
  display: grid;
  gap: 48px;
  align-items: center;
}

.split h2 + p,
.stack-block p {
  color: var(--dim);
  margin-top: 16px;
}

.stack-block + .stack-block {
  margin-top: 40px;
}

/* ---------- steps ---------- */

.stepnum {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--dim);
  margin-bottom: 14px;
}

/* checklist mock — real text, not an image */
.mock {
  border: 1px solid var(--line);
  margin-top: 20px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.check-row:last-child {
  border-bottom: 0;
}

.box {
  width: 16px;
  height: 16px;
  border: 1px solid var(--ink);
  flex: 0 0 auto;
}
.box.on {
  background: var(--ink);
}

.check-row.done {
  color: var(--dim);
}

.tag3x {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dim);
}

/* ---------- presets ---------- */

.id-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.id-tag {
  color: var(--dim);
  font-size: 14px;
  margin-top: 8px;
}

/* decorative only — --faint is below AA and must never carry meaning */
.id-habits {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.9;
  color: var(--faint);
  margin-top: 14px;
  list-style: none;
}

/* ---------- pricing ---------- */

.plan-price {
  font-family: var(--mono);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.plan-per {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 6px;
}

.plan-badge {
  display: inline-block;
  border: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 8px;
  margin-top: 14px;
}

/* Billing terms under a plan. Deliberately quiet but --dim, not --faint:
   App Store Guideline 3.1.2 wants the price that follows a trial legible,
   and --faint fails AA on black. */
.plan-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--dim);
  margin-top: 12px;
  max-width: 34ch;
}

.plan-list {
  list-style: none;
  margin-top: 18px;
  font-size: 14px;
  color: var(--dim);
  line-height: 2;
}

.plan-list li::before {
  content: '— ';
  color: var(--dim);
}

/* ---------- testimonial slot (ships empty by design) ---------- */

.quote-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.quote {
  background: var(--bg);
  padding: 28px;
}

.quote blockquote {
  font-size: 15px;
}

.quote figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--dim);
  margin-top: 14px;
}

/* ---------- closing ---------- */

.closing {
  text-align: center;
}

.closing p {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- footer ---------- */

.foot {
  max-width: var(--col);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  padding: 40px var(--pad) 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.foot a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
}

.foot a:hover,
.foot a:focus-visible {
  color: var(--ink);
}

.foot-note {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  width: 100%;
}

/* ---------- sticky CTA (mobile only) ----------
   Bio traffic lands in the TikTok/Instagram in-app browser, where Safari's
   Smart App Banner does not render. This bar is the replacement: the one
   permanently reachable conversion once the hero CTA scrolls away.
   Hidden above 720px — on desktop the hero CTA is rarely far from view and
   a pinned bar reads as adware. */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 12px var(--pad);
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateY(101%); /* 101% so no hairline peeks while hidden */
  visibility: hidden;
}

.sticky-cta.on {
  transform: translateY(0);
  visibility: visible;
}

.sticky-cta .cta {
  display: block;
  margin-top: 0;
  text-align: center;
  padding: 16px 20px;
}

@media (prefers-reduced-motion: no-preference) {
  .sticky-cta {
    transition: transform 180ms ease-out, visibility 180ms;
  }
}

@media (min-width: 720px) {
  .sticky-cta {
    display: none;
  }
}

/* ---------- responsive: one axis, three stops ---------- */

@media (min-width: 720px) {
  :root {
    --pad: 40px;
  }
  .hero {
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    padding-top: 88px;
    padding-bottom: 88px;
  }
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1023px) {
  .g3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .quote-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 719px) {
  .g3,
  .g2 {
    grid-template-columns: 1fr;
  }
  section {
    padding: 56px var(--pad);
  }
  /* "DOWNLOAD ON THE APP STORE" needs 347px at the default tracking but a
     375px iPhone only offers 333px, so the primary CTA wrapped to two lines.
     Tightening tracking and side padding brings it to 302px — one line on
     every phone Hone supports. */
  .cta {
    letter-spacing: 0.12em;
    padding: 18px 16px;
  }
  /* clear the sticky bar so it never covers the last line of the footer */
  .foot {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}
