:root {
  --bg: #fbf6f3;
  --surface: #ffffff;
  --surface-2: #f4e9e6;
  --text: #24161a;
  --muted: #6a5459;
  --line: #e7d8d6;
  --brand: #8c1d40;
  --brand-strong: #6e1532;
  --on-brand: #ffffff;
  --love: #2e7d32;
  --nope: #c62828;
  --want: #b77700;
  --radius: 16px;
  --wrap: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171113;
    --surface: #211a1c;
    --surface-2: #2b2023;
    --text: #f3e8ea;
    --muted: #bda8ad;
    --line: #3a2c30;
    --brand: #ffb1c1;
    --brand-strong: #ffd9df;
    --on-brand: #4a0a22;
    --love: #81c784;
    --nope: #ef9a9a;
    --want: #ffca28;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
/* Hidden above the page, not off to the side: a sideways offset makes right-to-left pages scroll. */
.skip { position: absolute; inset-inline-start: 16px; top: -100px; }
.skip:focus { top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.nav a:hover { color: var(--text); }
@media (max-width: 860px) { .nav { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
a.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn-small { padding: 9px 16px; font-size: 0.9rem; }
.soon { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.soon::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--want); margin-right: 8px; }
.btn-ghost { color: var(--text); border-color: var(--line); background: var(--surface); }
.cta-note { color: var(--muted); font-size: 0.9rem; margin: 12px 0 0; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-block; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); font-weight: 700; margin-bottom: 14px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { order: 2; } }

/* Phone illustration */
.phone { width: min(320px, 100%); margin-inline: auto; background: #1b1215; border-radius: 40px; padding: 12px; box-shadow: 0 30px 60px -30px rgba(110, 21, 50, 0.55), 0 0 0 1px rgba(0,0,0,0.08); }
.screen { background: #fff8f7; color: #24161a; border-radius: 30px; padding: 18px 14px 16px; font-size: 13px; line-height: 1.35; }
.screen-title { font-weight: 700; font-size: 17px; margin: 2px 4px 10px; }
.chips { display: flex; gap: 6px; margin: 0 2px 12px; flex-wrap: wrap; }
.chip { border: 1px solid #e2cfd2; border-radius: 999px; padding: 4px 10px; font-size: 12px; color: #5c4448; background: #fff; }
.chip.on { background: #8c1d40; border-color: #8c1d40; color: #fff; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #efdfe0; }
.tile-art { height: 92px; display: grid; place-items: center; }
.tile-art svg { width: 44px; height: 44px; }
.tile b { display: block; padding: 8px 10px 0; font-size: 12.5px; }
.tile span { display: block; padding: 0 10px 9px; color: #7a6367; font-size: 11.5px; }
.mark { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.mark svg { width: 16px; height: 16px; }
.mark.love { background: #2e7d32; }
.mark.nope { background: #c62828; }
.mark.want { background: #ffb300; color: #3e2723; }
.scan-bar { margin-top: 12px; background: #8c1d40; color: #fff; border-radius: 14px; padding: 11px; text-align: center; font-weight: 600; font-size: 13px; }

/* Sections */
section { padding: clamp(44px, 7vw, 84px) 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 44em; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--brand); text-decoration: underline; }
.step-num { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; font-family: var(--serif); }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.checks li { padding-left: 34px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--love); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1.6 14.6L6 12.2l1.6-1.6 2.8 2.8 6-6L18 9z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1.6 14.6L6 12.2l1.6-1.6 2.8 2.8 6-6L18 9z'/%3E%3C/svg%3E") center/contain no-repeat; }
.verdicts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.verdict { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); }
.verdict i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.v-love i { background: var(--love); } .v-nope i { background: var(--nope); } .v-want i { background: var(--want); }

/* Result card illustration */
.result { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; max-width: 400px; margin-inline: auto; box-shadow: 0 24px 50px -34px rgba(110, 21, 50, 0.6); }
.result-tag { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--love); border: 1px solid currentColor; border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.result-row { display: flex; gap: 16px; align-items: center; }
.result-art { flex: 0 0 96px; height: 96px; border-radius: 16px; background: #f3d9c9; display: grid; place-items: center; }
.result-art svg { width: 48px; height: 48px; }
.result h3 { margin: 0 0 4px; }
.result small { color: var(--muted); display: block; }
.stars { color: var(--want); letter-spacing: 2px; }
.result-verdict { margin-top: 16px; background: var(--love); color: #fff; border-radius: 14px; padding: 12px; text-align: center; font-weight: 700; }
@media (prefers-color-scheme: dark) { .result-verdict { color: #0b3d12; } }

/* FAQ */
.faq { max-width: 800px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style-position: outside; }
.faq details p { color: var(--muted); }
.faq-list h2 { font-size: 1.3rem; margin-top: 1.8em; }
.faq-list p { color: var(--muted); }

/* CTA band */
.cta-band { background: var(--brand); color: var(--on-brand); border-radius: 28px; padding: clamp(28px, 5vw, 56px); text-align: center; }
.cta-band h2 { color: inherit; }
.cta-band p { opacity: 0.9; max-width: 36em; margin-inline: auto; }
.cta-band .btn-primary { background: var(--on-brand); color: var(--brand); border-color: var(--on-brand); }
.cta-band a.btn-primary:hover { background: var(--on-brand); color: var(--brand); opacity: 0.9; }
.cta-band .btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
@media (prefers-color-scheme: dark) { .cta-band .btn-primary, .cta-band a.btn-primary:hover { color: #ffd9df; } }
.cta-band .cta-note { color: inherit; opacity: 0.8; }

/* Article and legal pages */
.page { padding: clamp(36px, 6vw, 72px) 0; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.prose h2 { font-size: 1.5rem; margin-top: 1.9em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose .lead { margin-bottom: 1.6em; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 0.93rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h2 { font: 700 0.8rem/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.legal-line { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 0.85rem; }

/* Small screens: keep the header on one line */
.btn, .brand { white-space: nowrap; }
@media (max-width: 560px) { .site-header .btn, .site-header .soon { display: none; } }

/* Real screenshots inside the phone frame */
.phone .shot { display: block; width: 100%; height: auto; aspect-ratio: 9 / 20; object-fit: cover; border-radius: 30px; }

/* Language menu */
.site-header .wrap { gap: 16px; }
.site-header .brand { margin-right: 0; margin-inline-end: auto; }
.site-header .brand bdi { white-space: nowrap; }
.locale-switch { position: relative; flex: 0 0 auto; }
.locale-switch summary {
  display: flex; align-items: center; gap: 7px;
  min-height: 42px; padding: 7px 10px; border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); background: var(--surface);
  font: 600 0.86rem/1.25 var(--sans); cursor: pointer; list-style: none;
}
.locale-switch summary::-webkit-details-marker { display: none; }
.locale-switch summary svg { flex: 0 0 18px; }
.locale-switch summary bdi { overflow-wrap: anywhere; max-inline-size: 12ch; }
.locale-switch summary::after {
  content: ""; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  display: block; width: 6px; height: 6px; transform: rotate(45deg);
  margin-block-start: -3px; flex-shrink: 0;
}
.locale-switch[open] summary::after { transform: rotate(225deg); margin-block-start: 3px; }
.language-options {
  position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 8px);
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2px;
  inline-size: min(320px, calc(100vw - 32px));
  max-block-size: min(440px, calc(100vh - 80px)); overflow: auto;
  padding: 6px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); box-shadow: 0 12px 27px rgba(0,0,0,.14);
}
.locale-switch:not([open]) .language-options { display: none; }
.language-options a {
  display: flex; align-items: center; min-height: 42px; padding: 6px 8px;
  border-radius: 6px; color: var(--text); line-height: 1.25;
  font-size: .88rem; text-decoration: none; overflow-wrap: anywhere;
}
.language-options a:hover, .language-options a[aria-current="page"] {
  background: var(--surface-2); color: var(--brand);
}
.language-options a:focus-visible { outline-offset: -2px; }
nav[aria-label] { min-inline-size: 0; }
section[id], main[id] { scroll-margin-block-start: 72px; }
.site-footer .footer-desc { margin-top: 12px; max-width: 26em; }
.cta-note.app-languages { margin-top: 5px; }
.btn { white-space: normal; text-align: center; }
.grid { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.site-footer a { overflow-wrap: anywhere; }
html[dir="rtl"] { --serif: Tahoma, Arial, sans-serif; }
html[dir="rtl"] .checks li { padding-left: 0; padding-inline-start: 34px; }
html[dir="rtl"] .checks li::before { left: auto; inset-inline-start: 0; }
html[dir="rtl"] .prose ul { padding-left: 0; padding-inline-start: 1.2em; }
@media (max-width: 1160px) { .site-header .soon { display: none; } }
@media (max-width: 1020px) { .site-header .nav { display: none; } }
@media (max-width: 390px) {
  .site-header .wrap { gap: 8px; }
  .site-header .brand { gap: 6px; font-size: 1rem; }
  .site-header .brand img { width: 30px; height: 30px; }
  .locale-switch summary { padding-inline: 7px; }
}
