/* ================================================================
   Dirifari site styles
   Brand tokens follow the app (Material 3 baseline: primary #6750A4).
   The legacy classes (.header, .nav, .content, .cta, .footer) are kept:
   the legal pages and the invite landing page (/i/) still use them.
================================================================ */
:root {
  --brand: #6750a4;
  --brand-dark: #4a3788;
  --brand-ink: #21005d;
  --surface: #f3edf7;
  --surface-2: #e9ddff;
  --bg: #fcfaff;
  --card: #ffffff;
  --text: #1d1b20;
  --muted: #5f5b66;
  --line: rgba(29, 27, 32, 0.1);
  --ok: #0ab45d;
  --radius: 18px;
  --maxw: 1120px;
  --shadow: 0 10px 30px rgba(74, 55, 136, 0.12);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; color: var(--text); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 0 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------------- Header ---------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.logo img { width: 54px; height: 36px; object-fit: contain; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switcher select {
  font: inherit; font-size: 0.9rem; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text);
}

/* ---------------- Buttons ---------------- */
.cta, .btn {
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--brand);
  transition: background 0.15s ease, transform 0.15s ease;
  margin-top: 0;
}
.cta:hover, .btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn.secondary, .cta.secondary { background: transparent; color: var(--brand); }
.btn.secondary:hover { background: var(--surface); }
.btn.light { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn.small { padding: 8px 14px; font-size: 0.9rem; }
.btn[hidden], .store-soon[hidden] { display: none; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-soon { color: var(--muted); font-size: 0.92rem; }

/* ---------------- Hero ---------------- */
.hero {
  background: radial-gradient(1200px 500px at 85% 0%, var(--surface-2), transparent 60%), var(--surface);
  padding: 56px 0 0;
  text-align: left;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; }
.hero-copy { padding-bottom: 56px; }
.eyebrow { display: inline-block; font-weight: 700; color: var(--brand); font-size: 0.9rem; letter-spacing: 0.02em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); margin: 0 0 16px; letter-spacing: -0.02em; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; margin: 0 0 18px; }
.quote-chip {
  display: inline-block; background: #fff; border-radius: 14px; padding: 10px 14px;
  box-shadow: var(--shadow); font-style: italic; margin: 0 0 24px; max-width: 34rem;
}
.quote-chip::before { content: "🎤 "; font-style: normal; }
.hero .store-row { margin-bottom: 14px; }
.hero-note { color: var(--muted); font-size: 0.92rem; margin: 0; }
.hero-phones { display: flex; justify-content: center; gap: 18px; align-items: flex-end; }
.hero-phones .phone:nth-child(2) { margin-bottom: -40px; }

.phone {
  width: 100%;
  max-width: 270px;
  border-radius: 28px;
  border: 8px solid #1d1b20;
  background: #1d1b20;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.phone img { border-radius: 20px; width: 100%; aspect-ratio: 540 / 1200; object-fit: cover; }

/* ---------------- Sections ---------------- */
.section { padding: 80px 0; }
.section.alt { background: var(--surface); }
.section-head { max-width: 46rem; margin: 0 0 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.pain { background: var(--brand-ink); color: #f3edf7; padding: 40px 0; }
.pain p { margin: 0 auto; max-width: 52rem; font-size: 1.2rem; text-align: center; }
.pain strong { color: #fff; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step p { margin: 0; color: var(--muted); }
.step .phone { max-width: 240px; margin: 6px auto 0; }

/* Feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 36px 0; }
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.reverse .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; }
.feature-copy p { color: var(--muted); font-size: 1.08rem; margin: 0 0 10px; }
.feature-copy ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.tag { display: inline-block; align-self: flex-start; font-size: 0.8rem; font-weight: 700; color: var(--brand); background: var(--surface-2); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.tile { background: var(--card); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.tile .icon { font-size: 1.6rem; margin-bottom: 8px; }
.tile p { margin: 0; color: var(--muted); }
.tile.soon { border-style: dashed; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 880px; margin: 0 auto; }
.plan { background: var(--card); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .price { font-size: 2.2rem; font-weight: 800; margin: 0; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.plan .btn { margin-top: auto; }
.founder { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-size: 0.95rem; }
.fineprint { color: var(--muted); font-size: 0.88rem; text-align: center; margin: 24px auto 0; max-width: 44rem; }

/* Request credits: how they are counted and how to earn more */
.credits { max-width: 880px; margin: 48px auto 0; text-align: center; }
.credits > h3 { font-size: 1.35rem; margin-bottom: 12px; }
.credits > p { color: var(--muted); max-width: 44rem; margin: 0 auto 32px; }
.credits .tiles { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; text-align: left; }
.credits .tile h4 { font-size: 1.05rem; line-height: 1.2; color: var(--text); margin: 0 0 6px; }
.credits .fineprint { margin-top: 16px; }
@media (max-width: 720px) {
    .credits .tiles { grid-template-columns: 1fr; }
    .credits .tile { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 16px 18px; }
    .credits .tile .icon { grid-row: span 2; margin: 0; }
}

/* FAQ */
.faq { max-width: 52rem; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.cta-band h2, .cta-band p { color: #fff; margin: 0 0 8px; }
.cta-band .store-row { justify-content: flex-end; }
.cta-band .store-soon { color: #e9ddff; }

/* Waitlist (waitlist.html, waitlist-confirm.html) */
.waitlist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.waitlist-copy h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0 0 14px; letter-spacing: -0.02em; }
.waitlist-copy .lead { font-size: 1.15rem; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.form-card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.field > span, .field legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.field input[type=email] {
  font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid #cac4d0; background: #fff; color: var(--text);
}
.field input[type=email]:focus, .consent input:focus-visible, .choices input:focus-visible { outline: 3px solid var(--surface-2); outline-offset: 1px; border-color: var(--brand); }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.segmented legend { width: 100%; }
.segmented label, .choices label {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer; background: #fff;
}
.segmented label:has(input:checked), .choices label:has(input:checked) { border-color: var(--brand); background: var(--surface); }
.choices { display: grid; gap: 8px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--muted); }
.consent input { margin-top: 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; color: #b3261e; font-weight: 600; }
.form-card .btn { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.muted { color: var(--muted); }
.confirm { text-align: left; }
.confirm .btn { margin-top: 8px; }

/* Product cards (product.html) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--card); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.card p { margin: 0; color: var(--muted); }

/* ---------------- Legacy content pages ---------------- */
.content { max-width: 860px; margin: 0 auto; padding: 56px 20px; }
.content h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 0; }
.content p, .content li { color: var(--muted); font-size: 1.05rem; }
.investor-materials { max-width: 860px; margin: 0 auto; padding: 0 20px 56px; }
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.download-card { display: block; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.download-card:hover { border-color: var(--brand); }
.download-card p { margin: 6px 0 0; }

/* ---------------- Footer ---------------- */
.footer {
  margin-top: 0;
  padding: 36px 20px;
  background: #1d1b20;
  color: #cac4d0;
  text-align: center;
  font-size: 0.92rem;
}
.footer a { color: #e9ddff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 0 0 10px; padding: 0; list-style: none; }
.footer p { margin: 6px 0; }

/* ---------------- Coming soon (legacy) ---------------- */
body.coming-soon { display: grid; place-items: center; min-height: 100vh; text-align: center; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero-grid, .feature-row, .cta-band, .waitlist-grid { grid-template-columns: 1fr; }
  .hero { text-align: left; }
  .hero-copy { padding-bottom: 8px; }
  .hero-phones .phone:nth-child(2) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .feature-row { gap: 24px; }
  .feature-row.reverse .feature-media { order: 0; }
  .plans { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 24px; }
  .cta-band .store-row { justify-content: flex-start; }
  .section { padding: 56px 0; }
}
@media (max-width: 720px) {
  .header { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .nav a { white-space: nowrap; }
  .header-actions .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .cta { transition: none; }
}
