/* ==========================================================================
   update.css — brandDigi /update Phase 1 Styling
   --------------------------------------------------------------------------
   Mobile-first, Instrument Serif + Work Sans.
   Styles for Channel Selector, WhatsApp Pairing/QR, Scoped Access, and READY.
   ========================================================================== */

:root {
  --bone: #f5f2ec;
  --ink: #1a1a18;
  --ember: #c2652a;
  --sand: #e8e3d8;
  --muted-foreground: #6b6560;
  --bone-60: rgba(245, 242, 236, 0.6);
  --bone-45: rgba(245, 242, 236, 0.45);
  --bone-25: rgba(245, 242, 236, 0.25);
  --bone-15: rgba(245, 242, 236, 0.15);
  --ink-15: rgba(26, 26, 24, 0.15);
  --ink-30: rgba(26, 26, 24, 0.3);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: 'Work Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ember); color: var(--ink); }

.container { max-width: 1120px; margin-inline: auto; padding-inline: 1.25rem; }
@media (max-width: 767.98px) {
  .container { padding-inline: 1.5rem; }
  .container.why, .container.steps, .container.offer,
  .container.onboard-wrap, .container.confirm { padding-inline: 1.5rem; }
}
.display {
  font-family: 'Instrument Serif', ui-serif, Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.muted { color: var(--muted-foreground); }
.text-ember { color: var(--ember); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header { padding: 1.25rem 0; border-bottom: 1px solid var(--ink-15); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-logo {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Views */
.view[hidden] { display: none !important; }
.view:focus { outline: none; }

/* Hero */
.hero { padding: 2rem 0 3rem; }
.hero h1 {
  font-size: clamp(2.4rem, 11vw, 5.2rem);
  margin: 0.75rem 0 1.25rem;
  max-width: 22ch;
}
.hero__sub { font-size: 1.15rem; max-width: 44ch; margin: 0 0 2rem; color: var(--muted-foreground); }
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }

.promise {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding: 0.6rem 0.9rem;
  background: var(--sand);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.promise::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); flex: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.9rem 1.6rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bone);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.btn:hover { background: var(--ember); color: var(--bone); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink-30); }
.btn--ghost:hover { background: var(--sand); color: var(--ink); border-color: var(--ink); }
.link-back { background: none; border: 0; padding: 0.5rem 0; color: var(--muted-foreground); font-size: 0.85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-back:hover { color: var(--ember); }

/* Steps & Editorial Why */
.steps { padding: 3rem 0; border-top: 1px solid var(--ink-15); }
.steps__grid { margin-top: 1.75rem; display: grid; gap: 1px; background: var(--ink-15); }
.step { background: var(--bone); padding: 1.5rem; }
.step__num { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; color: var(--ember); }
.step h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.6rem; margin: 0.5rem 0 0.35rem; }
.step p { margin: 0; color: var(--muted-foreground); font-size: 0.95rem; }

.why { padding: 3rem 0; border-top: 1px solid var(--ink-15); }
.why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.why__stat { background: var(--sand); padding: 1.5rem; border-radius: var(--radius); }
.why__num { font-family: 'Instrument Serif', serif; font-size: 3rem; color: var(--ember); line-height: 1; display: block; margin-bottom: 0.5rem; }
.why__statement { font-family: 'Instrument Serif', serif; font-size: 1.75rem; margin: 1.5rem 0 0.5rem; }
.why__close { font-weight: 600; color: var(--ember); margin-bottom: 1rem; }
.why__source { font-size: 0.78rem; color: var(--muted-foreground); }

/* Offer */
.offer { padding: 3rem 0; border-top: 1px solid var(--ink-15); }
.offer__card { background: var(--sand); padding: 2rem; border-radius: var(--radius); max-width: 520px; }
.offer__label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember); margin: 0 0 0.5rem; }
.offer__price { font-size: 2.75rem; font-weight: 700; margin: 0 0 0.5rem; line-height: 1; }
.offer__price small { font-size: 1rem; font-weight: 400; color: var(--muted-foreground); }
.offer__note { font-size: 0.95rem; color: var(--muted-foreground); margin: 0 0 1.5rem; }

