/* Tunisia Guide website. Built by scripts/build-site.py from the design file; edit the design, then rebuild. */
@font-face { font-family: "Jost"; src: url("/assets/fonts/Jost-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/Jost-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/Jost-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
/* Layout: one 1180px column; each section is a headline, one line and the app itself.
   House rules (staging site.css): text pure black on light, pure white on dark, red or black, never grey;
   nothing under 18px, running text 20px; no thin weights; links never underlined; room to breathe. */
:root {
  --bg: #FFFFFF;
  --panel: #F6EFE4;
  --text: #000000;
  --red: #E70013;
  --red-text: #D10011;
  --on-red: #FFFFFF;
  --line: rgba(0, 0, 0, 0.16);
  --line-strong: rgba(0, 0, 0, 0.32);
  --field-line: rgba(0, 0, 0, 0.6);
  --frame: #111317;
  --night: #0B0C0E;
  --night-text: #FFFFFF;
  --night-red: #FF5964;
  --veil: rgba(0, 0, 0, 0.06);
  --shadow: 0 30px 60px -26px rgba(0, 0, 0, 0.5);
  --qr-bg: #FFFFFF;
  --badge-bg: #111317;
  --badge-fg: #FFFFFF;
  --badge-line: rgba(255, 255, 255, 0.22);
  --qr-fg: #000000;
  --only-light: block;
  --only-dark: none;
  --inline-light: inline;
  --inline-dark: none;
  --font: "Jost", "Futura", "Century Gothic", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
}
:root[data-mode="dark"] {
  --bg: #121417; --panel: #1E2227; --text: #FFFFFF; --red-text: #FF5964;
  --line: rgba(255, 255, 255, 0.24); --line-strong: rgba(255, 255, 255, 0.4); --field-line: rgba(255, 255, 255, 0.6); --frame: #000000; --night: #07080A;
  --veil: rgba(255, 255, 255, 0.07); --shadow: 0 30px 60px -26px rgba(0, 0, 0, 0.95);
  --only-light: none; --only-dark: block; --inline-light: none; --inline-dark: inline; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-weight: 500; font-size: 20px; line-height: 1.6;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; font-weight: 700; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(46px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(34px, 3.8vw, 48px); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: clamp(23px, 2.2vw, 26px); line-height: 1.25; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.on-red :focus-visible, .night :focus-visible { outline-color: #FFFFFF; }
.only-light { display: var(--only-light); }
.only-dark { display: var(--only-dark); }
.skip { position: absolute; left: -999px; top: 12px; z-index: 100; background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 12px; }
.skip:focus { left: 12px; }
.icon { width: 1em; height: 1em; flex: none; }

.wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.in { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(0px, 2.4vw - 8px, 24px); }
.section { padding-block: clamp(64px, 7.5vw, 104px); }
.band { background: var(--panel); }
.red { color: var(--red-text); }
.line { font-size: clamp(20px, 1.7vw, 22px); line-height: 1.55; max-width: 30em; }

/* Buttons and store badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 0;
  background: var(--red); color: var(--on-red); font-size: 18px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: #C10010; }
.mode {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--text); background: transparent;
  display: inline-grid; place-items: center; cursor: pointer; flex: none;
}
.mode .icon { width: 22px; height: 22px; }
.mode .i-moon { display: var(--only-light); }
.mode .i-sun { display: var(--only-dark); }
.stores { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store { display: block; border-radius: 12px; }
.store img { height: 56px; width: auto; }

/* Header: normal header in the flow, then the thin bar once it has scrolled away (as on staging) */
.site { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 30; }
.site .in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.logo { display: block; border-radius: 8px; flex: none; }
.logo img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); }
.nav a { font-size: 18px; padding-block: 10px; }
.nav a:hover { color: var(--red-text); }
.actions { display: flex; align-items: center; gap: 14px; }
.bar {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  background: var(--bg); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  visibility: hidden; opacity: 0; transition: opacity 0.15s ease, visibility 0s linear 0.15s;
}
.bar.is-on { visibility: visible; opacity: 1; transition: opacity 0.15s ease, visibility 0s; }
.bar .in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 44px; }
.bar-icon { flex: none; display: block; border-radius: 8px; }
.bar-icon img { width: 34px; height: 34px; border-radius: 8px; }
.bar .actions, .bar .nav { gap: 24px; }
.bar .nav a { padding-block: 4px; }
.bar .btn { min-height: 32px; padding: 4px 16px; }
.bar .mode { width: 34px; height: 34px; border-width: 1.5px; }
.bar .mode .icon { width: 17px; height: 17px; }
@media (max-width: 1020px) { .nav { display: none; } .logo img { height: 44px; } }
@media (max-width: 420px) { .site .in { min-height: 76px; gap: 10px; } .logo img { height: 36px; } .site .actions { gap: 12px; } .site .mode { width: 48px; height: 48px; } }

/* Devices */
.media { display: grid; justify-items: center; gap: 20px; }
.phone {
  position: relative; width: min(280px, 70vw); aspect-ratio: 540 / 1052; background: var(--frame);
  border: 10px solid var(--frame); border-radius: 44px; box-shadow: var(--shadow); overflow: hidden;
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; background: var(--panel); }

/* Text beside a device */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.copy { display: grid; gap: 16px; justify-items: start; }
.copy h2 { margin-bottom: 8px; }
.flip .media { order: -1; }

/* Hero: fills the first screen and no more. Headline, line and badges on the left; on the right two phones side by side,
   the whole map of Tunisia and a place page, sized from the screen height so both show in full. */
.hero { background: var(--red); color: var(--on-red); --hero-h: clamp(560px, calc(100vh - 84px), 760px); }
@supports (height: 100svh) { .hero { --hero-h: clamp(560px, calc(100svh - 84px), 760px); } }
.hero .in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; min-height: var(--hero-h); padding-block: 40px; }
.hero .copy { gap: 28px; }
.hero h1 { font-size: clamp(40px, min(5vw, 9.5vh), 61px); }
.hero h1 span { display: block; }
.hero .line { max-width: 24em; }
.pair { display: flex; justify-content: center; align-items: flex-start; gap: 24px; container-type: inline-size; }
.pair > .phone { --pw: min(calc((var(--hero-h) - 128px) * 0.513), 270px, calc((100cqw - 24px) / 2)); }
.pair .phone {
  width: var(--pw); border-width: calc(var(--pw) * 0.035); border-radius: calc(var(--pw) * 0.155);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.pair .phone video, .pair .phone img { border-radius: calc(var(--pw) * 0.12); }
.pair .phone + .phone { margin-top: 48px; }
@media (max-width: 900px) {
  .hero .in { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 36px; padding-block: 36px 48px; }
  .pair { gap: 16px; }
  .pair > .phone { --pw: min(230px, calc((100cqw - 16px) / 2)); }
  .pair .phone + .phone { margin-top: 32px; }
}

/* Offline (always dark) */
.night { background: var(--night); color: var(--night-text); }
.night .red { color: var(--night-red); }
.night .phone { border-color: #000000; background: #000000; }

/* Tablet */
.tablet-top { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.tablet-frame {
  position: relative; width: 100%; aspect-ratio: 1280 / 720;
  background: var(--frame); border: clamp(10px, 1.3vw, 16px) solid var(--frame); border-radius: clamp(22px, 2.4vw, 32px); box-shadow: var(--shadow); overflow: hidden;
}
.tablet-frame video { width: 100%; height: 100%; object-fit: cover; border-radius: clamp(10px, 1.1vw, 14px); background: var(--panel); }
.tab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 48px; margin-top: clamp(56px, 7vw, 88px); }
.tab-item { display: grid; gap: 24px; align-content: start; }
.tab-item figcaption { display: grid; gap: 6px; }
.tablet-frame.sm { border-width: clamp(7px, 0.8vw, 10px); border-radius: clamp(16px, 1.6vw, 22px); }
.tablet-frame.sm video { border-radius: clamp(8px, 0.8vw, 12px); }
@media (max-width: 900px) { .tablet-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .tab-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } }

/* Price */
.price-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; background: var(--panel); border-radius: 32px; padding: clamp(32px, 5vw, 64px); }
.price-copy { display: grid; gap: 16px; }
.price-buy { display: grid; gap: 24px; justify-items: start; }
.amount { font-size: clamp(80px, 9vw, 120px); line-height: 0.95; font-weight: 600; letter-spacing: -0.04em; color: var(--red-text); }
@media (max-width: 900px) { .price-card { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq .in { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-head { display: grid; gap: 20px; position: sticky; top: 92px; }
.faq-head a, .ans a { color: var(--red-text); }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-size: 22px; font-weight: 600; line-height: 1.35; border-radius: 8px;
}
summary::-webkit-details-marker { display: none; }
.plus { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: var(--on-red); display: grid; place-items: center; flex: none; }
.plus .icon { width: 20px; height: 20px; transition: transform 0.2s ease; }
details[open] .plus .icon { transform: rotate(45deg); }
.ans { padding: 0 56px 26px 0; }

/* Final call to action */
.final { background: var(--red); color: var(--on-red); }
.final .in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 40px 48px; }
.final h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
.final .copy { gap: 16px; }
.final .stores { margin-top: 12px; }
.qr { display: flex; align-items: center; gap: 18px; padding: 14px 24px 14px 14px; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 20px; }
.qr-code { background: var(--qr-bg); padding: 8px; border-radius: 10px; flex: none; }
.qr-svg { width: 104px; height: 104px; fill: var(--qr-fg); }
.qr p { font-size: 20px; font-weight: 600; max-width: 6.5em; line-height: 1.35; }
@media not ((hover: hover) and (pointer: fine)) { .qr { display: none; } }
@media (max-width: 760px) { .qr { display: none; } }

/* Footer */
.foot { padding-block: 56px 48px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.foot-links a { font-size: 16px; }
.foot-links a:hover { color: var(--red-text); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; padding-top: 28px; }
.foot-legal { display: grid; gap: 4px; font-size: 14px; line-height: 1.5; max-width: 56em; }
.ht-sign { display: inline-flex; align-items: baseline; gap: 6px; flex: none; white-space: nowrap; font-size: 14px; font-weight: 500; line-height: 16px; }
/* The logo's baseline sits 22.6% up from its bottom edge: this puts it on the text's baseline. */
.ht-sign img { height: 16px; width: auto; vertical-align: -3.6px; }
.ht-sign img.only-light { display: var(--inline-light); }
.ht-sign img.only-dark { display: var(--inline-dark); }
.foot-top .logo img { height: 80px; }
@media (max-width: 560px) { .foot-top .logo img { height: 64px; } }

/* Inner pages: Contact, Privacy policy, Terms of use */
.page-head { background: var(--red); color: var(--on-red); }
.page-head .in { display: grid; gap: 16px; justify-items: start; padding-block: clamp(48px, 6vw, 80px); }
.page-head h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.02em; }
.page-head h1:focus { outline: none; }
.page-head p { font-size: clamp(20px, 1.7vw, 22px); line-height: 1.5; max-width: 40em; }
.page-head .updated { font-size: 18px; }
.doc-body { max-width: 760px; }
.doc-body > :first-child { margin-top: 0; }
.doc h2 { font-size: clamp(28px, 2.6vw, 34px); line-height: 1.2; margin: 56px 0 16px; }
.doc h3 { font-size: 23px; line-height: 1.3; margin: 32px 0 10px; }
.doc p + p, .doc-body > ul + p, .doc-body > .summary + h2 { margin-top: 14px; }
.doc-body > .summary + h2 { margin-top: 56px; }
.doc a, .contact-aside a { color: var(--red-text); }
.doc-body > ul { display: grid; gap: 8px; margin-top: 14px; }
.doc-body > ul li { position: relative; padding-left: 26px; }
.doc-body > ul li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.summary { background: var(--panel); border-radius: 24px; padding: clamp(24px, 3vw, 32px); }
.ticks { display: grid; gap: 12px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; }
.ticks .icon { width: 24px; height: 24px; color: var(--red-text); margin-top: 3px; }
address { font-style: normal; margin-top: 16px; line-height: 1.6; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-form h2, .contact-aside h2 { font-size: clamp(28px, 2.6vw, 34px); line-height: 1.2; }
.form { display: grid; gap: 24px; margin-top: 28px; max-width: 640px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 18px; font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; font-size: 20px; color: var(--text); background: var(--bg);
  padding: 12px 16px; min-height: 52px; border: 2px solid var(--field-line); border-radius: 12px;
}
.field textarea { min-height: 180px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--red-text); }
.hint { font-size: 18px; }
.error { font-size: 18px; font-weight: 600; color: var(--red-text); }
.error:empty, .notice:empty, .file-list:empty { display: none; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-button {
  display: inline-flex; align-items: center; justify-self: start; min-height: 48px; padding: 10px 22px;
  border: 2px solid var(--text); border-radius: 999px; font-size: 18px; font-weight: 600; cursor: pointer;
}
.file-input:focus-visible + .file-button { outline: 3px solid var(--text); outline-offset: 3px; }
.file-list { display: grid; gap: 4px; font-size: 18px; }
.trap { position: absolute; left: -9999px; }
.turnstile { display: grid; place-items: center; min-height: 68px; border: 2px dashed var(--field-line); border-radius: 12px; font-size: 18px; }
.notice { font-size: 18px; font-weight: 600; padding: 14px 18px; border-radius: 12px; background: var(--panel); }
.send { justify-self: start; }
.contact-aside { display: grid; gap: 16px; align-content: start; background: var(--panel); border-radius: 24px; padding: clamp(24px, 3vw, 36px); }
.contact-aside h2 + * { margin-top: -4px; }
.contact-aside p + h2 { margin-top: 24px; }
.contact-email { font-size: 22px; overflow-wrap: anywhere; }
.contact-aside address { margin-top: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* Narrow screens */
@media (max-width: 900px) {
  .split, .faq .in { grid-template-columns: minmax(0, 1fr); }
  .flip .media { order: 0; }
  .faq-head { position: static; }
}
@media (max-width: 560px) {
  .ans { padding-right: 0; }
  .store img { height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* The real Turnstile check (the design shows a placeholder box) */
.cf-turnstile { min-height: 65px; }
.send:disabled { opacity: 0.7; cursor: default; }
.soon { font-size: 18px; font-weight: 600; }  .hero .soon { margin-top: -12px; }

/* Bullet lists in the features and the FAQ: the red dots of the legal pages */
.points { display: grid; gap: 8px; }
.copy .points { font-size: clamp(20px, 1.7vw, 22px); line-height: 1.55; max-width: 30em; }
.ans .points { margin-top: 12px; }
.points li { position: relative; padding-left: 26px; }
.points li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.night .points li::before { background: var(--night-red); }
