/* Shared by every page in site/. _headers caches *.css for a year, so a
   change needs a new filename: bump the version and update the <link> tags. */

:root {
    color-scheme: light;
    --paper: #fbf8f3;
    --card: #ffffff;
    --tint: #f3eee5;
    --ink: #23262f;
    --muted: #5a5f6c;
    --line: #e7e0d4;
    --accent: #5546d6;
    --accent-dark: #4436b8;
    --accent-soft: #ece9fb;
    --done: #2e7d4f;
    --heading: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
    --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --shadow: 0 1px 2px rgba(35, 38, 47, .06), 0 16px 40px rgba(35, 38, 47, .10);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.lead { color: var(--muted); font-size: 1.18rem; }
.small { color: var(--muted); font-size: .92rem; }

.button {
    display: inline-block;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
}
.button:hover { background: var(--accent-dark); color: #fff; }
.button.quiet { background: transparent; border-color: var(--line); color: var(--ink); }
.button.quiet:hover { background: var(--tint); color: var(--ink); }
.button.full { display: block; width: 100%; }

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(251, 248, 243, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; object-fit: contain; flex: none; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: .95rem; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.button, .nav-links a.button:hover { color: #fff; }
.nav .button { padding: 8px 18px; font-size: .95rem; white-space: nowrap; }

/* Sections */
section { padding: 72px 0; }
section.tinted { background: var(--tint); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { margin-bottom: 12px; }

.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 { max-width: 780px; margin: 0 auto 20px; }
.hero .lead { max-width: 620px; margin: 0 auto 28px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.reassure { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.reassure li::before { content: '✓ '; color: var(--done); font-weight: 700; }

.shot { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.hero .shot { max-width: 980px; margin: 48px auto 0; }
figure { margin: 0; }
figcaption { margin-top: 12px; color: var(--muted); font-size: .95rem; text-align: center; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-number {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin-bottom: 14px;
    border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-dark);
    font-family: var(--heading); font-weight: 700;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); }

.pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.split + .split { margin-top: 72px; }
.split.flip { grid-template-columns: 7fr 5fr; }
.split.flip .split-text { order: 2; }
.split h2 { margin-bottom: 14px; }
.split p + p { margin-top: 12px; }
.split-text > p { color: var(--muted); }
.note { color: var(--muted); font-size: .92rem; }

.with-phone { display: flex; align-items: flex-end; gap: 20px; }
.with-phone .shot:first-child { flex: 1; min-width: 0; }
.with-phone .phone { flex: 0 0 28%; border-radius: 22px; }

.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.promise h3 { margin-bottom: 6px; }
.promise p { color: var(--muted); }

.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.groups h3 { font-family: var(--body); font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.groups ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.groups li + li { margin-top: 4px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 860px; margin: 0 auto; }
.plan { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.plan.pro { border-color: var(--accent); }
.plan-badge { position: absolute; top: -13px; left: 28px; padding: 2px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 600; }
.plan h3 { font-size: 1.5rem; }
.price { margin: 10px 0 2px; font-size: 2.1rem; font-weight: 700; }
.price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan-sub { color: var(--muted); font-size: .95rem; }
.plan ul { margin: 22px 0 0; padding: 0; list-style: none; font-size: .97rem; }
.plan li { position: relative; padding-left: 24px; }
.plan li + li { margin-top: 8px; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--done); font-weight: 700; }
.plan-action { margin-top: auto; padding-top: 26px; }
.notify label { display: block; margin-bottom: 8px; font-weight: 600; }
.notify-row { display: flex; gap: 8px; }
.notify input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}
.country-picker { position: relative; margin-bottom: 8px; }
.country-picker input { width: 100%; }
.country-list {
    position: absolute;
    z-index: 5;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    box-shadow: var(--shadow);
}
.country-group { padding: 8px 10px 4px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.country-option { padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.country-option:hover, .country-option.active { background: var(--accent-soft); }
.country-option[aria-selected="true"] { font-weight: 600; }
.notify .button { padding: 11px 18px; white-space: nowrap; }
.notify .button:disabled { opacity: .6; cursor: default; }
.notify .small { margin-top: 10px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { font-weight: 600; cursor: pointer; }
details p, details ul { margin: 10px 0 0; color: var(--muted); }
details ul { padding-left: 20px; }

/* Footer */
.footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: var(--muted); }

/* Privacy and terms */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 20px 72px; }
.legal h1 { font-size: 2.3rem; margin-bottom: 6px; }
.legal h2 { font-size: 1.45rem; margin-bottom: 12px; }
.legal h3 { font-family: var(--body); font-size: 1.05rem; margin: 18px 0 8px; }
.legal section { padding: 0; margin-top: 36px; }
.legal p + p, .legal ul + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 4px; }
.legal main { display: block; }
.legal-nav { border-bottom: 1px solid var(--line); padding: 14px 0; }
.legal-nav a { color: var(--ink); font-weight: 600; text-decoration: none; }

@media (max-width: 860px) {
    section { padding: 56px 0; }
    .nav-links a:not(.button) { display: none; }
    .split, .split.flip { grid-template-columns: 1fr; gap: 28px; }
    .split.flip .split-text { order: 0; }
    .steps, .promise { grid-template-columns: 1fr; gap: 24px; }
    .groups { grid-template-columns: repeat(2, 1fr); }
    .plans { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .pair { grid-template-columns: 1fr; }
    .groups { grid-template-columns: 1fr; }
    .actions .button { width: 100%; }
    .plan { padding: 26px 22px; }
}

/* Price currency control: native select remains keyboard and touch accessible. */
.currency-picker { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 24px; }
.currency-picker select { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.price .price-amount { font: inherit; color: inherit; }