/* FAQ */
.faq { margin-top: 3rem; }
.faq__item { border-bottom: 1px solid var(--ink-15); padding: 1rem 0; }
.faq__item summary { font-weight: 600; cursor: pointer; padding: 0.5rem 0; list-style-position: outside; }
.faq__answer { color: var(--muted-foreground); margin: 0.5rem 0 0.25rem; font-size: 0.95rem; }

/* Channel Identity Selection */
.onboard-wrap { max-width: 640px; padding: 2rem 0 4rem; }
.section-head { margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(2rem, 7vw, 3rem); margin: 0.5rem 0 0.75rem; }
.channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.channel-card {
  background: var(--sand);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--ink-15);
  display: flex;
  flex-direction: column;
}
.channel-card__icon { color: var(--ember); margin-bottom: 1rem; }
.channel-card h3 { font-family: 'Instrument Serif', serif; font-size: 1.8rem; margin: 0 0 0.5rem; }
.channel-card__desc { color: var(--muted-foreground); font-size: 0.92rem; margin: 0 0 1.5rem; flex-grow: 1; }

/* WhatsApp Pairing Card */
.pairing-box {
  margin-top: 2rem;
  padding: 1.75rem;
  background: #ffffff;
  border: 1px solid var(--ink-15);
  border-radius: var(--radius);
}
.pairing-box h3 { margin: 0 0 0.5rem; font-size: 1.3rem; }
.pairing-box__token-text { font-size: 0.9rem; margin: 0.75rem 0; }
.pairing-box__token-text strong { font-family: monospace; font-size: 1.1rem; color: var(--ember); }
.pairing-box__qr { margin-top: 1.25rem; text-align: center; }
.pairing-box__qr svg { margin: 0 auto; }

/* Form Fields */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field select {
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ink-30);
  border-radius: var(--radius);
  background: #ffffff;
  font-size: 1rem;
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--ember);
  border-color: var(--ember);
}
.field input[aria-invalid="true"] { border-color: #d32f2f; }
.field__hint { font-size: 0.8rem; color: var(--muted-foreground); }
.field__error { font-size: 0.8rem; color: #d32f2f; }
.form-error { background: #ffebee; color: #c62828; padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.9rem; margin: 0; }

/* Access Guide */
.lead-note {
  background: var(--sand);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--ember);
  margin-top: 0.5rem;
}
.access-guide-card {
  background: #ffffff;
  border: 1px solid var(--ink-15);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.access-guide-card h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.guide-steps { padding-left: 1.25rem; margin: 0.75rem 0; font-size: 0.92rem; color: var(--muted-foreground); }
.guide-steps li { margin-bottom: 0.4rem; }
.checkbox-line { display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 1rem; cursor: pointer; font-size: 0.95rem; }
.checkbox-line input { width: 20px; height: 20px; margin-top: 0.15rem; flex: none; accent-color: var(--ember); }

/* Ready View */
.confirm { max-width: 620px; padding: 3rem 0; }
.confirm__badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: #e8f5e9;
  color: #2e7d32;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.ready-hero-text { font-size: 1.15rem; margin: 1rem 0 2rem; color: var(--muted-foreground); }
.confirm__steps { display: flex; flex-direction: column; gap: 1rem; margin: 2rem 0; }
.confirm__step {
  background: #ffffff;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--ink-15);
  display: flex;
  flex-direction: column;
}
.confirm__step strong { color: var(--ink); font-size: 1rem; margin-bottom: 0.25rem; }
.confirm__step span { color: var(--muted-foreground); font-size: 0.9rem; }
.ready-cta-box { margin: 2rem 0 1rem; }
.confirm__contact { font-size: 0.9rem; color: var(--muted-foreground); margin-top: 2rem; }

/* Site Footer */
.site-footer { border-top: 1px solid var(--ink-15); padding: 2rem 0; font-size: 0.85rem; color: var(--muted-foreground); }
.site-footer__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media (min-width: 768px) {
  .steps__grid { grid-template-columns: repeat(3, 1fr); }
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
}
