/* landing.css — the marketing landing page (T68 port of the T67-settled
   Claude Design `landing-page-hifi.html`). Linked only by src/pages/index.astro,
   after /tokens.css.

   The design's local palette names are kept verbatim (so this file diffs
   cleanly against the settled source) and mapped onto the shared --rrp-*
   tokens where a token exists; the hexes without a token (--red2 / --redDeep
   disc-gradient stops, --bg2 section wash, the design's own --muted) stay
   literal design values. Mobile-first; the desktop pass is the >=900px block
   at the bottom, per the settled source. */

:root {
  --white: #ffffff;
  --bg2: #fbfbfa;
  --red: var(--rrp-red);
  --red2: #ff5760;
  --redDeep: #b81e29;
  --ink: var(--rrp-ink);
  --muted: #71757b;
  --blush: var(--rrp-blush);
  --hair: var(--rrp-hairline);
  --green: var(--rrp-green);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  font-family: var(--rrp-font);
  -webkit-font-smoothing: antialiased;
  background: var(--white);
  color: var(--ink);
}
a {
  color: var(--red);
  text-decoration: none;
}
a:hover {
  color: var(--redDeep, #b81e29);
  text-decoration: underline;
}
img {
  max-width: 100%;
  display: block;
}

/* ── layout shell ─────────────────────────────────────────── */
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 22px;
}
section,
header,
footer {
  position: relative;
}

/* ── top bar ──────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 6px;
}
/* BrandLockup.astro carries its own internal styles; consumers size it via
   font-size (em-based, see the component). */
.topbar .brand-lockup {
  font-size: 23px;
}
.foot .brand-lockup {
  font-size: 18px;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topnav a.login,
.topnav a.dashboard {
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
}
.topnav a.login:hover,
.topnav a.dashboard:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ── buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  font-family: var(--rrp-font);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(232, 50, 60, 0.24);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.btn-primary:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(232, 50, 60, 0.3);
}
.btn-sm {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 11px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: 13.5px;
}
.btn-sm:hover {
  color: #fff;
  text-decoration: none;
}

/* ── section heads ────────────────────────────────────────── */
.kicker {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.sec-head {
  text-align: center;
  margin: 0 auto;
}
.sec-head h2 {
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 10px 0 0;
  text-wrap: balance;
}

/* ── hero ─────────────────────────────────────────────────── */
.hero {
  padding: 36px 0 54px;
}
.hero .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 38px;
  align-items: center;
}
.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 900;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.hero-copy h1 {
  font-weight: 900;
  font-size: 46px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 14px 0 0;
  text-wrap: balance;
}
.hero-copy .lede {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  margin: 16px 0 0;
  max-width: 30ch;
}
.hero-cta {
  margin-top: 26px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.trial {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}
.trial b {
  color: var(--ink);
}
.early-note {
  margin: 12px 0 0;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}

/* ── shared phone ─────────────────────────────────────────── */
.phone {
  width: 322px;
  max-width: 100%;
  border-radius: 40px;
  padding: 10px;
  background: #1b1c1f;
  position: relative;
  box-shadow:
    0 2px 2px rgba(255, 255, 255, 0.14) inset,
    0 34px 64px rgba(40, 44, 50, 0.26),
    0 12px 24px rgba(40, 44, 50, 0.14);
}
.phone .screen {
  width: 100%;
  border-radius: 31px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 24px 4px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
}
.statusbar .sb-url {
  font-weight: 700;
  color: #b7babf;
}
.pad {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 6px 24px 18px;
}
.topbar-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 13px;
  border-bottom: 1px solid #f0f0ee;
}
.ph-logo {
  height: 34px;
  width: auto;
  display: block;
}
.stage-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  min-height: 392px;
}
.foot-ph {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid #f0f0ee;
  font-size: 11px;
  font-weight: 800;
  color: #c2c4c7;
  text-align: center;
}

