/* Flock — marketing site
   Tokens mirror mobile/src/lib/flock/theme.ts: warm editorial, sand canvas,
   burnt coral, ink navy. DM Serif Text for headlines, Schibsted Grotesk for
   everything else. */

:root {
  --canvas: #f7f0e5;
  --canvas-deep: #efe3d2;
  --surface: #fffbf5;
  --surface-alt: #fdf6ec;
  --coral: #df4218;
  --coral-bright: #ff6b35;
  --coral-deep: #a82e0d;
  --coral-soft: #fbe4d6;
  --coral-border: #f0c4ac;
  --coral-wash: #fcefe6;
  --navy: #0d1626;
  --navy-soft: #4a5468;
  --navy-faint: #8c93a2;
  --hairline: #e8dcc9;
  --perforation: #e0d2bc;
  --sage: #5e7a5b;
  --sage-soft: #e6ebdf;
  --teal: #1f6e68;
  --plum: #a63c63;

  --serif: "DM Serif Text", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-card: 26px;
  --r-panel: 20px;
  --r-stub: 9px;
  --r-pill: 999px;

  --shadow-card: 0 8px 18px rgba(122, 69, 32, 0.09), 0 1px 0 rgba(122, 69, 32, 0.04);
  --shadow-hero: 0 12px 26px rgba(168, 51, 15, 0.17);
  --shadow-stub: 0 3px 6px rgba(122, 69, 32, 0.1);

  --gutter: clamp(20px, 5vw, 48px);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── texture ─────────────────────────────────────────────────────────────── */

.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  mix-blend-mode: multiply;
}

/* ── header ──────────────────────────────────────────────────────────────── */

.site-header {
  position: relative;
  z-index: 2;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* the logo is the bird itself, on nothing: no tile, no tint */
.brand-tile {
  display: block;
  height: 52px;
  width: 52px;
  margin: -6px 0;
}

.brand-tile img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(122, 69, 32, 0.18));
}

.brand-name {
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: -0.2px;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 26px;
}

.site-nav a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: var(--navy-soft);
  transition: color 0.18s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--coral);
}

@media (max-width: 560px) {
  .site-nav {
    display: none;
  }
}

/* ── hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, #f9c4a2 0%, #f7dac2 42%, var(--canvas) 100%);
}

.hero-contours {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.085;
  color: var(--coral-deep);
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(56px, 8vw, 110px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 251, 245, 0.78);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(6px);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--coral);
  box-shadow: var(--shadow-stub);
}

.eyebrow svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(42px, 6.2vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--coral);
}

.hero-sub {
  margin-top: 20px;
  max-width: 46ch;
  font-size: clamp(16.5px, 1.35vw, 19px);
  line-height: 1.5;
  color: var(--navy-soft);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px 10px 14px;
  min-height: 54px;
  border-radius: 15px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 20px rgba(13, 22, 38, 0.18);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(13, 22, 38, 0.22);
}

.store-badge:active {
  transform: translateY(0) scale(0.98);
}

.store-badge svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store-badge span {
  display: block;
  line-height: 1.1;
}

.store-badge .kicker {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
  opacity: 0.78;
}

.store-badge .store {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

.hero-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--navy-faint);
}

/* mascot + floating boarding pass */

/* the bird owns the left two-thirds; the ticket tucks into the bottom-right
   corner and only grazes its tail, so the character stays fully readable */
.hero-visual {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: start;
  min-height: 440px;
  padding-left: 4%;
}

.mascot {
  position: relative;
  z-index: 1;
  width: min(290px, 58%);
  height: auto;
  filter: drop-shadow(0 22px 28px rgba(122, 69, 32, 0.22));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.ticket {
  position: absolute;
  z-index: 2;
  width: 236px;
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: var(--shadow-hero);
  overflow: hidden;
  font-size: 12.5px;
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 18px 12px;
  background: var(--coral);
  color: #fff;
}

.ticket-head .label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
}

.ticket-head .dest {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.4px;
  line-height: 1;
  margin-top: 4px;
}

.ticket-head .code {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.4px;
}

.ticket-rows {
  padding: 6px 18px 4px;
}

.ticket-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
}

.ticket-row:last-child {
  border-bottom: 0;
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex: none;
}

.ticket-row .who {
  flex: 1;
  min-width: 0;
}

.ticket-row .who b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

.ticket-row .who span {
  display: block;
  font-size: 11px;
  color: var(--navy-faint);
}

.ticket-row .amt {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.2px;
}

.ticket-perf {
  height: 0;
  border-top: 2px dashed var(--perforation);
  margin: 0 14px;
}

.ticket-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 18px 16px;
}

.ticket-foot .label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--navy-faint);
}

.ticket-foot .total {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.6px;
  line-height: 1;
}

.ticket-foot .total small {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--navy-faint);
  margin-left: 4px;
  letter-spacing: 0;
}

.ticket--result {
  right: 0;
  bottom: 0;
  transform: rotate(-3deg);
  animation: drift 7s ease-in-out infinite;
}

@keyframes drift {
  0%,
  100% {
    transform: rotate(-3deg) translateY(0);
  }
  50% {
    transform: rotate(-2.2deg) translateY(-6px);
  }
}

.chat-bubble {
  position: absolute;
  z-index: 0;
  right: 0;
  top: 6%;
  max-width: 190px;
  padding: 10px 14px;
  border-radius: 18px 18px 6px 18px;
  background: rgba(255, 251, 245, 0.92);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-stub);
  font-size: 13px;
  line-height: 1.35;
  color: var(--navy-soft);
  transform: rotate(-2deg);
}

