/* Shared by every page: tokens, type, buttons, navigation, footer, the
   language switch, and the legal pages' prose. */

/* The app's own typeface (Supreme, Fontshare licence: web use allowed). */
@font-face { font-family: "Supreme"; src: url("fonts/Supreme-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Supreme"; src: url("fonts/Supreme-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Supreme"; src: url("fonts/Supreme-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

/*
 * Tokens. Sand and ink are the app's light theme (AppTheme in
 * abroadspend/Support/Theme.swift); the page is one step lighter than the
 * app so the phone in the hero reads as an object. The site is light only:
 * the hero is drawn in the app's light style.
 */
:root {
  --page: #F8F2E6;
  --sand: #F3E8D2;
  --ink: #121212;
  --ink-2: rgba(18, 18, 18, .62);
  --line: rgba(18, 18, 18, .1);
  --transport: #70ADFF;
  --activities: #59DB9E;
  --flight: #6FD3E8;
  --sights: #E8C86F;
  --radius: 20px;
  --shell: min(1280px, 100% - 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* Both languages are in the markup; <html lang> decides which one shows. */
html[lang="de"] body [lang="en"],
html[lang="en"] body [lang="de"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Supreme", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }

/* Buttons: one style, ink pill, used for the single "Get the app" intent. */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--ink); color: var(--sand);
  font-weight: 500; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.button:hover { background: #2a2a2a; }
.button:active { transform: scale(.98); }
.button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.button.small { height: 40px; padding: 0 18px; font-size: 15px; }

/* Navigation: wordmark, the four sections, language, and the one call to action. */
.site-header { position: relative; z-index: 2; }
.nav { height: 68px; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
.nav .primary { display: flex; gap: 4px; margin: 0 auto 0 24px; }
.nav .primary a, .menu-panel nav a {
  text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: 999px; transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav .primary a:hover { color: var(--ink); background: rgba(18, 18, 18, .05); }
.nav .primary a[aria-current="page"] { color: var(--ink); }
.nav .primary a:focus-visible, .menu-toggle:focus-visible, .menu-panel a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Below the desktop width the sections fold into a menu under a text button. */
.menu-toggle {
  display: none; appearance: none; cursor: pointer; font: inherit; font-size: 15px; font-weight: 500;
  height: 40px; padding: 0 16px; border-radius: 999px; border: 0;
  background: rgba(18, 18, 18, .07); color: var(--ink);
}
.menu-toggle[aria-expanded="true"] { background: var(--ink); color: var(--sand); }
.menu-panel { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--page); }
.menu-panel[hidden] { display: none; }
.menu-panel .shell { display: grid; gap: 20px; padding: 16px 0 24px; }
.menu-panel nav { display: grid; gap: 2px; }
.menu-panel nav a { font-size: 20px; padding: 10px 0; color: var(--ink); border-radius: 0; }
.menu-panel nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.menu-panel .button, .menu-panel .lang-switch { justify-self: start; }

/* Language switch: two pills; the current language is the filled one. */
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(18, 18, 18, .07); }
.lang-switch button {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500;
  min-width: 40px; height: 32px; padding: 0 10px; border-radius: 999px;
  background: transparent; color: var(--ink-2);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--sand); }
.lang-switch button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Footer */
footer { border-top: 1px solid var(--line); }
footer .shell {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 32px;
  padding: 28px 0; color: var(--ink-2); font-size: 15px;
}
footer .brand { font-size: 17px; color: var(--ink); margin: 0; }
footer .brand img { width: 26px; height: 26px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
footer nav a { text-decoration: none; }
footer nav a:hover, footer nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
footer .end { display: flex; align-items: center; gap: 20px; }

/* Text pages: legal pages, blog posts, feedback. */
.legal { padding: 56px 0 96px; }
.legal article { max-width: 72ch; }
.legal h1 { margin: 0 0 8px; font-size: clamp(36px, 4.4vw, 56px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.legal .updated { margin: 0 0 40px; color: var(--ink-2); }
.legal .lede { margin: 16px 0 40px; font-size: 21px; line-height: 1.45; color: var(--ink); }
.legal h2 { margin: 40px 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.legal h3 { margin: 24px 0 4px; font-size: 18px; font-weight: 500; }
.legal p, .legal li { color: rgba(18, 18, 18, .82); }
.legal ul { padding-left: 1.2em; }
.legal address { font-style: normal; }
/* The five-column table can't fit a phone, so it scrolls inside its own box
   and the page itself stays put. */
.legal .table-scroll { margin: 16px 0 24px; overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.legal table.wide { min-width: 720px; }
.legal th, .legal td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { font-weight: 700; color: var(--ink); }
.legal td { color: rgba(18, 18, 18, .82); }
/* In-text citations [3] and the numbered source list they point to. */
.legal sup a { text-decoration: none; font-size: .78em; color: var(--ink-2); padding: 0 1px; }
.legal sup a:hover { color: var(--ink); }
.legal .in-app { border-left: 3px solid var(--ink); padding: 2px 0 2px 16px; margin: 16px 0; }
.legal .sources { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal .sources ol { padding-left: 1.6em; font-size: 15px; }
.legal .sources li { margin-bottom: 10px; overflow-wrap: anywhere; }
.legal .sources li:target { background: rgba(18, 18, 18, .06); border-radius: 6px; }
/* The blog's list of posts. */
.legal .post-list { display: grid; gap: 16px; padding: 0; list-style: none; max-width: 72ch; }
.post-list a { display: block; padding: 24px; border-radius: var(--radius); background: var(--sand); text-decoration: none; }
.post-list a:hover { background: #EFE2C6; }
.post-list h2 { margin: 4px 0 8px; }
.post-list time, .post-list p { color: var(--ink-2); margin: 0; }
/* Details the operator still has to fill in; impossible to miss on purpose. */
.todo { background: #FFE58F; color: var(--ink); padding: 0 4px; border-radius: 4px; }

@media (max-width: 1023px) {
  .nav .primary, .nav .lang-switch { display: none; }
  .nav .brand { margin-right: auto; }
  .menu-toggle { display: inline-flex; align-items: center; }
}
@media (min-width: 1024px) {
  /* The menu only exists below the desktop width. */
  .menu-panel { display: none !important; }
}
@media (max-width: 767px) {
  :root { --shell: calc(100% - 32px); }
  footer .shell { grid-template-columns: 1fr; justify-items: start; }
  footer nav { justify-content: flex-start; }
  .legal { padding: 32px 0 72px; }
}
/* Phones: the menu carries the call to action, so the header keeps one line. */
@media (max-width: 479px) {
  .nav > .button { display: none; }
}
@media (max-width: 360px) {
  .nav .brand { font-size: 17px; gap: 8px; }
  .nav .brand img { width: 28px; height: 28px; }
  .button.small { padding: 0 14px; font-size: 14px; }
}

/* Features page: one block per area, a coloured marker in the app's category
   tints, and the features as a two-column list. */
.feature-page { padding: 56px 0 112px; }
.feature-page > h1 { margin: 0 0 12px; font-size: clamp(40px, 5vw, 72px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.feature-page > .lede { margin: 0 0 64px; max-width: 46ch; font-size: 21px; line-height: 1.45; color: var(--ink-2); }
.feature-group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px; padding: 40px 0; border-top: 1px solid var(--line); }
.feature-group > header h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.feature-group > header .dot { display: block; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px; }
.feature-group > header p { margin: 8px 0 0; color: var(--ink-2); max-width: 32ch; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.feature-list h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.feature-list p { margin: 0; color: rgba(18, 18, 18, .78); font-size: 16px; }
.pro { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: var(--sand); font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.feature-page .closing { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.feature-page .closing p { margin: 0; color: var(--ink-2); }
@media (max-width: 767px) {
  .feature-page { padding: 32px 0 80px; }
  .feature-page > .lede { margin-bottom: 40px; }
  .feature-group { grid-template-columns: 1fr; padding: 32px 0; }
  .feature-list { grid-template-columns: 1fr; gap: 20px; }
}
