/* SecondRing landing page — marketing-grade layer over the base.html token system.
   Consumes :root tokens (--accent, --ink, --muted, --radius…) and adds landing-only
   components. Zero dependencies, system fonts, no build step. */

.lp { --lp-max: 1080px; }

/* full-bleed: escape base.html's 940px <main> column */
.lp .bleed { margin-inline: calc(50% - 50vw); }
.lp .wrap { max-width: var(--lp-max); margin: 0 auto; padding: 0 24px; }

/* :where() gives this reset 0 specificity so it never beats the intentional
   per-section spacing below (e.g. .lp-honest / .lp-final margin-top). Plain
   `.lp section` was 0-1-1 and silently clobbered those 0-1-0 rules — that's why
   the dark sections sat flush against the cards above them with no gap. */
.lp :where(section) { margin: 0; }

/* ============ scroll reveal ============ */
.lp .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.lp .rv.in { opacity: 1; transform: none; }
.lp .rv.d1 { transition-delay: .08s; } .lp .rv.d2 { transition-delay: .16s; }
.lp .rv.d3 { transition-delay: .24s; } .lp .rv.d4 { transition-delay: .32s; }

/* ============ hero ============ */
/* Pull up past base main's 40px top margin AND the 63px sticky header so the
   glow runs behind the translucent header instead of starting below it.
   `section.lp-hero` (0-1-1) is required: the plain `.lp-hero` (0-1-0) selector
   loses to `.lp section { margin:0 }` — which is why the old -40px pull never
   actually applied and the glow started low. */
.lp section.lp-hero { margin-top: calc(-40px - 63px); }
.lp-hero {
  position: relative; overflow: hidden;
  padding: 147px 0 96px;                 /* 84px visual + 63px hidden under the header */
  background:
    radial-gradient(1100px 480px at 78% -10%, rgba(88,86,214,.14), transparent 62%),
    radial-gradient(700px 420px at 8% 108%, rgba(88,86,214,.10), transparent 60%),
    linear-gradient(180deg, #fbfbfd 0%, var(--bg) 100%);
}
.lp-hero::before {                       /* faint dot grid */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(29,29,31,.055) 1px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.lp-hero .wrap { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; }

.lp-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(88,86,214,.09); color: var(--accent-press);
  border: 1px solid rgba(88,86,214,.22); border-radius: 980px;
  padding: 7px 14px; font-size: 13px; font-weight: 600; letter-spacing: -.005em;
  margin-bottom: 20px;
}
.lp-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(88,86,214,.5); animation: lp-beacon 2.2s ease-out infinite; }

