/* Explorer's website. The palette is the app's (Views/Shared/Theme.swift): mint to sand by day,
   deep teal to navy at night, with soft teal, coral and sun glows. Never plain black or grey. */

:root {
  --page-top: #EAF6F4;
  --page-bottom: #FFF6EA;
  --card: #FFFFFF;
  --card-inset: #F1F6F5;
  --card-line: rgba(18, 59, 74, 0.09);
  --ink: #123B4A;
  --muted: #43616B;
  --faint: #536F78;
  --teal: #31AAA9;
  /* Light mode's text and filled colours are a shade deeper than the brand's, for 4.5:1 on the page's glows
     (19 October contrast pass); dark mode keeps the brand's own. */
  --teal-strong: #1A7A7D;
  --deep-teal: #176A6E;
  --teal-text: #176A6E;
  --coral: #FF7A5C;
  --coral-text: #B23C21;
  --sun: #FFC94D;
  --navy: #123B4A;
  --danger: #B5391F;
  --danger-soft: rgba(194, 65, 45, 0.1);
  --ok: #176A6E;
  --accent-1: #1A7276;
  --accent-2: #C4472A;
  --accent-3: #A0700E;
  --header-bg: rgba(234, 246, 244, 0.78);
  --shadow: 0 1px 2px rgba(18, 59, 74, 0.05), 0 8px 26px rgba(18, 59, 74, 0.08);
  --shadow-lg: 0 3px 8px rgba(18, 59, 74, 0.08), 0 30px 70px rgba(18, 59, 74, 0.18);
  --glow: 1;
  --radius: 24px;
  --radius-sm: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page-top: #1B4552;
    --page-bottom: #223558;
    --card: #285467;
    --card-inset: #316176;
    --card-line: rgba(255, 255, 255, 0.09);
    --ink: #F1FAF9;
    --muted: #BCD7DA;
    --faint: #93B5BB;
    --teal-text: #7FDCDA;
    --coral-text: #FFA088;
    --teal-strong: #31AAA9;
    --accent-1: #31AAA9;
    --accent-2: #FF7A5C;
    --accent-3: #FFC94D;
    --danger: #FF8C77;
    --danger-soft: rgba(255, 140, 119, 0.14);
    --ok: #7FDCDA;
    --header-bg: rgba(27, 69, 82, 0.78);
    --shadow: 0 1px 2px rgba(3, 18, 30, 0.2), 0 10px 30px rgba(3, 18, 30, 0.28);
    --shadow-lg: 0 3px 8px rgba(3, 18, 30, 0.25), 0 30px 70px rgba(3, 18, 30, 0.45);
    --glow: 1.7;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --page-top: #1B4552;
  --page-bottom: #223558;
  --card: #285467;
  --card-inset: #316176;
  --card-line: rgba(255, 255, 255, 0.09);
  --ink: #F1FAF9;
  --muted: #BCD7DA;
  --faint: #93B5BB;
  --teal-text: #7FDCDA;
  --coral-text: #FFA088;
  --teal-strong: #31AAA9;
  --accent-1: #31AAA9;
  --accent-2: #FF7A5C;
  --accent-3: #FFC94D;
  --danger: #FF8C77;
  --danger-soft: rgba(255, 140, 119, 0.14);
  --ok: #7FDCDA;
  --header-bg: rgba(27, 69, 82, 0.78);
  --shadow: 0 1px 2px rgba(3, 18, 30, 0.2), 0 10px 30px rgba(3, 18, 30, 0.28);
  --shadow-lg: 0 3px 8px rgba(3, 18, 30, 0.25), 0 30px 70px rgba(3, 18, 30, 0.45);
  --glow: 1.7;
  color-scheme: dark;
}

/* MARK: Base */

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page-top); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 17px/1.55 var(--font);
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(560px circle at 95% 6%, rgb(49 170 169 / calc(0.22 * var(--glow))), transparent 70%),
    radial-gradient(480px circle at 2% 45%, rgb(255 122 92 / calc(0.13 * var(--glow))), transparent 70%),
    radial-gradient(520px circle at 90% 94%, rgb(255 201 77 / calc(0.14 * var(--glow))), transparent 70%),
    linear-gradient(180deg, var(--page-top), var(--page-bottom));
}
main { flex: 1; }
img { max-width: 100%; }
a { color: var(--teal-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-round); letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.25em; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow), inset 0 0 0 1px var(--card-line); }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--teal-text); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.skip-link { position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--card); border-radius: 10px; }
.skip-link:focus { inset-inline-start: 12px; }

/* Theme toggle shows the icon for the other mode. */
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: inline; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: inline; }
  :root:not([data-theme="light"]) .only-light { display: none; }
}

/* Signed in or not (theme.js reads a hint the account page leaves). Only ever hides, so each
   element keeps its own display. */
:root:not([data-signed-in]) .signed-in-only, :root[data-signed-in] .signed-out-only { display: none !important; }
/* Opened from the app (?app=1, see theme.js): no ways to buy Premium on the website. */
:root[data-in-app] [data-not-in-app] { display: none !important; }
/* And the other way round: what only a visit from the app shows (Premium is bought in the app there). */
:root:not([data-in-app]) [data-only-in-app] { display: none !important; }

/* MARK: Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px;
  font: 600 16px/1.1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, opacity 0.15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--teal-strong), var(--deep-teal)); box-shadow: 0 8px 20px rgb(29 124 128 / 0.32); }
.btn-primary:hover { box-shadow: 0 12px 26px rgb(29 124 128 / 0.4); transform: translateY(-1px); }
.btn-secondary { color: var(--ink); background: var(--card); box-shadow: var(--shadow), inset 0 0 0 1px var(--card-line); }
.btn-secondary:hover { transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--card-inset); }
.btn-danger { color: #fff; background: #C2412D; }
.btn-danger-soft { color: var(--danger); background: var(--danger-soft); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .i { width: 1.15em; height: 1.15em; }
.link { padding: 0; border: 0; background: none; color: var(--teal-text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
/* Send a New Code while it waits for the next code (js/account.js, coolDown): muted, with its countdown in even digits. */
.link[disabled] { color: var(--muted); cursor: default; }
.countdown { font-variant-numeric: tabular-nums; }
.link:hover { text-decoration: underline; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
  color: var(--ink); background: transparent; cursor: pointer;
}
.icon-btn:hover { background: var(--card-inset); }
.icon-btn .i { width: 22px; height: 22px; }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 9px 22px 9px 16px; padding-inline: 16px 22px;
  border-radius: 16px; color: #fff; background: #0E2B36; text-decoration: none; line-height: 1.15;
  box-shadow: 0 10px 24px rgb(14 43 54 / 0.25), inset 0 0 0 1px rgb(255 255 255 / 0.12);
}
.store-badge .i { width: 30px; height: 30px; }
.store-badge small { display: block; font-size: 12px; opacity: 0.78; letter-spacing: 0.02em; }
.store-badge strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.store-badge[aria-disabled="true"] { cursor: default; }

/* MARK: Header and footer */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid var(--card-line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 21px/1 var(--font-round); letter-spacing: -0.02em; }
.brand img { border-radius: 10px; box-shadow: 0 3px 10px rgb(18 59 74 / 0.18); }
.nav { display: flex; gap: 6px; margin-inline-end: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav a:hover { color: var(--ink); background: var(--card-inset); }
.nav .nav-only-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }

