/* ═══════════════════════════════════════════════════════════════════
   daamokay public site stylesheet (/, /about, /faq, /contact, /privacy,
   /terms, /guides, 404) — plain CSS, no framework, ~zero JS.

   Design tokens are copied from the app (src/index.css) so the site and
   the chat app share one visual language. If the app palette changes,
   re-copy the two token blocks below.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --color-bg: #04040a;
  --color-bg-raised: #0a0a14;
  --color-bg-card: #0e0e1a;
  --color-bg-glass: rgba(10, 10, 20, 0.6);
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-light: rgba(255, 255, 255, 0.10);
  --color-text: #e8e8f0;
  --color-text-secondary: #9898b0;
  --color-text-muted: #5a5a78;
  --color-accent: #7c3aed;
  --color-accent-glow: #a78bfa;
  --color-accent-secondary: #06b6d4;
  --brand-orange: #FF6B35;
  --font-sans: 'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
}

html[data-theme='light'] {
  --color-bg: #eef2f7;
  --color-bg-raised: #f4f7fb;
  --color-bg-card: #fafcff;
  --color-bg-glass: rgba(250, 252, 255, 0.75);
  --color-border: rgba(30, 64, 175, 0.09);
  --color-border-light: rgba(30, 64, 175, 0.14);
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #7c8ba1;
  --color-accent: #2563eb;
  --color-accent-glow: #3b82f6;
  --color-accent-secondary: #0891b2;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.site { min-height: 100dvh; display: flex; flex-direction: column; }
.s-main { flex: 1; }

a { color: var(--color-accent-glow); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ─── Brand mark (mirrors app styles) ─── */
.brand-logo { display: inline-flex; align-items: center; gap: 8px; line-height: 1; user-select: none; }
.brand-logo__icon { display: block; height: var(--brand-icon-size, 26px); width: auto; }
.brand-word {
  font-family: 'Baloo 2', var(--font-display);
  font-size: var(--brand-word-size, 17px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-text);
  line-height: 1;
}
.brand-word__o { color: var(--brand-orange); }
.s-header__brand:hover, .s-footer__brand-col:hover { text-decoration: none; }

/* ─── Header ─── */
.s-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg-glass);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border-bottom: 1px solid var(--color-border);
}
.s-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.s-header__links { display: flex; align-items: center; gap: 20px; }
.s-header__link {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}
.s-header__link:hover { color: var(--color-text); text-decoration: none; }
.s-header__link[aria-current='page'] { color: var(--color-text); }
.s-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
}
.s-theme-toggle:hover { color: var(--color-text); background: rgba(255,255,255,0.05); }
html[data-theme='light'] .s-theme-toggle:hover { background: rgba(15, 23, 42, 0.05); }
.s-theme-toggle__sun { display: block; }
.s-theme-toggle__moon { display: none; }
html[data-theme='light'] .s-theme-toggle__sun { display: none; }
html[data-theme='light'] .s-theme-toggle__moon { display: block; }
@media (max-width: 640px) {
  .s-header__link { display: none; } /* CTA remains on mobile */
}

/* ─── Buttons ─── */
.s-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.s-btn:hover { text-decoration: none; transform: translateY(-1px); }
.s-btn--primary {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #ff8c5c 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(255, 107, 53, 0.25);
}
.s-btn--primary:hover { box-shadow: 0 6px 28px rgba(255, 107, 53, 0.4); }
.s-btn--ghost {
  border-color: var(--color-border-light);
  color: var(--color-text);
  background: transparent;
}
.s-btn--ghost:hover { background: rgba(255, 255, 255, 0.05); }
html[data-theme='light'] .s-btn--ghost:hover { background: rgba(15, 23, 42, 0.05); }
.s-btn--lg { padding: 14px 28px; font-size: 1.05rem; border-radius: var(--radius-md); }

/* ─── Hero ─── */
.s-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 24px 90px;
  text-align: center;
}
.s-hero__aura { position: absolute; inset: 0; pointer-events: none; }
.s-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.s-orb--1 { width: 480px; height: 480px; top: -140px; left: 8%; background: var(--color-accent); opacity: 0.35; }
.s-orb--2 { width: 380px; top: 10%; right: -80px; background: var(--brand-orange); opacity: 0.22; }
.s-orb--3 { width: 320px; bottom: -160px; left: 20%; background: var(--color-accent-secondary); opacity: 0.18; }
.s-hero__inner { position: relative; max-width: 780px; margin: 0 auto; }
.s-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-orange);
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
}
.s-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 22px;
}
.s-accent-word { color: var(--brand-orange); }
.s-hero__sub {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 620px;
  margin: 0 auto 34px;
}
.s-hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── Sections ─── */
.s-section { padding: 70px 24px; }
.s-section--raised { background: var(--color-bg-raised); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.s-section__inner { max-width: 1080px; margin: 0 auto; }
.s-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 10px;
}
.s-section__sub { text-align: center; color: var(--color-text-secondary); margin-bottom: 48px; }

/* Steps */
.s-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.s-step {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  position: relative;
}
.s-step__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.s-step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.12);
  color: var(--color-accent-glow);
}
html[data-theme='light'] .s-step__icon { background: rgba(37, 99, 235, 0.1); color: var(--color-accent); }
.s-step__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-muted);
  opacity: 0.5;
}
.s-step h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 8px; }
.s-step p { color: var(--color-text-secondary); font-size: 0.95rem; }

/* Cards */
.s-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.s-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
}
.s-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.1);
  color: var(--color-accent-secondary);
  margin-bottom: 16px;
}
html[data-theme='light'] .s-card__icon { background: rgba(8, 145, 178, 0.1); }
.s-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 8px; }
.s-card p { color: var(--color-text-secondary); font-size: 0.95rem; }

