/* SaidChat — site
   Layout: one centered column (max 1120px); a hero split between the pitch and a live-looking phone,
   then feature rows and a calm document layout for the legal / help pages. */
:root {
  --ink: #17152B;
  --ink-soft: #5D5976;
  --paper: #F6F5FB;
  --card: #FFFFFF;
  --line: #E3E0EF;
  --majorelle: #4B3FD6;
  --majorelle-soft: #E7E4FF;
  --saffron: #F2A93B;
  --mint: #2FA36B;
  --bubble-them: #FFFFFF;
  --on-brand: #FFFFFF;
  --shadow: 0 30px 70px -28px rgba(40, 28, 120, 0.35);
  --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%234B3FD6' stroke-opacity='.13' stroke-width='1.2'%3E%3Crect x='24' y='24' width='40' height='40'/%3E%3Crect x='24' y='24' width='40' height='40' transform='rotate(45 44 44)'/%3E%3Cpath d='M0 0l24 24M88 0L64 24M0 88l24-24M88 88L64 64M44 0v15.7M44 88V72.3M0 44h15.7M88 44H72.3'/%3E%3C/g%3E%3C/svg%3E");
  --font-display: "Readex Pro", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F2F0FA; --ink-soft: #A6A2BF; --paper: #0F0E17; --card: #1A1826; --line: #2E2B40;
    --majorelle: #8B7EFF; --majorelle-soft: #262150; --bubble-them: #242233;
    --shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.7);
    --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%238B7EFF' stroke-opacity='.14' stroke-width='1.2'%3E%3Crect x='24' y='24' width='40' height='40'/%3E%3Crect x='24' y='24' width='40' height='40' transform='rotate(45 44 44)'/%3E%3Cpath d='M0 0l24 24M88 0L64 24M0 88l24-24M88 88L64 64M44 0v15.7M44 88V72.3M0 44h15.7M88 44H72.3'/%3E%3C/g%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #F2F0FA; --ink-soft: #A6A2BF; --paper: #0F0E17; --card: #1A1826; --line: #2E2B40;
  --majorelle: #8B7EFF; --majorelle-soft: #262150; --bubble-them: #242233;
  --shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.7);
  --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%238B7EFF' stroke-opacity='.14' stroke-width='1.2'%3E%3Crect x='24' y='24' width='40' height='40'/%3E%3Crect x='24' y='24' width='40' height='40' transform='rotate(45 44 44)'/%3E%3Cpath d='M0 0l24 24M88 0L64 24M0 88l24-24M88 88L64 64M44 0v15.7M44 88V72.3M0 44h15.7M88 44H72.3'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--majorelle); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--majorelle); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; margin: 0; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.nav { display: flex; gap: 26px; margin-left: auto; font-weight: 500; font-size: 15.5px; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15.5px;
  border-radius: 14px; padding: 12px 18px; border: 1px solid transparent; cursor: pointer; font-family: var(--font-body);
}
.btn-primary { background: var(--majorelle); color: var(--on-brand); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-store { background: var(--ink); color: var(--paper); padding: 10px 18px; min-width: 190px; }
.btn-store small { display: block; font-weight: 500; font-size: 12px; opacity: 0.75; line-height: 1.2; }
.btn-store b { display: block; font-size: 17px; line-height: 1.2; font-family: var(--font-display); }
.btn-store svg { width: 26px; height: 26px; flex: none; }
.btn-store[aria-disabled="true"] { cursor: default; }
.header-cta { padding: 9px 14px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; background-image: var(--zellige); background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; padding-block: 64px 80px; }
.eyebrow { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--majorelle); }
.hero h1 { font-size: clamp(40px, 6vw, 66px); margin-top: 16px; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--majorelle); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.16em; background: var(--saffron); border-radius: 4px; z-index: -1; opacity: 0.85; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 34em; margin: 22px 0 0; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.soon { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }

