/* services/us-site/public/assets/css/home.css
   Page-specific styles for index.html (Presentation). Builds on site.css tokens
   (--ink #2C2823, --orange #D64507, --paper, serif display). Premium editorial,
   warm. Mobile-first. Respects prefers-reduced-motion. */

/* ── Skip link ─────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ── Reveal on scroll ──────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Shared rhythm ─────────────────────────────────────────────────────── */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.eyebrow {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--orange);
  margin: 0 0 18px;
}
.btn-lg { padding: 17px 34px; font-size: .86rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row.center { justify-content: center; }

/* ── HERO ──────────────────────────────────────────────────────────────── */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 80px); text-align: left; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(36px, 6vw, 64px);
  align-items: center;
}
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero-copy h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 22px;
}
.hero-copy .lead { font-size: clamp(1.05rem, 2.2vw, 1.32rem); max-width: 30ch; margin-bottom: 30px; }
.hero-note { font-size: .85rem; color: var(--ink-soft); margin-top: 18px; }
.hero-note::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-right: 9px; vertical-align: middle; }

/* Signature phone scene */
.hero-scene { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 17.5;
  background: linear-gradient(160deg, #ffffff, #f4efe6);
  border: 1px solid var(--line); border-radius: 34px;
  box-shadow: 0 40px 80px -36px rgba(44,40,35,.5), inset 0 0 0 6px #fff;
  padding: 30px 16px 18px; overflow: hidden;
}
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 96px; height: 22px; background: var(--ink); border-radius: 0 0 14px 14px; }
.call-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 38%; }
.ring { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.ring span { position: absolute; inset: 0; border: 2px solid var(--orange); border-radius: 50%; opacity: 0; animation: ringPulse 2.6s ease-out infinite; }
.ring span:nth-child(2) { animation-delay: .5s; }
.ring span:nth-child(3) { animation-delay: 1s; }
.call-ico { width: 26px; height: 26px; color: var(--orange); }
@keyframes ringPulse { 0% { transform: scale(.55); opacity: .8; } 80% { transform: scale(1.5); opacity: 0; } 100% { opacity: 0; } }

.chat-stage { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.bubble { font-size: .72rem; line-height: 1.35; padding: 9px 12px; border-radius: 14px; max-width: 86%; opacity: 0; transform: translateY(8px); animation: bubbleIn .5s ease forwards; }
.bubble.in { background: #f1ece3; color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; animation-delay: .2s; }
.bubble.out { background: var(--ink); color: #f6f1e8; align-self: flex-end; border-bottom-right-radius: 4px; animation-delay: 1.1s; }
.bubble.in:nth-of-type(3) { animation-delay: 2s; }
.bubble.book { background: var(--orange); color: #fff; align-self: flex-start; font-weight: 600; border-bottom-left-radius: 4px; animation-delay: 2.9s; }
@keyframes bubbleIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ring span { animation: none; } .bubble { opacity: 1; transform: none; animation: none; } }

.scene-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tag-pill { font-family: var(--font-sans); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.tag-pill:nth-child(2) { color: var(--orange); border-color: var(--orange); }

/* ── PROBLEM ───────────────────────────────────────────────────────────── */
.problem h2 { max-width: 18ch; font-size: clamp(1.7rem, 4.2vw, 2.7rem); }
.big-stat { font-family: var(--font-serif); font-weight: 600; font-size: clamp(3rem, 11vw, 6.5rem); line-height: 1; color: var(--orange); letter-spacing: -.02em; margin: 18px 0 8px; word-spacing: .42em; }
.stat-cap { max-width: 42ch; color: var(--ink-soft); font-size: 1.05rem; }
.cards { display: grid; gap: 18px; margin-top: 44px; }
.cards.three { grid-template-columns: 1fr; }
@media (min-width: 760px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; }
.card h3 { font-size: 1.18rem; margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ── HOW IT WORKS ──────────────────────────────────────────────────────── */
.how h2 { max-width: 20ch; }
.steps { list-style: none; counter-reset: none; padding: 0; margin: 44px 0 0; display: grid; gap: 22px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
.step { position: relative; padding-top: 8px; }
.step-n {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; color: #fff;
  background: var(--orange); margin-bottom: 16px;
  box-shadow: 0 14px 26px -12px rgba(214,69,7,.6);
}
.step h3 { font-size: 1.28rem; margin: 0 0 8px; }
.step p { margin: 0; color: var(--ink-soft); }
@media (min-width: 820px) { .step:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: 58px; right: -18px; height: 1px; background: linear-gradient(90deg, var(--line), transparent); } }

/* ── COMPOSE VISUAL ────────────────────────────────────────────────────── */
.compose-grid {
  margin: 44px 0 0; display: grid;
  grid-template-columns: 1fr auto 1fr; gap: 0 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 24px; align-items: start;
}
@media (max-width: 720px) {
  .compose-grid { grid-template-columns: 1fr; gap: 20px; }
  .compose-arrow-col { flex-direction: row; justify-content: center; gap: 12px; }
  .compose-arrow-ico { transform: rotate(90deg); }
}
.compose-col { display: flex; flex-direction: column; gap: 10px; }
.compose-col-head {
  font-family: var(--font-sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
  margin: 0 0 4px;
}
.compose-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.compose-row:last-child { border-bottom: none; }
.cr-label { font-family: var(--font-sans); font-size: .78rem; font-weight: 600; color: var(--ink-soft); flex-shrink: 0; }
.cr-val { font-size: .85rem; color: var(--ink); text-align: right; }
.compose-arrow-col {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 20px 8px;
}
.compose-arrow-ico { font-size: 1.8rem; color: var(--orange); line-height: 1; }
.compose-arrow-lbl {
  font-family: var(--font-sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
  text-align: center; writing-mode: vertical-rl;
}
@media (max-width: 720px) { .compose-arrow-lbl { writing-mode: horizontal-tb; } }
.compose-out .compose-col-head { color: var(--ink-soft); }
.compose-note { margin: 18px 0 0; font-size: .86rem; color: var(--ink-soft); font-style: italic; max-width: 70ch; }

/* ── WHAT YOU GAIN ─────────────────────────────────────────────────────── */
.gain h2 { max-width: 22ch; }
.cards.two-three { grid-template-columns: 1fr; }
@media (min-width: 620px) { .cards.two-three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .cards.two-three { grid-template-columns: repeat(3, 1fr); } }
.card.feat { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d8cfc1; }
.feat-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fbf2ec; color: var(--orange); margin-bottom: 16px; }
.feat-ico svg { width: 22px; height: 22px; }

/* Editorial numbered list (replaces the card grid for "What you gain") */
.gain-list { list-style: none; padding: 0; margin: 44px 0 0; border-top: 1px solid var(--line); }
.gain-list li { display: grid; grid-template-columns: 46px 1fr; gap: 14px 22px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .gain-list li { grid-template-columns: 96px 1fr; gap: 20px 52px; } }
.gl-no { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1.15rem; font-weight: 600; color: var(--orange); padding-top: 6px; }
.gain-list h3 { font-size: clamp(1.3rem, 3vw, 1.75rem); margin: 0 0 6px; transition: color .15s ease; }
.gain-list p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.gain-list li:hover h3 { color: var(--orange); }

/* ── ANY BUSINESS ──────────────────────────────────────────────────────── */
.any h2 { max-width: 22ch; }
.chips { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { font-family: var(--font-sans); font-weight: 600; font-size: .95rem; color: var(--ink); background: var(--card); border: 1px solid var(--line); padding: 11px 18px; border-radius: 999px; }
.any-note { margin-top: 26px; max-width: 52ch; color: var(--ink-soft); }

/* ── CTA BAND ──────────────────────────────────────────────────────────── */
.cta-band { background: var(--ink); color: #f6f1e8; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 5vw, 3rem); max-width: 18ch; margin: 0 auto 14px; }
.cta-band p { color: #cfc6ba; max-width: 46ch; margin: 0 auto 30px; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-ghost:hover { background: #fff; color: var(--ink); }

/* ── Mobile spacing ──────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .section { padding-top: 84px; padding-bottom: 64px; }
  .section h2 { margin-top: 16px; }
  .hero { padding-top: 56px; }
}