/* CTA band */
.s-cta-band {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 54px 34px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 160% at 50% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 60%),
    var(--color-bg-card);
  border: 1px solid var(--color-border-light);
}
.s-cta-band h2 { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.s-cta-band p { color: var(--color-text-secondary); margin-bottom: 26px; }

/* ─── Content pages ─── */
.s-page { max-width: 1080px; margin: 0 auto; padding: 64px 24px 40px; }
.s-page--narrow { max-width: 760px; }
.s-page__head { margin-bottom: 36px; }
.s-page__head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.s-page__lede { font-size: 1.1rem; color: var(--color-text-secondary); max-width: 620px; }
.s-page__meta { color: var(--color-text-muted); font-size: 0.9rem; }
.s-page__cta {
  margin-top: 40px;
  text-align: center;
  padding: 40px 24px;
  border: 1px dashed var(--color-border-light);
  border-radius: var(--radius-md);
}
.s-page__cta p { color: var(--color-text-secondary); margin: 12px 0 20px; }

.s-banner {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 157, 11, 0.35);
  color: inherit;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.92rem;
  margin-bottom: 28px;
}

/* Prose */
.s-prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  margin: 34px 0 12px;
}
.s-prose h3 { font-family: var(--font-display); font-size: 1.1rem; margin: 24px 0 8px; }
.s-prose p { margin-bottom: 14px; color: var(--color-text-secondary); }
.s-prose p strong { color: var(--color-text); }
.s-prose em { color: var(--color-text); }
.s-prose ul { margin: 0 0 16px 22px; color: var(--color-text-secondary); }
.s-prose li { margin-bottom: 8px; }
.s-li-icon { vertical-align: -2px; margin-right: 4px; color: var(--color-accent-glow); }
.s-prose table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 0.92rem; }
.s-prose th {
  text-align: left;
  font-family: var(--font-display);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
  padding: 10px 12px;
}
.s-prose td { border-bottom: 1px solid var(--color-border); padding: 10px 12px; color: var(--color-text-secondary); }
.s-prose blockquote {
  border-left: 3px solid var(--brand-orange);
  padding: 4px 0 4px 16px;
  margin: 18px 0;
  color: var(--color-text-secondary);
}
.s-prose .s-btn { margin: 10px 0 16px; }

/* FAQ */
.s-faq { display: flex; flex-direction: column; gap: 12px; }
.s-faq__heading {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  margin: 28px 0 4px;
}
.s-faq__heading:first-child { margin-top: 0; }
.s-faq__item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 20px;
}
.s-faq__item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
  padding: 18px 0;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.s-faq__item summary::-webkit-details-marker { display: none; }
.s-faq__item summary::after {
  content: '+';
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-orange);
  font-size: 1.3rem;
  font-weight: 400;
}
.s-faq__item[open] summary::after { content: '−'; }
.s-faq__item p { color: var(--color-text-secondary); padding-bottom: 18px; font-size: 0.97rem; }

/* Contact cards */
.s-contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 16px;
}
.s-contact-card svg { flex-shrink: 0; color: var(--color-accent-glow); margin-top: 4px; }
html[data-theme='light'] .s-contact-card svg { color: var(--color-accent); }
.s-contact-card h2 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 4px; }
.s-contact-card p { margin: 0; color: var(--color-text-secondary); font-size: 0.95rem; }

/* Guides */
.s-guide-list { display: flex; flex-direction: column; gap: 14px; }
.s-guide-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.s-guide-card:hover { text-decoration: none; border-color: var(--color-border-light); transform: translateY(-2px); }
.s-guide-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.12);
  color: var(--color-accent-glow);
}
html[data-theme='light'] .s-guide-card__icon { background: rgba(37, 99, 235, 0.1); color: var(--color-accent); }
.s-guide-card h2 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 4px; }
.s-guide-card p { color: var(--color-text-secondary); font-size: 0.93rem; margin-bottom: 6px; }
.s-guide-card time { color: var(--color-text-muted); font-size: 0.82rem; }
.s-guide-card--sample { opacity: 0.75; }
.s-guide-sample { margin-top: 44px; padding-top: 28px; border-top: 1px dashed var(--color-border-light); }
.s-guide-sample h2 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 8px; }
.s-guide-sample > p { color: var(--color-text-muted); font-size: 0.92rem; margin-bottom: 18px; }
.s-guide-empty {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--color-border-light);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
}
.s-guide-empty svg { color: var(--color-text-muted); margin-bottom: 8px; }
.s-guide-empty p { margin-bottom: 16px; }

/* 404 */
.s-404 { text-align: center; padding-top: 90px; }
.s-404__code {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--brand-orange);
  opacity: 0.85;
  line-height: 1;
  margin-bottom: 8px;
}
.s-404 .s-btn { margin-top: 16px; }

/* ─── Footer ─── */
.s-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-raised);
  padding: 48px 24px 28px;
  margin-top: 40px;
}
.s-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 720px) { .s-footer__inner { grid-template-columns: 1fr 1fr; } }
.s-footer__blurb { color: var(--color-text-secondary); font-size: 0.92rem; margin-top: 12px; max-width: 300px; }
.s-footer__col { display: flex; flex-direction: column; gap: 10px; }
.s-footer__heading {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.s-footer__col a { color: var(--color-text-secondary); font-size: 0.93rem; }
.s-footer__col a:hover { color: var(--color-text); text-decoration: none; }
.s-footer__bottom {
  max-width: 1080px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}