.lp-hero h1 {
  font-size: clamp(38px, 5.2vw, 58px); line-height: 1.02; letter-spacing: -0.038em;
  font-weight: 750; margin: 0 0 18px;
}
.lp-hero h1 .grad {
  background: linear-gradient(92deg, var(--accent) 10%, #8b7cf0 55%, var(--accent-press) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-lede { font-size: 19px; line-height: 1.5; color: var(--muted); margin: 0 0 26px; max-width: 40ch; }
.lp-lede strong { color: var(--ink); font-weight: 600; }

.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lp-cta-row .btn.lg { padding: 15px 30px; font-size: 16.5px; box-shadow: 0 8px 22px rgba(88,86,214,.32); }
.lp-cta-row .btn.lg.secondary { box-shadow: none; }
.lp-hero .alt { margin-top: 16px; font-size: 14px; color: var(--faint); }
.lp-hero .alt a { color: var(--muted); }

.lp-ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.lp-ticks li::before { content: "✓"; color: var(--green-fg); font-weight: 700; margin-right: 7px; }

/* ---- hero visual: the call flow ---- */
.lp-flow { position: relative; display: grid; gap: 0; max-width: 420px; margin-left: auto; }
.lp-node {
  position: relative; background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border: 1px solid rgba(29,29,31,.08); border-radius: 20px;
  padding: 16px 18px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 18px 44px rgba(29,29,31,.09);
}
.lp-node .ico {
  position: relative; flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; font-size: 21px;
  background: var(--gray-bg);
}
.lp-node strong { display: block; font-size: 15.5px; letter-spacing: -.01em; }
.lp-node .sub2 { font-size: 13px; color: var(--muted); margin-top: 1px; }
.lp-node .tag {
  position: absolute; top: -11px; right: 14px; font-size: 10.5px; font-weight: 650;
  letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px;
  background: var(--green-bg); color: var(--green-fg); border: 1px solid rgba(29,122,69,.18);
}

/* pulsing rings on the first node's phone */
.lp-node .ico .pulse { position: absolute; inset: 0; border-radius: 13px; border: 2px solid var(--accent); opacity: 0; animation: lp-ring 2.6s ease-out infinite; }
.lp-node .ico .pulse.p2 { animation-delay: .9s; }

/* the SecondRing node */
.lp-node.sr { background: linear-gradient(135deg, var(--accent) 0%, #6d5ce0 60%, var(--accent-press) 100%); border-color: transparent; box-shadow: 0 14px 40px rgba(88,86,214,.42); }
.lp-node.sr .ico { background: rgba(255,255,255,.16); }
.lp-node.sr strong { color: #fff; }
.lp-node.sr .sub2 { color: rgba(255,255,255,.82); }

/* animated connector between nodes */
.lp-link { position: relative; height: 44px; display: flex; align-items: center; justify-content: center; }
.lp-link::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 50%; width: 2px;
  background-image: linear-gradient(var(--accent) 55%, transparent 45%);
  background-size: 2px 11px; animation: lp-drip 1s linear infinite; opacity: .75;
}
.lp-link .why {
  position: relative; background: #fff; border: 1px solid var(--line); color: var(--muted);
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  padding: 4px 11px; border-radius: 99px; box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

/* the SMS recap node — iMessage-style */
.lp-sms { border-radius: 20px 20px 20px 6px; }
.lp-sms .bubble {
  font-size: 13.5px; line-height: 1.45; color: var(--ink);
}
.lp-sms .bubble .from { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
.lp-sms .bubble .from .live { width: 7px; height: 7px; border-radius: 50%; background: var(--green-fg); }
.lp-sms .bubble b { font-weight: 650; }

@keyframes lp-ring { 0% { opacity: .8; transform: scale(1); } 75%, 100% { opacity: 0; transform: scale(1.75); } }
@keyframes lp-beacon { 0% { box-shadow: 0 0 0 0 rgba(88,86,214,.45); } 75%, 100% { box-shadow: 0 0 0 9px rgba(88,86,214,0); } }
@keyframes lp-drip { to { background-position-y: 11px; } }

/* ============ section scaffolding ============ */
.lp-sec { padding: 84px 0 0; }
.lp-eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; margin: 0 0 10px; }
.lp-h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 12px; font-weight: 700; }
.lp-sub { color: var(--muted); font-size: 17px; line-height: 1.55; margin: 0 0 34px; max-width: 62ch; }
.lp-center { text-align: center; }
.lp-center .lp-sub { margin-left: auto; margin-right: auto; }

/* ============ steps ============ */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.lp-step {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px 24px; box-shadow: var(--shadow);
}
.lp-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  color: var(--accent); margin-bottom: 14px;
}
.lp-step::after {                        /* connecting arrow between cards */
  content: "→"; position: absolute; top: 50%; right: -17px; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  color: var(--accent); font-size: 13px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.06); z-index: 1;
}
.lp-step:last-child::after { display: none; }
.lp-step strong { font-size: 17px; letter-spacing: -.015em; }
.lp-step p { margin: 7px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ============ capabilities ============ */
.lp-caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-cap {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.lp-cap:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 18px 40px rgba(29,29,31,.10); }
.lp-cap .chip {
  width: 42px; height: 42px; border-radius: 12px; font-size: 20px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(88,86,214,.14), rgba(88,86,214,.05));
  border: 1px solid rgba(88,86,214,.16);
}
.lp-cap strong { display: block; font-size: 16px; letter-spacing: -.015em; margin-bottom: 4px; }
.lp-cap p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ============ honest billing — dark statement panel ============ */
.lp-honest { padding: 72px 0; margin-top: 84px; background: linear-gradient(160deg, #17171a 0%, #1f1f27 70%, #232136 100%); }
.lp-honest .lp-eyebrow { color: #7ef0a9; }
.lp-honest .lp-h2 { color: #fff; }
.lp-honest .lp-sub { color: rgba(255,255,255,.62); }
.lp-honest .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
.lp-honest .col {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px; padding: 24px;
}
.lp-honest .big { font-size: 34px; font-weight: 750; letter-spacing: -.03em; color: #7ef0a9; display: block; margin-bottom: 8px; }
.lp-honest .col strong { color: #fff; font-size: 15.5px; }
.lp-honest .col p { margin: 5px 0 0; color: rgba(255,255,255,.60); font-size: 14px; line-height: 1.5; }

/* ============ comparison ============ */
.lp-compare { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.lp-compare .scroller { overflow-x: auto; }
.lp-compare table { width: 100%; border-collapse: collapse; min-width: 560px; }
.lp-compare th, .lp-compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: top; }
.lp-compare tr:last-child td { border-bottom: 0; }
.lp-compare th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 650; background: #fafafc; }
.lp-compare th.us, .lp-compare td.us { background: rgba(88,86,214,.055); border-left: 1px solid rgba(88,86,214,.14); border-right: 1px solid rgba(88,86,214,.14); }
.lp-compare th.us { color: var(--accent-press); }
.lp-compare td.us { font-weight: 550; }
.lp-compare td .ok { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; background: var(--green-bg); color: var(--green-fg); font-size: 11.5px; font-weight: 800; margin-right: 9px; flex-shrink: 0; }
.lp-compare td.them { color: var(--muted); }
.lp-note { font-size: 12.5px; color: var(--faint); margin-top: 10px; }

/* ============ voice sample ============ */
.lp-hear {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px; display: flex; align-items: center; gap: 22px;
}
.lp-hear .wave { display: flex; align-items: center; gap: 3px; height: 34px; flex-shrink: 0; }
.lp-hear .wave i { width: 4px; border-radius: 2px; background: var(--accent); opacity: .85; animation: lp-eq 1.1s ease-in-out infinite; }
.lp-hear .wave i:nth-child(1) { height: 40%; animation-delay: 0s; }
.lp-hear .wave i:nth-child(2) { height: 85%; animation-delay: .15s; }
.lp-hear .wave i:nth-child(3) { height: 60%; animation-delay: .3s; }
.lp-hear .wave i:nth-child(4) { height: 100%; animation-delay: .45s; }
.lp-hear .wave i:nth-child(5) { height: 50%; animation-delay: .6s; }
.lp-hear audio { width: 100%; max-width: 440px; }
@keyframes lp-eq { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }

/* ============ local proof ============ */
/* Three proof cards → three columns on desktop (repeat(2,…) left an orphan card
   on its own row, reading as a broken 2-up-1 layout). Collapses to 1 on phones. */
.lp-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-proof .card { display: flex; gap: 16px; align-items: flex-start; margin: 0; }
.lp-proof .avatar {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-press));
  letter-spacing: .02em;
}
.lp-proof .biz { font-weight: 650; letter-spacing: -.01em; }
.lp-proof .what { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 3px 0 0; }

/* ============ FAQ ============ */
.lp-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.lp-faq details { border-bottom: 1px solid var(--line); padding: 18px 2px; }
.lp-faq summary { font-weight: 600; font-size: 16px; letter-spacing: -.01em; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s ease; flex-shrink: 0; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { margin: 10px 0 2px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ============ final CTA ============ */
.lp-final { margin-top: 84px; padding: 88px 0; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(720px 320px at 50% -12%, rgba(255,255,255,.20), transparent 60%),
    linear-gradient(135deg, var(--accent) 0%, #6d5ce0 55%, var(--accent-press) 100%);
}
.lp-final h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.03em; margin: 0 0 12px; font-weight: 750; }
.lp-final p { color: rgba(255,255,255,.85); font-size: 17px; margin: 0 0 28px; }
.lp-final .btn { background: #fff; color: var(--accent-press); padding: 15px 32px; font-size: 16.5px; box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.lp-final .btn:hover { background: #f2f2f7; }
.lp-final .fine { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.65); }

/* ============ footer ============ */
.lp-footer { padding: 34px 0 10px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.lp-footer .row2 { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; align-items: baseline; }
.lp-footer a { color: var(--muted); }
.lp-footer .disclose { margin-top: 12px; font-size: 12.5px; color: var(--faint); max-width: 74ch; }

/* ============ responsive ============ */
@media (max-width: 900px) {
  .lp-hero { padding: 119px 0 64px; }   /* 56px visual + 63px under the header */
  .lp-hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .lp-flow { margin: 0 auto; max-width: 420px; }
  .lp-steps, .lp-caps, .lp-honest .cols { grid-template-columns: 1fr; }
  .lp-step::after { content: "↓"; top: auto; bottom: -17px; right: auto; left: 50%; transform: translateX(-50%); }
  .lp-proof { grid-template-columns: 1fr; }
  .lp-faq { grid-template-columns: 1fr; }
  .lp-sec { padding: 64px 0 0; }
  .lp-honest { padding: 56px 0; margin-top: 64px; }
  .lp-final { margin-top: 64px; padding: 64px 0; }
  .lp-hear { flex-direction: column; text-align: center; }
}

/* Phones. The comparison table becomes stacked cards — a 560px-wide table in a
   side-scroller reads as broken on a 375px screen. */
@media (max-width: 640px) {
  .lp .wrap { padding: 0 18px; }
  .lp-hero { padding: 85px 0 44px; }    /* 22px visual + 63px under the header */
  .lp-hero h1 { font-size: clamp(29px, 8.4vw, 36px); line-height: 1.08; }
  .lp-lede { font-size: 16.5px; }
  .lp-cta-row .btn.lg { width: 100%; justify-content: center; text-align: center; }
  .lp-ticks { gap: 6px 14px; font-size: 13px; }
  .lp-h2 { font-size: 25px; }
  /* Symmetric section rhythm on phones: every section carries its own bottom
     air, so a dark bleed band never sits flush against the cards above it. */
  .lp-sec { padding: 44px 0; }
  .lp-honest { padding: 44px 0; margin-top: 8px; }
  .lp-final { margin-top: 8px; padding: 52px 0; }
  .lp-final h2 { font-size: 27px; }
  .lp-hear { padding: 20px; gap: 14px; }
  .lp-flow { max-width: 100%; }

  /* One card per capability. The SecondRing answer is promoted (green panel +
     check); the "typical" answer is a muted panel below it — so the contrast
     reads at a glance instead of as two lines of similar-looking text. */
  .lp-compare { border: 0; background: none; box-shadow: none; border-radius: 0; }
  .lp-compare .scroller { overflow-x: visible; }
  .lp-compare table, .lp-compare tbody, .lp-compare tr, .lp-compare td { display: block; width: 100%; }
  .lp-compare table { min-width: 0; }
  .lp-compare tr:first-child { display: none; }          /* drop the desktop header row */
  .lp-compare tr {
    background: var(--card); border: 1px solid var(--line); border-radius: 15px;
    box-shadow: var(--shadow); padding: 15px 16px; margin-bottom: 12px;
  }
  .lp-compare tr:last-child { margin-bottom: 0; }
  .lp-compare td { padding: 0; border: 0; font-size: 14px; }
  .lp-compare td:first-child { font-size: 15px; margin-bottom: 12px; }   /* capability = card title */
  .lp-compare td:first-child strong { letter-spacing: -.01em; }
  .lp-compare td.us, .lp-compare td.them {
    background: none; border: 0; border-radius: 11px; padding: 10px 13px; line-height: 1.45;
  }
  .lp-compare td.us { background: var(--green-bg); color: var(--ink); font-weight: 550; margin-bottom: 8px; }
  .lp-compare td.them { background: var(--gray-bg); color: var(--muted); }
  .lp-compare td.us::before, .lp-compare td.them::before {
    display: block; font-size: 10px; font-weight: 750; text-transform: uppercase;
    letter-spacing: .06em; margin-bottom: 3px;
  }
  .lp-compare td.us::before { content: "SecondRing"; color: var(--green-fg); }
  .lp-compare td.them::before { content: "Typical AI receptionist"; color: var(--faint); }
  .lp-compare td.us .ok { width: 17px; height: 17px; font-size: 10px; margin-right: 7px; vertical-align: -3px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp .rv { opacity: 1; transform: none; transition: none; }
  .lp-node .ico .pulse, .lp-kicker .dot, .lp-link::before, .lp-hear .wave i { animation: none; }
  .lp-node .ico .pulse { opacity: .25; }
}
