/* Poppins, self-hosted (SIL OFL 1.1, see assets/fonts/LICENSE-Poppins.txt).
   Served from this repo rather than Google Fonts: one fewer third-party
   request on a site whose main job is a privacy policy, and no render
   delay waiting on another host. Latin subset only — about 8 KB a weight. */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/poppins-latin-800-normal.woff2') format('woff2'); }

/* ==========================================================================
   DuosApp — official website stylesheet
   One file, no build step. Brand tokens live in :root; change them there and
   every page follows. Layout is mobile-first; wider breakpoints add columns.
   ========================================================================== */

:root {
  /* Brand — matches the app: deep plum ink on a soft pink wash, pink → magenta action gradient */
  --pink: #FF4896;
  --magenta: #E0349F;
  --ink: #3D0C33;
  --ink-soft: #6B3458;
  --ink-muted: #8A5B78;
  --wash-top: #FDF0F7;
  --wash-bottom: #FBDCEC;
  --wave-back: #F9C9E3;
  --wave-front: #F7B7D9;
  --card: #FFFFFF;
  --line: rgba(61, 12, 51, 0.10);
  --shadow: 0 18px 40px rgba(104, 16, 70, 0.14);
  --shadow-sm: 0 6px 18px rgba(104, 16, 70, 0.10);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1120px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, var(--wash-top) 0%, var(--wash-bottom) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  font-size: 16px;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-soft); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  background: rgba(253, 240, 247, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: none; gap: 1.5rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: var(--card); border-radius: 12px;
  box-shadow: var(--shadow-sm); cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-drawer { display: none; padding: 0.5rem 0 1rem; border-top: 1px solid var(--line); }
.nav-drawer.open { display: block; }
.nav-drawer a { display: block; padding: 0.7rem 0.25rem; font-weight: 600; color: var(--ink-soft); }
@media (min-width: 820px) {
  .nav-links { display: flex; }
  .nav-toggle, .nav-drawer { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(90deg, var(--pink), var(--magenta)); box-shadow: 0 12px 28px rgba(224, 52, 159, 0.32); }
.btn-primary:hover { box-shadow: 0 16px 34px rgba(224, 52, 159, 0.40); }
.btn-ghost { color: var(--ink); background: var(--card); box-shadow: var(--shadow-sm); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-store { padding: 0.8rem 1.4rem; }
.btn-store .store-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-store .store-text small { font-size: 0.68rem; font-weight: 500; opacity: 0.9; letter-spacing: 0.02em; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 3rem 0 2rem; overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { color: var(--ink); }
.hero .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }
.hero-note { margin-top: 1rem; font-size: 0.9rem; color: var(--ink-muted); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.8rem; border-radius: 999px; background: rgba(255,255,255,0.75); font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(100%, 330px); border-radius: 36px; padding: 10px;
  background: linear-gradient(160deg, #fff, #ffe9f4);
  box-shadow: var(--shadow);
}
.phone img { border-radius: 28px; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; pointer-events: none; z-index: -1; }
.blob-1 { width: 420px; height: 420px; background: #FF8FC4; top: -140px; left: -160px; }
.blob-2 { width: 380px; height: 380px; background: #C9A7F5; right: -160px; bottom: -120px; opacity: 0.42; }
@media (min-width: 900px) {
  .hero { padding: 4.5rem 0 3rem; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-head { max-width: 60ch; margin-bottom: 2rem; }
.section-head .eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--magenta); margin-bottom: 0.5rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* Features */
.features { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.feature { background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.feature .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem; font-size: 1.4rem; background: rgba(255, 72, 150, 0.12); }
.feature h3 { margin-bottom: 0.35rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* Gallery — horizontal scroll on phones, grid on desktop */
.gallery { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.25rem 0 1rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.gallery figure { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; margin: 0; }
.gallery img { border-radius: 24px; box-shadow: var(--shadow-sm); background: #fff; }
.gallery figcaption { margin-top: 0.6rem; font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); text-align: center; }
@media (min-width: 1000px) {
  .gallery { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .gallery figure { flex: none; }
}

/* Video */
.video-wrap { display: grid; gap: 2rem; align-items: center; }
.video-frame { width: min(100%, 320px); margin-inline: auto; border-radius: 30px; padding: 8px; background: linear-gradient(160deg, #fff, #ffe9f4); box-shadow: var(--shadow); }
.video-frame video { border-radius: 24px; width: 100%; }
@media (min-width: 900px) { .video-wrap { grid-template-columns: 1fr 1fr; } }

/* Privacy band */
.band { background: var(--card); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.checks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.75rem; }
.checks li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-soft); }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: linear-gradient(90deg, var(--pink), var(--magenta)); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/></svg>") center/contain no-repeat; }
@media (min-width: 720px) { .checks { grid-template-columns: 1fr 1fr; } }

/* Download CTA */
.cta { text-align: center; padding: 3rem 1.5rem; border-radius: var(--radius); background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,233,244,0.9)); box-shadow: var(--shadow-sm); }
.cta h2 { margin-bottom: 0.4rem; }
.cta .btn { margin-top: 1rem; }

/* ---------- Policy pages ---------- */
.policy { padding: 2.5rem 0 4rem; }
.policy-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(1.4rem, 4vw, 3rem); }
.policy-card h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.policy-meta { color: var(--ink-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.policy-card h2 { font-size: 1.35rem; margin-top: 2.2rem; padding-top: 0.4rem; scroll-margin-top: 90px; }
.policy-card h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.policy-card p, .policy-card li { color: #4A2A41; }
.policy-card ul, .policy-card ol { padding-left: 1.3rem; }
.policy-card li { margin-bottom: 0.4rem; }
.policy-card table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.95rem; }
.policy-card th, .policy-card td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.policy-card th { color: var(--ink); font-weight: 700; background: rgba(255, 72, 150, 0.06); }
.policy-card .callout { background: rgba(255, 72, 150, 0.08); border-left: 4px solid var(--pink); padding: 0.9rem 1.1rem; border-radius: 10px; margin: 1.2rem 0; }
.toc { background: rgba(255, 72, 150, 0.06); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1.5rem 0 2rem; }
.toc strong { display: block; margin-bottom: 0.4rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 1; }
.toc li { margin: 0.2rem 0; }
@media (min-width: 720px) { .toc ol { columns: 2; column-gap: 2rem; } }
.breadcrumb { font-size: 0.9rem; color: var(--ink-muted); margin-bottom: 1rem; }
.policy-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.policy-nav a { font-size: 0.88rem; font-weight: 600; padding: 0.45rem 0.9rem; border-radius: 999px; background: rgba(255, 72, 150, 0.08); color: var(--ink-soft); }
.policy-nav a:hover { background: rgba(255, 72, 150, 0.16); text-decoration: none; }
.policy-nav a[aria-current="page"] { background: linear-gradient(90deg, var(--pink), var(--magenta)); color: #fff; }

/* ---------- Footer ---------- */
/* The footer is a tinted block whose top edge *is* the wave: the front wave is
   filled in the footer's own colour and hangs just above it, so there is no
   straight line anywhere — the previous version drew the wave as an 80px band
   inside the footer, under the logo and column headings. */
.site-footer { position: relative; margin-top: calc(3rem + 64px); padding: 2.75rem 0 2rem; color: var(--ink-soft); background: var(--wave-back); }
.site-footer .wave { position: absolute; left: 0; right: 0; top: -63px; height: 64px; width: 100%; display: block; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand img { width: 44px; height: 44px; border-radius: 12px; }
.footer-brand p { margin-top: 0.8rem; max-width: 34ch; font-size: 0.95rem; }
.footer-col h4 { margin-bottom: 0.7rem; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-col a { color: var(--ink-soft); font-size: 0.95rem; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

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