/* Croco website. Colours are the app's own tokens (croco/App/Resources/Assets.xcassets): background,
   dark background 21,21,21, accent green #007F63 (small text in dark mode #1FA383). Greys are black/white at
   opacity, so no new colours. */
:root {
  --bg: #F9F9F9;
  --surface: #FFFFFF;
  --text: #151515;
  --muted: rgba(21, 21, 21, 0.68);
  --line: rgba(21, 21, 21, 0.1);
  --accent: #007F63;
  --accent-text: #007F63;
  --accent-soft: rgba(0, 127, 99, 0.12);
  --on-accent: #FFFFFF;
  --radius: 20px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151515;
    --surface: rgba(255, 255, 255, 0.05);
    --text: #F9F9F9;
    --muted: rgba(249, 249, 249, 0.7);
    --line: rgba(249, 249, 249, 0.12);
    --accent-text: #1FA383;
    --accent-soft: rgba(31, 163, 131, 0.16);
  }
}

:root[data-theme="dark"] {
  --bg: #151515;
  --surface: rgba(255, 255, 255, 0.05);
  --text: #F9F9F9;
  --muted: rgba(249, 249, 249, 0.7);
  --line: rgba(249, 249, 249, 0.12);
  --accent-text: #1FA383;
  --accent-soft: rgba(31, 163, 131, 0.16);
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.2rem, 6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 36em; }
.eyebrow { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }

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

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 0.95rem; font-weight: 800; }
.nav { display: flex; gap: 18px; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 560px) { .nav a.optional { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 0; cursor: default; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.soon { font-size: 0.9rem; color: var(--muted); align-self: center; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-art { position: relative; justify-self: center; width: min(78%, 380px); }
.hero-art::before { content: ""; position: absolute; inset: 6% 2% 0; border-radius: 50%; background: var(--accent-soft); }
.hero-art img { position: relative; width: 100%; height: auto; }
@media (min-width: 860px) {
  .hero { padding: 96px 0 72px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
}

/* Sections */
section { padding: 64px 0; }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { color: var(--muted); }
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); margin: 8px 0 0; }
@media (min-width: 720px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }

.steps { display: grid; gap: 14px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { counter-increment: step; content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; }
.steps p { color: var(--muted); margin: 4px 0 0; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.photos { display: grid; gap: 16px; }
.photo-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.photo-card img { width: min(70%, 260px); height: auto; margin-bottom: 18px; }
.photo-card p { color: var(--muted); margin: 6px 0 0; }
@media (min-width: 720px) { .photos { grid-template-columns: repeat(2, 1fr); } }

.cta { background: var(--accent); color: var(--on-accent); border-radius: 28px; padding: 44px 26px; display: grid; gap: 24px; align-items: center; }
.cta h2 { color: var(--on-accent); }
.cta p { color: rgba(255, 255, 255, 0.86); margin: 12px 0 0; max-width: 32em; }
.cta img { width: min(62%, 240px); height: auto; justify-self: center; }
.cta .btn { background: var(--on-accent); color: var(--accent); }
.cta .soon { color: rgba(255, 255, 255, 0.86); }
@media (min-width: 720px) { .cta { grid-template-columns: 1.4fr 0.6fr; padding: 56px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: grid; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.site-footer small { display: block; max-width: 48em; line-height: 1.5; }

/* Legal pages */
.doc { padding-top: 48px; padding-bottom: 24px; }
.doc-head { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.doc-head p { color: var(--muted); margin: 14px 0 0; }
.doc-layout { display: grid; gap: 32px; }
.toc { font-size: 0.95rem; }
.toc ol { margin: 0; padding-left: 20px; color: var(--muted); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent-text); }
.prose { max-width: 42em; }
.prose h2 { font-size: 1.45rem; margin: 2.2em 0 0.6em; scroll-margin-top: 84px; }
.prose h3 { font-size: 1.05rem; margin: 1.6em 0 0.4em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: 0.3em 0; }
.prose strong { font-weight: 700; }
.note { background: var(--accent-soft); border-radius: 14px; padding: 14px 18px; margin: 1.4em 0; }
.note p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-weight: 700; background: var(--surface); }
tr:last-child td { border-bottom: 0; }
/* Phone: each row becomes a stacked block (What / badge / When / What it is for). */
@media (max-width: 719px) {
  .table-wrap { overflow: visible; border: 0; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; margin-bottom: 12px; background: var(--surface); }
  td { border: 0; padding: 6px 0; }
}
@media (min-width: 960px) {
  .doc-layout { grid-template-columns: 220px 1fr; }
  .toc { position: sticky; top: 96px; align-self: start; }
}

/* Consent page */
.choice { display: grid; gap: 6px; }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; }
.badge.optional { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

.focus-visible, :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
