/* Totipo website — the landing page and the legal pages share this file. */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6fa;
  --surface: #ffffff;
  --border: #e4e4ea;
  --text: #16161a;
  --subtle: #5f5f6b;
  --accent: #4f46e5;
  --accent-soft: #eef0ff;
  --accent-text: #ffffff;
  --bubble: #f1f1f5;
  --shadow: 0 24px 60px -24px rgba(36, 30, 120, 0.35);
  --radius: 18px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e13;
    --bg-soft: #15151c;
    --surface: #1a1a22;
    --border: #2a2a35;
    --text: #f2f2f6;
    --subtle: #a3a3b2;
    --accent: #8b84ff;
    --accent-soft: #23214a;
    --accent-text: #0e0e13;
    --bubble: #24242e;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0e0e13;
  --bg-soft: #15151c;
  --surface: #1a1a22;
  --border: #2a2a35;
  --text: #f2f2f6;
  --subtle: #a3a3b2;
  --accent: #8b84ff;
  --accent-soft: #23214a;
  --accent-text: #0e0e13;
  --bubble: #24242e;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

a {
  color: var(--accent);
}

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

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand svg {
  width: 30px;
  height: 30px;
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav a {
  color: var(--subtle);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

.nav .button {
  color: var(--accent-text);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 40px 0 48px;
  font-size: 14px;
  color: var(--subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0 0 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: var(--subtle);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.fineprint {
  margin-top: 32px;
  font-size: 13px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 0;
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 20px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}

.store svg {
  width: 26px;
  height: 26px;
}

.store small {
  display: block;
  font-size: 11px;
  opacity: 0.75;
  line-height: 1.2;
}

.store strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

/* ── Landing ─────────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 56px;
  background: radial-gradient(1200px 500px at 85% -10%, var(--accent-soft), transparent 60%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 18px 0 18px;
}

.hero p.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--subtle);
  max-width: 34em;
  margin: 0 0 28px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.stores-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--subtle);
}

/* Phone mockup with a chat */
.phone {
  justify-self: center;
  width: min(340px, 100%);
  aspect-ratio: 9 / 18.5;
  border-radius: 44px;
  background: var(--surface);
  border: 10px solid var(--text);
  box-shadow: var(--shadow);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.phone-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  padding: 0 4px 8px;
  border-bottom: 1px solid var(--border);
}

.phone-bar span:last-child {
  font-size: 12px;
  font-weight: 600;
  color: var(--subtle);
  background: var(--bubble);
  border-radius: 999px;
  padding: 3px 10px;
}

.bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
}

.bubble.me {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-text);
  border-bottom-right-radius: 6px;
}

.bubble.ai {
  align-self: flex-start;
  background: var(--bubble);
  border-bottom-left-radius: 6px;
}

.status {
  font-size: 12px;
  color: var(--subtle);
  padding-left: 4px;
}

.mini-app {
  margin-top: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: var(--bg-soft);
}

.mini-app h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.meter {
  height: 10px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  width: 62%;
  background: var(--accent);
  border-radius: 999px;
}

.mini-app p {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--subtle);
}

.section {
  padding: 80px 0;
}

.section.soft {
  background: var(--bg-soft);
}

.section h2 {
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 12px;
}

.section .intro {
  color: var(--subtle);
  font-size: 18px;
  max-width: 40em;
  margin: 0 0 40px;
}

.steps,
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.features {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.card .num,
.card .emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--subtle);
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--subtle);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 16px;
  color: var(--subtle);
}

.cta {
  text-align: center;
}

.cta .intro {
  margin-left: auto;
  margin-right: auto;
}

.cta .stores {
  justify-content: center;
}

/* ── Legal pages ─────────────────────────────────────────────────── */

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 8px;
}

.legal .updated {
  color: var(--subtle);
  margin: 0 0 28px;
}

.legal h2 {
  font-size: 23px;
  letter-spacing: -0.01em;
  margin: 48px 0 12px;
  padding-top: 8px;
  scroll-margin-top: 80px;
}

.legal h3 {
  font-size: 18px;
  margin: 28px 0 8px;
  scroll-margin-top: 80px;
}

.legal p,
.legal li {
  color: var(--text);
}

.legal ul,
.legal ol {
  padding-left: 1.4em;
}

.legal li {
  margin: 6px 0;
}

.legal .caps {
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.notice {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0;
}

.notice p:first-child {
  margin-top: 0;
}

.notice p:last-child {
  margin-bottom: 0;
}

.toc {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 24px 0 8px;
  background: var(--surface);
}

.toc h2 {
  margin: 0 0 8px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--subtle);
  padding: 0;
}

.toc ol {
  columns: 2;
  column-gap: 32px;
  margin: 0;
  font-size: 15px;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
  min-width: 560px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--border);
  padding: 10px 12px;
}

th {
  background: var(--bg-soft);
}

/* Unfilled details (company name, address) — visible on purpose so they can't ship unnoticed */
.ph {
  background: #fff3bf;
  color: #5c4400;
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 600;
}

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

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .phone {
    width: min(300px, 100%);
  }

  .steps,
  .features {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }

  .nav a:not(.button) {
    display: none;
  }

  .hero {
    padding: 44px 0 40px;
  }

  .section {
    padding: 56px 0;
  }

  .legal {
    padding: 32px 16px 64px;
  }

  .toc ol {
    columns: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
