/* Sigamos website. Mirrors the app's palette (src/constants/theme.ts): one hot
   accent, flame orange, on near-black (dark) or iOS grouped gray (light). */

:root {
  --bg: #f2f2f7;
  --card: #ffffff;
  --card-raised: #ebebf0;
  --border: #e3e3e8;
  --text: #0b0b0f;
  --text-2: #5f5f6b;
  --text-3: #8e8e99;
  --flame: #ff6b1a;
  --flame-ink: #c2410c;
  --flame-soft: rgba(255, 107, 26, 0.12);
  --pink: #ff7aa2;
  --radius: 24px;
  --shadow: 0 20px 60px rgba(11, 11, 15, 0.12);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0f;
    --card: #16161d;
    --card-raised: #1e1e27;
    --border: #26262f;
    --text: #f5f5f7;
    --text-2: #a1a1ab;
    --text-3: #6e6e7a;
    --flame-ink: #ff8a4c;
    --flame-soft: rgba(255, 107, 26, 0.16);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand {
  font-family: ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

a { color: var(--flame-ink); }
a:hover { text-decoration-thickness: 2px; }

img, svg { max-width: 100%; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }

/* ─── Header / footer ─────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 36px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover { color: var(--text); }

.site-footer { border-top: 1px solid var(--border); margin-top: 96px; padding: 32px 0 48px; color: var(--text-3); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--text-2); text-decoration: none; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 16px;
  font-weight: 700; font-size: 17px; text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--flame); color: #000; }
.btn-secondary { background: var(--card-raised); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.note { color: var(--text-3); font-size: 14px; margin-top: 10px; }

/* ─── Home ────────────────────────────────────────────────────────────────── */

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 72px 0 40px; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 14px; color: var(--flame-ink); background: var(--flame-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(42px, 7vw, 72px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--flame); }
.lede { font-size: 20px; color: var(--text-2); margin: 20px 0 28px; max-width: 34ch; }

.phone {
  position: relative; justify-self: center;
  width: min(320px, 80vw); aspect-ratio: 393 / 852;
  border-radius: 44px; padding: 10px; background: #0b0b0f;
  box-shadow: var(--shadow), inset 0 0 0 2px #26262f;
}
.phone .screen { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; display: block; }
.phone .lotl { position: absolute; width: 120px; height: auto; left: -64px; bottom: 40px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25)); }

section { padding: 56px 0; }
.section-title { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; margin-bottom: 12px; }
.section-lede { color: var(--text-2); font-size: 19px; max-width: 60ch; margin: 0 0 32px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .icon { font-size: 30px; line-height: 1; }
.feature h3 { font-size: 20px; margin: 14px 0 8px; }
.feature p { margin: 0; color: var(--text-2); font-size: 16px; }

.screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.screens figure { margin: 0; }
.screens img { width: 100%; border-radius: 28px; border: 1px solid var(--border); box-shadow: var(--shadow); display: block; }
.screens figcaption { text-align: center; color: var(--text-2); font-size: 15px; margin-top: 12px; }

.moods { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.mood { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 16px 8px 12px; text-align: center; }
.mood img { width: 72px; height: 86px; }
.mood b { display: block; margin-top: 6px; font-size: 15px; }
.mood span { display: block; color: var(--text-3); font-size: 13px; line-height: 1.35; margin-top: 2px; }

.promise { background: var(--card); border: 1px solid var(--border); border-radius: 32px; padding: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.promise h3 { font-size: 19px; margin-bottom: 6px; }
.promise p { margin: 0; color: var(--text-2); font-size: 16px; }

.cta { text-align: center; background: var(--flame-soft); border: 1px solid color-mix(in srgb, var(--flame) 40%, transparent); border-radius: 32px; padding: 56px 24px; }
.cta img { width: 96px; height: 115px; }
.cta h2 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; margin: 12px 0; }
.cta p { color: var(--text-2); margin: 0 auto 24px; max-width: 46ch; }
.cta .btn-row { justify-content: center; }

/* ─── Documents (privacy, terms, support) ────────────────────────────────── */

.doc { padding: 56px 0 0; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); font-weight: 800; }
.doc .updated { color: var(--text-3); margin: 8px 0 32px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc h3 { font-size: 19px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .summary { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.doc .summary p { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.doc th { color: var(--text); font-weight: 700; }
.doc td { color: var(--text-2); }
.table-scroll { overflow-x: auto; }

details { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px 20px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 700; color: var(--text); }
details p { margin: 10px 0 0; }

/* ─── Invite ──────────────────────────────────────────────────────────────── */

.invite { min-height: calc(100vh - 64px); display: grid; place-items: center; text-align: center; padding: 48px 0; }
.invite img { width: 120px; height: 144px; }
.invite h1 { font-size: clamp(32px, 6vw, 44px); font-weight: 800; margin: 16px 0 8px; }
.invite p { color: var(--text-2); max-width: 40ch; margin: 0 auto 24px; }
.code { display: inline-block; font: 800 34px/1 ui-rounded, 'SF Pro Rounded', -apple-system, sans-serif; letter-spacing: 0.25em; color: var(--flame); background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px 20px 16px 28px; margin-bottom: 24px; }
.invite .btn-row { justify-content: center; }
.steps { text-align: left; max-width: 420px; margin: 32px auto 0; color: var(--text-2); }

/* ─── Small screens ───────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; text-align: left; }
  .phone .lotl { left: -24px; width: 96px; }
  .features { grid-template-columns: 1fr 1fr; }
  .screens { grid-template-columns: repeat(2, 1fr); }
  .moods { grid-template-columns: repeat(3, 1fr); }
  .promise { grid-template-columns: 1fr; padding: 28px; }
}

@media (max-width: 560px) {
  .nav { gap: 14px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .features { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}
