/* Fardel website. Colours from the app icon (marketing/site/README.md): teal tile,
   paper, one saffron accent. System fonts only: no font request leaves the page. */
:root {
  --paper: #FFFBF3;
  --surface: #FFFFFF;
  --sunk: #F6F0E4;
  --ink: #17211F;
  --muted: #4C5B58;
  --line: #E7DFCF;
  --teal: #157A73;
  --teal-strong: #0B4D49;
  --saffron: #FFC857;
  --hero-a: #146F69;
  --hero-b: #0B4D49;
  --on-hero: #FFFBF3;
  --on-hero-muted: #E3F2EE;
  --bezel: #0D1716;
  --shadow: 0 30px 60px -20px rgba(11, 77, 73, .35);
  --radius: 22px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto,
          "Hiragino Sans", "PingFang SC", "Apple SD Gothic Neo", "Noto Sans", "Geeza Pro", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F1615;
    --surface: #17211F;
    --sunk: #131C1A;
    --ink: #EEF2EF;
    --muted: #A9B8B4;
    --line: #26332F;
    --teal: #5CC8BE;
    --teal-strong: #8FDCD4;
    --hero-a: #13665F;
    --hero-b: #082E2B;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--font); }
:lang(ja), :lang(ko), :lang(zh-Hans) { line-height: 1.75; }
:lang(ko) { word-break: keep-all; }
:lang(ja), :lang(zh-Hans) { line-break: strict; }
h1, h2, h3 { text-wrap: balance; }
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.caps { text-transform: uppercase; letter-spacing: .06em; font-size: 15px; color: var(--teal); }
.eyebrow { margin: 0 0 8px; font-size: 14px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--teal); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { inset-inline-start: 8px; }

/* Header */
header.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 8px; }
header nav { display: flex; gap: 22px; margin-inline-start: auto; }
header nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 0; }
header nav a:hover { color: var(--ink); }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--muted); padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; min-height: 44px; display: flex; align-items: center; gap: 6px; }
.langs summary::-webkit-details-marker { display: none; }
.langs ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 190px; }
.langs li a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.langs li a:hover, .langs li a[aria-current] { background: var(--sunk); }
@media (max-width: 760px) {
  header.top .wrap { flex-wrap: wrap; gap: 0 16px; min-height: 56px; }
  .langs { margin-inline-start: auto; }
  header nav { order: 3; width: 100%; margin: 0; gap: 18px; overflow-x: auto; border-top: 1px solid var(--line); scrollbar-width: none; }
  header nav a { white-space: nowrap; padding: 12px 0; min-height: 44px; display: inline-flex; align-items: center; }
}

/* Hero */
.hero { background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); color: var(--on-hero); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: end; padding-top: 72px; }
.hero-copy { padding-bottom: 72px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.02em; }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: var(--on-hero); margin: 0 0 10px; max-width: 34em; }
.hero .sublead { color: var(--on-hero-muted); margin: 0 0 28px; max-width: 34em; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; }
.chips li { font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255, 251, 243, .08); border: 1px solid rgba(255, 251, 243, .32); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.platform { color: var(--on-hero-muted); font-size: 15px; }
.promise { margin: 22px 0 0; color: var(--on-hero-muted); font-size: 15px; }
.cta { width: fit-content; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 16px; background: var(--saffron); color: #1B2422; font-weight: 800; text-decoration: none; margin: 0; }
.cta-soon span { width: 10px; height: 10px; border-radius: 50%; background: #1B2422; opacity: .55; }
.hero-phone { justify-self: center; }
.hero-phone img { width: min(340px, 74vw); border-radius: 46px 46px 0 0; border: 11px solid var(--bezel); border-bottom: 0; box-shadow: 0 -10px 70px rgba(0, 0, 0, .35); display: block; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding-top: 48px; gap: 8px; }
  .hero-copy { padding-bottom: 32px; }
  .chips, .hero-cta { justify-content: center; }
  .hero .lead, .hero .sublead { margin-inline: auto; }
}

.about { padding: 56px 0 8px; }
.about p { font-size: 19px; color: var(--muted); text-align: center; margin: 0; }
@media (max-width: 600px) { .about p { text-align: start; font-size: 17px; } }

/* Features */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 72px; }
.section-head h2, .faq h2, .pro h2, .final h2, .page-head h1 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 112px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .phones { order: 2; }
.feature h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.feature-copy { max-width: 30em; }
.feature-body { color: var(--muted); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 30px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--teal) 18%, transparent); }
.ticks li::after { content: ""; position: absolute; inset-inline-start: 6px; top: calc(.45em + 4px); width: 5px; height: 9px; border: solid var(--teal); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.more { font-weight: 800; text-decoration: none; display: inline-flex; gap: 6px; min-height: 44px; align-items: center; }
:dir(rtl) .more span, [dir="rtl"] .more span { transform: scaleX(-1); display: inline-block; }
.phones { position: relative; display: flex; justify-content: center; }
.phone img { display: block; width: min(300px, 70vw); border-radius: 42px; border: 10px solid var(--bezel); box-shadow: var(--shadow); background: var(--bezel); }
.phones.pair { gap: 20px; align-items: flex-start; }
.phones.pair .phone-back { margin-top: 72px; }
.phones.pair .phone img { width: min(250px, 42vw); }
.phones.pair .phone-back img { width: min(210px, 36vw); }
.features .wrap { position: relative; isolation: isolate; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 36px; margin-bottom: 88px; text-align: start; }
  .feature.flip .phones { order: 0; }
  .feature-copy { margin-inline: auto; }
  .phones.pair .phone-back { display: none; }
  .phones.pair .phone:first-child img { width: min(300px, 70vw); }
}

