/* ancoras.net: shared styles for the landing page and the legal pages.
   Colours are the app's "cian" theme (expo/src/theme/index.ts), fonts are the app's own. */

@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("fonts/DMSans_400Regular.ttf") format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("fonts/DMSans_500Medium.ttf") format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("fonts/DMSans_700Bold.ttf") format("truetype"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url("fonts/PlayfairDisplay_700Bold.ttf") format("truetype"); }

:root {
  --deep: #083344;
  --primary: #0E7490;
  --accent: #22D3EE;
  --on-primary-muted: #B8ECF5;
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-muted: #ECEEF1;
  --text: #111113;
  --text-muted: #5E6169;
  --border: #E1E4E8;
  --gold: #E3A21A;
  --gold-soft: #FDF3DC;
  --link: #0E7490;
  --tint: #E6F6FA;
  --shadow: 0 1px 2px rgba(8, 51, 68, 0.06), 0 8px 24px rgba(8, 51, 68, 0.08);
  --radius: 18px;
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --deep: #062A36;
    --primary: #22D3EE;
    --on-primary-muted: #A5E9F5;
    --bg: #0A0A0B;
    --surface: #141416;
    --surface-muted: #1C1C1F;
    --text: #FFFFFF;
    --text-muted: #A1A1AA;
    --border: #27272A;
    --gold: #F59E0B;
    --gold-soft: #2A2110;
    --link: #22D3EE;
    --tint: #0F2329;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 14px; }

/* ── Header (on the gradient) ───────────────────────────── */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.brand span { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: rgba(255, 255, 255, 0.86); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: #fff; }
.nav .btn { padding: 9px 16px; font-size: 14px; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 16px;
  text-decoration: none; border: 0; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: #083344; }
.btn-light:hover { background: #E6FAFE; }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }
.btn-primary { background: #0E7490; color: #fff; }
.btn-primary:hover { background: #0B5F76; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #fff;
  border-radius: 0 0 50% 50% / 0 0 48px 48px; /* the curved bottom edge */
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(34, 211, 238, 0.28), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(34, 211, 238, 0.12), transparent 60%),
    linear-gradient(160deg, #083344 0%, #0A4A5E 45%, #0E7490 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 48px 20px 96px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  font-size: 13px; font-weight: 500; color: var(--on-primary-muted); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22D3EE; box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.25); }
.hero h1 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(38px, 5.6vw, 64px); letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: #7DE6F7; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, 0.84); margin-top: 20px; max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .note { margin-top: 22px; font-size: 14px; color: rgba(255, 255, 255, 0.66); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 72px; gap: 40px; }
}

/* The phone with the loyalty card */
.phone {
  width: min(320px, 100%); margin: 0 auto; padding: 12px; border-radius: 44px;
  background: #0B0F12; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(2.5deg);
}
.screen { border-radius: 34px; overflow: hidden; background: #F6F7F9; color: #111113; }
.screen-top { background: linear-gradient(160deg, #083344, #0E7490); color: #fff; padding: 30px 20px 54px; }
.screen-top small { display: block; font-size: 12px; color: #B8ECF5; }
.screen-top strong { font-family: "Playfair Display", Georgia, serif; font-size: 22px; }
.card {
  margin: -38px 14px 0; background: #fff; border-radius: 20px; padding: 18px;
  box-shadow: 0 1px 2px rgba(8, 51, 68, 0.08), 0 10px 24px rgba(8, 51, 68, 0.12);
}
.card-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #22D3EE, #0E7490); display: grid; place-items: center; color: #fff; font-weight: 700; }
.card-head b { display: block; font-size: 15px; }
.card-head span { font-size: 12px; color: #5E6169; }
.acorn-row { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.acorn-row svg { width: 64px; height: 76px; flex: none; }
.acorn-row .count { font-size: 26px; font-weight: 700; line-height: 1; }
.acorn-row .count small { font-size: 14px; font-weight: 500; color: #5E6169; }
.acorn-row p { font-size: 13px; color: #5E6169; margin-top: 6px; }
.dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-top: 16px; }
.dots i { height: 8px; border-radius: 4px; background: #ECEEF1; }
.dots i.on { background: #0E7490; }
.screen-list { padding: 14px 14px 22px; display: grid; gap: 10px; }
.mini { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; font-size: 13px; box-shadow: 0 1px 2px rgba(8, 51, 68, 0.06); }
.mini .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #E6F6FA; color: #0E7490; flex: none; }
.mini .ic svg { width: 17px; height: 17px; }
.mini b { display: block; font-size: 13px; }
.mini span { color: #5E6169; font-size: 12px; }
.mini .tag { margin-left: auto; font-size: 11px; font-weight: 700; color: #0F7A57; background: #E3F5EE; padding: 3px 8px; border-radius: 999px; }


/* ── Sections ───────────────────────────────────────────── */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.section-head p { color: var(--text-muted); font-size: 18px; margin-top: 14px; }
@media (max-width: 700px) { section { padding: 64px 0; } }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--tint); color: var(--primary); font-weight: 700; margin-bottom: 18px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--text-muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Audience split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { border-radius: 24px; padding: 40px; border: 1px solid var(--border); background: var(--surface); }
.panel.dark { background: linear-gradient(160deg, #083344, #0E7490); color: #fff; border: 0; }
.panel h2 { font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 10px; }
.panel > p { color: var(--text-muted); font-size: 17px; }
.panel.dark > p { color: rgba(255, 255, 255, 0.8); }
.panel .kicker { color: var(--primary); }
.panel.dark .kicker { color: #7DE6F7; }
.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.features li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.features .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--primary); }
.panel.dark .features .ic { background: rgba(255, 255, 255, 0.12); color: #7DE6F7; }
.features .ic svg { width: 20px; height: 20px; }
.features b { display: block; font-size: 16px; }
.features span { color: var(--text-muted); font-size: 15px; }
.panel.dark .features span { color: rgba(255, 255, 255, 0.75); }
.panel .cta { margin-top: 32px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .panel { padding: 28px; } }

/* Categories */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.chips span { padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 500; font-size: 15px; }

/* Áncora explainer */
.ancora { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; background: var(--gold-soft); border-radius: 28px; padding: 56px; }
.ancora svg { width: min(220px, 60%); margin: 0 auto; }
.ancora h2 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(30px, 3.6vw, 44px); }
.ancora p { color: var(--text-muted); font-size: 18px; margin-top: 14px; }
.ancora .pron { font-size: 15px; margin-top: 22px; }
@media (max-width: 820px) { .ancora { grid-template-columns: 1fr; padding: 36px 24px; gap: 28px; text-align: center; } }

/* Privacy promise */
.promise { text-align: center; max-width: 760px; margin: 0 auto; }
.promise .shield { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 20px; background: var(--tint); color: var(--primary); display: grid; place-items: center; }
.promise .shield svg { width: 32px; height: 32px; }
.promise h2 { font-size: clamp(28px, 3.4vw, 40px); }
.promise p { color: var(--text-muted); font-size: 18px; margin-top: 14px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-muted); padding-bottom: 20px; }

/* Contact band */
.band { background: linear-gradient(160deg, #083344, #0E7490); color: #fff; border-radius: 28px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band h2 { font-size: clamp(26px, 3vw, 36px); }
.band p { color: rgba(255, 255, 255, 0.8); margin-top: 10px; font-size: 17px; max-width: 34em; }
@media (max-width: 700px) { .band { padding: 36px 24px; } }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 56px; margin-top: 40px; font-size: 15px; color: var(--text-muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer .brand { color: var(--text); }
.site-footer .brand img { box-shadow: none; }
.site-footer address { font-style: normal; margin-top: 14px; line-height: 1.7; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.copy { margin-top: 28px; font-size: 13px; }

/* ── Legal pages ────────────────────────────────────────── */
.page-hero { background: linear-gradient(160deg, #083344 0%, #0E7490 100%); color: #fff; }
.page-hero .title { padding: 28px 20px 56px; max-width: 760px; margin: 0 auto; }
.page-hero h1 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(32px, 4.4vw, 46px); }
.page-hero p { color: var(--on-primary-muted); margin-top: 10px; font-size: 15px; }
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 24px; }
.legal .toc { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 26px; margin-bottom: 40px; }
.legal .toc b { display: block; margin-bottom: 8px; }
.legal .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal .toc li { margin: 4px 0; break-inside: avoid; }
@media (max-width: 600px) { .legal .toc ol { columns: 1; } }
.legal section { padding: 0; margin-bottom: 40px; scroll-margin-top: 20px; }
.legal h2 { font-size: 23px; margin-bottom: 14px; }
.legal h3 { font-size: 17px; margin: 20px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol.steps-list { padding-left: 22px; margin: 10px 0; }
.legal li { margin: 6px 0; }
.legal .muted { color: var(--text-muted); }
.legal .box { background: var(--tint); border-radius: 14px; padding: 18px 22px; margin: 16px 0; }
.legal .box.warn { background: var(--gold-soft); }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { font-weight: 700; background: var(--surface-muted); }
.table-scroll { overflow-x: auto; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.notfound h1 { font-family: "Playfair Display", Georgia, serif; font-size: 44px; margin: 18px 0 10px; }
.notfound p { color: var(--text-muted); margin-bottom: 26px; }
.notfound img { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
