/*
 * expat.tel: the "Airmail" design system, shared by every page.
 *
 * Warm paper, airmail stripes, stamps and postmarks; PolySans with a serif
 * italic accent. Colours are the tokens on :root. The homepage adds its own
 * sections from includes/home/home.css (inlined in its <head>).
 *
 * Linked as /assets/css/airmail.css?v=<file time> by includes/layout.php,
 * so a change reaches visitors on the next page load: no ?v= to bump.
 */

@font-face {
    /* PolySans Neutral is a single (regular) weight. Declared as 400 so
       nothing asks it for a bold it doesn't have. */
    font-family: 'PolySans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/PolySans-Neutral.woff') format('woff');
}

:root {
    --paper: #FBF7F1;
    --card: #FFFFFF;
    --sand: #F2EADF;
    --sand-2: #E7DACA;
    --sand-3: #F7F1E8;
    --ink: #16295A;
    --navy: #243C70;
    --muted: #5B6478;
    --pink: #F72C81;
    --pink-btn: #DF2079;          /* brand pink, a shade deeper so white label text passes AA */
    --pink-btn-hover: #C4166A;
    --pink-ink: #C8176A;          /* pink for small text on light grounds (AA) */
    --peach: #FDB18A;
    --rose: #F75FA8;
    --grad: linear-gradient(100deg, #FDB18A 0%, #F75FA8 100%);
    --grad-text: linear-gradient(95deg, #EC4568 0%, #E3237A 50%, #C8176A 100%);
    --line: rgba(22, 41, 90, .12);
    --line-2: rgba(22, 41, 90, .22);
    --stripes: repeating-linear-gradient(-45deg, #F72C81 0 11px, #fff 11px 18px, #243C70 18px 29px, #fff 29px 36px);
    --shadow-sm: 0 1px 2px rgba(22, 41, 90, .06), 0 4px 12px rgba(22, 41, 90, .06);
    --shadow-md: 0 2px 4px rgba(22, 41, 90, .05), 0 16px 34px -10px rgba(22, 41, 90, .18);
    --shadow-lg: 0 4px 10px rgba(22, 41, 90, .06), 0 34px 64px -20px rgba(22, 41, 90, .32);
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --sans: 'PolySans', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --gutter: clamp(20px, 4vw, 40px);
    --sec: clamp(76px, 9vw, 132px);
    /* Read by the cookie banner (includes/analytics.php) */
    --et-navy: #243C70;
    --et-pink: #DF2079;
    --et-pink-hover: #C4166A;
    --et-radius: 14px;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .32 0 0 0 0 .22 .09 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
body {
    margin: 0;
    background: var(--grain), var(--paper);
    color: var(--ink);
    font: 400 17px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-weight: 400; margin: 0; line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
b, strong { font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--peach); }
[tabindex="-1"]:focus { outline: none; }
@media (max-width: 560px) {
    .hide-sm { display: none; }
}
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); letter-spacing: 0; }
.num { font-size: .9em; white-space: nowrap; }

/* Serif-italic accent words */
.accent {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.06em;
    letter-spacing: -0.015em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--pink-ink);
    -webkit-text-fill-color: transparent;
    padding-right: .06em;
}
.accent.block { display: block; width: fit-content; }
.sec-head.center .accent.block { margin-inline: auto; }
.on-dark .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: var(--peach); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font: 12.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: ""; width: 30px; height: 8px; border-radius: 2px; flex: none;
    background: repeating-linear-gradient(-45deg, var(--pink) 0 4px, transparent 4px 7px, var(--navy) 7px 11px, transparent 11px 14px);
}
.on-dark .eyebrow { color: #F4D9CB; }
.on-dark .eyebrow::before { background: repeating-linear-gradient(-45deg, var(--pink) 0 4px, transparent 4px 7px, #fff 7px 11px, transparent 11px 14px); }

h2.h2 { font-size: clamp(2.15rem, 1.1rem + 3.1vw, 3.8rem); line-height: 1.02; }
.lede { font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem); color: var(--muted); line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
    --h: 52px;
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    min-height: var(--h); padding: 0 1.45em; border-radius: 999px;
    font: 400 1rem/1.1 var(--sans); letter-spacing: -.005em;
    text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { flex: none; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-pink {
    background: var(--pink-btn); color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 26px -12px rgba(223, 32, 121, .75);
}
.btn-pink:hover { background: var(--pink-btn-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-sm { --h: 42px; padding: 0 1.15em; font-size: .95rem; }
.btn-lg { --h: 58px; font-size: 1.06rem; padding: 0 1.7em; }
.link {
    color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px;
    text-underline-offset: 4px; text-decoration-color: rgba(247, 44, 129, .55);
    transition: text-decoration-color .2s ease, color .2s ease;
}
.link:hover { text-decoration-color: var(--pink); color: var(--pink-ink); }

/* ---------- Perforation & airmail edges ---------- */
.perf {
    --r: 5px;
    -webkit-mask:
        radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
        linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
    mask:
        radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
        linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
}
.lift { filter: drop-shadow(0 1px 1px rgba(22, 41, 90, .10)) drop-shadow(0 12px 18px rgba(22, 41, 90, .12)); }
.airmail-edge {
    border: 7px solid transparent;
    background: linear-gradient(var(--edge-bg, #fff), var(--edge-bg, #fff)) padding-box, var(--stripes) border-box;
}
.postmark { color: var(--navy); overflow: visible; }
.postmark text { font-family: var(--mono); }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 60; }
.airmail-band { height: 6px; background: var(--stripes); background-size: 36px 36px; }
.head-bar {
    background: rgba(251, 247, 241, .86);
    -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.site-head.scrolled .head-bar { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(22,41,90,.5); }
.head-row { display: flex; align-items: center; gap: 20px; min-height: 76px; position: relative; }
.brand { display: inline-flex; flex: none; border-radius: 8px; }
.brand img { width: 150px; height: auto; display: block; }
.main-nav { margin-left: auto; display: flex; align-items: center; }
.nav-panel { display: flex; align-items: center; gap: 6px; }
.nav-panel ul { display: flex; gap: 2px; }
.nav-panel a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
    text-decoration: none; color: var(--ink); font-size: .98rem;
    transition: background-color .2s ease;
}
.nav-panel ul a:hover { background: rgba(22, 41, 90, .06); }
.nav-login { gap: 8px; }
.nav-login:hover { color: var(--pink-ink); }
.nav-sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 8px; }
.menu-btn {
    display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2);
    cursor: pointer; color: var(--ink);
}
.menu-btn .mb-close { display: none; }
.menu-btn[aria-expanded="true"] .mb-open { display: none; }
.menu-btn[aria-expanded="true"] .mb-close { display: block; }
.tag {
    display: inline-flex; align-items: stretch; margin-bottom: 26px;
    background: #fff; border-radius: 6px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
    font: 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--navy);
    overflow: hidden;
}
.tag-stripe { width: 18px; background: var(--stripes); background-size: 36px 36px; }
.tag span:last-child { padding: 10px 14px 9px; display: inline-flex; align-items: center; gap: 8px; }
.tag svg { color: var(--pink); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: .94rem; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--pink-ink); flex: none; }
.stamp-mini { position: absolute; top: 0; right: 0; width: 82px; }
.stamp-mini .perf { --r: 4px; background: #fff; padding: 9px; }
.stamp-mini .art {
    aspect-ratio: 4 / 5; border-radius: 1px; display: grid; place-items: center; position: relative;
    background: linear-gradient(160deg, #FFE8DA, #FFD5E6);
    box-shadow: inset 0 0 0 1px rgba(22, 41, 90, .14);
}
.stamp-mini .art img { width: 70%; height: auto; }
.stamp-mini .art span { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font: 7px/1 var(--mono); letter-spacing: .16em; color: var(--navy); }

/* ---------- Generic section ---------- */
.section { padding: var(--sec) 0; position: relative; }
.sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px 64px; align-items: end; }
.sec-head.center { text-align: center; max-width: 820px; margin-inline: auto; }
.sec-head.center .lede { max-width: 38em; margin: 20px auto 0; }
.sec-head .lede { max-width: 34em; }
.band-sand { background: var(--grain), var(--sand); }
.rubber {
    position: absolute; top: 22px; right: 18px; rotate: 8deg;
    font: 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--pink-ink);
    border: 3px double currentColor; border-radius: 6px; padding: 7px 9px; opacity: .9;
}
.callout { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.45; border-radius: 12px; padding: 12px 14px; background: #FFF1F6; color: #7A1440; }
.callout svg { flex: none; margin-top: 2px; color: var(--pink-ink); }
.callout.calm { background: var(--sand-3); color: var(--ink); }
.callout.calm svg { color: var(--navy); }

/* ---------- 5 · Pricing ---------- */
.price-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: clamp(36px, 4vw, 52px); }
.price-head .lede { max-width: 30em; margin-top: 18px; }
.billing { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.billing::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--ink); transition: translate .3s cubic-bezier(.3,.7,.2,1); }
.billing[data-active="yearly"]::before { translate: 100% 0; }
.billing button { position: relative; z-index: 1; border: 0; background: transparent; min-height: 46px; padding: 0 20px; border-radius: 999px; cursor: pointer; color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: color .25s ease; }
.billing button[aria-pressed="true"] { color: #fff; }
.billing .save { font: 11px/1 var(--mono); letter-spacing: .04em; padding: 4px 7px; border-radius: 999px; background: #FFF1F6; color: var(--pink-ink); }
.billing button[aria-pressed="true"] .save { background: rgba(255,255,255,.16); color: #FFD9E8; }
html:not(.js) .billing { display: none; }

.stamps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.stamp-card { height: 100%; }
.stamp-card .perf { --r: 6px; background: #fff; padding: 20px 20px 22px; height: 100%; display: flex; flex-direction: column; }
.stamp-face {
    position: relative; border-radius: 2px; padding: 16px 16px 14px;
    background: linear-gradient(170deg, #FBF5EC 0%, #F4EADD 100%);
    box-shadow: inset 0 0 0 1px rgba(22,41,90,.16), inset 0 0 0 5px #fff, inset 0 0 0 6px rgba(22,41,90,.10);
    display: grid; grid-template-rows: auto 1fr auto; min-height: 232px;
}
.is-popular .stamp-face { background: linear-gradient(165deg, #FFE7D8 0%, #FFD4E6 100%); }
.denom { display: flex; flex-direction: column; line-height: 1; }
.denom-num { font-size: 2.6rem; letter-spacing: -.035em; color: var(--ink); line-height: .95; }
.denom-per { font: 11px/1.2 var(--mono); letter-spacing: .06em; color: var(--muted); margin-top: 6px; text-transform: uppercase; }
.pop-tag { position: absolute; top: 14px; right: 14px; font: 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--pink-btn); padding: 6px 8px; border-radius: 4px; rotate: 3deg; }
.stamp-flag { display: grid; place-items: center; padding: 14px 0 10px; }
.stamp-flag img, .stamp-flag .emoji { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(22,41,90,.12), 0 10px 20px -8px rgba(22,41,90,.4); }
.stamp-flag .emoji { display: grid; place-items: center; font-size: 44px; background: #fff; }
.stamp-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(22,41,90,.14); padding-top: 10px; }
.stamp-name { font: 11.5px/1.25 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.stamp-dial { font: 12px/1 var(--mono); color: var(--muted); }
.stamp-alt { font-size: .9rem; color: var(--muted); margin: 16px 2px 16px; min-height: 2.9em; line-height: 1.45; }
.stamp-actions { margin-top: auto; display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.stamp-actions .btn { flex: none; min-width: 132px; }
.stamp-more { font-size: .92rem; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(22,41,90,.3); min-height: 44px; display: inline-flex; align-items: center; }
.stamp-more:hover { color: var(--pink-ink); text-decoration-color: currentColor; }
.price-note { margin-top: 22px; font-size: .92rem; color: var(--muted); text-align: center; }

.customs { margin-top: clamp(48px, 5vw, 72px); background: #fff; border-radius: 6px; box-shadow: var(--shadow-sm), inset 0 0 0 1.5px rgba(22,41,90,.28); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); }
.customs-head { padding: 28px 30px; border-right: 1.5px solid rgba(22,41,90,.28); display: flex; flex-direction: column; gap: 10px; }
.customs-k { font: 11px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--pink-ink); }
.customs-head h3 { font-size: 1.9rem; }
.customs-head p { color: var(--muted); font-size: .95rem; }
.customs-list { display: grid; grid-template-columns: 1fr 1fr; }
.customs-list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 22px; border-bottom: 1px solid rgba(22,41,90,.16); font-size: .98rem; line-height: 1.4; }
.customs-list li:nth-child(odd) { border-right: 1px solid rgba(22,41,90,.16); }
.customs-list .box { width: 20px; height: 20px; flex: none; border: 1.5px solid var(--navy); border-radius: 3px; display: grid; place-items: center; color: var(--pink-ink); margin-top: 1px; }
.customs-foot { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid rgba(22,41,90,.28); }
.customs-foot div { padding: 14px 22px; font-size: .92rem; color: var(--ink); }
.customs-foot div + div { border-left: 1px solid rgba(22,41,90,.16); }
.customs-foot small { display: block; font: 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* ---------- 8 · FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.faq-side { position: sticky; top: 120px; }
.faq-side h2 { margin-bottom: 22px; }
.faq-side .lede { margin-bottom: 26px; }
.faq-side .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.faq-list { border-top: 1.5px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary {
    list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
    padding: 24px 4px; font-size: clamp(1.1rem, 1rem + .4vw, 1.32rem); letter-spacing: -.012em; line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .q { font: 12px/1 var(--mono); color: var(--pink-ink); letter-spacing: .06em; }
.faq-list summary .pm { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); display: grid; place-items: center; transition: rotate .25s ease, background-color .2s ease; }
.faq-list summary:hover .pm { background: #fff; }
.faq-list details[open] summary .pm { rotate: 45deg; background: var(--ink); color: #fff; box-shadow: none; }
.faq-list .a { padding: 0 60px 26px 44px; color: var(--muted); }
.faq-list .a p + p { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-foot { background: var(--grain), var(--sand); padding: clamp(56px, 7vw, 88px) 0 110px; position: relative; }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--stripes); background-size: 36px 36px; }
/* Under the back cover, whose airmail stripe is already its top edge. */
main:has(> .backcover:last-child) + .site-foot::before { display: none; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.foot-brand img { width: 150px; height: auto; display: block; margin-bottom: 18px; }
.foot-brand p { color: var(--muted); max-width: 26em; font-size: .98rem; }
.foot-brand .mail { display: inline-block; margin-top: 16px; font-size: 1.15rem; }
.foot-social { display: flex; gap: 8px; margin-top: 22px; }
.foot-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--navy); transition: background-color .2s ease, color .2s ease; }
.foot-social a:hover { background: var(--ink); color: #fff; }
.foot-h { font: 11.5px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-col a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: var(--ink); }
.foot-col a:hover { color: var(--pink-ink); text-decoration: underline; text-underline-offset: 4px; }
.foot-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .9rem; color: var(--muted); }
.foot-base a { color: var(--muted); }
.foot-base a:hover { color: var(--ink); }
.foot-base nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Reveal (only when JS + motion allowed) ---------- */
.reveal-on .reveal { opacity: 0; translate: 0 22px; transition: opacity .8s ease, translate .8s cubic-bezier(.2,.7,.2,1); }
.reveal-on .reveal.in { opacity: 1; translate: 0 0; }
.reveal-on .d1 { transition-delay: .08s; }
.reveal-on .d2 { transition-delay: .16s; }
.reveal-on .d3 { transition-delay: .24s; }
@media (max-width: 1080px) {
    .sec-head.split { grid-template-columns: minmax(0, 1fr); }
    .stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .faq-side { position: static; }
    .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .faq-grid { grid-template-columns: minmax(0, 1fr); }
    .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
    .main-nav { order: 3; margin-left: 0; }
    .head-row > .btn { margin-left: auto; order: 2; }
    .menu-btn { display: inline-flex; }
    .js .nav-panel {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(22,41,90,.35);
        padding: 8px var(--gutter) 20px; flex-direction: column; align-items: stretch;
    }
    .js .nav-panel.open { display: flex; }
    .nav-panel ul { flex-direction: column; }
    .nav-panel a { display: flex; min-height: 54px; font-size: 1.15rem; padding: 0 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav-panel .nav-login { border-bottom: 0; color: var(--pink-ink); }
    .nav-panel .nav-sep { display: none; }
    html:not(.js) .site-head { position: relative; }
    html:not(.js) .menu-btn { display: none; }
    html:not(.js) .head-row { flex-wrap: wrap; padding-bottom: 8px; }
    html:not(.js) .main-nav { flex-basis: 100%; }
    html:not(.js) .nav-panel, html:not(.js) .nav-panel ul { flex-direction: row; flex-wrap: wrap; gap: 0 18px; }
    html:not(.js) .nav-panel a { min-height: 40px; font-size: 1rem; border: 0; padding: 0; }
    .customs { grid-template-columns: minmax(0, 1fr); }
    .customs-head { border-right: 0; border-bottom: 1.5px solid rgba(22,41,90,.28); }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .customs-list { grid-template-columns: minmax(0, 1fr); }
    .customs-list li:nth-child(odd) { border-right: 0; }
    .customs-foot { grid-template-columns: minmax(0, 1fr); }
    .customs-foot div + div { border-left: 0; border-top: 1px solid rgba(22,41,90,.16); }
    .faq-list .a { padding: 0 8px 24px 0; }
    .faq-list summary { gap: 14px; grid-template-columns: 1fr auto; }
    .faq-list summary .q { display: none; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .brand img { width: 128px; }
    .head-row { gap: 10px; min-height: 68px; }
    .menu-btn { padding: 0 12px; }
    .menu-btn .mb-label { display: none; }
    .menu-btn { width: 44px; justify-content: center; padding: 0; }
    .head-row > .btn { padding: 0 1em; }
    .tag { margin-bottom: 20px; }
    .stamp-mini { width: 62px; }
    .stamp-mini .perf { padding: 7px; }
    .stamps { gap: 16px 12px; }
    .stamp-card .perf { --r: 5px; padding: 14px 13px 16px; }
    .stamp-face { padding: 12px 11px 10px; min-height: 196px; }
    .denom-num { font-size: 2rem; }
    .denom-per { font-size: 9.5px; letter-spacing: .04em; }
    .pop-tag { top: 10px; right: 8px; font-size: 8.5px; padding: 5px 6px; letter-spacing: .08em; }
    .stamp-flag img, .stamp-flag .emoji { width: 58px; height: 58px; }
    .stamp-name { font-size: 10px; letter-spacing: .08em; }
    .stamp-dial { font-size: 10.5px; }
    .stamp-foot { flex-direction: column; gap: 3px; }
    .stamp-alt { font-size: .82rem; margin: 12px 0; }
    .stamp-actions { flex-direction: column-reverse; align-items: stretch; gap: 2px; }
    .stamp-actions .btn { padding: 0 .8em; }
    .stamp-more { justify-content: center; min-height: 40px; }
    .billing button { padding: 0 14px; }
    .price-head { align-items: stretch; }
    .billing { width: 100%; }
    .foot-grid { gap: 28px; }
}
@media (max-width: 380px) {
    .brand img { width: 112px; }
    .head-row > .btn { font-size: .9rem; padding: 0 .9em; }
    .stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
    .stamp-card .perf { padding: 12px 10px 14px; }
    .stamp-face { padding: 10px 9px 9px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Back cover: the dark closing call to action on every page ---------- */
.backcover { position: relative; background: var(--ink); color: #fff; padding: clamp(80px, 8vw, 128px) 0 clamp(80px, 8vw, 120px); overflow: hidden; }
.backcover::before, .backcover::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: var(--stripes); background-size: 36px 36px; }
.backcover::before { top: 0; }
.backcover::after { bottom: 0; }
.bc-glow { position: absolute; right: -10%; top: -30%; width: 70vw; max-width: 1000px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(247, 95, 168, .22), rgba(253, 177, 138, .08) 55%, transparent 72%); pointer-events: none; }
.bc-grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(40px, 6vw, 96px); align-items: center; }
.backcover h2 { font-size: clamp(2.4rem, 1rem + 3.7vw, 4.6rem); line-height: .96; letter-spacing: -.042em; color: #fff; }
.backcover .accent.block { display: block; width: fit-content; }
.backcover .lede { color: #C9D0E2; margin-top: 26px; max-width: 36em; }
.bc-label { font: 11.5px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.bc-flags { margin-top: 34px; }
.bc-flags .bc-label { color: #AFB8D0; margin-bottom: 12px; }
.bc-flags ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.bc-flags li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); font-size: .92rem; color: #E6EAF4; }
.bc-flags img, .bc-flags .emoji { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-size: 15px; }
.bc-small { margin-top: 28px; color: #C9D0E2; font-size: .98rem; }
.bc-small a { color: #fff; text-decoration-color: rgba(253,177,138,.7); }
.bc-small a:hover { color: var(--peach); }
.reply-wrap { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); rotate: 1.5deg; justify-self: center; width: 100%; max-width: 470px; }
.reply { --r: 7px; background: #FFFDF9; color: var(--ink); padding: 34px 34px 30px; position: relative; }
.reply-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1.5px dashed var(--line-2); }
.reply-top .bc-label { color: var(--ink); line-height: 1.6; }
.reply-top .bc-label span { display: block; color: var(--muted); }
.reply-stamp { width: 70px; flex: none; }
.reply-stamp .perf { --r: 4px; background: #fff; padding: 7px; }
.reply-stamp .art { aspect-ratio: 4 / 5; background: linear-gradient(160deg, #FFE7D8, #FFD4E6); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(22,41,90,.14); }
.reply-stamp .art img { width: 70%; height: auto; }
.reply .postmark { position: absolute; top: 18px; right: 64px; width: 170px; color: var(--navy); opacity: .5; rotate: -10deg; pointer-events: none; }
.reply-title { font: italic 400 2.2rem/1.05 var(--serif); letter-spacing: -.02em; margin: 22px 0 16px; color: var(--ink); }
.reply-list { list-style: none; padding: 0; margin: 0; }
.reply-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.reply-list .box { width: 22px; height: 22px; border-radius: 4px; border: 1.5px solid var(--navy); display: grid; place-items: center; color: var(--pink-ink); }
.reply .btn { width: 100%; margin-top: 24px; }
.reply-alt { margin-top: 14px; text-align: center; font-size: .95rem; color: var(--muted); }
.reply-alt .link { color: var(--ink); }
.reply-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 20px; padding-top: 14px; border-top: 1.5px dashed var(--line-2); }
.reply-foot .barcode { display: block; width: 120px; height: 30px; color: var(--ink); }
.reply-foot p { font: 10px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: right; }
@media (max-width: 1080px) {
    .bc-grid { grid-template-columns: minmax(0, 1fr); }
    .reply-wrap { max-width: 520px; justify-self: start; }
}
@media (max-width: 900px) {
    .reply-wrap { rotate: 0deg; }
}
@media (max-width: 600px) {
    .reply { padding: 26px 22px 24px; }
    .reply-title { font-size: 1.8rem; }
    .reply .postmark { width: 130px; right: 60px; }
}

/* ---------- The brand name inside uppercase labels stays lowercase ---------- */
.brandname { text-transform: none; letter-spacing: .02em; }

/* ---------- Old homepage anchors (/#about, /#countries …) land on their new section ---------- */
.alias { position: absolute; top: 0; }

/* ---------- Footer: Cookie settings (wired up by includes/analytics.php) ---------- */
.foot-col button {
    display: inline-flex; align-items: center; min-height: 36px; padding: 0;
    border: 0; background: none; color: var(--ink); cursor: pointer; text-align: left;
}
.foot-col button:hover { color: var(--pink-ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Contact form: a letter in a native <dialog> ---------- */
html:has(.contact:modal) { overflow: hidden; }
.contact {
    position: fixed; inset: 0; z-index: 90;
    width: min(620px, calc(100% - 24px)); max-height: calc(100% - 24px);
    margin: auto; padding: 0; border: 0; border-radius: 10px;
    background: #FFFDF9; color: var(--ink); box-shadow: var(--shadow-lg);
    overflow: auto; overscroll-behavior: contain;
}
.contact::backdrop { background: rgba(14, 24, 52, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.contact-card { position: relative; padding: clamp(34px, 4.4vw, 48px) clamp(22px, 4vw, 40px) clamp(24px, 3.6vw, 36px); }
.contact-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--stripes); background-size: 36px 36px; }
.contact-x-form { position: absolute; top: 22px; right: 16px; z-index: 1; }
.contact-x {
    width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; background: transparent; color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color .2s ease, color .2s ease;
}
.contact-x:hover { background: var(--ink); color: #fff; box-shadow: none; }
.contact .eyebrow { margin-bottom: 14px; }
.contact h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.7rem); line-height: 1.02; margin: 0 52px 12px 0; }
.contact-sub { color: var(--muted); margin-bottom: 24px; }
.contact .callout { margin-bottom: 20px; }
.contact .callout a { color: inherit; }
.contact .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.contact .field { margin-bottom: 16px; }
.contact .field label { display: block; margin-bottom: 8px; font: 11.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.contact .field .req { color: var(--pink-ink); }
.contact .field input,
.contact .field select,
.contact .field textarea {
    display: block; width: 100%; min-height: 52px; padding: 12px 14px;
    border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--sand-3);
    font: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink);
    transition: border-color .2s ease, background-color .2s ease;
}
.contact .field select {
    appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer;
    background: var(--sand-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23243C70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.contact .field textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.contact .field input:hover,
.contact .field select:hover,
.contact .field textarea:hover { border-color: var(--navy); background-color: #fff; }
.contact .field input:focus-visible,
.contact .field select:focus-visible,
.contact .field textarea:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; border-color: var(--navy); background-color: #fff; }
.contact .char-count { margin-top: 6px; text-align: right; font: 11px/1 var(--mono); color: var(--muted); }
.contact .cf-turnstile { margin-bottom: 16px; }
.contact .ts-note[hidden] { display: none; }
.contact-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap;
    margin-top: 6px; padding-top: 20px; border-top: 1.5px dashed var(--line-2);
}
.trust-note { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); }
.trust-note svg { flex: none; color: var(--pink-ink); }
.contact-done { position: relative; }
.contact-done .rubber { position: static; display: inline-block; margin: 6px 0 22px 4px; rotate: -6deg; color: #1E7A55; }
.contact-done p { color: var(--muted); margin-bottom: 26px; max-width: 30em; }
@media (max-width: 520px) {
    .contact .form-row { grid-template-columns: minmax(0, 1fr); }
    .contact-foot .btn { width: 100%; }
}

/* ======================================================================
   Inner pages: FAQ, countries, legal, 404
   ====================================================================== */

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: clamp(26px, 3.2vw, 44px) 0 clamp(44px, 5.4vw, 80px); overflow-x: clip; }
.page-hero::before {
    content: ""; position: absolute; z-index: -1; right: -14vw; top: -30%;
    width: min(60vw, 820px); aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(253, 177, 138, .26), rgba(247, 95, 168, .08) 55%, transparent 72%);
}
.page-hero h1 { font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.3rem); line-height: .99; letter-spacing: -0.033em; margin-bottom: 22px; max-width: 15em; }
.page-hero h1 .accent { display: block; width: fit-content; }
.page-hero .lede { max-width: 36em; }
.page-hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px clamp(32px, 5vw, 80px); align-items: center; }

/* ---------- Breadcrumbs ---------- */
.crumbs { margin-bottom: 26px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font: 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "›"; margin: 0 10px; color: var(--pink-ink); }
.crumbs a { color: var(--navy); text-decoration: none; padding: 6px 0; }
.crumbs a:hover { color: var(--pink-ink); text-decoration: underline; text-underline-offset: 4px; }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- Chips (links and labels) ---------- */
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li, .chip-list a {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px;
    border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink);
    font-size: .95rem; text-decoration: none;
}
.chip-list li:has(> a) { padding: 0; box-shadow: none; background: none; }
.chip-list a { transition: box-shadow .2s ease, color .2s ease; }
.chip-list a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--pink-ink); }
.chip-list img, .chip-list .emoji { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 15px; }
.chip-list a:has(img) { padding-left: 6px; }

/* ---------- Paper card (legal text, notes) ---------- */
.paper { position: relative; background: #fff; border-radius: 6px; box-shadow: var(--shadow-md); padding: clamp(28px, 4.6vw, 60px); }
.paper::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: 6px 6px 0 0; background: var(--stripes); background-size: 36px 36px; }

/* ---------- Long-form text ---------- */
.prose { color: #3B4663; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.45rem, 1.15rem + .9vw, 1.95rem); line-height: 1.15; color: var(--ink); margin-top: 2.1em; scroll-margin-top: 110px; }
.prose h3 { font-size: 1.18rem; line-height: 1.3; color: var(--ink); margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--pink-ink); }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(247, 44, 129, .55); }
.prose a:hover { color: var(--pink-ink); text-decoration-color: currentColor; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--sand-3); padding: 1px 6px; border-radius: 5px; color: var(--ink); }
.prose .callout { font-size: .98rem; }
.prose .table-wrap { position: relative; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.prose th { font: 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); border-bottom: 1.5px solid var(--ink); }

/* ---------- Legal pages ---------- */
.legal-grid { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 72px); align-items: start; padding-bottom: var(--sec); }
.toc { position: sticky; top: 120px; }
.toc .foot-h { margin-bottom: 10px; }
.toc ol { border-left: 1.5px solid var(--line-2); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1.5px; border-left: 1.5px solid transparent; color: var(--muted); font-size: .94rem; line-height: 1.35; text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--pink); }
.updated { font: 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legal-note { margin-top: 18px; }

/* ---------- Section heads on inner pages ---------- */
.h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.08; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px clamp(36px, 5vw, 80px); align-items: start; }
.intro-grid .prose { font-size: 1.08rem; }

/* ---------- "At a glance" card ---------- */
.glance { background: #fff; border-radius: 6px; box-shadow: var(--shadow-sm), inset 0 0 0 1.5px rgba(22,41,90,.28); }
.glance-head { padding: 18px 22px; border-bottom: 1.5px solid rgba(22,41,90,.28); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.glance-head .customs-k { margin: 0; }
.glance dl { margin: 0; }
.glance dl > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; padding: 13px 22px; border-bottom: 1px solid rgba(22,41,90,.14); }
.glance dl > div:last-child { border-bottom: 0; }
.glance dt { font: 10.5px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.glance dd { margin: 0; color: var(--ink); font-size: .98rem; line-height: 1.4; }
.glance dd a { color: var(--ink); }

/* ---------- Port itinerary (country pages) ---------- */
.itinerary { position: relative; display: grid; gap: 16px; max-width: 860px; counter-reset: stop; padding-left: 46px; }
.itinerary::before { content: ""; position: absolute; left: 14px; top: 34px; bottom: 34px; border-left: 2px dashed rgba(36,60,112,.4); }
.itinerary > li { position: relative; counter-increment: stop; background: #fff; border-radius: 18px; padding: 22px 26px 22px 104px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); min-height: 96px; }
.itinerary > li::before { content: ""; position: absolute; left: -39px; top: 36px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--navy); }
.itinerary .no { position: absolute; left: 24px; top: 22px; font: italic 400 2.3rem/1 var(--serif); color: var(--pink-ink); letter-spacing: -.02em; }
.itinerary .no small { display: block; margin-bottom: 6px; font: normal 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.itinerary h3 { font-size: 1.3rem; margin-bottom: 6px; }
.itinerary p { color: var(--muted); }

/* ---------- Ruled check list ---------- */
.checks li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); color: #3B4663; line-height: 1.5; }
.checks li:last-child { border-bottom: 0; }
.checks .box { position: absolute; left: 0; top: 16px; width: 20px; height: 20px; border: 1.5px solid var(--navy); border-radius: 3px; display: grid; place-items: center; color: var(--pink-ink); }

/* ---------- Two-up blocks ---------- */
.split-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(36px, 5vw, 80px); align-items: start; }
.split-2 .h3 { margin-bottom: 14px; }
.split-2 .lede { margin-bottom: 22px; }

/* ---------- Hero stamp (country pages) ---------- */
.hero-stamp { position: relative; justify-self: center; width: 100%; max-width: 380px; rotate: 2.5deg; }
.hero-stamp .stamp-card .perf { padding: 22px 22px 24px; }
.hero-stamp .stamp-face { min-height: 270px; }
.hero-stamp .denom-num { font-size: 3.2rem; }
.hero-stamp .stamp-flag img { width: 96px; height: 96px; }
.hero-stamp .postmark { position: absolute; z-index: 2; right: -58px; top: -56px; width: 164px; rotate: 10deg; color: var(--pink-ink); opacity: .5; pointer-events: none; }
.hero-stamp .stamp-alt { min-height: 0; }
.hero-stamp .stamp-actions .btn { width: 100%; }

/* ---------- Comparison table (countries hub) ---------- */
.ledger { position: relative; background: #fff; border-radius: 6px; box-shadow: var(--shadow-sm), inset 0 0 0 1.5px rgba(22,41,90,.28); overflow-x: auto; }
.ledger table { width: 100%; border-collapse: collapse; min-width: 760px; }
.ledger th, .ledger td { padding: 14px 18px; text-align: left; vertical-align: middle; border-bottom: 1px solid rgba(22,41,90,.14); }
.ledger thead th { font: 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 400; border-bottom: 1.5px solid rgba(22,41,90,.28); }
.ledger tbody tr:last-child > * { border-bottom: 0; }
.ledger tbody th { font-weight: 400; }
.ledger .cn { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); white-space: nowrap; }
.ledger .cn img, .ledger .cn .emoji { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-size: 16px; }
.ledger .mono { font-size: .9rem; color: var(--ink); }
.ledger td.muted { color: var(--muted); font-size: .94rem; }
.ledger a.link { white-space: nowrap; }

/* ---------- FAQ page ---------- */
.faq-page { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; padding-bottom: var(--sec); }
.faq-cat + .faq-cat { margin-top: clamp(48px, 6vw, 72px); }
.faq-cat > .eyebrow { margin-bottom: 12px; }
.faq-cat h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); margin-bottom: 20px; scroll-margin-top: 110px; }
.faq-list .a a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(247, 44, 129, .55); }
.faq-list .a a:hover { color: var(--pink-ink); }

/* ---------- 404 ---------- */
.lost { padding: clamp(36px, 5vw, 72px) 0 var(--sec); }
.lost-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px clamp(32px, 5vw, 80px); align-items: center; }
.lost .big-stamp {
    justify-self: center; display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 22px 34px 18px; border: 5px double var(--pink-ink); border-radius: 12px; color: var(--pink-ink);
    rotate: -8deg; opacity: .9; text-align: center;
}
.lost .big-stamp .t { font: 12px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; }
.lost .big-stamp .m { font: 400 clamp(2.6rem, 1.6rem + 3vw, 4rem)/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.lost .big-stamp .b { font: 11px/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Inner pages: responsive ---------- */
@media (max-width: 1080px) {
    .page-hero-grid, .intro-grid, .split-2, .lost-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-stamp { justify-self: start; margin-top: 8px; }
    .legal-grid, .faq-page { grid-template-columns: minmax(0, 1fr); }
    .toc { position: static; }
    .toc ol { display: flex; flex-wrap: wrap; gap: 6px; border-left: 0; }
    .toc a { padding: 6px 12px; margin: 0; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .88rem; }
    .toc a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
    .lost .big-stamp { justify-self: start; }
}
@media (max-width: 760px) {
    .itinerary { padding-left: 34px; }
    .itinerary::before { left: 8px; }
    .itinerary > li { padding: 20px; }
    .itinerary > li::before { left: -33px; top: 26px; }
    .itinerary .no { position: static; display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: 1.7rem; }
    .itinerary .no small { margin: 0; }
    .hero-stamp { rotate: 0deg; max-width: 340px; }
    .hero-stamp .postmark { right: -24px; top: -34px; width: 140px; }
}
@media (max-width: 560px) {
    .page-hero h1 { letter-spacing: -.03em; }
    .paper { padding: 30px 20px 26px; }
    .hero-stamp .stamp-face { padding: 14px 14px 12px; min-height: 236px; }
    .hero-stamp .denom-num { font-size: 2.6rem; }
    .hero-stamp .stamp-flag img { width: 80px; height: 80px; }
    .hero-stamp .stamp-foot { flex-direction: row; }
    .hero-stamp .stamp-name { font-size: 11px; }
    .hero-stamp .stamp-actions { flex-direction: column; }
}

/* ---------- Small utilities ---------- */
.flush-top { padding-top: 0 !important; }
.customs.flush { margin-top: 0; }
.muted { color: var(--muted); }
.stack-s { margin-top: 20px; }
.stack-m { margin-top: 24px; }
.nav-panel ul a[aria-current="page"] { color: var(--pink-ink); }
.h3 + .chip-list { margin-top: 20px; }
.ledger thead th, .ledger td:not(.muted) { white-space: nowrap; }