.band { background: var(--sunk); border-block: 1px solid var(--line); }
.band .section-head { margin-bottom: 40px; }
.privacy { text-align: center; padding-bottom: 24px; }
.privacy .big { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.35; margin: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 19px; padding: 20px 36px 20px 0; position: relative; min-height: 44px; }
[dir="rtl"] .faq summary { padding: 20px 0 20px 36px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 16px; font-size: 26px; color: var(--teal); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 22px; color: var(--muted); }

.final { text-align: center; background: var(--sunk); border-top: 1px solid var(--line); }
.final img { border-radius: 22px; box-shadow: var(--shadow); }
.final p { color: var(--muted); }

/* Guides */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 0; margin: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-inline-end: 6px; }
[dir="rtl"] .crumbs li + li::before { content: "‹"; }
.crumbs a { color: var(--muted); }
.page-head { padding: 40px 0 8px; }
.page-head .lead, .country .lead { font-size: 19px; color: var(--muted); }
.guides { padding-top: 24px; }
.guides h2 { font-size: 22px; margin: 40px 0 16px; }
.country-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.country-grid a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 52px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 600; }
.country-grid a:hover { border-color: var(--teal); }
.country-grid.small a { padding: 10px 14px; min-height: 44px; font-size: 15px; }
.flag { font-size: 24px; line-height: 1; }

/* Country guide (2026-11-19 redesign, ChatGPT's spec): hero and every section share the one 1120 px
   column; emergency numbers get their own panel, the everyday facts one strip of equal cards, power
   its own section, sights and dishes two lists side by side. */
