/* Traveltweak website. Tokens: website/DESIGN.md (from the app's theme). */

@font-face {
  font-family: "Lexend Deca";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/lexend-deca-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: "Lexend Deca";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/lexend-deca-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}

:root {
  color-scheme: light dark;
  --bg: #f4f8fb;
  --surface: #ffffff;
  --border: #e1e9ef;
  --ink: #0b2a40;
  --muted: #4a6478;
  --link: #0277bd;
  --action: #ff9800;
  --action-hover: #f08c00;
  --ink-on-action: #0b2a40;
  --warm-text: #b25e00;
  --sky-tint: #e1f3fd;
  --night: #08182a;
  --night-surface: #10263d;
  --night-border: #1e3a56;
  --night-ink: #eaf4fb;
  --night-muted: #9db4c7;
  --night-orange: #ffb74d;
  --night-sky: #29b6f6;
  --shadow: 0 1px 2px rgb(11 42 64 / 0.06), 0 8px 24px rgb(11 42 64 / 0.08);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-pill: 999px;
  --gutter: 22px;
  --content: 1120px;
  --text: 720px;
  --section: 96px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08182a;
    --surface: #10263d;
    --border: #1e3a56;
    --ink: #eaf4fb;
    --muted: #9db4c7;
    --link: #29b6f6;
    --action: #ffb74d;
    --action-hover: #ffa726;
    --warm-text: #ffb74d;
    --sky-tint: #10263d;
    --shadow: none;
  }
  .logo-light { display: none; }
  .logo-dark { display: block !important; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Lexend Deca", system-ui, sans-serif;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
  border-radius: 6px;
}

h1, h2, h3 { margin: 0; color: inherit; }
h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h3 { font-size: 21px; line-height: 1.3; font-weight: 700; }
p { margin: 0; }

.overline {
  display: block;
  margin-bottom: 12px;
  color: var(--warm-text);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }

.wrap { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }
.wrap-text { width: min(100% - 2 * var(--gutter), var(--text)); margin-inline: auto; }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--surface);
  border-radius: var(--r-sm);
}
.skip:focus { left: 8px; }

/* ── Header ───────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; padding: 6px 0; }
.brand img { height: 26px; width: auto; }
.logo-dark { display: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--r-pill);
}
.nav a:hover { background: var(--sky-tint); }
.nav a[aria-current="page"] { color: var(--link); }
.nav .lang {
  color: var(--muted);
  border: 1px solid var(--border);
  margin-left: 6px;
  padding: 8px 12px;
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 760px) {
  .menu-button { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; }
  .nav .lang { margin: 8px 0 0; text-align: center; }
}

/* ── Buttons ──────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.button svg { width: 20px; height: 20px; flex: none; }
.button-primary { background: var(--action); color: var(--ink-on-action); }
.button-primary:hover { background: var(--action-hover); }
.button-secondary { border-color: var(--link); color: var(--link); background: transparent; }
.button-secondary:hover { background: var(--sky-tint); }
.button[disabled] { opacity: 0.4; cursor: not-allowed; }

.store { display: inline-block; border-radius: 10px; }
.store img { height: 64px; width: auto; margin: -8px -10px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

/* ── Sections ─────────────────────────────────────── */

section { padding-block: var(--section); }
@media (max-width: 760px) { :root { --section: 64px; } }

.hero { padding-block: 72px var(--section); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; }
.hero .note { margin-top: 14px; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
}

/* Phone frame with a screenshot (or a marked placeholder). */
.phone {
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19.5;
  margin-inline: auto;
  padding: 10px;
  border-radius: 44px;
  background: #0b2a40;
  box-shadow: var(--shadow), 0 30px 60px rgb(11 42 64 / 0.18);
}
.phone > * {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  object-fit: cover;
  object-position: top;
}
.night .phone { background: #1e3a56; box-shadow: 0 30px 60px rgb(0 0 0 / 0.35); }
.placeholder {
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgb(3 169 244 / 0.07) 14px 28px),
    var(--surface);
  color: var(--muted);
  font-size: 14px;
  border: 2px dashed var(--border);
}
.placeholder strong { color: var(--ink); font-size: 15px; }

/* Split rows: text + visual. */
.split .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.split.reverse .visual { order: -1; }
.split h2 { margin-bottom: 16px; }
@media (max-width: 860px) {
  .split .wrap { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .visual { order: 0; }
}

.points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.points .icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--sky-tint);
  color: var(--link);
}
.points strong { display: block; font-size: 17px; }
.points span { color: var(--muted); font-size: 16px; }
.icon svg { width: 22px; height: 22px; }

/* Night band: the collection. */
.night {
  background: var(--night);
  color: var(--night-ink);
}
@media (prefers-color-scheme: dark) {
  /* On a dark page the band stands out by a lighter night and borders. */
  .night {
    background: #0c2136;
    border-block: 1px solid var(--night-border);
  }
}
.night .overline { color: var(--night-orange); }
.night .lead { color: var(--night-muted); }
.night .points .icon { background: var(--night-surface); color: var(--night-sky); }
.night .points span { color: var(--night-muted); }

/* Cards row. */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.card {
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.card .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--sky-tint);
  color: var(--link);
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.closing { text-align: center; }
.closing .lead { margin: 16px auto 32px; }
.closing .actions { justify-content: center; }

/* ── Inner pages ──────────────────────────────────── */

.page-head { padding: 56px 0 32px; }
.page-head h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 12px; }
.page-body { padding: 0 0 var(--section); }
.page-body h2 { font-size: 24px; margin: 40px 0 12px; }
.page-body p + p { margin-top: 14px; }

.panel {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.steps { margin: 16px 0 0; padding-left: 22px; display: grid; gap: 10px; }
.steps li::marker { color: var(--warm-text); font-weight: 700; }

.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--link); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }

/* Form. */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  min-height: 48px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 3px solid var(--link); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  margin-bottom: 20px;
}
.notice.ok { background: #e3f4ea; color: #1d5c3a; }
.notice.error { background: #fde8e8; color: #8a1f1f; }
@media (prefers-color-scheme: dark) {
  .notice.ok { background: #143a29; color: #a6e3c0; }
  .notice.error { background: #3d1a1d; color: #f5b5b5; }
}

/* Legal text. */
.legal { font-size: 16px; }
.legal h2 { font-size: 20px; margin: 32px 0 10px; }
.legal ul { padding-left: 20px; margin: 10px 0; display: grid; gap: 6px; }
.legal .updated { color: var(--muted); font-size: 15px; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.langs a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.langs a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── Footer ───────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 48px 0 32px;
  font-size: 15px;
}
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--link); text-decoration: underline; }
.site-footer .brand img { height: 22px; margin-bottom: 12px; }
.site-footer .copy { grid-column: 1 / -1; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); padding-top: 20px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
