/* Flippin website — the 2.0 "paper and sky" style of the app and its App Store screenshots.
   Sections alternate between .sky (blue gradient with clouds; a starry night in dark mode) and
   .grid-paper (light page with a faint blue grid). Nunito is self-hosted (SIL OFL). */

/* ---------------------------------------------------------------- Fonts */
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url(../fonts/nunito-700-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url(../fonts/nunito-700-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url(../fonts/nunito-700-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url(../fonts/nunito-700-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(../fonts/nunito-800-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(../fonts/nunito-800-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(../fonts/nunito-800-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(../fonts/nunito-800-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: Nunito; font-weight: 900; font-display: swap; src: url(../fonts/nunito-900-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Nunito; font-weight: 900; font-display: swap; src: url(../fonts/nunito-900-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Nunito; font-weight: 900; font-display: swap; src: url(../fonts/nunito-900-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Nunito; font-weight: 900; font-display: swap; src: url(../fonts/nunito-900-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

/* ---------------------------------------------------------------- Tokens */
:root {
  color-scheme: light dark;
  --brand: #0A7AC0;          /* fills, white text */
  --brand-lip: #07588F;
  --bright: #209AE6;         /* illustration sky blue, decoration only */
  --brand-text: #0A6FB0;     /* links and blue text on light surfaces */
  --soft: #DDF4FF;
  --gold: #FFC800;
  --gold-text: #4A3300;
  --gold-lip: #D29A00;
  --success: #3F8F0B;
  --success-lip: #2D6A06;
  --success-soft: #DDF6C6;
  --success-text: #2B6406;

  --page: #F2F8FE;
  --grid-line: rgba(10, 122, 192, .07);
  --paper: #FFFFFF;
  --paper-line: #D9E7F3;
  --ink: #10243A;
  --ink-2: #44586C;
  --headline: #0A7AC0;
  --headline-lip: #BFDDF4;
  --shadow: 0 18px 40px rgba(10, 60, 110, .12);
  --drop: drop-shadow(0 24px 30px rgba(0, 40, 90, .28));
  --focus: #0A5A92;

  --sky-top: #137BC2;       /* white text ≥ 4.5 : 1 on every stop */
  --sky-mid: #0C70B3;
  --sky-bottom: #0A5E9A;
  --sky-glow: rgba(124, 203, 250, .38);
  --sky-ink: #FFFFFF;
  --sky-lip: #07588F;
  --cloud: #FFFFFF;
  --stars: none;
  /* One size per --stars layer: background-size values cycle over every layer, so a short list would tile the glow too. */
  --stars-size: 360px 360px;

  --radius: 24px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: Nunito, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #0A7AC0;
    --brand-lip: #064D7C;
    --brand-text: #74C3F6;
    --soft: #12304A;
    --success-soft: #1F3A12;
    --success-text: #9BE070;

    --page: #0C141D;
    --grid-line: rgba(32, 154, 230, .09);
    --paper: #16212D;
    --paper-line: #273747;
    --ink: #E9F1F8;
    --ink-2: #A8BBCC;
    --headline: #7CC8F7;
    --headline-lip: #0A3557;
    --shadow: 0 18px 40px rgba(0, 0, 0, .45);
    --drop: drop-shadow(0 24px 30px rgba(0, 0, 0, .55));
    --focus: #FFC800;

    --sky-top: #123A60;
    --sky-mid: #0D2A47;
    --sky-bottom: #08192C;
    --sky-glow: rgba(32, 154, 230, .22);
    --sky-lip: #020A14;
    --cloud: #FFFFFF;
    --stars:
      radial-gradient(1.4px 1.4px at 12% 18%, rgba(255,255,255,.85) 50%, transparent 51%),
      radial-gradient(1.2px 1.2px at 38% 72%, rgba(255,255,255,.7) 50%, transparent 51%),
      radial-gradient(1.6px 1.6px at 64% 34%, rgba(255,255,255,.8) 50%, transparent 51%),
      radial-gradient(1.1px 1.1px at 84% 82%, rgba(255,255,255,.6) 50%, transparent 51%),
      radial-gradient(1.3px 1.3px at 92% 12%, rgba(255,255,255,.75) 50%, transparent 51%),
      radial-gradient(1px 1px at 24% 54%, rgba(255,255,255,.55) 50%, transparent 51%);
    --stars-size: 360px 360px, 360px 360px, 360px 360px, 360px 360px, 360px 360px, 360px 360px;
  }
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 700 1.0625rem/1.6 var(--font);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-text); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
b, strong { font-weight: 900; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.sky :focus-visible { --focus: #FFFFFF; }
@media (prefers-color-scheme: dark) { .sky :focus-visible { --focus: #FFC800; } }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2 * var(--gutter), 860px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px;
  background: var(--paper); color: var(--brand-text); font-weight: 900; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- Header */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--paper-line);
}
.bar-inner {
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
  display: flex; align-items: center; gap: 12px; min-height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-text); }
.brand img { width: 36px; height: 36px; }
.brand span { font-weight: 900; font-size: 1.5rem; letter-spacing: -.01em; }
.bar-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.bar-nav a, .menu-panel a {
  color: var(--ink-2); text-decoration: none; font-weight: 800; padding: 8px 12px; border-radius: 12px;
}
.bar-nav a:hover, .menu-panel a:hover { color: var(--brand-text); background: var(--soft); }
.bar .btn-small { margin-inline-start: 4px; }
.menu { display: none; position: relative; }
.menu summary, .lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  min-width: 44px; min-height: 44px; justify-content: center; padding: 0 10px;
  border: 2px solid var(--paper-line); border-radius: 14px; color: var(--ink-2); background: var(--paper);
  box-shadow: 0 3px 0 var(--paper-line); font-weight: 900;
}
.menu summary::-webkit-details-marker, .lang summary::-webkit-details-marker { display: none; }
.menu-panel, .lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); min-width: 210px; padding: 8px; margin: 0;
  display: flex; flex-direction: column; gap: 2px; list-style: none;
  background: var(--paper); border: 2px solid var(--paper-line); border-radius: 18px; box-shadow: var(--shadow);
}
.lang { position: relative; }
/* 34 languages: a scrolling grid of names, not one long column. */
.lang ul {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(540px, calc(100vw - 2 * var(--gutter)));
  max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain;
}
.lang ul a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.lang ul a:hover, .lang ul a[aria-current] { background: var(--soft); color: var(--brand-text); }

.brand, .lang, .menu, .bar .btn-small { flex: none; }
.lang summary svg { flex: none; }
@media (max-width: 860px) {
  .bar-nav { display: none; }
  .bar .btn-small { margin-inline-start: auto; }
  .lang { margin-inline-start: auto; }
  .lang + .btn-small { margin-inline-start: 0; }
  .menu { display: block; }
}
@media (max-width: 600px) {
  /* Pin the list to the viewport so it never runs off the left edge. */
  .lang { position: static; }
  .lang ul { position: absolute; inset-inline: var(--gutter); width: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 440px) {
  .bar-inner { gap: 8px; }
  .bar-inner:has(.lang) .brand span { display: none; }
}
@media (max-width: 360px) { .brand span { font-size: 1.25rem; } }

/* ---------------------------------------------------------------- Buttons and badges */
.btn {
  --face: var(--brand); --lip: var(--brand-lip); --label: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 26px; border-radius: 16px; border: 0;
  background: var(--face); color: var(--label); box-shadow: 0 5px 0 var(--lip);
  font: 900 1rem/1.1 var(--font); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--lip); }
.btn-small { min-height: 42px; padding: 8px 16px; font-size: .85rem; border-radius: 14px; box-shadow: 0 4px 0 var(--lip); }
.btn-secondary { --face: var(--paper); --lip: var(--paper-line); --label: var(--brand-text); border: 2px solid var(--paper-line); }
.btn-hero { --face: #FFFFFF; --lip: #BFDDF4; --label: #0A6FB0; }
@media (prefers-color-scheme: dark) {
  .btn-hero { --face: var(--brand); --lip: #04345A; --label: #FFFFFF; }
}
.badge { display: inline-block; border-radius: 14px; transition: transform .15s ease; }
.badge img { width: 180px; height: 60px; }
.badge:hover { transform: translateY(-2px); }

.tag {
  display: inline-block; padding: 1px 10px 2px; border-radius: 999px; vertical-align: .1em;
  font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.tag-premium { background: var(--gold); color: var(--gold-text); box-shadow: 0 2px 0 var(--gold-lip); }
.tag-free { background: var(--success-soft); color: var(--success-text); box-shadow: 0 2px 0 rgba(63, 143, 11, .35); }

/* ---------------------------------------------------------------- Sections */
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; overflow: clip; }
.grid-paper {
  background-color: var(--page);
  background-image: linear-gradient(var(--grid-line) 2px, transparent 2px), linear-gradient(90deg, var(--grid-line) 2px, transparent 2px);
  background-size: 44px 44px;
}
.sky {
  color: var(--sky-ink);
  background:
    var(--stars),
    radial-gradient(640px 420px at 80% -8%, var(--sky-glow), transparent 70%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-bottom) 100%);
  background-size: var(--stars-size), auto, auto;
  padding-bottom: clamp(110px, 12vw, 160px);
}
.sky a:not(.btn):not(.badge) { color: #FFFFFF; }
.sky .paper a:not(.btn), .sky .faq a:not(.btn) { color: var(--brand-text); }
/* Cloud bank melting into the next (grid paper) section: a translucent back row and a solid front
   row of bumps in the page color. */
.sky::before, .sky::after {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: -2px; pointer-events: none;
  background-repeat: repeat-x;
}
.sky::before {
  height: 104px; opacity: .45;
  background-image:
    radial-gradient(closest-side, var(--cloud) 97%, transparent 100%),
    radial-gradient(closest-side, var(--cloud) 97%, transparent 100%),
    linear-gradient(transparent 62%, var(--cloud) 62%);
  background-size: 300px 150px, 190px 120px, 100% 100%;
  background-position: 40px 30px, 210px 50px, 0 0;
}
.sky::after {
  height: 80px;
  background-image:
    radial-gradient(closest-side, var(--page) 97%, transparent 100%),
    radial-gradient(closest-side, var(--page) 97%, transparent 100%),
    radial-gradient(closest-side, var(--page) 97%, transparent 100%),
    linear-gradient(transparent 60%, var(--page) 60%);
  background-size: 260px 110px, 170px 84px, 120px 64px, 100% 100%;
  background-position: 0 28px, 150px 34px, 90px 36px, 0 0;
}
@media (prefers-color-scheme: dark) { .sky::before { opacity: .08; } }
.clouds { position: absolute; inset: 0; pointer-events: none; }
.cloud { position: absolute; border-radius: 50%; background: var(--cloud); filter: blur(16px); opacity: .3; }
.cloud.c1 { width: 300px; height: 80px; left: -140px; top: 9%; }
.cloud.c2 { width: 360px; height: 96px; right: -200px; top: 70%; opacity: .22; }
.cloud.c3 { width: 220px; height: 60px; left: 40%; top: 3%; opacity: .2; }
@media (prefers-color-scheme: dark) { .cloud { opacity: .06 !important; } }

.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  background: var(--soft); color: var(--brand-text);
}
@media (max-width: 600px) { .eyebrow { font-size: .72rem; letter-spacing: .06em; } }
.sky .eyebrow { background: rgba(0, 35, 80, .28); color: #FFFFFF; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3); }

/* ---------------------------------------------------------------- Headlines */
.headline {
  font-weight: 900; font-size: clamp(2.35rem, 5.2vw, 4.25rem); line-height: 1.06; letter-spacing: -.02em;
  color: var(--headline); text-shadow: 0 .06em 0 var(--headline-lip);
  margin-bottom: 22px; text-wrap: balance;
}
.headline-md { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
/* Scripts with tall marks above and below the line (Thai tone marks, Devanagari, Arabic) need room,
   and none of the non-Latin scripts want the tight Latin tracking. */
:lang(th) .headline, :lang(hi) .headline { line-height: 1.34; letter-spacing: 0; }
:lang(ar) .headline, :lang(he) .headline { line-height: 1.26; letter-spacing: 0; }
:lang(ja) .headline, :lang(ko) .headline, :lang(zh) .headline, :lang(el) .headline { line-height: 1.16; letter-spacing: 0; }
.sky .headline { color: #FFFFFF; text-shadow: 0 .07em 0 var(--sky-lip), 0 .16em .4em rgba(0, 30, 70, .3); }
.pill {
  display: inline-block; white-space: nowrap;
  padding: .02em .32em .1em; margin: .08em 0 .14em; border-radius: .32em;
  background: var(--gold); color: var(--gold-text); text-shadow: none;
  box-shadow: 0 .09em 0 var(--gold-lip), 0 .2em .4em rgba(120, 80, 0, .25);
  transform: rotate(-3deg);
}
.pill.r { transform: rotate(3deg); }
.lead { font-size: clamp(1.17rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.sky .lead { color: #FFFFFF; }
.note { font-size: .95rem; color: var(--ink-2); }
.sky .note { color: #FFFFFF; opacity: 1; }

/* ---------------------------------------------------------------- Hero */
.hero { padding-top: clamp(40px, 6vw, 80px); }
.hero-grid, .feature-grid {
  display: grid; gap: clamp(32px, 5vw, 64px); align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .feature-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feature.flip .feature-copy { order: 2; }
}
.hero .headline { font-size: clamp(2.6rem, 6.4vw, 5rem); }
.actions { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; margin: 28px 0 18px; }
.stats {
  list-style: none; padding: 0; margin-top: clamp(40px, 6vw, 72px); position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats li {
  background: var(--paper); color: var(--ink); border: 2px solid var(--paper-line); border-radius: 20px;
  box-shadow: 0 4px 0 var(--paper-line), var(--shadow); padding: 16px 18px; display: flex; flex-direction: column;
}
.stats strong { font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.1; color: var(--brand-text); }
.stats span { color: var(--ink-2); font-size: .95rem; line-height: 1.35; }

/* ---------------------------------------------------------------- Stage: phone + floating pieces */
.stage { position: relative; width: min(100%, 460px); margin-inline: auto; aspect-ratio: 46 / 64; }
.stage-hero { aspect-ratio: 46 / 67; }
@media (max-width: 600px) { .stage { width: min(100%, 360px); } }
.stage .phone { position: absolute; left: 50%; top: 2%; width: 66%; translate: -50% 0; filter: var(--drop); }
.stage .phone img { width: 100%; }
.stage-hero .phone { width: 70%; }
.tilt-l { rotate: -4deg; }
.tilt-r { rotate: 4deg; }
.float { position: absolute; z-index: 3; filter: var(--drop); }
.float img { width: 100%; }
.stage .ill { position: absolute; z-index: 1; width: 30%; filter: var(--drop); }
.ill-tr { right: -2%; top: 0; rotate: 8deg; }
.ill-tl { left: -4%; top: 4%; rotate: -10deg; z-index: 1; }
.ill-bl { left: -6%; top: 34%; rotate: -8deg; z-index: 3 !important; }
.fl-panel { width: 78%; left: -6%; top: 50%; rotate: -4deg; }
.fl-banner { width: 82%; left: 6%; bottom: 3%; rotate: -6deg; }
.fl-tile { width: 42%; right: -4%; bottom: 26%; rotate: 8deg; }
.fl-chip { width: 32%; left: -2%; top: 64%; rotate: -8deg; }
.fl-goal { width: 40%; right: -2%; bottom: 6%; rotate: 6deg; }
.fl-travel { width: 44%; right: -6%; top: 40%; rotate: 6deg; }
.stage .f { position: absolute; z-index: 1; filter: drop-shadow(0 12px 16px rgba(0, 40, 90, .3)); }
.f-es { left: 0; top: 12%; width: 21%; rotate: -8deg; }
.f-fr { right: 0; top: 18%; width: 17%; rotate: 6deg; }
.f-jp { right: -2%; top: 52%; width: 16%; }
.f-kr { left: -1%; top: 56%; width: 15%; rotate: -6deg; }
.f-de { right: 2%; bottom: 6%; width: 17%; rotate: 8deg; }
.f-pt { left: 4%; bottom: 4%; width: 17%; rotate: -4deg; }

/* ---------------------------------------------------------------- Feature copy */
.feature-copy .headline { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.ticks { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 38px; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .1em; width: 26px; height: 26px; border-radius: 50%;
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230A6FB0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.sky .ticks li::before {
  background-color: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  .ticks li::before { background-color: #0A7AC0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23FFFFFF' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  .sky .ticks li::before { background-color: #0A7AC0; }
}
.sky .ticks { font-size: 1.15rem; }  /* ≥ 18.66 px bold: large text on the bright sky */
.tag-line { color: var(--ink-2); }
.tag-line .tag { margin-inline-end: 6px; }
.flag-row { list-style: none; padding: 0; margin: 8px 0 28px; display: flex; flex-wrap: wrap; gap: 6px; }
.flag-row .flag { width: 40px; height: 40px; filter: drop-shadow(0 3px 4px rgba(0, 30, 70, .25)); }

/* ---------------------------------------------------------------- Pricing */
.section-head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lead { margin-inline: auto; }
.paper {
  color: var(--ink);
  background: var(--paper); border: 2px solid var(--paper-line); border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--paper-line), var(--shadow);
}
.plans { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); max-width: 980px; margin-inline: auto; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { position: relative; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.plan .ticks { flex: 1; }
.plan-premium { border-color: var(--gold); box-shadow: 0 5px 0 var(--gold-lip), var(--shadow); }
.plan-ill { position: absolute; width: 104px; right: 18px; top: -38px; rotate: 10deg; filter: var(--drop); }
.plan-name .tag { font-size: .9rem; padding: 4px 14px; }
.plan-price { font-size: clamp(2.6rem, 5vw, 3.3rem); font-weight: 900; line-height: 1.1; margin: 16px 0 4px; color: var(--ink); }
.plan-price small { font-size: 1.1rem; color: var(--ink-2); }
.plan-note { color: var(--ink-2); font-size: .98rem; }
.plan .btn { align-self: flex-start; }
.fine { max-width: 860px; margin: 32px auto 0; text-align: center; color: var(--ink-2); font-size: .92rem; }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 14px; }
.faq details {
  background: var(--paper); color: var(--ink); border: 2px solid var(--paper-line); border-radius: 20px;
  box-shadow: 0 4px 0 var(--paper-line), var(--shadow);
}
.faq summary {
  list-style: none; cursor: pointer; padding-block: 18px; padding-inline: 22px 56px; position: relative;
  font-weight: 900; font-size: 1.12rem; border-radius: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; inset-inline-end: 20px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%230A6FB0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: rotate .2s ease;
}
.faq details[open] summary::after { rotate: 180deg; }
.faq-a { padding: 0 22px 20px; color: var(--ink-2); }
.faq-a a, .sky .faq a:not(.btn) { color: var(--brand-text); }
.faq-more { text-align: center; margin-top: 32px; }
.sky .faq-more .btn-hero { min-width: 220px; }
@media (prefers-color-scheme: dark) {
  .faq summary::after { background-color: #0A7AC0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}

/* ---------------------------------------------------------------- CTA */
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-inner .lead { margin-inline: auto; }
.cta-ill { width: 150px; margin-bottom: 12px; filter: var(--drop); }
.cta-inner .badge { margin: 12px 0 14px; }
.cta-band { padding-top: clamp(56px, 7vw, 96px); }
.cta-final { padding-bottom: clamp(80px, 10vw, 130px); }

/* ---------------------------------------------------------------- Inner pages */
.page-hero { padding-top: clamp(40px, 6vw, 72px); }
.page-hero-grid { display: grid; gap: 24px; align-items: center; grid-template-columns: minmax(0, 1fr) auto; }
.page-ill { width: clamp(110px, 18vw, 220px); filter: var(--drop); rotate: 6deg; }
@media (max-width: 600px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-ill { order: -1; width: 110px; }
}
.doc-section { padding-top: clamp(24px, 4vw, 48px); }
.doc { padding: clamp(24px, 5vw, 56px); }
.doc > :first-child, .doc > div[lang] > :first-child { margin-top: 0; }
.doc h2 { font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--brand-text); margin: 1.8em 0 .6em; }
.doc h3 { font-weight: 900; font-size: 1.2rem; margin: 1.5em 0 .5em; }
.doc p, .doc li { color: var(--ink); }
.doc ul, .doc ol { padding-inline-start: 1.3em; }
.doc li { margin: .35em 0; }
.doc li::marker { color: var(--bright); }
.doc .meta { color: var(--ink-2); font-size: .95rem; }
.doc .ticks li::marker { content: none; }
.callout, .warning-box {
  margin: 1.5em 0; padding: 18px 22px; border-radius: 18px; background: var(--soft); border: 2px solid rgba(10, 122, 192, .18);
}
.callout ul { margin: .5em 0 0; }
.warning-box { background: #FFF5CC; border-color: #F0D36A; color: var(--gold-text); }
.warning-box strong { color: var(--gold-text); }
@media (prefers-color-scheme: dark) { .warning-box { background: #2E2608; border-color: #5C4A0E; color: #FFE38A; } .warning-box strong { color: #FFE38A; } }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border-radius: 16px; border: 2px solid var(--paper-line); }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 480px; }
.table-wrap th, .table-wrap td { text-align: start; padding: 12px 16px; border-bottom: 2px solid var(--paper-line); vertical-align: top; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { background: var(--soft); color: var(--brand-text); font-weight: 900; }
.contact-box { margin-top: 2em; padding: 22px 24px; border-radius: 20px; background: var(--brand); color: #FFFFFF; box-shadow: 0 5px 0 var(--brand-lip); }
.contact-box h2 { color: #FFFFFF; margin: 0 0 .4em; }
.contact-box p { color: #FFFFFF; margin: 0; }
.contact-box a { color: #FFFFFF; }
.doc-figure { float: inline-end; width: min(42%, 260px); margin-block: 0 1em; margin-inline: 2em 0; }
.doc-figure .phone { filter: var(--drop); rotate: 3deg; }
.doc-figure figcaption { font-size: .88rem; color: var(--ink-2); text-align: center; margin-top: 14px; }
@media (max-width: 640px) { .doc-figure { float: none; width: min(70%, 260px); margin: 0 auto 1.5em; } }
.clear { clear: both; }
.related { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.related a {
  display: inline-block; padding: 8px 16px; border-radius: 14px; background: var(--soft); text-decoration: none; font-weight: 900;
}

/* Cards used by support, features and languages */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin: 1.5em 0; }
.card { padding: 22px; }
.card h3 { margin: 0 0 .4em; font-size: 1.15rem; color: var(--ink); }
.card p { margin: 0; color: var(--ink-2); }
a.card { text-decoration: none; display: block; transition: transform .15s ease; }
a.card:hover { transform: translateY(-3px); }
.card .card-label { display: block; color: var(--ink-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.card .card-value { display: block; color: var(--brand-text); font-size: 1.25rem; font-weight: 900; margin: 4px 0 6px; word-break: break-word; }
.card .ill { width: 72px; margin-bottom: 10px; }

.lang-grid { list-style: none; padding: 0; margin: 1.5em 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.lang-tile { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; box-shadow: 0 3px 0 var(--paper-line); font-weight: 900; }
.lang-tile .flag { width: 40px; height: 40px; flex: none; }

/* Features page rows */
.feature-rows .feature-grid { margin-bottom: clamp(56px, 8vw, 110px); }
.feature-rows .feature-grid:last-child { margin-bottom: 0; }
.feature-rows .stage { width: min(100%, 380px); }
@media (min-width: 960px) { .feature-rows .feature-grid:nth-child(even) .feature-copy { order: 2; } }
.feature-rows .headline { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.mode-table td:first-child { font-weight: 900; white-space: nowrap; }

/* ---------------------------------------------------------------- Footer */
.foot { background: var(--page); border-top: 2px solid var(--paper-line); padding: 56px 0 32px; color: var(--ink-2); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.foot-brand { grid-column: span 1; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.foot-brand p { margin: 12px 0 0; max-width: 26em; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h2 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.foot-col a { color: var(--ink-2); text-decoration: none; padding: 2px 0; }
.foot-col a:hover { color: var(--brand-text); text-decoration: underline; }
.foot-fine { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--paper-line); font-size: .85rem; }
.foot-fine p { margin: 0 0 6px; }
.foot-fine a { color: var(--ink-2); }

/* ---------------------------------------------------------------- Motion */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.bob { animation: bob 6s ease-in-out infinite; }
.stage .bob:nth-child(2n) { animation-delay: -2s; }
.stage .bob:nth-child(3n) { animation-delay: -4s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bob { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .badge, a.card { transition: none; }
}
