/* Fonts are served from this site, so a page load makes no third-party request. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/Manrope-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/Manrope-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/Manrope-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/Manrope-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/PlayfairDisplay-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/PlayfairDisplay-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../assets/fonts/PlayfairDisplay-900.woff2') format('woff2');
}

/* Slipvana — receipt-paper light, coral accents, the same two-tone headline as the App Store art. */
:root {
  color-scheme: light;
  --paper: #FDF5F3;
  --paper-2: #FBE9E6;
  --card: #FFFFFF;
  --card-soft: #FDECEA;
  --ink: #1C1A1F;
  --muted: #6D6570;
  --maroon: #62110C;
  --red: #F0362A;
  --red-2: #FF6A55;
  --mint: #12866A;
  --mint-soft: #E3F5EF;
  --line: #EEDFDC;
  --line-strong: #E0CBC7;
  --shadow: 0 18px 40px rgba(98, 17, 12, 0.10);
  --shadow-sm: 0 6px 18px rgba(98, 17, 12, 0.08);
  --radius: 18px;
  --max: 1140px;
  --display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Dark theme is opt-in through the header toggle. Light stays the default for everyone,
   including visitors whose OS is set to dark. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #16100F;
  --paper-2: #1E1413;
  --card: #221817;
  --card-soft: #2A1C1B;
  --ink: #F4EBE9;
  --muted: #B3A4A2;
  --maroon: #FFB4A6;
  --red: #FF6F5E;
  --red-2: #FF9B8B;
  --mint: #57D2B0;
  --mint-soft: #14302A;
  --line: #352523;
  --line-strong: #4A3331;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
/* Keep the hidden attribute working on elements that set their own display. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 12% -8%, var(--paper-2) 0%, transparent 62%),
    radial-gradient(900px 520px at 100% 6%, var(--paper-2) 0%, transparent 58%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 0.45em; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); color: var(--maroon); }
h1 em { display: block; font-style: normal; color: var(--red); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: var(--maroon); }
h3 { font-size: 1.2rem; color: var(--maroon); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
section { padding-block: clamp(48px, 7vw, 86px); }
.section-head { max-width: 62ch; margin-bottom: clamp(24px, 4vw, 40px); }
.eyebrow { font: 700 0.76rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin: 0 0 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--maroon); font-family: var(--display); font-weight: 700; font-size: 1.22rem; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 0.97rem; }
.nav-links a[aria-current="page"] { color: var(--red); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--ink); border-radius: 10px; font-size: 1.1rem; padding: 6px 11px; cursor: pointer; margin-left: auto; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none;
  background: var(--card); border: 1px solid var(--line-strong); color: var(--ink);
  border-radius: 50%; font-size: 0.98rem; line-height: 1; padding: 0; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--red); }
/* Icons swap in CSS, not JS, so the button never renders empty before main.js runs. */
.theme-toggle .ico-light { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-light { display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 0.97rem; padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--red) 0%, var(--red-2) 100%); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { text-decoration: none; filter: brightness(1.05); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: var(--card); }
.btn-ghost:hover { text-decoration: none; border-color: var(--red); color: var(--red); }
.nav .btn { margin-left: 18px; }

/* Hero */
.hero { padding-top: clamp(32px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 26px 0 18px; }
.store-badge img { height: 54px; width: auto; }
.store-badge:hover { text-decoration: none; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin: 0; padding: 0; }
.trust li { font-size: 0.86rem; font-weight: 600; color: var(--maroon); background: var(--card-soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img { width: min(100%, 420px); border-radius: 26px; box-shadow: var(--shadow); }

/* Slider */
.slider { position: relative; }
.slider-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px);
  gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > figure { margin: 0; scroll-snap-align: center; }
.slider-track img { border-radius: 20px; box-shadow: var(--shadow); background: var(--card); }
.slider.wide .slider-track { grid-auto-columns: minmax(280px, 760px); }
.slider-nav { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 4px; }
.slider-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); color: var(--maroon); font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; }
.slider-btn:hover { border-color: var(--red); color: var(--red); }
.dots { display: flex; gap: 8px; }
.dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line-strong); cursor: pointer; }
.dot[aria-current="true"] { background: var(--red); transform: scale(1.25); }

/* Feature cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--card-soft); color: var(--red); font-size: 1.25rem; margin-bottom: 14px; }

/* Privacy band */
.band { background: linear-gradient(135deg, var(--maroon) 0%, #8E1C14 55%, var(--red) 100%); color: #fff; border-radius: 26px; padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); }
.band h2 { color: #fff; }
.band .lead { color: rgba(255, 255, 255, 0.86); }
.band-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; list-style: none; margin: 26px 0 0; padding: 0; }
.band-list li { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 14px; padding: 16px 18px; font-size: 0.97rem; }
.band-list b { display: block; font-family: var(--display); font-size: 1.05rem; margin-bottom: 4px; }

/* FAQ */
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow-sm); }
details.faq + details.faq { margin-top: 12px; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--maroon); list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--red); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 12px 0 0; color: var(--muted); }

/* CTA */
.cta { text-align: center; }
.cta .store-badge { display: inline-block; margin-top: 8px; }

/* Legal + contact pages */
.page-head { padding-block: clamp(40px, 6vw, 72px) 0; }
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .updated { display: inline-block; font-size: 0.86rem; font-weight: 700; color: var(--mint); background: var(--mint-soft); border-radius: 999px; padding: 6px 14px; margin-bottom: 8px; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 44px); align-items: start; }
form .field { display: grid; gap: 6px; margin-bottom: 16px; }
form label { font-weight: 700; font-size: 0.92rem; }
form input, form select, form textarea {
  font: inherit; font-size: 0.97rem; color: var(--ink); background: var(--card);
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 11px 13px; width: 100%;
}
form textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.86rem; color: var(--muted); }
#contact-ok { background: var(--mint-soft); color: var(--mint); border-radius: 12px; padding: 12px 14px; font-weight: 600; margin-top: 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; margin-top: 30px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--ink); font-weight: 600; font-size: 0.94rem; }
.site-footer small { color: var(--muted); }

/* Cookie banner */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 16px;
  padding: 16px 18px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto;
}
.cookie p { margin: 0; font-size: 0.92rem; flex: 1 1 320px; }
.cookie .actions { display: flex; gap: 10px; margin-left: auto; }
.cookie .btn { padding: 9px 16px; font-size: 0.9rem; }

@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: min(100%, 330px); }
  .nav-toggle { display: block; margin-left: 8px; order: 2; }
  .theme-toggle { margin-left: auto; order: 1; }
  .nav .btn { display: none; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .cookie { left: 10px; right: 10px; bottom: 10px; }
  .cookie .actions { width: 100%; }
  .cookie .btn { flex: 1; }
  .store-badge img { height: 48px; }
}

/* Keep the platform download badges aligned. */
.store-badge { display: inline-flex; align-items: center; vertical-align: middle; }
.store-badge img { width: 162px; height: 54px; object-fit: contain; }
.cta .store-badge { margin-inline: 6px; }
@media (max-width: 640px) { .store-badge img { width: 144px; height: 48px; } }