/* in-phone header block (name + location) */
.ph-name {
  font-weight: 900;
  font-size: 25px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.ph-loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: center;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
.sp-26 {
  height: 26px;
}
.sp-34 {
  height: 34px;
}
.sp-16 {
  height: 16px;
}
.sp-18 {
  height: 18px;
}

/* hold-to-ring disc (hero self-play + demo interactive) */
.disc {
  width: 168px;
  height: 168px;
  position: relative;
  margin: 0 auto;
}
.disc-halo {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  pointer-events: none;
}
.disc-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--ink) var(--deg, 0deg), var(--blush) 0);
  transition: transform 0.18s ease;
}
.disc.pressed .disc-ring {
  transform: scale(0.955);
}
.disc-face {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: radial-gradient(
    120% 120% at 50% 22%,
    var(--red2) 0%,
    var(--red) 48%,
    var(--redDeep) 100%
  );
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.35),
    inset 0 -8px 16px rgba(120, 10, 18, 0.35),
    0 14px 26px rgba(184, 30, 41, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.disc.pressed .disc-face {
  box-shadow:
    inset 0 3px 12px rgba(0, 0, 0, 0.32),
    0 3px 8px rgba(184, 30, 41, 0.3);
}
.disc-hold {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.disc-sub {
  font-weight: 700;
  font-size: 12.5px;
  opacity: 0.9;
  margin-top: 3px;
}
.disc-spot {
  position: absolute;
  left: 57%;
  top: 62%;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.16) 55%,
    rgba(255, 255, 255, 0) 72%
  );
}
.disc.pressed .disc-spot {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}
/* the demo's interactive disc (landing-demo-ring.jsx values) */
.disc--demo {
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  /* the disc is round but its box is square — without this, pressing paints
     the rectangular tap-highlight / press-drag selection over that box, so
     "the whole square lights up as selected". */
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
/* Belt-and-suspenders: the interactive demo phone is decorative (no text to
   select), so make the whole thing unselectable + highlight-free on press. */
.demo-phone,
.demo-phone * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.disc--demo .disc-ring {
  transition: transform 0.14s ease;
}
.disc--demo.pressed .disc-ring {
  transition: none;
  transform: scale(0.965);
}
.disc--demo.pressed .disc-face {
  box-shadow:
    inset 0 3px 10px rgba(0, 0, 0, 0.28),
    0 3px 8px rgba(184, 30, 41, 0.3);
}
.disc-hint {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 18px;
  min-height: 16px;
}

/* ringing state (emanating pulses) */
.ringing {
  position: relative;
  width: 192px;
  height: 192px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-phone .ringing {
  width: 184px;
  height: 184px;
}
.ringing .pulse {
  position: absolute;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 2px solid var(--red);
}
.ringing .pulse:nth-child(2) {
  animation-delay: 0.5s;
}
.ringing .pulse:nth-child(3) {
  animation-delay: 1s;
}
.ringing-disc {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(
    120% 120% at 50% 22%,
    var(--red2) 0%,
    var(--red) 48%,
    var(--redDeep) 100%
  );
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.35),
    0 14px 26px rgba(184, 30, 41, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.ringing-disc b {
  font-weight: 900;
  font-size: 17px;
}
.demo-phone .ringing-disc b {
  font-size: 18px;
}

/* vertical status stepper (Sent → Delivered → Replied) */
.stepper {
  width: 210px;
  margin: 0 auto;
  text-align: left;
}
.stepper--demo {
  width: 246px;
}
.st-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.st-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.st-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d9dbde;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: all 0.3s ease;
}
.st-row.done .st-dot {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 2px 6px rgba(184, 30, 41, 0.22);
}
.st-row.done.green .st-dot {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 2px 6px rgba(47, 138, 91, 0.28);
}
.st-bar {
  width: 2.5px;
  height: 18px;
  background: #e6e7e9;
  border-radius: 2px;
  transition: background 0.3s ease;
}
.stepper--demo .st-bar {
  height: 22px;
}
.st-row.passed .st-bar {
  background: var(--red);
}
.st-label {
  font-size: 13.5px;
  line-height: 1.15;
  padding-top: 1px;
  font-weight: 600;
  color: #b7babf;
}
.st-row.done .st-label {
  color: var(--ink);
}
.st-row.current .st-label {
  font-weight: 800;
}
.st-row.done.green .st-label {
  color: var(--green);
}

/* stage messages */
.stage-msg {
  font-weight: 900;
  font-size: 16px;
  color: var(--ink);
}
.stage-msg.green {
  color: var(--green);
}
.stage-msg--waiting {
  font-size: 15.5px;
  margin-bottom: 14px;
}
.demo-phone .stage-msg {
  font-size: 17.5px;
  margin-bottom: 4px;
}
.demo-phone .stage-msg--replied {
  margin-bottom: 12px;
}
.stage-sub {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
}
.bubble-row {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.demo-phone .bubble-row {
  margin-top: 0;
}

/* 30s re-ring cooldown ring (hero delivered state) */
.cooldown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  --cd-muted: color-mix(in srgb, var(--red) 36%, #ece9e0);
  --cd-track: #f3d0d4;
}
.cd-ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  box-sizing: border-box;
  background: conic-gradient(
    var(--cd-muted) var(--cd-deg, 360deg),
    var(--cd-track) 0
  );
  padding: 8px;
  border: 2px dashed var(--cd-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cd-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cd-num {
  font-weight: 900;
  font-size: 22px;
  color: var(--muted);
}
.cd-num .cd-s {
  font-size: 12px;
  font-weight: 700;
}
.cd-cap {
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
}

/* hero teaser */
.hero-art {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-bubble {
  background: #f3f3f1;
  border-radius: 14px 14px 14px 4px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}
.demo-disclaimer {
  margin: 18px auto 0;
  max-width: 270px;
  text-align: center;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.demo-disclaimer b {
  color: var(--ink);
  font-weight: 800;
}

/* ── how it works ─────────────────────────────────────────── */
.how {
  background: var(--bg2);
  border-top: 1.8px solid #eeeeec;
  border-bottom: 1.8px solid #eeeeec;
  padding: 56px 0;
}
.comic {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.panel {
  display: flex;
  flex-direction: column;
}
.panel-art {
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1/1;
}
.panel-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.panel-cap {
  margin: 12px 2px 0;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
}
@media (max-width: 860px) {
  .comic {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .comic {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── demo ─────────────────────────────────────────────────── */
.demo {
  padding: 58px 0;
  text-align: center;
}
.demo .demo-cap {
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  margin: 12px auto 0;
  max-width: 44ch;
}
.demo .demo-cap b {
  color: var(--ink);
}
.demo .demo-mount {
  margin-top: 40px;
}
.demo-wrap {
  display: flex;
  justify-content: center;
}

.d-chip {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
}
.d-bubble {
  display: inline-block;
  max-width: 230px;
  padding: 12px 15px;
  background: #f3f3f1;
  border-radius: 16px 16px 16px 5px;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
}
.qr-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 250px;
  margin: 4px auto 0;
}
.qr-cap {
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 2px;
}
.qr-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 15px;
  border-radius: 13px;
  border: 1.8px solid var(--hair);
  background: #fff;
  font-family: var(--rrp-font);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition:
    background 0.12s ease,
    transform 0.1s ease;
}
.qr-btn:hover {
  background: #faf1f2;
  transform: translateY(-1px);
}
.qr-btn:active {
  transform: translateY(0);
}
.tryagain {
  align-self: center;
  margin-top: 22px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.8px solid var(--hair);
  background: #fff;
  font-family: var(--rrp-font);
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.tryagain:hover {
  background: #fbfbfa;
}

/* ── pricing ──────────────────────────────────────────────── */
.pricing {
  background: var(--bg2);
  border-top: 1.8px solid #eeeeec;
  padding: 58px 0 66px;
}
.price-card {
  position: relative;
  max-width: 440px;
  margin: 34px auto 0;
  background: #fff;
  border: 1.8px solid var(--hair);
  border-radius: 20px;
  padding: 32px 30px 30px;
  text-align: center;
  box-shadow: 0 20px 44px rgba(40, 44, 50, 0.08);
}
.plan-name {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.price-early {
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.price {
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.price .amt {
  font-size: 52px;
  line-height: 1;
}
.price .per {
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
}
.price .per-qual {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
  margin-top: 8px;
}
.price-trial {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--blush);
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
}
.checklist {
  list-style: none;
  margin: 24px 0 26px;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 12px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.checklist .ck {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.price-card .btn-primary {
  width: 100%;
}

/* ── footer ───────────────────────────────────────────────── */
.foot {
  padding: 38px 0 46px;
}
.foot .frow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.foot .flinks {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
}
.foot .flinks a {
  color: var(--ink);
}
.foot .flinks a:hover {
  color: var(--red);
}
.foot .flinks .dot {
  color: #c2c4c7;
}
.foot .fine {
  margin-top: 16px;
  font-weight: 700;
  font-size: 12.5px;
  color: #a9abae;
  line-height: 1.6;
}

/* motion */
@keyframes ll-halo {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(232, 50, 60, 0),
      0 0 12px 2px rgba(232, 50, 60, 0.16);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(232, 50, 60, 0.06),
      0 0 34px 10px rgba(232, 50, 60, 0.4);
  }
}
.ll-halo {
  animation: ll-halo 2600ms ease-in-out infinite;
}
@keyframes ll-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.62);
    opacity: 0;
  }
}
.ll-pulse {
  animation: ll-pulse 1700ms ease-out infinite;
  pointer-events: none;
}
@keyframes ll-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ll-enter {
  animation: ll-enter 0.22s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .ll-halo,
  .ll-pulse,
  .ll-enter {
    animation: none;
  }
}

/* ── desktop pass ─────────────────────────────────────────── */
@media (min-width: 900px) {
  .hero {
    padding: 52px 0 70px;
  }
  .topbar {
    max-width: 852px;
    margin: 0 auto;
  }
  .hero .grid {
    grid-template-columns: 1fr 344px;
    gap: 48px;
    align-items: center;
    max-width: 852px;
    margin: 0 auto;
  }
  .hero-copy h1 {
    font-size: 58px;
  }
  .hero-copy .lede {
    font-size: 18px;
  }
  .sec-head h2 {
    font-size: 34px;
  }
}
