/* Da Dice website. Matches the app: Material-ish, indigo seed, minimal. */
:root {
  --indigo: #4f46e5;
  --indigo-dark: #3e35c4;
  --indigo-soft: #e0e0ff;
  --bg: #fbfaff;
  --surface: #f3f2fa;
  --text: #1b1b24;
  --muted: #5c5c6b;
  --line: #d9d8e6;
  --radius: 20px;
  --max: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --indigo: #8d86ff;
    --indigo-dark: #a7a2ff;
    --indigo-soft: #2b2a5a;
    --bg: #121219;
    --surface: #1c1c26;
    --text: #ecebf5;
    --muted: #a5a4b8;
    --line: #2f2f40;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 22px; font-weight: 500; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 48px 0 32px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.25rem; color: var(--muted); max-width: 34rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px; font-weight: 600;
  background: var(--indigo); color: #fff; border: 1px solid transparent;
}
.btn:hover { background: var(--indigo-dark); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn.secondary:hover { background: var(--surface); }
.btn small { display: block; font-size: 0.72rem; font-weight: 500; opacity: 0.85; line-height: 1; }
.btn span { line-height: 1.1; }
.soon { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }

/* Phone frame */
.phone {
  width: min(300px, 70vw); margin: 0 auto;
  border-radius: 38px; padding: 10px;
  background: #15151c; box-shadow: 0 30px 60px rgba(20, 16, 80, 0.25);
}
.phone img { border-radius: 30px; }

/* Features */
.features { padding: 48px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 24px;
}
.card .glyph {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--indigo-soft); color: var(--indigo); font-weight: 700; margin-bottom: 14px;
  font-size: 1.2rem;
}
.card p { color: var(--muted); margin: 0; }

/* Screens */
.screens { padding: 24px 0 56px; }
.screens .row { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.screens figure { margin: 0; width: 230px; }
.screens figure .phone { width: 230px; padding: 8px; border-radius: 30px; }
.screens figure .phone img { border-radius: 23px; }
.screens figcaption { text-align: center; color: var(--muted); font-size: 0.95rem; margin-top: 12px; }

/* Callout */
.callout-wrap { padding-bottom: 56px; }
.callout {
  background: var(--indigo); color: #fff; border-radius: var(--radius);
  padding: 36px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.callout h2 { color: #fff; }
.callout p { color: rgba(255,255,255,0.85); margin: 0; max-width: 40rem; }
.callout a { color: #fff; font-weight: 600; white-space: nowrap; }

/* Prose pages */
.prose { padding: 32px 0 64px; max-width: 46rem; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.prose h2 { margin-top: 2em; font-size: 1.35rem; }
.prose .meta { color: var(--muted); margin-bottom: 2em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose code { background: var(--surface); padding: 2px 6px; border-radius: 6px; font-size: 0.95em; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .cta { justify-content: center; }
  .callout { grid-template-columns: 1fr; }
  .nav { gap: 14px; font-size: 0.95rem; }
}