.country { padding: 8px 0 88px; }
.country h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.15; }
.country section { padding: 0; margin-top: 48px; }
.country h2 { font-size: 24px; margin: 0 0 16px; }
.country p { max-width: 68ch; }
.emergency { background: color-mix(in srgb, var(--saffron) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--saffron) 45%, var(--line)); border-radius: 18px; padding: 20px 24px; }
.emergency h3 { margin: 0 0 12px; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.numbers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.numbers.n1 { grid-template-columns: minmax(0, 1fr); }
.numbers.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.numbers.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.numbers li { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border-radius: 14px; padding: 12px 16px; min-height: 76px; justify-content: center; }
.numbers a { font-size: 30px; line-height: 1.1; font-weight: 800; text-decoration: none; color: var(--teal-strong); width: fit-content; }
.numbers span { color: var(--muted); font-weight: 600; font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0 0; }
.facts.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts > div, .know > div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.facts > div { min-height: 104px; }
.facts dt, .know dt { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.facts dd { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35; }
.facts dd.water { font-size: 16px; }
.facts dd.water::before { margin-inline-end: 6px; }
.facts dd.safe::before { content: "✓"; color: var(--teal); }
.facts dd.unsafe::before { content: "!"; color: #B4532A; font-weight: 900; }
.facts dd.varies::before { content: "~"; color: var(--muted); }
.plug-panel { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.plug-spec { display: flex; flex-direction: column; gap: 4px; padding-inline-end: 24px; border-inline-end: 1px solid var(--line); }
.plug-spec .label { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.plug-spec strong { font-size: 30px; line-height: 1.15; }
.plug-spec span:last-child { color: var(--muted); font-size: 18px; font-weight: 600; }
.plug-panel p { margin: 0; color: var(--muted); }
.know { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.know .customs { grid-column: 1 / -1; background: color-mix(in srgb, var(--teal) 9%, var(--surface)); border-color: color-mix(in srgb, var(--teal) 22%, var(--line)); }
.know dd { margin: 0; font-weight: 500; color: var(--ink); }
.know ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.see-eat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.items { list-style: none; padding: 8px 20px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.items li { display: flex; align-items: center; gap: 14px; min-height: 56px; font-weight: 600; }
.items li + li { border-top: 1px solid var(--line); }
.items .tile { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--sunk); font-size: 20px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.country .table-scroll td { padding: 14px 20px; font-size: 16px; }
.country .table-scroll th { padding: 12px 20px; }
.country .table-scroll td:first-child { width: 40%; }
tr:last-child td { border-bottom: 0; }
th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
td:first-child { font-weight: 700; }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.note { font-size: 14px; color: var(--muted); margin-top: 36px; }
.country-cta { display: flex; gap: 20px; align-items: flex-start; margin-top: 36px; padding: 26px; border-radius: var(--radius); background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); color: var(--on-hero); }
.country-cta img { border-radius: 14px; flex: none; }
.country-cta h2 { font-size: 22px; }
.country-cta p { color: var(--on-hero-muted); }
@media (max-width: 900px) { .facts, .facts.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } .numbers.n1 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .country section { margin-top: 36px; } .plug-panel { grid-template-columns: 1fr; padding: 18px; gap: 14px; } .plug-spec { padding: 0 0 14px; border-inline-end: 0; border-bottom: 1px solid var(--line); } .know, .see-eat { grid-template-columns: 1fr; } .facts > div { min-height: 0; padding: 14px 16px; } .facts dd { font-size: 16px; } .numbers a { font-size: 26px; } .emergency { padding: 16px; } .country-cta { flex-direction: column; } .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .country-grid a { padding: 10px 12px; gap: 8px; font-size: 15px; } }

/* Footer */
/* Footer: the hero gradient's dark stop (saffron headings measure 3.89:1 on its light stop), the brand with its App Store link, two link columns, the languages. */
footer { background: var(--hero-b); color: var(--on-hero-muted); padding: 56px 0 40px; font-size: 15px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px 48px; padding-bottom: 36px; border-bottom: 1px solid color-mix(in srgb, var(--on-hero) 18%, transparent); }
.foot-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--on-hero); font-size: 22px; font-weight: 800; text-decoration: none; }
.foot-logo img { border-radius: 10px; }
.foot-brand p { margin: 10px 0 18px; max-width: 26em; }
.foot-brand .cta { font-size: 15px; padding: 12px 18px; }
.foot-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0 !important; }
.foot-social a { border: 1px solid color-mix(in srgb, var(--on-hero) 30%, transparent); border-radius: 999px; padding: 0 14px; }
.foot-h { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--saffron); }
.foot-col ul, .foot-langs ul { list-style: none; margin: 0; padding: 0; }
.foot-col li a { min-height: 36px; }
.foot-langs { padding-top: 28px; }
.foot-langs ul { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-langs a { border-radius: 999px; padding: 0 12px; background: color-mix(in srgb, var(--on-hero) 8%, transparent); }
.foot-langs a[aria-current] { background: var(--on-hero); color: var(--hero-b); font-weight: 700; }
footer a { color: var(--on-hero-muted); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
footer a:hover { color: var(--on-hero); text-decoration: underline; }
footer .cta:hover { text-decoration: none; }
footer a:focus-visible { outline-color: var(--saffron); }
@media (max-width: 800px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-top { grid-template-columns: 1fr; } }

/* Content pages: a hero band with the page's phone, then its sections as cards beside a list of them. */
.page-hero { padding: 0; }
.page-hero .crumbs ol { padding-top: 22px; color: var(--on-hero-muted); }
.page-hero .crumbs a { color: var(--on-hero-muted); }
.page-hero .hero-grid { padding-top: 28px; align-items: center; }
.page-hero .hero-phone { align-self: end; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 54px); }
.page-hero .hero-copy { padding: 24px 0 56px; }
.page-hero .lead { color: var(--on-hero); margin-bottom: 26px; }
.page-hero .hero-phone img { width: min(300px, 64vw); }
.page-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; max-width: 1120px; }
.page-main { max-width: 780px; }
.toc { position: sticky; top: 88px; padding-top: 44px; }
.toc .foot-h { color: var(--teal); }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); counter-reset: toc; }
.toc li { counter-increment: toc; }
.page-body > * { min-width: 0; }
.toc a { overflow-wrap: break-word; display: block; padding: 7px 0 7px 14px; margin-inline-start: -2px; border-inline-start: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.35; }
[dir="rtl"] .toc a { padding: 7px 14px 7px 0; }
.toc a:hover { color: var(--ink); border-color: var(--teal); }
.page-main > section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; margin-top: 24px; counter-increment: sec; }
.page-main { counter-reset: sec; }
.page-main > section > h2 { display: flex; align-items: center; gap: 12px; }
.page-main > section > h2::before { content: counter(sec); flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); font-size: 15px; font-weight: 800; }
.page-main > section > :last-child { margin-bottom: 0; }
.page-main > .country-cta { margin-top: 32px; }
@media (max-width: 900px) {
  .page-body { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; padding-top: 28px; }
  .page-hero .hero-copy { padding-bottom: 28px; }
}
@media (max-width: 640px) { .page-main > section { padding: 20px 18px; } .page-main .compare { margin-inline: -18px; } }