/* Language menu (header) and language links (footer). */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; width: auto; min-width: 42px; padding: 0 10px; gap: 4px; display: inline-flex; align-items: center; border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: 0.04em; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary .i { width: 20px; height: 20px; }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; display: flex; flex-direction: column; min-width: 168px; padding: 6px; }
.lang-list a { padding: 10px 14px; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.lang-list a:hover { background: var(--card-inset); }
.lang-list a[aria-current] { color: var(--teal-text); }
.lang-list a[aria-current]::after { content: " ✓"; }
.footer-languages { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-languages a { color: var(--muted); text-decoration: none; }
.footer-languages a:hover, .footer-languages a[aria-current] { color: var(--teal-text); }
.footer-languages .i { width: 18px; height: 18px; }
.legal-language { margin: 0 0 20px; }

/* Thai: Thai fonts first, and room above and below lines for tone marks and vowels. */
:root:lang(th) {
  --font: -apple-system, BlinkMacSystemFont, "Sukhumvit Set", Thonburi, "Noto Sans Thai", "Leelawadee UI", "Segoe UI", Roboto, sans-serif;
  --font-round: var(--font);
}
:lang(th) body { line-height: 1.7; }
:lang(th) h1, :lang(th) h2, :lang(th) h3, :lang(th) h4 { line-height: 1.35; letter-spacing: 0; }
:lang(th) .hero h1 { line-height: 1.25; letter-spacing: 0; }
:lang(th) .kicker { letter-spacing: 0.02em; }
:lang(th) .btn { line-height: 1.4; }
/* English text inside a Thai page (the legal documents for now) keeps English line spacing. */
:lang(th) .legal-body[lang="en"], :lang(th) .legal-toc [lang="en"] { line-height: 1.6; }

/* Japanese, Korean and Chinese: each language's own system font for its characters (the lang
   attribute picks Traditional or Simplified glyphs), no tightened letter spacing, which crowds
   the characters, and a little more room between lines. Korean breaks between words, not inside. */
:root:lang(ja) {
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  --font-round: var(--font);
}
:root:lang(ko) {
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-round: var(--font);
}
:root:lang(zh-hant) {
  --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-round: var(--font);
}
:root:lang(zh-hans) {
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-round: var(--font);
}
:lang(ja) body, :lang(ko) body, :lang(zh) body { line-height: 1.7; }
:is(:lang(ja), :lang(ko), :lang(zh)) :is(h1, h2, h3, h4, .brand, .price, .m-title) { letter-spacing: 0; line-height: 1.3; }
:is(:lang(ja), :lang(ko), :lang(zh)) .kicker { letter-spacing: 0.04em; }
:lang(ja) { line-break: strict; }
:lang(ko) { word-break: keep-all; }
/* Headings can break between any two characters in Japanese and Chinese: lines of even length, so
   no character is left alone on the last one ("完 / 了"), and Japanese at phrases where the browser
   can, so a word like 計画 isn't cut in two. */
:is(:lang(ja), :lang(ko), :lang(zh)) :is(h1, h2, h3) { text-wrap: balance; }
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
/* Vietnamese stacks accents above and below its letters, so its headings get more room between
   lines, and lines of even length, so a syllable isn't left alone ("thiết / kế"). The headline's
   second sentence starts a line of its own, as in Thai, Japanese and Chinese. */
:lang(vi) :is(h1, h2, h3) { line-height: 1.25; text-wrap: balance; }
:lang(vi) .hero h1 { line-height: 1.12; }
:lang(vi) .hero h1 .accent-text { display: inline-block; }
:is(:lang(ja), :lang(ko), :lang(zh)) :is(.legal-body[lang="en"], .legal-toc [lang="en"]) { line-height: 1.6; word-break: normal; }

/* Right to left (Arabic, <html dir="rtl">). The layout uses inline-start and inline-end, so it mirrors by itself;
   these are the parts that don't. The drawn phones mirror too, as the app does in Arabic. */
/* Icons that point the way forward (or out) point the other way. Checks, globes and the rest stay as they are. */
[dir="rtl"] svg.i:has(use[href="#i-arrow"], use[href="#i-logout"]) { transform: scaleX(-1); }
[dir="rtl"] .callout { box-shadow: inset -4px 0 0 var(--sun); }
[dir="rtl"] [dir="ltr"] .callout { box-shadow: inset 4px 0 0 var(--sun); } /* the English legal text's draft note */
[dir="rtl"] .toggle input:checked::after { transform: translateX(-20px); }
/* What people write (names, titles, captions, notes) takes the direction of its own first letter, as dir="auto"
   would, so a title in Latin letters keeps its "!" at the end. */
[dir="rtl"] :is(.web-head h1, .web-bio, .web-trip-head h1, .web-caption, .web-stops li, .web-highlight figcaption,
  .profile-who h2, .profile-bio, .trip-info h3, .trip-info p, .trip-detail h2, .caption, .stop span, .comment p) { unicode-bidi: plaintext; }
/* Arabic: the system's Arabic font (SF Arabic on Apple's systems, Noto or Segoe elsewhere; nothing is downloaded),
   no letter spacing, which pulls joined letters apart, and more room between lines for the letters' tails and dots. */
:root:lang(ar) {
  --font: -apple-system, BlinkMacSystemFont, "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-round: var(--font);
}
:lang(ar) :not(.code-input) { letter-spacing: 0 !important; }
:lang(ar) body { line-height: 1.75; }
:lang(ar) :is(h1, h2, h3, h4, .brand, .price, .m-title) { line-height: 1.4; }
:lang(ar) .hero h1 { line-height: 1.3; }
/* The headline's second sentence starts a line of its own, as in Thai, Japanese and Chinese. */
:lang(ar) .hero h1 .accent-text { display: inline-block; }
:lang(ar) .btn { line-height: 1.4; }
:lang(ar) :is(.legal-body[lang="en"], .legal-toc [lang="en"]) { line-height: 1.6; }

.site-footer { margin-top: 40px; padding: 56px 0 28px; border-top: 1px solid var(--card-line); background: color-mix(in srgb, var(--card) 45%, transparent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { max-width: 22em; margin-top: 14px; color: var(--muted); }
.footer-col h2 { font: 700 13px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-col a { display: block; margin-bottom: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--teal-text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--card-line); color: var(--faint); font-size: 14px; }

/* MARK: Home: hero */

.hero { padding: 64px 0 48px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--card); color: var(--teal-text); font-weight: 600; font-size: 14px; box-shadow: var(--shadow);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgb(255 122 92 / 0.2); }
/* The headline's two sentences are translated apart, with the space between them in its own
   element: Japanese and Chinese don't put a space after a full stop. They, and Thai, can break a
   line between any two characters or words, so the second sentence goes to the next line whole. */
:is(:lang(ja), :lang(zh)) .hero-gap { display: none; }
:is(:lang(ja), :lang(zh), :lang(th)) .hero h1 .accent-text { display: inline-block; }
.hero h1 { margin: 22px 0 20px; font-size: clamp(42px, 5.6vw, 70px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.accent-text { background: linear-gradient(110deg, var(--accent-1) 10%, var(--accent-2) 70%, var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; color: var(--muted); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 30px 0 22px; }
.hero-note { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.hero-note .i { color: var(--teal-text); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 640px; }
.hero-visual::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgb(49 170 169 / calc(0.32 * var(--glow))), transparent 65%);
}
.hero-visual .phone { position: relative; }
.hero-visual .phone-front { z-index: 2; transform: translateX(-62px) rotate(-3deg); }
.hero-visual .phone-back { position: absolute; z-index: 1; transform: translate(120px, 36px) rotate(5deg) scale(0.93); }
.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px; padding-inline-end: 14px;
  border-radius: 16px; background: var(--card); box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.25;
}
.float-chip strong { display: block; font-size: 15px; }
.float-chip span { color: var(--muted); }
.float-chip .chip-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; }
.float-chip.one { inset-inline-start: -6px; top: 120px; }
.float-chip.two { inset-inline-end: -4px; bottom: 110px; }

/* MARK: Phone mockups: the app's screens drawn in HTML (layout C), in the app's words for each language; real screenshots replace them later */

.phone {
  --w: 290px;
  width: var(--w); height: calc(var(--w) * 2.07); flex: none; padding: 11px; border-radius: 48px;
  background: linear-gradient(150deg, #33606F, #0F2933 55%, #1C4250);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgb(255 255 255 / 0.16);
}
.screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 38px;
  background: linear-gradient(180deg, var(--page-top), var(--page-bottom));
  color: var(--ink); font-size: 12.5px; line-height: 1.35; text-align: start;
}
.screen::before { content: ""; position: absolute; top: 10px; left: 50%; z-index: 5; width: 84px; height: 24px; margin-left: -42px; border-radius: 20px; background: #0A1E26; }
.screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(240px circle at 100% 0, rgb(49 170 169 / calc(0.2 * var(--glow))), transparent 70%),
    radial-gradient(220px circle at 0 60%, rgb(255 122 92 / calc(0.1 * var(--glow))), transparent 70%);
}
.screen > * { position: relative; z-index: 1; }
.sb { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 6px 26px 0 30px; font-weight: 700; font-size: 13px; }
.sb-icons { display: flex; gap: 5px; align-items: center; }
.sb-icons i { display: block; width: 16px; height: 9px; border-radius: 3px; background: currentColor; opacity: 0.85; }
.sb-icons i:first-child { width: 14px; height: 8px; border-radius: 2px; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.m-pad { padding: 0 16px; }
.m-title { margin: 4px 0 10px; font: 800 26px/1.1 var(--font-round); letter-spacing: -0.02em; }
.m-sub { color: var(--muted); font-size: 11.5px; }
.m-card { background: var(--card); border-radius: 18px; box-shadow: 0 1px 2px rgb(18 59 74 / 0.06), 0 6px 16px rgb(18 59 74 / 0.07); }
.m-section { display: flex; justify-content: space-between; margin: 14px 0 8px; font: 700 14px/1 var(--font-round); }
.m-section span { color: var(--teal-text); font: 600 11.5px/1 var(--font); }

.globe {
  --size: 150px;
  width: var(--size); height: var(--size); flex: none; border-radius: 50%;
  background: #1C5D86 url(/img/earth.jpg) 0 0 / calc(var(--size) * 2) var(--size) repeat-x;
  box-shadow: inset calc(var(--size) * -0.13) calc(var(--size) * -0.08) calc(var(--size) * 0.22) rgb(2 14 30 / 0.6),
    inset calc(var(--size) * 0.05) calc(var(--size) * 0.04) calc(var(--size) * 0.12) rgb(255 255 255 / 0.28),
    0 0 0 calc(var(--size) * 0.03) rgb(127 220 218 / 0.18), 0 0 calc(var(--size) * 0.3) rgb(49 170 169 / 0.45);
  animation: spin 70s linear infinite;
}
@keyframes spin { from { background-position: 0 0; } to { background-position: calc(var(--size) * -2) 0; } }
@media (prefers-reduced-motion: reduce) { .globe { animation: none; background-position: calc(var(--size) * -1.1) 0; } }

/* World (layout C): the globe card, with Open Map and your places over it and the levels under it. */
.m-globe-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 8px 8px; background: linear-gradient(160deg, #0F2E3B, #1B4552 60%, #223558); color: #fff; overflow: hidden; }
.m-globe-card .globe { --size: 112px; }
.m-globe-top { display: flex; justify-content: space-between; gap: 6px; width: 100%; }
.m-glass { display: inline-flex; align-items: center; gap: 4px; min-width: 0; padding: 4px 8px; border-radius: 999px; background: rgb(255 255 255 / 0.16); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); font-size: 9.5px; font-weight: 700; white-space: nowrap; }
.m-glass .i { width: 11px; height: 11px; }
.m-levels { display: flex; gap: 4px; width: 100%; }
.m-levels span { flex: 1 1 0; min-width: 0; padding: 3px 6px; border-radius: 999px; font-size: 8.5px; font-weight: 600; line-height: 1.15; color: rgb(255 255 255 / 0.86); overflow-wrap: anywhere; }
.m-levels b { display: block; font: 800 14px/1.1 var(--font-round); color: #fff; }
.m-levels .on { background: rgb(49 170 169 / 0.42); box-shadow: inset 0 0 0 1px rgb(127 220 218 / 0.9); color: #fff; }
.bg-teal { background: linear-gradient(135deg, var(--teal), var(--deep-teal)); }
.bg-coral { background: linear-gradient(135deg, #FF946F, #F0603F); }
.bg-sun { background: linear-gradient(135deg, #FFD36B, #F2A92D); }
.bg-navy { background: linear-gradient(135deg, #2E6A86, #123B4A); }
.m-trip { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px; }
.m-trip strong { display: block; font-size: 12.5px; line-height: 1.2; }
.m-trip > div:last-child { min-width: 0; }
.m-thumb { width: 42px; height: 42px; flex: none; border-radius: 12px; }
.m-when { display: block; color: var(--teal-text); font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.m-sub { display: block; }
.m-rec { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 10px; }
.m-rec .ic { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; color: #fff; }
.m-rec .ic .i { width: 16px; height: 16px; }
.m-rec > div { min-width: 0; }
.m-rec strong { display: block; font-size: 12.5px; line-height: 1.2; }
.m-tabbar {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-around;
  padding: 9px 4px 7px; border-radius: 26px; background: color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow: 0 4px 16px rgb(18 59 74 / 0.12); font-size: 9px; font-weight: 600; color: var(--faint); text-align: center;
}
.m-tabbar span { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.m-tabbar .i { display: block; width: 19px; height: 19px; margin: 0 auto 2px; }
.m-tabbar .on { color: var(--teal-text); }

/* World during a trip: the Today / Your World switch, today's map, the Today card and the day's stops. */
.m-mode { display: flex; gap: 2px; margin: 2px 0 6px; padding: 3px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px rgb(49 170 169 / 0.15); font-size: 10px; font-weight: 700; text-align: center; }
.m-mode span { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; justify-content: center; gap: 3px; padding: 5px 4px; border-radius: 999px; line-height: 1.15; }
.m-mode .i { width: 12px; height: 12px; }
.m-mode .on { color: #fff; background: linear-gradient(135deg, var(--teal-strong), var(--deep-teal)); }
.m-mode b { font-weight: 600; opacity: 0.85; }
.m-mode-3 { margin: 0 0 8px; font-size: 9px; }
.m-mode-3 span { padding: 5px 3px; }
.m-daymap { height: 64px; overflow: hidden; border-radius: 16px; box-shadow: 0 1px 2px rgb(18 59 74 / 0.06), 0 6px 16px rgb(18 59 74 / 0.07); }
.m-daymap svg { display: block; width: 100%; height: 100%; }
.m-today { display: flex; flex-direction: column; gap: 1px; margin-top: 6px; padding: 8px 10px; box-shadow: inset 0 0 0 1px rgb(49 170 169 / 0.25), 0 6px 16px rgb(18 59 74 / 0.08); }
.m-today strong { font: 800 14px/1.2 var(--font-round); }
.m-today-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 4px; }
.m-caps { color: var(--teal-text); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.m-next { color: var(--muted); }
.m-progress { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--muted); font-size: 9.5px; font-weight: 700; white-space: nowrap; }
.m-dial { width: 11px; height: 11px; border-radius: 50%; background: conic-gradient(var(--teal) 25%, rgb(49 170 169 / 0.2) 0); }
.m-teal { color: var(--teal-text); font-size: 10.5px; font-weight: 700; }
.m-stops { margin-top: 6px; padding: 0 10px; }
.m-stop-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--card-line); font-size: 11.5px; }
.m-stop-row:first-child { border-top: 0; }
.m-stop-row time { min-width: 30px; color: var(--muted); font-size: 10px; font-weight: 600; }
.m-stop-row i { width: 10px; height: 10px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); }
.m-stop-row.done span { color: var(--muted); text-decoration: line-through; }
.m-stop-row.done i { background: var(--teal); box-shadow: none; }
.m-stop-row.next span { font-weight: 800; }
.w-12 { width: 12%; } .w-30 { width: 30%; } .w-38 { width: 38%; } .w-40 { width: 40%; } .w-55 { width: 55%; }
.m-actions { display: flex; gap: 6px; margin-top: 8px; }
.m-actions span { flex: 1 1 auto; min-width: 0; padding: 6px 3px; border-radius: 10px; text-align: center; font-size: 9.5px; font-weight: 700; line-height: 1.2; }
.m-actions .primary { color: #fff; background: linear-gradient(135deg, var(--teal-strong), var(--deep-teal)); }
.m-actions .plain { color: var(--teal-text); background: var(--card-inset); }

/* Trips: the Upcoming · Completed · Unplanned switch, trip cards, then Discover. */
.m-tripcard { overflow: hidden; }
.m-tripcard-photo { height: 60px; }
.m-tripcard-body { padding: 6px 12px 8px; }
.m-tripcard-body strong { display: block; font: 800 14px/1.2 var(--font-round); }
.m-search { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); color: var(--muted); font-size: 10.5px; }
.m-search .i { width: 13px; height: 13px; flex: none; }

/* On the Road: a trip's figures, Off-Road and the walking records. */
.m-road-trip { padding: 10px 12px; }
.m-road-trip > strong { display: block; font: 800 14px/1.2 var(--font-round); }
.m-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.m-figures div { min-width: 0; }
.m-figures b { display: block; font: 800 14px/1.1 var(--font-round); }
.m-figures span { color: var(--muted); font-size: 10px; font-weight: 600; }
.m-rows { margin-top: 6px; }
.m-rows .m-country { padding: 7px 12px; }
.m-row-head { padding: 9px 12px 2px; }
.m-row-head strong { display: block; font-size: 12.5px; }
.m-rows .m-country strong { font-size: 11.5px; }
.m-row-head + .m-country { border-top: 0; }

/* Stats mock */
.m-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.m-big div { min-width: 0; padding: 10px 6px; text-align: center; }
.m-big strong { display: block; font: 800 20px/1.1 var(--font-round); }
.m-big span { color: var(--muted); font-size: 10px; font-weight: 600; overflow-wrap: anywhere; }
.m-ring { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 10px; }
.m-ring > div:last-child { min-width: 0; }
.m-ring .ring { --p: 12; width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal) calc(var(--p) * 1%), var(--card-inset) 0); }
.m-ring .ring b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); font: 800 14px/1 var(--font-round); }
.m-ring strong { display: block; font-size: 13px; }
.m-names { margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-country { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 9px 12px; border-top: 1px solid var(--card-line); }
.m-country:first-child { border-top: 0; }
.m-country strong { font-size: 12.5px; }
.m-country span { color: var(--muted); font-size: 10.5px; }
.m-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--card-inset); overflow: hidden; }
.m-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--sun)); }
.m-section span { white-space: nowrap; }

/* Social: Feed · Discover · Me, a shared trip and a tip. */
.m-post { overflow: hidden; }
.m-by { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 11.5px; }
.m-by b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 11px; }
.m-by strong, .m-by small { display: block; line-height: 1.2; }
.m-by small { color: var(--muted); font-size: 10px; }
.m-post-photo { position: relative; height: 116px; }
.m-post-photo::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgb(8 26 34 / 0.72)); }
.m-post-title { position: absolute; inset: auto 12px 9px; z-index: 1; color: #fff; }
.m-post-title strong { display: block; font: 800 15px/1.2 var(--font-round); }
.m-post-title span { font-size: 10.5px; }
.m-post-body { padding: 8px 12px 10px; }
.m-caption { margin: 0; font-size: 11.5px; line-height: 1.35; }
.m-post-stats { display: flex; gap: 12px; margin-top: 6px; color: var(--muted); font-size: 11px; }
.m-post-stats .i { width: 14px; height: 14px; }
.m-comment { display: flex; gap: 8px; margin-top: 8px; padding: 9px 12px; font-size: 11.5px; }
.m-comment b { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 10px; }
.m-by b.bg-coral { background: linear-gradient(135deg, #D4553A, #B23C21); }
.m-comment b.bg-teal { background: linear-gradient(135deg, var(--teal-strong), var(--deep-teal)); }
.m-comment em { display: inline-block; margin-bottom: 2px; padding: 1px 6px; border-radius: 6px; background: rgb(255 201 77 / 0.25); color: var(--ink); font-style: normal; font-size: 10px; font-weight: 700; }

/* Passport page mock: paper and ink stay the same in light and dark, like a real page. */
.m-title-sm { font-size: 21px; }
.m-pp { padding: 12px 14px 14px; border-radius: 16px; background: linear-gradient(180deg, #FBF6E8, #F2E8CF); color: #3B3324; box-shadow: 0 1px 2px rgb(18 59 74 / 0.08), 0 8px 20px rgb(18 59 74 / 0.12); }
.m-pp-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 1px dashed rgb(59 51 36 / 0.3); }
.m-pp-head strong { font: 800 15px/1 var(--font-round); letter-spacing: 0.12em; }
.m-pp-head span { font-size: 10.5px; color: #6B5E45; }
.m-stamp-big { display: grid; justify-items: center; gap: 2px; width: 62%; margin: 14px auto 12px; padding: 8px 6px; border: 2.5px solid #B23A48; border-radius: 14px; color: #B23A48; transform: rotate(-6deg); text-transform: uppercase; letter-spacing: 0.08em; }
.m-stamp-big small { font-size: 9px; font-weight: 700; }
.m-stamp-big strong { font: 800 14px/1.1 var(--font-round); }
.m-stamps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.m-stamp { padding: 3px 7px; border: 2px solid currentColor; border-radius: 9px; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.m-stamp:nth-child(odd) { transform: rotate(-4deg); }
.m-stamp:nth-child(even) { transform: rotate(3deg); }
.m-stamp[data-c="teal"] { color: #176A6E; }
.m-stamp[data-c="navy"] { color: #2B4F7A; }
.m-stamp[data-c="coral"] { color: #B23C21; }
.m-stamp[data-c="sun"] { color: #8A600C; }
.m-pp-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.m-pp-photos div { height: 44px; border-radius: 8px; border: 3px solid #fff; box-shadow: 0 1px 3px rgb(59 51 36 / 0.25); }

/* Landscape placeholder art (the app icon's mountains and sun), for covers without a photo. */
.scene { position: relative; overflow: hidden; background: linear-gradient(180deg, #8FDCD8, #4FB9B7 60%); }
.scene svg { position: absolute; inset: auto 0 0; width: 100%; height: 75%; }
.scene.dusk { background: linear-gradient(180deg, #FFC48A, #FF8A6B 70%); }
.scene.night { background: linear-gradient(180deg, #2C5878, #1B3550 70%); }
.scene.sand { background: linear-gradient(180deg, #FFE4A8, #FFC56A 70%); }

/* MARK: Home: sections */

.section { padding: 72px 0; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 19px; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--card-line); }
.feature.flip .feature-art { order: -1; }
.feature h3 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; }
.feature p { color: var(--muted); font-size: 18px; }
.feature-art { display: flex; justify-content: center; position: relative; }
.feature-art::before { content: ""; position: absolute; inset: 8% 10%; border-radius: 50%; background: radial-gradient(circle, rgb(49 170 169 / calc(0.22 * var(--glow))), transparent 68%); }
.feature-art.coral::before { background: radial-gradient(circle, rgb(255 122 92 / calc(0.2 * var(--glow))), transparent 68%); }
.feature-art.sun::before { background: radial-gradient(circle, rgb(255 201 77 / calc(0.26 * var(--glow))), transparent 68%); }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.ticks .i { margin-top: 2px; padding: 3px; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: var(--teal); stroke-width: 3; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { padding: 26px; }
.tile .ic { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px; border-radius: 16px; color: #fff; }
.tile .ic .i { width: 26px; height: 26px; }
.tile h3 { font-size: 20px; margin-bottom: 8px; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }
.data-promises .tile { display: flex; flex-direction: column; }
.tile-link { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: 15px; color: var(--teal-text); text-decoration: none; }
.tile-link:hover, .tile-link:focus-visible { text-decoration: underline; }
.data-more { margin: 28px 0 64px; font-weight: 700; }
.data-more a { color: var(--teal-text); }

.privacy-band { position: relative; overflow: hidden; padding: 56px; border-radius: 32px; color: #fff; background: linear-gradient(135deg, #1D7C80, #123B4A 60%, #223558); box-shadow: var(--shadow-lg); }
.privacy-band::before { content: ""; position: absolute; inset-inline-end: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgb(255 201 77 / 0.28), transparent 65%); }
.privacy-band h2 { position: relative; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; max-width: 16em; }
.privacy-band > p { position: relative; max-width: 38em; color: rgb(255 255 255 / 0.92); font-size: 18px; }
.privacy-points { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 26px; }
.privacy-points div { padding: 20px; border-radius: 20px; background: rgb(255 255 255 / 0.09); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); }
.privacy-points .i { width: 28px; height: 28px; margin-bottom: 10px; color: #7FDCDA; }
.privacy-points strong { display: block; margin-bottom: 4px; font-size: 17px; }
.privacy-points span { color: rgb(255 255 255 / 0.9); font-size: 15px; }
.privacy-band a { position: relative; color: #FFD77A; font-weight: 600; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; max-width: 880px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px; }
.plan h3 { font-size: 22px; margin-bottom: 4px; }
.plan .price { margin: 14px 0 4px; font: 800 40px/1 var(--font-round); letter-spacing: -0.03em; }
.plan .price small { font: 600 16px/1 var(--font); color: var(--muted); letter-spacing: 0; }
.plan .per { color: var(--muted); font-size: 15px; min-height: 1.5em; }
.plan ul { list-style: none; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--card-line); display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 15.5px; }
.plan li .i { color: var(--teal-text); stroke-width: 2.6; width: 18px; height: 18px; margin-top: 3px; }
.plan.featured { background: linear-gradient(160deg, #1D7C80, #123B4A); color: #fff; box-shadow: var(--shadow-lg); }
.plan.featured .per, .plan.featured .price small { color: rgb(255 255 255 / 0.9); }
.plan.featured ul { border-color: rgb(255 255 255 / 0.15); }
.plan.featured li .i { color: var(--sun); }
.plan .tag { position: absolute; top: 22px; inset-inline-end: 22px; padding: 5px 11px; border-radius: 999px; background: var(--sun); color: #3D2A00; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
/* Premium for Life: one wide card under the plans (sold only on the website). */
.lifetime { display: flex; align-items: center; gap: 22px; max-width: 880px; margin: 20px auto 0; padding: 24px 28px; }
.lifetime .ic { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: #fff; }
.lifetime .ic .i { width: 24px; height: 24px; }
.lifetime-copy { flex: 1; }
.lifetime h3 { font-size: 22px; margin-bottom: 4px; }
.lifetime-copy p { margin: 0; color: var(--muted); }
.lifetime .price { margin: 0; font: 800 34px/1 var(--font-round); letter-spacing: -0.03em; white-space: nowrap; }
.lifetime .price small { font: 600 16px/1 var(--font); color: var(--muted); letter-spacing: 0; }
/* Not on sale yet: a quiet pill that still reads as a button, not faded text. */
.lifetime .btn[aria-disabled="true"] { opacity: 1; color: var(--muted); background: var(--card-inset); box-shadow: inset 0 0 0 1px var(--card-line); }
@media (max-width: 760px) { .lifetime { flex-direction: column; align-items: flex-start; max-width: 560px; margin-inline: auto; } }
.plans-note { max-width: 760px; margin: 18px auto 0; text-align: center; color: var(--faint); font-size: 14px; }

.section-cta { margin: 26px 0 0; text-align: center; }

/* The pricing page (/pricing). */
.pricing-hero .section-head h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; }
.pricing-offers { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-width: 1000px; margin: 0 auto 14px; }
.pricing-offers .offer { padding: 22px; }
.offer .btn[aria-disabled="true"] { opacity: 1; color: var(--muted); background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); }
.offer.featured .btn[aria-disabled="true"] { color: rgb(255 255 255 / 0.8); background: rgb(255 255 255 / 0.12); box-shadow: none; }
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps li { padding: 24px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }
.step-number { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%; background: var(--teal-strong); color: #fff; font: 800 16px/1 var(--font-round); }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 0 24px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--card-inset); color: var(--teal-text); font-size: 20px; font-weight: 600; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -4px 0 20px; color: var(--muted); }

.cta-band { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 36px 40px; }
.cta-band img { border-radius: 22px; box-shadow: var(--shadow); }
.cta-band h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 6px; }
.cta-band p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* MARK: Simple pages (support, legal, 404) */

.page-head { padding: 56px 0 28px; }
.page-head h1 { font-size: clamp(36px, 4.6vw, 54px); font-weight: 800; }
.page-head .lead { margin: 0; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.support-group { padding: 8px 28px 12px; margin-bottom: 20px; }
.support-group h2 { display: flex; align-items: center; gap: 12px; margin: 22px 0 6px; font-size: 22px; }
.support-group h2 .i { color: var(--teal-text); }
.support-group details { border-top: 1px solid var(--card-line); }
.support-group details:first-of-type { border-top: 0; }
.support-group summary { padding: 16px 0; font-weight: 600; cursor: pointer; }
.support-group details p, .support-group details ol { margin: 0 0 16px; color: var(--muted); }
.contact-card { position: sticky; top: 96px; padding: 28px; text-align: center; }
.contact-card .ic { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 20px; color: #fff; }
.contact-card .ic .i { width: 30px; height: 30px; }
.contact-card h2 { font-size: 22px; }
.contact-card p { color: var(--muted); font-size: 15px; }

.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.legal-toc { position: sticky; top: 96px; padding: 20px 20px 14px; font-size: 14px; max-height: calc(100vh - 120px); overflow: auto; }
.toc-title { margin: 0 0 10px; font-weight: 700; color: var(--faint); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; }
.legal-toc li { margin-bottom: 8px; }
.legal-toc a { color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--teal-text); }
.legal-body { padding: 36px 44px; font-size: 16.5px; }
.legal-body h2 { margin-top: 36px; font-size: 24px; }
.legal-body h2:first-of-type { margin-top: 8px; }
.legal-body h3 { margin-top: 24px; font-size: 19px; }
.legal-body li { margin-bottom: 6px; }
.callout { padding: 14px 18px; border-radius: 14px; background: rgb(255 201 77 / 0.18); box-shadow: inset 4px 0 0 var(--sun); color: var(--ink); }
mark.todo { padding: 0 4px; border-radius: 5px; background: rgb(255 201 77 / 0.35); color: inherit; }

.lost { display: flex; flex-direction: column; align-items: center; padding: 80px 0 40px; text-align: center; }
.lost .globe { --size: 200px; margin-bottom: 34px; }
.lost h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
.lost p { max-width: 30em; color: var(--muted); font-size: 18px; }
.lost .hero-actions { justify-content: center; }

/* MARK: Forms */

.field { display: block; margin-bottom: 14px; }
.field > span, .field > label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--muted); }
.input, .field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 0; border-radius: var(--radius-sm);
  background: var(--card-inset); color: var(--ink); font: 16px/1.3 var(--font);
  box-shadow: inset 0 0 0 1px var(--card-line); transition: box-shadow 0.15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--teal); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--danger); }
.hint { display: block; margin-top: 6px; color: var(--faint); font-size: 13px; }
.password { position: relative; }
.password input { padding-inline-end: 52px; }
.password .reveal { position: absolute; top: 4px; inset-inline-end: 4px; width: 42px; height: 42px; }
.form-error { margin: 4px 0 14px; padding: 11px 14px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: 15px; font-weight: 500; }
.form-ok { margin: 4px 0 14px; padding: 11px 14px; border-radius: 12px; background: rgb(49 170 169 / 0.14); color: var(--teal-text); font-size: 15px; font-weight: 500; }
.code-input { text-align: center; font: 700 30px/1 ui-monospace, "SF Mono", Menlo, monospace !important; letter-spacing: 0.4em; padding-left: 0.4em !important; direction: ltr; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; cursor: pointer; }
.toggle input { appearance: none; position: relative; width: 50px; height: 30px; flex: none; margin: 0; border-radius: 15px; background: var(--card-inset); box-shadow: inset 0 0 0 1px var(--card-line); cursor: pointer; transition: background 0.2s; }
.toggle input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgb(0 0 0 / 0.2); transition: transform 0.2s; }
.toggle input:checked { background: var(--teal); }
.toggle input:checked::after { transform: translateX(20px); }

/* MARK: Account: sign in */

.page-account .site-footer { margin-top: 0; }
.loading { display: grid; place-items: center; min-height: 60vh; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--card-inset); border-top-color: var(--teal); animation: turn 0.8s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px 0 64px; }
.auth-aside h1 { font-size: clamp(34px, 4vw, 50px); font-weight: 800; }
.auth-aside .ticks { margin-top: 26px; }
.auth-aside .globe { --size: 120px; margin-bottom: 28px; }
.auth-card { width: 100%; max-width: 460px; justify-self: center; padding: 34px 34px 28px; }
.auth-card-head { text-align: center; margin-bottom: 22px; }
.auth-card-head img { border-radius: 18px; box-shadow: 0 6px 18px rgb(18 59 74 / 0.18); margin-bottom: 14px; }
.auth-card-head h2 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.auth-card-head p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 22px; padding: 4px; border-radius: 14px; background: var(--card-inset); }
.tabs button { min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 700 15px/1 var(--font); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgb(18 59 74 / 0.12); }
.social { display: grid; gap: 10px; }
.btn-social { position: relative; min-height: 50px; color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line), 0 1px 2px rgb(18 59 74 / 0.05); }
.btn-social:not([disabled]):hover { background: var(--card-inset); }
.btn-social img { width: 19px; height: 19px; }
.btn-social .soon { position: absolute; inset-inline-end: 14px; padding: 3px 8px; border-radius: 999px; background: var(--card-inset); color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.btn-apple .i { width: 20px; height: 20px; }
.btn-facebook { color: #fff; background: #1877f2; box-shadow: none; }
.btn-facebook:not([disabled]):hover { background: #166fe5; }
.btn-facebook .i { width: 20px; height: 20px; }
/* LINE's own green (its login button guidelines): darker by a 10% black layer on hover, 30% when pressed. */
.btn-line { color: #fff; background: #06C755; box-shadow: none; font-weight: 700; }
.btn-line:not([disabled]):hover { background: linear-gradient(rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.1)), #06C755; }
.btn-line:not([disabled]):active { background: linear-gradient(rgb(0 0 0 / 0.3), rgb(0 0 0 / 0.3)), #06C755; }
.btn.btn-social[disabled] { opacity: 0.6; box-shadow: inset 0 0 0 1px var(--card-line); }
.google-slot { display: flex; justify-content: center; min-height: 44px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--faint); font-size: 13px; font-weight: 600; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--card-line); }
.forgot-row { display: flex; justify-content: flex-end; margin: -6px 0 14px; font-size: 14px; }
.legal-note { margin: 14px 0 0; color: var(--faint); font-size: 13px; text-align: center; line-height: 1.5; }
.back-row { margin-bottom: 14px; }
.alt-row { margin: 16px 0 0; text-align: center; font-size: 15px; }
.step-ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; color: #fff; }
.step-ic .i { width: 30px; height: 30px; }
.row-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 15px; }

/* MARK: Account: dashboard */

.dash { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; padding: 32px 0 64px; }
.dash-side { position: sticky; top: 94px; padding: 16px; }
.side-me { display: flex; align-items: center; gap: 12px; padding: 6px 6px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--card-line); min-width: 0; }
.side-me div { min-width: 0; }
.side-me strong, .side-me span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-me span { color: var(--muted); font-size: 14px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a, .side-nav button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 12px;
  background: none; color: var(--muted); font: 600 15.5px/1.2 var(--font); text-align: start; text-decoration: none; cursor: pointer;
}
.side-nav a:hover, .side-nav button:hover { background: var(--card-inset); color: var(--ink); }
.side-nav a[aria-current="page"] { background: rgb(49 170 169 / 0.14); color: var(--teal-text); }
.side-nav .count { margin-inline-start: auto; min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 12px; text-align: center; }
.side-nav hr { width: 100%; margin: 8px 0; border: 0; border-top: 1px solid var(--card-line); }
.dash-main { min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.panel-head h1 { margin: 0; font-size: 32px; font-weight: 800; }
.panel-head p { margin: 4px 0 0; color: var(--muted); }
.banner { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding: 16px 18px; border-radius: 18px; background: rgb(255 201 77 / 0.2); box-shadow: inset 0 0 0 1px rgb(255 201 77 / 0.45); }
.banner .i { width: 26px; height: 26px; color: #B97F00; }
:root[data-theme="dark"] .banner .i { color: var(--sun); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .banner .i { color: var(--sun); } }
.banner div { flex: 1; min-width: 0; }
.banner strong { display: block; }
.banner span { color: var(--muted); font-size: 15px; }

.avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; color: #fff; font: 700 17px/1 var(--font-round); background: linear-gradient(135deg, var(--teal), var(--deep-teal)); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.xl { width: 104px; height: 104px; font-size: 38px; border: 5px solid var(--card); box-shadow: var(--shadow); }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }

.profile-card { overflow: hidden; margin-bottom: 22px; }
.profile-cover { height: 132px; background: linear-gradient(120deg, #31AAA9, #1D7C80 45%, #223558); position: relative; overflow: hidden; }
.profile-cover::after { content: ""; position: absolute; inset-inline-end: 8%; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgb(255 201 77 / 0.55), transparent 65%); }
.profile-body { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 0 28px 24px; margin-top: -52px; position: relative; }
.profile-who { flex: 1; min-width: 200px; padding-top: 58px; }
.profile-who h2 { margin: 0 0 2px; font-size: 26px; }
.profile-who .handle { color: var(--muted); }
.profile-bio { margin: 10px 0 0; white-space: pre-wrap; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--card-line); }
.profile-stats div { padding: 16px; text-align: center; }
.profile-stats div + div { border-inline-start: 1px solid var(--card-line); }
.profile-stats strong { display: block; font: 800 24px/1.1 var(--font-round); }
.profile-stats span { color: var(--muted); font-size: 14px; }

.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 22px; }
.box { padding: 22px 24px; }
.box h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 14px; }
.box h2 .i { color: var(--teal-text); }
.box > p { color: var(--muted); font-size: 15.5px; }
.person-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--card-line); }
.person-row:first-of-type { border-top: 0; }
.person-row div { flex: 1; min-width: 0; }
.person-row strong, .person-row span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-row span { color: var(--muted); font-size: 14px; }
.person-row .btn { min-height: 36px; padding: 0 14px; font-size: 14px; }
.app-card { position: relative; overflow: hidden; color: #fff; background: linear-gradient(140deg, #1D7C80, #123B4A); }
.app-card h2, .app-card h2 .i { color: #fff; }
.app-card > p { color: rgb(255 255 255 / 0.9); }
.app-card .store-badge { background: rgb(255 255 255 / 0.12); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2); }

.trip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.trip-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; border: 0; text-align: start; color: inherit; font: inherit; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.trip-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.trip-cover { position: relative; aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.trip-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trip-cover .vis { position: absolute; inset-inline-start: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgb(12 35 45 / 0.6); color: #fff; font-size: 12px; font-weight: 700; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.trip-info { padding: 14px 16px 16px; }
.trip-info h3 { margin: 0 0 4px; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-info p { margin: 0; color: var(--muted); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-meta { display: flex; gap: 14px; margin-top: 10px; color: var(--faint); font-size: 13.5px; }
.trip-meta span { display: inline-flex; align-items: center; gap: 5px; }
.trip-meta .i { width: 15px; height: 15px; }
.trip-by { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--card-line); font-size: 14px; font-weight: 600; min-width: 0; }
.trip-by span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.empty { padding: 48px 28px; text-align: center; }
.empty .ic { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 22px; color: #fff; }
.empty .ic .i { width: 34px; height: 34px; }
.empty h2 { font-size: 22px; }
.empty p { max-width: 28em; margin: 0 auto; color: var(--muted); }
.more-row { display: flex; justify-content: center; margin-top: 22px; }

.settings { margin-bottom: 22px; overflow: hidden; }
.settings h2 { margin: 0; padding: 20px 24px 6px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-family: var(--font); }
.setting { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-top: 1px solid var(--card-line); }
.settings h2 + .setting { border-top: 0; }
.setting .ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; color: #fff; }
.setting .ic img { width: 20px; height: 20px; }
.setting .ic.white { background: #fff; box-shadow: inset 0 0 0 1px rgb(18 59 74 / 0.1); }
.setting .ic.black { background: #10232B; }
.setting > div { flex: 1; min-width: 0; }
.setting strong { display: block; }
.setting span { display: block; color: var(--muted); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
.setting .btn { min-height: 38px; padding: 0 15px; font-size: 14.5px; }
.badge { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.badge.ok { background: rgb(49 170 169 / 0.15); color: var(--teal-text); }
.badge.warn { background: rgb(255 201 77 / 0.25); color: #8A5A00; }
:root[data-theme="dark"] .badge.warn { color: var(--sun); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.warn { color: var(--sun); } }
.badge.soon { background: var(--card-inset); color: var(--faint); }
.danger-zone .setting strong { color: var(--danger); }

/* MARK: Account: signed in (account.html) */

.account { max-width: 780px; margin: 0 auto; padding: 40px 0 64px; }
.account-head { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; min-width: 0; }
.account-head > div { min-width: 0; }
.account-head .kicker { margin-bottom: 6px; }
.account-head h1 { margin: 0 0 4px; font-size: clamp(30px, 4vw, 42px); font-weight: 800; overflow-wrap: anywhere; }
.account-head p { margin: 0; overflow-wrap: anywhere; }
.account .banner { flex-wrap: wrap; }
.account .banner .btn { flex: none; }
.premium-box { margin-bottom: 22px; }
.premium-box > div > p:last-child { margin-bottom: 0; }
.premium-plan { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 19px; margin-bottom: 6px; }
.premium-box [data-action="manage"] { margin-top: 4px; }
.offers-title { margin: 24px 0 12px; font-size: 18px; }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 14px; }
.offer { display: flex; flex-direction: column; padding: 18px; border-radius: 18px; background: var(--card-inset); box-shadow: inset 0 0 0 1px var(--card-line); }
.offer strong { font-size: 16px; }
.offer .price { margin: 2px 0; font: 800 30px/1.1 var(--font-round); letter-spacing: -0.02em; }
.offer .was { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--muted); font-size: 15px; font-weight: 600; }
.offer .was s { text-decoration-thickness: 2px; }
.offer .off { padding: 2px 8px; border-radius: 999px; background: var(--sun); color: #3D2A00; font-size: 12px; font-weight: 800; }
.offer.featured .was { color: rgb(255 255 255 / 0.9); }
.offer .per { flex: 1; margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.offer .btn { min-height: 44px; white-space: normal; text-align: center; }
.offer.featured { color: #fff; background: linear-gradient(160deg, #1D7C80, #123B4A); box-shadow: var(--shadow); }
.offer.featured .per { color: rgb(255 255 255 / 0.9); }
.offer.featured .btn-primary { color: #123B4A; background: var(--sun); box-shadow: none; }
.settings .setting:last-child { padding-bottom: 16px; }

/* MARK: Checkout (pay.html) */

.pay-card { max-width: 520px; margin: 64px auto; padding: 44px 32px 40px; text-align: center; }
.pay-card .spinner { display: block; margin: 0 auto 22px; }
.pay-card h1 { font-size: 28px; font-weight: 800; }
.pay-card p { margin-bottom: 0; }
.pay-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* MARK: Dialogs */

dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 26px;
  color: var(--ink); background: var(--card); box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: rgb(9 30 40 / 0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog[open] { animation: rise 0.2s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.dialog-head { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 18px 10px; padding-inline: 26px 18px; background: var(--card); }
.dialog-head h2 { margin: 0; font-size: 22px; }
.dialog-body { padding: 6px 26px 26px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
dialog.wide { width: min(760px, calc(100vw - 32px)); }
.trip-dialog .dialog-head { position: absolute; left: 0; right: 0; background: transparent; }
.trip-dialog .dialog-head .icon-btn { margin-inline-start: auto; color: #fff; background: rgb(12 35 45 / 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: 16 / 9; background: var(--card-inset); }
.gallery > * { flex: 0 0 100%; scroll-snap-align: start; width: 100%; height: 100%; object-fit: cover; }
.trip-detail { padding: 22px 26px 26px; }
.trip-detail h2 { font-size: 28px; margin-bottom: 4px; }
.trip-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 10px 0 16px; color: var(--muted); font-size: 15px; }
.trip-facts span { display: inline-flex; align-items: center; gap: 6px; }
.caption { white-space: pre-wrap; }
.route-sketch { margin: 18px 0; border-radius: 18px; background: var(--card-inset); overflow: hidden; }
.route-sketch svg { display: block; width: 100%; height: auto; }
.day-block { margin-top: 18px; }
.day-block h3 { font-size: 17px; margin-bottom: 8px; }
.stop { display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding: 7px 0; }
.stop .dot { width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; }
.stop strong { display: block; }
.stop span { color: var(--muted); font-size: 14.5px; white-space: pre-wrap; }
.comment { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--card-line); }
.comment div { flex: 1; min-width: 0; }
.comment p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment time { color: var(--faint); font-size: 13px; }
.tip-tag { margin-inline-start: 6px; padding: 1px 7px; border-radius: 6px; background: rgb(255 201 77 / 0.3); font-size: 12px; font-weight: 700; }
.trip-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--card-line); }
.avatar-edit { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border-radius: 14px; background: var(--card-inset); cursor: pointer; }
.choice input { accent-color: var(--teal); width: 18px; height: 18px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translateX(-50%); padding: 12px 20px; border-radius: 999px; color: #fff; background: #123B4A; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 15px; animation: rise 0.2s ease-out; }

/* MARK: Responsive */

@media (max-width: 1020px) {
  .hero-grid, .feature, .auth { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 40px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin: 0 auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-visual { min-height: 600px; }
  .feature { gap: 36px; text-align: center; }
  .feature .ticks { justify-items: center; }
  .feature .ticks li { text-align: start; }
  .feature.flip .feature-art { order: 0; }
  .grid-3, .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .privacy-points { grid-template-columns: minmax(0, 1fr); }
  .cta-band { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
  .cta-actions { justify-content: center; }
  .support-grid, .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-card, .legal-toc { position: static; }
  .legal-toc { max-height: none; }
  .auth-aside { display: none; }
  .dash { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .dash-side { position: static; padding: 10px; }
  .side-me { display: none; }
  .side-nav { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .side-nav a, .side-nav button { flex: none; width: auto; padding: 9px 12px; }
  .side-nav hr, .side-nav .side-extra { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-row { gap: 10px; height: 62px; }
  .brand { font-size: 19px; }
  .brand img { width: 32px; height: 32px; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-inline-start: auto; }
  .hide-mobile { display: none !important; }
  .nav {
    position: absolute; top: 62px; left: 0; right: 0; display: none; flex-direction: column; gap: 2px; margin: 0;
    padding: 10px 16px 16px; background: var(--card); border-bottom: 1px solid var(--card-line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 17px; }
  .nav .nav-only-mobile { display: block; }
  .header-actions .btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .hero-visual { min-height: 520px; }
  /* Smaller phones are the desktop ones zoomed out: a narrower phone with the same contents pushed its shortcuts under the tab bar. */
  .hero-visual .phone { zoom: 0.83; }
  .hero-visual .phone-front { transform: translateX(-41px) rotate(-3deg); }
  .hero-visual .phone-back { transform: translate(84px, 36px) rotate(5deg) scale(0.9); }
  .float-chip { display: none; }
  .feature-art .phone { --w: 260px; }
  .section { padding: 48px 0; }
  .privacy-band { padding: 32px 22px; border-radius: 26px; }
  .cta-band { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .legal-body { padding: 24px 20px; }
  .support-group { padding: 4px 18px 8px; }
  .auth { padding: 20px 0 40px; }
  .auth-card { padding: 26px 20px 22px; }
  .cards-2 { grid-template-columns: minmax(0, 1fr); }
  .profile-body { padding: 0 18px 20px; }
  .panel-head { flex-direction: column; align-items: flex-start; }
  .panel-head h1 { font-size: 28px; }
  .setting { padding: 14px 18px; flex-wrap: wrap; }
  .setting > div { min-width: 60%; }
  .dialog-body, .trip-detail { padding-inline: 20px; }
  .account { padding-top: 24px; }
  .account-head { gap: 16px; }
  .account-head .avatar.xl { width: 72px; height: 72px; font-size: 28px; border-width: 4px; }
  .pay-card { margin: 32px auto; padding: 32px 20px; }
  .tile { padding: 22px; }
}

@media (max-width: 400px) {
  .header-actions .btn-sm { padding: 0 12px; }
  .brand span { display: none; }
  .hero-visual .phone { zoom: 0.72; }
  .hero-visual { min-height: 460px; }
}

/* Paying in baht (/pay-th): the ways to pay as big buttons, the QR, the plan line. */
.plan-line { margin: 4px 0 12px; font-size: 18px; }
.plan-line s { margin-inline-start: 6px; font-size: 15px; }
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 8px 0 16px; }
.methods.banks { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.methods-title { margin: 16px 0 6px; font-weight: 700; }
.method { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1.5px solid var(--card-line); border-radius: 14px; background: var(--card); color: inherit; text-align: start; font: inherit; cursor: pointer; }
.method:hover, .method:focus-visible { border-color: var(--teal); }
.method:disabled { opacity: .6; cursor: default; }
.method strong { font-size: 16px; }
.method span { font-size: 14px; color: var(--muted); }
.qr { display: block; margin: 12px auto; width: 280px; max-width: 100%; height: auto; border-radius: 12px; background: #fff; padding: 8px; }
.page-pay .form-error { margin-top: 12px; }

/* Looks (Premium's art, d8's renders as WebP in /art/looks/web/, made by Tools/looks-web/webp.py). Still pictures:
   nothing moves, so prefers-reduced-motion has nothing to stop. Text over the art sits on a scrim measured at 4.5:1. */
.hero { position: relative; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: center bottom / cover no-repeat;
  background-image: image-set(url(/art/looks/web/background-nightFlight-light-1200x675.webp) 1x, url(/art/looks/web/background-nightFlight-light-2400x1350.webp) 2x); }
:root[data-theme="dark"] .hero::after { background-image: image-set(url(/art/looks/web/background-nightFlight-dark-1200x675.webp) 1x, url(/art/looks/web/background-nightFlight-dark-2400x1350.webp) 2x); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero::after { background-image: image-set(url(/art/looks/web/background-nightFlight-dark-1200x675.webp) 1x, url(/art/looks/web/background-nightFlight-dark-2400x1350.webp) 2x); } }
@media (max-width: 700px) {
  .hero::after { background-image: url(/art/looks/web/background-nightFlight-light-600x1300.webp); }
  :root[data-theme="dark"] .hero::after { background-image: url(/art/looks/web/background-nightFlight-dark-600x1300.webp); }
}
@media (max-width: 700px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero::after { background-image: url(/art/looks/web/background-nightFlight-dark-600x1300.webp); } }
.plan.featured { position: relative; isolation: isolate; overflow: hidden; }
/* Premium's card is dark teal in both appearances, so it takes Gold Leaf's night version under its own gradient. */
.plan.featured .looks-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.plan.featured::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgb(29 124 128 / 0.74), rgb(18 59 74 / 0.82)); }
img.only-dark { display: none; }
:root[data-theme="dark"] img.only-dark { display: block; }
:root[data-theme="dark"] img.only-light { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) img.only-dark { display: block; } :root:not([data-theme="light"]) img.only-light { display: none; } }
.plan li:has(.looks-strip) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; }
.plan li:has(.looks-strip) .looks-strip { grid-column: 2; }
.looks-strip { display: flex; gap: 6px; margin-top: 8px; }
.looks-strip img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 1px 3px rgb(18 59 74 / 0.18); }
.looks-strip .looks-swatch { object-fit: cover; border-radius: 50%; }
.looks-head { margin: 34px 0 14px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.looks-grid { display: grid; gap: 18px; }
.looks-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.looks-icons { grid-template-columns: repeat(4, minmax(0, 120px)); }
.looks-arrows { grid-template-columns: repeat(3, minmax(0, 160px)); }
.looks-globes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.look { margin: 0; }
.look img { width: 100%; height: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow), inset 0 0 0 1px var(--card-line); background: var(--card); }
.look-tile img { aspect-ratio: 600 / 1300; object-fit: cover; }
.look-icon img { border-radius: 22%; }
.look figcaption { margin-top: 8px; font-weight: 700; font-size: 15px; }
/* German's long compounds ("Sonnenuntergangsposter") break with a hyphen under a narrow icon, never past it. */
.look figcaption { overflow-wrap: break-word; }
:lang(de) .look figcaption { hyphens: auto; }
@media (max-width: 700px) {
  .looks-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .looks-icons { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .looks-arrows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .looks-globes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Over the hero's art: the pill on a solid card and the note in the full ink colour, both measured at 4.5:1 or more. */
.hero .pill { background: var(--card); }
.hero .hero-note { color: var(--ink); }

/* MARK: Sign-in (owner, 16 October: "make it look striking, not minimalistic"; "i like B but keep A switchable")
   The buttons in each provider's own style, full width, one shape and size; the layout is the signed-out view's
   data-signin-layout: "split" (Gold Leaf beside the box) or "poster" (Night Flight behind the page). Still art. */
@font-face { font-family: "Roboto Google Label"; font-weight: 500; font-display: swap; src: url(/fonts/roboto-medium-google-label.woff) format("woff"); }
.auth .btn-social { position: relative; min-height: 58px; padding: 0; padding-inline: 60px 20px; border-radius: 999px; font-size: 19px; font-weight: 700; gap: 0; }
.auth .btn-social .logo { position: absolute; inset-inline-start: 20px; top: 50%; width: 24px; height: 24px; transform: translateY(-50%); }
.auth .btn-apple { color: #fff; background: #000; box-shadow: none; }
.auth .btn-apple:not([disabled]):hover { background: #1d1d1f; }
.auth .btn-google { color: #1F1F1F; background: #fff; box-shadow: inset 0 0 0 1.5px #747775; font-family: "Roboto Google Label", var(--font); font-weight: 500; }
.auth .btn-google:not([disabled]):hover { background: #f4f6f6; }
.auth .btn-line { padding-inline-start: 76px; }
.auth .btn-line .logo { inset-inline-start: 0; width: 64px; height: 58px; display: grid; place-items: center; border-inline-end: 1px solid rgb(0 0 0 / 0.08); }
.auth .btn-line .logo img { width: 40px; height: 40px; }
:root[data-theme="dark"] .auth .btn-apple { color: #000; background: #fff; }
:root[data-theme="dark"] .auth .btn-google { color: #E3E3E3; background: #131314; box-shadow: inset 0 0 0 1.5px #8E918F; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .auth .btn-apple { color: #000; background: #fff; }
  :root:not([data-theme="light"]) .auth .btn-google { color: #E3E3E3; background: #131314; box-shadow: inset 0 0 0 1.5px #8E918F; }
}
.auth-aside .kicker { margin-bottom: 10px; }
.auth-art { display: none; }
/* B, split: the art is a panel holding the headline, beside the box. */
.auth[data-signin-layout="split"] { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: stretch; padding: 32px 0 64px; }
.auth[data-signin-layout="split"] .auth-art { display: block; grid-column: 1; grid-row: 1; border-radius: 28px; box-shadow: var(--shadow);
  background: center / cover no-repeat image-set(url(/art/looks/web/background-goldLeaf-light-1200x675.webp) 1x, url(/art/looks/web/background-goldLeaf-light-2400x1350.webp) 2x); }
.auth[data-signin-layout="split"] .auth-aside { grid-column: 1; grid-row: 1; align-self: end; padding: 48px 44px; }
.auth[data-signin-layout="split"] .auth-card { grid-column: 2; grid-row: 1; align-self: center; }
:root[data-theme="dark"] .auth[data-signin-layout="split"] .auth-art { background-image: image-set(url(/art/looks/web/background-goldLeaf-dark-1200x675.webp) 1x, url(/art/looks/web/background-goldLeaf-dark-2400x1350.webp) 2x); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth[data-signin-layout="split"] .auth-art { background-image: image-set(url(/art/looks/web/background-goldLeaf-dark-1200x675.webp) 1x, url(/art/looks/web/background-goldLeaf-dark-2400x1350.webp) 2x); } }
/* A, poster: the art fills the page behind the headline and the box. */
.auth[data-signin-layout="poster"] .auth-art { display: block; position: fixed; inset: 0; z-index: -1;
  background: center bottom / cover no-repeat image-set(url(/art/looks/web/background-nightFlight-light-1200x675.webp) 1x, url(/art/looks/web/background-nightFlight-light-2400x1350.webp) 2x); }
:root[data-theme="dark"] .auth[data-signin-layout="poster"] .auth-art { background-image: image-set(url(/art/looks/web/background-nightFlight-dark-1200x675.webp) 1x, url(/art/looks/web/background-nightFlight-dark-2400x1350.webp) 2x); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth[data-signin-layout="poster"] .auth-art { background-image: image-set(url(/art/looks/web/background-nightFlight-dark-1200x675.webp) 1x, url(/art/looks/web/background-nightFlight-dark-2400x1350.webp) 2x); } }
.auth[data-signin-layout="poster"] .auth-card { background: rgb(255 255 255 / 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
:root[data-theme="dark"] .auth[data-signin-layout="poster"] .auth-card { background: rgb(22 60 76 / 0.94); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth[data-signin-layout="poster"] .auth-card { background: rgb(22 60 76 / 0.94); } }
@media (max-width: 1020px) {
  .auth[data-signin-layout="split"] { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 16px; }
  .auth[data-signin-layout="split"] .auth-art { grid-row: 1; min-height: 300px; }
  .auth[data-signin-layout="split"] .auth-aside { grid-row: 1; padding: 30px 24px 64px; }
  .auth[data-signin-layout="split"] .auth-card { grid-column: 1; grid-row: 2; margin-top: -36px; position: relative; }
  .auth[data-signin-layout="poster"] .auth-art { background-image: url(/art/looks/web/background-nightFlight-light-600x1300.webp); }
}
@media (max-width: 700px) {
  .auth .btn-social { padding-inline: 52px 14px; }
  .auth .btn-social .logo { inset-inline-start: 16px; }
  .auth .btn-line { padding-inline-start: 68px; }
  .auth .btn-line .logo { width: 56px; }
}
/* Text on the sign-in page measured from the pixels at 4.5:1 (LINE's white on its green is its rule, 2.26:1, in the register). */
.auth .divider, .auth .legal-note { color: var(--muted); }
.auth .tabs button[aria-selected="false"] { color: var(--ink); opacity: 1; font-weight: 600; }
.auth-aside .kicker { color: #155F63; }
:root[data-theme="dark"] .auth-aside .kicker { color: var(--teal-text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth-aside .kicker { color: var(--teal-text); } }
.auth[data-signin-layout="poster"] .auth-aside { align-self: center; padding: 30px 32px; border-radius: 28px; background: rgb(255 255 255 / 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
:root[data-theme="dark"] .auth[data-signin-layout="poster"] .auth-aside { background: rgb(14 22 52 / 0.62); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth[data-signin-layout="poster"] .auth-aside { background: rgb(14 22 52 / 0.62); } }
/* On narrower screens the art keeps its headline (the slogan), without the longer lines, so the buttons stay near the top. */
@media (max-width: 1020px) {
  .auth[data-signin-layout] .auth-aside { display: block; }
  .auth[data-signin-layout] .auth-aside .lead, .auth[data-signin-layout] .auth-aside .ticks { display: none; }
  .auth[data-signin-layout="split"] .auth-art { min-height: 0; }
  .auth[data-signin-layout="split"] .auth-aside { padding: 28px 24px 62px; align-self: start; }
  .auth[data-signin-layout="poster"] .auth-aside { margin-bottom: 18px; }
}
@media (max-width: 1020px) { .auth[data-signin-layout] .auth-aside h1 { margin-bottom: 0; } }

/* MARK: Web profiles and trip links (/@handle, /t/<token>; src/web-profiles.js), and "Your trips" on /account */
.web-page { padding: 40px 0 64px; max-width: 980px; }
.web-page > [data-view] > * + * { margin-top: 22px; }
.web-head { display: flex; align-items: center; gap: 22px; padding: 24px; }
.web-head h1 { margin: 0 0 2px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; overflow-wrap: anywhere; }
.web-head p { margin: 0; }
.web-bio { margin-top: 10px !important; white-space: pre-line; overflow-wrap: anywhere; }
.web-title { margin: 0 0 14px; font-size: 22px; }
.web-regions { margin: 16px 0 0; padding: 0; list-style: none; }
.web-regions li { padding: 10px 0; border-top: 1px solid var(--card-line); }
.web-regions strong { display: block; }
.web-regions span { color: var(--muted); font-size: 14.5px; overflow-wrap: anywhere; }
.web-highlights { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 8px; }
.web-highlight { flex: none; width: 104px; margin: 0; text-align: center; }
.web-highlight-photo { position: relative; display: block; width: 92px; height: 92px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden; background: var(--card-inset); box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--teal); }
.web-highlight-photo img { width: 100%; height: 100%; object-fit: cover; }
.web-highlight-photo[data-video]::after { content: attr(data-video); position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; background: rgb(12 35 45 / 0.7); color: #fff; font-size: 11px; font-weight: 700; }
.web-highlight figcaption strong, .web-highlight figcaption span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-highlight figcaption span { color: var(--muted); font-size: 13px; }
.trip-card.static { cursor: default; }
.trip-card.static:hover { transform: none; box-shadow: var(--shadow), inset 0 0 0 1px var(--card-line); }
.trip-card.static .trip-cover { background: var(--card-inset); }
.web-caption { margin-top: 8px !important; white-space: normal !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.web-credit:empty { display: none; }
.web-trip-head { overflow: hidden; padding: 0; }
.web-trip-head .trip-cover { aspect-ratio: 21 / 9; }
.web-trip-head h1 { margin: 0 0 6px; font-size: clamp(28px, 4vw, 42px); font-weight: 800; overflow-wrap: anywhere; }
.web-trip-head .i { width: 16px; height: 16px; vertical-align: -2px; }
.web-tags:empty, [data-slot="credit"]:empty { display: none; }
.web-day h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.web-day h2 time { font-size: 15px; font-weight: 600; }
.web-stops { margin: 0; padding: 0; padding-inline-start: 22px; }
.web-stops li { padding: 8px 0; border-top: 1px solid var(--card-line); overflow-wrap: anywhere; }
.web-stops li:first-child { border-top: 0; }
.web-stops p { margin: 4px 0 0; font-size: 15px; white-space: pre-line; }
.web-category { margin-inline-start: 8px; }
.web-cta { text-align: center; }
.my-trips .setting .btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.my-trips-empty { padding: 4px 24px 20px; }
.link-result input { width: 100%; }
@media (max-width: 700px) {
  .web-page { padding-top: 24px; }
  .web-head { flex-direction: column; text-align: center; }
  .my-trips .setting { flex-wrap: wrap; }
  .my-trips .setting .btns { width: 100%; justify-content: flex-start; }
}
.web-places { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.web-places li { padding: 6px 12px; border-radius: 999px; background: var(--card-inset); font-size: 15px; overflow-wrap: anywhere; }