/* phone mockup */
.phone {
  width: min(330px, 100%); aspect-ratio: 330 / 640; margin-left: auto; margin-right: auto; border-radius: 46px; background: #121019; padding: 10px;
  box-shadow: var(--shadow); position: relative; max-width: 100%;
}
.screen { width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; font-size: 14px; }
.scr-head { background: var(--card); display: flex; align-items: center; gap: 10px; padding: 40px 14px 12px; border-bottom: 1px solid var(--line); }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; flex: none; position: relative; }
.av::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); border: 2px solid var(--card); }
.scr-head b { display: block; font-size: 15px; }
.scr-head span { font-size: 12px; color: var(--majorelle); }
.scr-head .acts { margin-left: auto; display: flex; gap: 12px; color: var(--majorelle); }
.scr-body { flex: 1; padding: 14px 10px; display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; }
.b { max-width: 78%; padding: 8px 12px; border-radius: 18px; line-height: 1.35; font-size: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.b small { display: block; text-align: right; font-size: 10.5px; opacity: 0.7; margin-top: 2px; font-variant-numeric: tabular-nums; }
.them { background: var(--bubble-them); color: var(--ink); border-bottom-left-radius: 6px; align-self: flex-start; }
.me { background: var(--majorelle); color: var(--on-brand); border-bottom-right-radius: 6px; align-self: flex-end; }
.me small { color: #BFF0FF; opacity: 1; }
.voice { display: flex; align-items: center; gap: 8px; min-width: 190px; }
.voice .wv { flex: 1; height: 22px; display: flex; align-items: center; gap: 2px; }
.voice .wv i { flex: 1; background: currentColor; border-radius: 2px; opacity: 0.5; }
.voice .wv i.on { opacity: 1; }
.typing { align-self: flex-start; background: var(--bubble-them); border-radius: 18px; padding: 10px 14px; display: flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: dot 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.scr-input { background: var(--card); border-top: 1px solid var(--line); padding: 10px 10px 18px; display: flex; gap: 8px; align-items: center; }
.scr-input span { flex: 1; background: var(--paper); border-radius: 20px; padding: 9px 14px; color: var(--ink-soft); }
.scr-input i { width: 36px; height: 36px; border-radius: 50%; background: var(--majorelle); display: grid; place-items: center; color: #fff; }
.call-chip { position: absolute; left: -24px; bottom: 120px; background: var(--card); border-radius: 18px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); font-size: 14px; border: 1px solid var(--line); }
.call-chip .ring { width: 40px; height: 40px; border-radius: 50%; background: var(--mint); color: #fff; display: grid; place-items: center; }
.call-chip b { display: block; font-family: var(--font-display); }
.call-chip span { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */
section { padding-block: 72px; }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 42px); margin-top: 10px; }
.sec-head p { color: var(--ink-soft); margin: 14px 0 0; font-size: 18px; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.feature .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--majorelle-soft); color: var(--majorelle); display: grid; place-items: center; }
.feature h3 { font-size: 19px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

.safety { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.safety-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checklist li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; padding-top: 4px; }
.checklist .tick { width: 30px; height: 30px; border-radius: 50%; background: var(--majorelle-soft); color: var(--majorelle); display: grid; place-items: center; }
.checklist b { font-family: var(--font-display); font-size: 17.5px; display: block; }
.checklist span { color: var(--ink-soft); font-size: 15.5px; }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 17px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--majorelle); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }

.cta-band { padding-block: 64px; }
.cta-card { background: var(--majorelle); color: var(--on-brand); border-radius: 28px; padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; }
.cta-card::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.12' stroke-width='1.2'%3E%3Crect x='24' y='24' width='40' height='40'/%3E%3Crect x='24' y='24' width='40' height='40' transform='rotate(45 44 44)'/%3E%3Cpath d='M0 0l24 24M88 0L64 24M0 88l24-24M88 88L64 64M44 0v15.7M44 88V72.3M0 44h15.7M88 44H72.3'/%3E%3C/g%3E%3C/svg%3E"); background-size: 88px; pointer-events: none; }
.cta-card > * { position: relative; }
.cta-card h2 { font-size: clamp(28px, 3.6vw, 38px); max-width: 16em; }
.cta-card p { margin: 10px 0 0; opacity: 0.85; }
.cta-card .btn-store { background: #FFFFFF; color: #17152B; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 48px; font-size: 15px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- documents (privacy, terms, help) ---------- */
.doc { padding-block: 56px 72px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); }
.doc .updated { color: var(--ink-soft); font-size: 15px; margin-top: 10px; }
.doc h2 { font-size: 23px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--ink); max-width: 68ch; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .muted { color: var(--ink-soft); }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--majorelle); border-radius: 14px; padding: 18px 20px; margin: 24px 0; }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }
.email { font-family: var(--font-display); font-weight: 600; font-size: 19px; user-select: all; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; margin: 0 !important; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--majorelle); color: var(--on-brand); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.toc a { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-size: 14.5px; color: var(--ink); }
.toc a:hover { border-color: var(--majorelle); }
table.data { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.table-scroll { overflow-x: auto; margin: 16px 0; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 14px; padding-block: 80px; }
.notfound .big { font-family: var(--font-display); font-size: 96px; font-weight: 700; color: var(--majorelle); line-height: 1; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safety-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 40px 56px; gap: 44px; }
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .call-chip { left: 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  section { padding-block: 52px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .btn-store { flex: 1 1 100%; justify-content: center; }
  .cta-card { padding: 32px 24px; }
  .call-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