/* Root language chooser and 404 */
.root main { padding: 64px 20px; text-align: center; }
.root img { border-radius: 22px; box-shadow: var(--shadow); }
.lang-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; text-align: start; }
.lang-list a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; min-height: 44px; }
.lang-list span { color: var(--muted); font-size: 15px; }
.root section { padding: 24px 0; border-bottom: 1px solid var(--line); }
[dir="rtl"] .facts dd[dir="ltr"] { text-align: right; }

/* Offer of the visitor's own language */
.lang-offer { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; background: var(--teal-strong); color: var(--paper); font-weight: 700; font-size: 15px; }
.lang-offer[hidden] { display: none; }
.lang-offer a { color: inherit; min-height: 44px; display: inline-flex; align-items: center; }
.lang-offer button { background: none; border: 0; color: inherit; font-size: 22px; min-width: 44px; min-height: 44px; cursor: pointer; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { display: block; }

/* At a glance: one panel, a quiet grid of facts */
.glance { padding: 56px 0 0; }
.glance h2 { font-size: 15px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--teal); text-align: center; margin-bottom: 18px; }
.glance-panel { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(11, 77, 73, .35); }
.glance-panel > div { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-content: start; padding: 22px 24px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.glance-panel > div:nth-child(3n) { border-inline-end: 0; }
.glance-panel > div:nth-last-child(-n+3) { border-bottom: 0; }
.glance-icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--teal) 12%, transparent); color: var(--teal); }
.glance dt { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.glance dd { margin: 2px 0 0; font-weight: 700; line-height: 1.45; }
.lang-chips { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lang-chips li { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--sunk); border: 1px solid var(--line); }
@media (max-width: 860px) {
  .glance-panel { grid-template-columns: 1fr; }
  .glance-panel > div { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .glance-panel > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .glance-panel > div:last-child { border-bottom: 0; }
}

/* iPhone features */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); margin-bottom: 16px; }
.cards h3 { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.cards p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Free and Pro, side by side */
.pro-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.pro-copy h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; }
.pro-copy .lead { font-size: 19px; font-weight: 700; margin: 0 0 8px; }
.pro-copy p { color: var(--muted); }
.compare { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 8px 8px 0; box-shadow: 0 18px 40px -28px rgba(11, 77, 73, .35); }
.compare table { width: 100%; border-collapse: separate; border-spacing: 0; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; font-size: 15px; vertical-align: middle; }
.compare tbody th { text-align: start; font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 15px; }
.compare thead th { font-size: 14px; font-weight: 800; color: var(--muted); letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.compare td:first-child { font-weight: inherit; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .pro-col { background: color-mix(in srgb, var(--teal) 9%, transparent); color: var(--teal-strong); font-weight: 800; width: 26%; }
.compare thead .pro-col { border-radius: 16px 16px 0 0; }
.compare tbody tr:last-child .pro-col { border-radius: 0 0 16px 16px; }
.compare td:nth-child(2) { width: 22%; color: var(--muted); }
.compare .num { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.compare .none { color: var(--muted); }
.compare .pro-col .icon { margin: 0 auto; }
.pro-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); color: #fff; font-size: 13px; letter-spacing: .06em; }
.compare-note { margin: 0; padding: 14px 16px 18px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .pro-grid { grid-template-columns: 1fr; gap: 24px; }
  .compare th, .compare td { padding: 12px 10px; font-size: 14px; }
}

.popular-title { margin: 22px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.popular { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.popular a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.popular a:hover { border-color: var(--teal); }
.final .cta { margin-inline: auto; }

/* Blog: a brand band with the title, the cover lifted over its edge, a narrow body;
   the index leads with one large card and lists the rest as cards. */
.post-band, .blog-band { background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); color: var(--on-hero); padding: 40px 0 120px; }
.blog-band { padding-bottom: 48px; }
.post-band h1, .blog-band h1 { color: var(--on-hero); margin: 8px 0 12px; }
.post-band .crumb, .post-band .byline, .blog-band .lead { color: var(--on-hero); opacity: .88; margin: 0; font-size: 15px; }
.post-band .crumb a { color: inherit; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); }
.post-band .tag { background: rgba(0, 0, 0, .24); }
/* The cover is as wide as the title and the text (.narrow), so the page reads down one column. */
.post-cover { margin: -96px auto 0; max-width: 760px; }
.post-cover img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow); }
.post-body { padding-top: 24px; overflow-wrap: anywhere; }
.post-body h2 { margin-top: 36px; }
.post-body li.todo { list-style: none; margin-inline-start: -1.2em; }
.post-body li.todo::before { content: "☐ "; }
.table-scroll { overflow-x: auto; margin: 16px 0; }
.table-scroll table { border-collapse: collapse; width: 100%; font-size: 15px; overflow-wrap: normal; }
.table-scroll th, .table-scroll td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: top; }
.table-scroll th { font-weight: 700; }
.post-body .sources { margin-top: 40px; font-size: 15px; }
.blog-index { padding: 32px 16px 56px; }
.post-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card a { display: grid; gap: 8px; color: var(--ink); text-decoration: none; }
.post-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; }
.post-card strong { font-size: 19px; line-height: 1.25; }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; }
.post-card .tag { justify-self: start; color: var(--muted); }
.post-card.featured { grid-column: 1 / -1; }
.post-card.featured a { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 28px; }
.post-card.featured img { grid-row: 1 / span 3; }
.post-card.featured strong { font-size: 28px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .post-card.featured a { grid-template-columns: minmax(0, 1fr); }
  .post-card.featured img { grid-row: auto; }
  .post-cover { margin-top: -80px; }
  .post-band { padding-bottom: 100px; }
}

