/* ============================================================
   Confirmations by Revclar — revclar visual identity
   Palette extracted from revclar.com:
   obsidian #09090b · dashboard #0e0e12 · surface #18181b
   elevated #1c1c22 · indigo #6366f1 / #818cf8
   violet #8b5cf6 · pink #ec4899 · emerald #10b981
   Font: Inter (sans) · JetBrains Mono (mono)
   ============================================================ */

:root {
  --bg: #09090b;
  --bg-alt: #0e0e12;
  --surface: #18181b;
  --elevated: #1c1c22;
  --border: rgba(255, 255, 255, 0.08);
  --text: #fafafa;
  --muted: #a1a1aa;
  --faint: #71717a;
  --indigo: #6366f1;
  --indigo-light: #818cf8;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --emerald: #10b981;
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin: 14px 0 20px; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 12px 0 16px; }
h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }

.grad {
  background: linear-gradient(92deg, var(--indigo-light), var(--violet) 55%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.lead, .section__lead {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 640px;
}
.section__lead { margin-bottom: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn--primary {
  background: var(--indigo);
  color: #fff;
}
.btn--primary:hover { background: var(--indigo-light); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.25); transform: translateY(-1px); }
.btn--sm { padding: 9px 18px; font-size: 0.88rem; }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}
.nav__logo {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff;
  flex-shrink: 0;
}
.nav__name { font-size: 0.98rem; letter-spacing: -0.01em; }
.nav__by { color: var(--faint); font-weight: 500; font-size: 0.85rem; }
.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 80px;
  background:
    radial-gradient(640px 320px at 18% 0%, rgba(99, 102, 241, 0.14), transparent 65%),
    radial-gradient(560px 300px at 85% 20%, rgba(236, 72, 153, 0.08), transparent 65%),
    var(--bg);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero__actions {
  display: flex;
  gap: 14px;
  margin: 30px 0 16px;
  flex-wrap: wrap;
}
.hero__note { font-size: 0.85rem; color: var(--faint); }
.hero__tagline {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: -6px 0 16px;
}

/* Hero visual flow */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.flow__arrow { color: var(--indigo-light); flex-shrink: 0; }

.phone {
  width: 220px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  flex-shrink: 0;
}
.phone__notch {
  width: 70px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  margin: 2px auto 10px;
}
.phone__screen {
  background: var(--bg-alt);
  border-radius: 18px;
  padding: 16px 12px;
  min-height: 240px;
}
.phone__carrier {
  font-size: 0.68rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-align: center;
}
.sms {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.sms strong { color: var(--text); }
.sms__link {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--indigo-light);
  text-decoration: underline;
}
.sms--reply {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  border-radius: 12px 12px 4px 12px;
  color: var(--emerald);
  margin-left: 22px;
}

.order-card {
  width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  font-size: 0.82rem;
  flex-shrink: 0;
}
.order-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.order-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
}
.order-card__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--faint);
  margin-bottom: 8px;
}
.order-card__row strong { color: var(--text); font-weight: 600; text-align: right; }
.order-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald);
  font-weight: 600;
  font-size: 0.78rem;
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(255, 255, 255, 0.16); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.stat__num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stat p { color: var(--muted); font-size: 0.92rem; }

/* Pain list */
.pain__title { font-weight: 600; margin-bottom: 16px; }
.check-list { list-style: none; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m5 13 4 4L19 7' stroke='%23818cf8' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
}
.check-list--columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step { position: relative; }
.step__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.step p { color: var(--muted); font-size: 0.93rem; }
.step strong { color: var(--emerald); }

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Features */
.icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(99, 102, 241, 0.14);
  color: var(--indigo-light);
  margin-bottom: 16px;
  flex-shrink: 0;
}
.feature p { color: var(--muted); font-size: 0.93rem; }
.feature--row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.feature--row .icon { margin-bottom: 0; }

/* Pricing */
.pricing { align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 1.15rem; }
.plan__desc { color: var(--faint); font-size: 0.88rem; margin-bottom: 20px; }
.plan__price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.plan__soon {
  font-size: 0.8rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}
.plan .btn { margin-top: auto; }
.plan__per { font-size: 1rem; font-weight: 600; color: var(--faint); }
.pricing__note {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.pricing__note strong { color: var(--text); }
.plan--featured {
  border-color: rgba(139, 92, 246, 0.5);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), transparent 45%), var(--surface);
}
.plan__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(92deg, var(--indigo), var(--violet));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.faq__item { padding: 0; }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.97rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq__item[open] .faq__chev { transform: rotate(225deg); }
.faq__item p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.93rem;
}

/* CTA / demo form */
.cta {
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(139, 92, 246, 0.16), transparent 70%),
    var(--bg);
}
.cta__box {
  text-align: center;
}
.cta__box .section__lead { margin: 0 auto 36px; }
.demo-form {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.demo-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.demo-form label { display: block; margin-bottom: 16px; }
.demo-form label span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
}
.demo-form label em { font-style: normal; color: var(--faint); font-weight: 400; }
.demo-form input {
  width: 100%;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease;
}
.demo-form input:focus { border-color: var(--indigo); }
.demo-form input::placeholder { color: var(--faint); }
.demo-form button { margin-top: 6px; }
.demo-form__status {
  margin-top: 14px;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.4em;
}
.demo-form__status.is-ok { color: var(--emerald); }
.demo-form__status.is-error { color: var(--pink); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-top: 56px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
}
.footer__brand p {
  margin-top: 14px;
  color: var(--faint);
  font-size: 0.88rem;
}
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 6px;
}
.footer__col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  padding-bottom: 22px;
  color: var(--faint);
  font-size: 0.82rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 60px 0; }
  .stats, .steps, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .section { padding: 64px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .check-list--columns { grid-template-columns: 1fr; }
  .demo-form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  /* stack the flow visual vertically on small phones */
  .flow { flex-direction: column; }
  .flow__arrow { transform: rotate(90deg); }
  .phone, .order-card { width: 100%; max-width: 300px; }
}

/* ---------- Legal pages (/privacy, /terms) ---------- */
.legal { padding: 72px 0 90px; }
.legal__updated { color: var(--faint); font-size: 0.85rem; margin: -6px 0 34px; }
.legal h2 {
  font-size: 1.25rem;
  margin: 38px 0 12px;
}
.legal h3 { font-size: 1rem; margin: 20px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 0.95rem; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--indigo-light); }
.legal strong { color: var(--text); font-weight: 600; }