.chat-bubble b {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--navy-faint);
  margin-bottom: 2px;
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1,
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .store-row {
    justify-content: center;
  }

  .hero-visual {
    min-height: 400px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    padding-left: 0;
  }

  .ticket {
    width: 224px;
  }

  .chat-bubble {
    top: 0;
  }
}

@media (max-width: 480px) {
  .hero-visual {
    min-height: 360px;
  }

  .mascot {
    width: 52%;
  }

  .ticket {
    width: 200px;
  }

  .chat-bubble {
    max-width: 150px;
    font-size: 12px;
  }
}

/* ── how it works: editorial intro + itinerary ledger ────────────────────── */

.how {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.how-intro h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.how-intro p {
  margin-top: 18px;
  font-size: 15.5px;
  color: var(--navy-soft);
  max-width: 38ch;
}

.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.ledger-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 18px 20px;
  align-items: start;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--hairline);
}

.ledger-num {
  padding-top: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
}

.ledger-text h3 {
  font-size: 23px;
  letter-spacing: -0.1px;
  line-height: 1.15;
}

.ledger-text p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--navy-soft);
  max-width: 44ch;
}

.ledger-art {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
  white-space: nowrap;
}

/* the three airport stubs, a date chip, a price line: small artefacts lifted
   straight from the app so the page feels like the product, not a template */

.tag {
  display: inline-block;
  padding: 5px 9px 4px;
  border-radius: var(--r-stub);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #fff;
  box-shadow: var(--shadow-stub);
}

.tag--p1 {
  background: var(--coral);
  transform: rotate(-4deg);
}

.tag--p2 {
  background: var(--teal);
  transform: rotate(2deg) translateY(-2px);
}

.tag--p3 {
  background: var(--plum);
  transform: rotate(-1deg) translateY(1px);
}

.date-chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy-soft);
  box-shadow: var(--shadow-stub);
}

.price-line {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--r-stub);
  background: var(--sage-soft);
  color: var(--sage);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

.price-line b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
  color: var(--navy);
  margin-right: 6px;
}

@media (max-width: 860px) {
  .how-grid {
    grid-template-columns: 1fr;
  }

  .how-intro p {
    max-width: none;
  }

  .ledger {
    margin-top: 8px;
  }
}

@media (max-width: 560px) {
  .ledger-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .ledger-art {
    grid-column: 2;
    padding-top: 0;
    flex-wrap: wrap;
    white-space: normal;
  }
}

/* ── inner pages (privacy, terms, support) ───────────────────────────────── */

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.page-hero .hero-wash {
  background: linear-gradient(180deg, #f8d3bb 0%, var(--canvas) 100%);
}

.page-hero .wrap {
  padding-top: clamp(28px, 5vw, 56px);
  padding-bottom: clamp(28px, 5vw, 56px);
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.page-meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--navy-faint);
}

.page-body {
  flex: 1;
  padding-top: 12px;
  padding-bottom: clamp(56px, 8vw, 104px);
}

.doc {
  max-width: 720px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(232, 220, 201, 0.7);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--navy-soft);
}

.doc h2 {
  color: var(--navy);
  font-size: 24px;
  letter-spacing: -0.1px;
  margin-top: 32px;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc h3 {
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.1px;
  margin-top: 22px;
}

.doc p + p,
.doc h3 + p,
.doc h2 + p,
.doc ul + p,
.doc p + ul {
  margin-top: 12px;
}

.doc ul {
  margin: 0;
  padding-left: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.doc li::marker {
  color: var(--coral);
}

.doc .caps {
  font-size: 14px;
  letter-spacing: 0.1px;
}

.doc .closing {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--navy);
}

.doc a {
  color: var(--coral);
  font-weight: 600;
}

.doc a:hover {
  text-decoration: underline;
}

.placeholder {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-panel);
  background: var(--coral-wash);
  border: 1px dashed var(--coral-border);
  color: var(--coral-deep);
  font-size: 14px;
}

.placeholder img {
  height: 44px;
  width: auto;
  flex: none;
}

/* ── support: contact form + FAQ ─────────────────────────────────────────── */

.contact-card {
  max-width: 720px;
  margin: 0 auto;
}

.support-grid {
  display: block;
}

.contact-form {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--navy-faint);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15.5px;
  color: var(--navy);
  background: var(--surface-alt);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234a5468' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--navy-faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--surface);
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-soft);
}

/* honeypot: off-canvas, not display:none, so bots still "see" it */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 4px;
}

.btn-primary {
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1px;
  color: #fff;
  background: var(--coral);
  border: 0;
  border-radius: var(--r-pill);
  padding: 14px 26px;
  cursor: pointer;
  box-shadow: var(--shadow-hero);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.15s ease;
}

.btn-primary:hover {
  background: var(--coral-deep);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.form-status {
  font-size: 14px;
  color: var(--navy-soft);
  min-height: 1.4em;
}

.form-status.is-ok {
  color: var(--sage);
  font-weight: 600;
}

.form-status.is-error {
  color: var(--coral-deep);
}

.contact-alt {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--navy-faint);
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* ── footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--hairline);
  background: var(--canvas-deep);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-soft);
}

.footer-links a:hover {
  color: var(--coral);
}

.copyright {
  width: 100%;
  font-size: 12.5px;
  color: var(--navy-faint);
}

@media (prefers-reduced-motion: reduce) {
  .mascot,
  .ticket--result {
    animation: none;
  }

  .store-badge {
    transition: none;
  }
}