/* Country page header: the landmark photo, darkened towards its foot, with the flag, title and intro over it.
   The overlay is held by tools/browser-audit.py, which measures the white text against the photo's own pixels:
   .10 to .72 left 120 title and intro blocks under 3:1 / 4.5:1 at 360-1280 px (2026-11-16, long Japanese titles at 360 px). */
.country-hero { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); min-height: 340px; margin-top: 12px; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); }
.country-hero.no-photo { grid-template-columns: 1fr; min-height: 220px; }
.country-hero img { display: block; width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.country-hero-text { display: flex; flex-direction: column; justify-content: center; padding: 40px; color: var(--on-hero); }
.country-hero-text h1 { color: var(--on-hero); margin: 12px 0 10px; }
.country-hero-text .lead { color: var(--on-hero-muted); margin: 0; font-size: 17px; max-width: 46ch; }
.country-hero-text .flag { font-size: 40px; }
.photo-credit { font-size: 12px; color: var(--muted); margin: 8px 0 0; overflow-wrap: anywhere; }
.photo-credit a { color: inherit; }
@media (max-width: 900px) { .country-hero-text { padding: 28px; } }
@media (max-width: 640px) {
  .country-hero { grid-template-columns: 1fr; border-radius: 18px; }
  .country-hero img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .country-hero-text { padding: 22px 20px; }
  .country-hero-text .flag { font-size: 32px; }
  .country-hero-text .lead { font-size: 15px; }
}

/* Press kit and the other info pages (strings.py PAGES) */
.press-shots { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px; }
.press-shots a { display: grid; gap: 8px; font-size: 14px; color: var(--muted); text-decoration: none; }
.press-shots img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); }
.page-end { padding-bottom: 88px; }

/* Print: a packing list or guide page printed from the browser keeps its content and drops
   the site's chrome (owner, 2026-11-15: printable lists are part of the plan). */
@media print {
  .toc, header.top, footer, nav.crumbs, .lang-offer, .country-cta, section.pro, .skip { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  a { color: inherit !important; text-decoration: none !important; }
  .wrap, .narrow { max-width: none !important; padding: 0 !important; }
  h1, h2, h3 { break-after: avoid; }
  li, tr, img { break-inside: avoid; }
}
