/* ===================================================================
   61DEALS v2 — Design system
   Concept: the site is a departures board. Deals "board" and expire
   like flights. Listings are boarding passes. Verification is a
   check-in process. Split-flap panels, a live ticker, runway-light
   dividers and a boarding timeline carry the theme.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Overpass:wght@400;500;600;700;800&family=Overpass+Mono:wght@500;700&display=swap');

:root {
  --board: #10131A;       /* board casing, header/footer/hero */
  --board-panel: #1B2029; /* flap panel base */
  --board-line: #2B303B;  /* seams / hairlines on dark */
  --floor: #EDEFEE;       /* light content-section background */
  --floor-alt: #E2E5E2;   /* secondary light section */
  --ink: #14161B;         /* body text on light */
  --ink-soft: #565B5F;

  --amber: #FFB020;
  --ice: #63D6DE;
  --alert: #E2494B;

  --font-display: 'Overpass', sans-serif;
  --font-mono: 'Overpass Mono', monospace;

  --max-w: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--floor);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; }

p.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; }
.on-dark p.lede, .on-dark p { color: #A9AFB6; }
.on-dark { color: #F2F3F1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(255,176,32,0.45);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
}
.eyebrow.dark { color: var(--ink); border-color: rgba(20,22,27,0.25); }
.eyebrow.dark::before { background: var(--ink); box-shadow: none; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.9rem 1.5rem;
  border-radius: 3px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color .15s ease;
}
.btn-primary { background: var(--amber); color: #1B1300; }
.btn-primary:hover { transform: translateY(-2px); background: #ffc250; }
.btn-outline-dark { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-outline-dark:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }
.btn-outline-light { border-color: var(--ink); color: var(--ink); }
.btn-outline-light:hover { background: var(--ink); color: var(--floor); transform: translateY(-2px); }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--board);
  border-bottom: 1px solid var(--board-line);
}
.nav {
  max-width: var(--max-w); margin: 0 auto; padding: 0.9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark {
  font-family: var(--font-mono); font-weight: 700;
  background: var(--amber); color: #1B1300;
  padding: 0.25rem 0.5rem; border-radius: 3px; font-size: 0.95rem;
}
.brand-word { font-family: var(--font-display); font-weight: 800; color: #F2F3F1; letter-spacing: 0.01em; font-size: 1.05rem; text-transform: uppercase; }
.brand-tag { display: none; }

.nav-right { display: flex; align-items: center; gap: 2rem; }
.clock {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--ice);
  letter-spacing: 0.04em; display: flex; align-items: center; gap: 0.4rem;
}
.clock::before { content: "●"; font-size: 0.5rem; color: var(--ice); }

.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a {
  font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: #C6CAD1; padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--amber); border-color: var(--amber); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 0.4rem; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; display: block; }

@media (max-width: 820px) {
  .clock { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--board); border-bottom: 1px solid var(--board-line);
    flex-direction: column; align-items: flex-start; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { width: 100%; padding: 1rem 1.5rem; border-bottom: 1px solid var(--board-line); border-left: 3px solid transparent; }
  .nav-links a.active, .nav-links a:hover { border-left-color: var(--amber); background: rgba(255,176,32,0.06); }
}

/* ===================== DARK BOARD SECTIONS ===================== */
.board-section { background: var(--board); color: #fff; }

.hero { padding: 4rem 0 3rem; }
.hero-head { max-width: 62ch; margin-bottom: 3rem; }
.hero-head h1 { color: #fff; margin-bottom: 1rem; }
.hero .cta-row { display: flex; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }

.page-hero { padding: 3.6rem 0 3.4rem; }
.page-hero h1 { color: #fff; margin-bottom: 0.9rem; }

/* ---------- Split-flap board ---------- */
.board-table { border: 1px solid var(--board-line); border-radius: 6px; overflow: hidden; }
.board-row {
  display: grid;
  grid-template-columns: 1.3fr 1.6fr 1fr 1fr;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--board-line);
  align-items: center;
  opacity: 0;
  transform: rotateX(-90deg);
  transform-origin: top;
  animation: flapIn 0.5s ease forwards;
}
.board-row:last-child { border-bottom: none; }
.board-row.head {
  opacity: 1; transform: none; animation: none;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #8A8F98; background: rgba(255,255,255,0.02);
}
.board-row:nth-child(2) { animation-delay: .05s; }
.board-row:nth-child(3) { animation-delay: .15s; }
.board-row:nth-child(4) { animation-delay: .25s; }
.board-row:nth-child(5) { animation-delay: .35s; }
.board-row:nth-child(6) { animation-delay: .45s; }
@keyframes flapIn { to { opacity: 1; transform: rotateX(0deg); } }

.flap {
  position: relative;
  display: inline-block;
  background: linear-gradient(to bottom, #262C38 0%, #262C38 49%, #1A1F28 51%, #1A1F28 100%);
  color: var(--amber);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.03em; text-transform: uppercase;
  padding: 0.4rem 0.6rem;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--board-line);
}
.flap::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: rgba(0,0,0,0.5); transform: translateY(-50%);
}
.flap.ice { color: var(--ice); }
.flap.alert { color: var(--alert); }

@media (max-width: 780px) {
  .board-row { grid-template-columns: 1fr 1fr; row-gap: 0.5rem; }
  .board-row.head { display: none; }
}

/* ---------- Hero flight-status strip ---------- */
.status-strip { display: flex; gap: 2.2rem; margin-top: 2.2rem; flex-wrap: wrap; }
.status-item { text-align: left; }
.status-item .flap { font-size: 1.3rem; padding: 0.5rem 0.8rem; }
.status-item span.label {
  display: block; margin-top: 0.5rem; font-family: var(--font-mono);
  font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8A8F98;
}

/* ---------- Ticker ---------- */
.ticker { background: #0B0D12; border-top: 1px solid var(--board-line); border-bottom: 1px solid var(--board-line); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: tickerScroll 30s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.78rem; color: #C6CAD1;
  padding: 0.8rem 2rem; white-space: nowrap; border-right: 1px solid var(--board-line);
}
.ticker-item b { color: var(--amber); }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; overflow-x: auto; } }

/* ===================== LIGHT SECTIONS ===================== */
.section { padding: 4rem 0; }
.section-alt { background: var(--floor-alt); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2.2rem; flex-wrap: wrap; gap: 1rem; }
.section-head p { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); max-width: 42ch; }

/* ---------- Terminal / category pills ---------- */
.terminal-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.terminal-pill {
  display: flex; align-items: center; gap: 0.6rem;
  border: 1px solid rgba(20,22,27,0.18); border-radius: 999px;
  padding: 0.5rem 1rem 0.5rem 0.5rem; background: #fff;
  transition: border-color .15s ease, transform .15s ease;
}
.terminal-pill:hover { border-color: var(--ink); transform: translateY(-2px); }
.terminal-pill .gate-no {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  background: var(--ink); color: var(--floor); padding: 0.25rem 0.45rem; border-radius: 999px;
}
.terminal-pill .gate-name { font-size: 0.86rem; font-weight: 600; }

/* ---------- Boarding pass list ---------- */
.pass-list { display: flex; flex-direction: column; gap: 1.6rem; }
.pass {
  display: grid;
  grid-template-columns: 1fr 220px;
  background: #fff;
  border: 1px solid rgba(20,22,27,0.14);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
@media (max-width: 760px) { .pass { grid-template-columns: 1fr; } }

.pass-main { padding: 1.6rem 1.8rem; position: relative; }
.pass-main .route {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem;
}
.pass-main h3 { margin-bottom: 0.5rem; }
.pass-main p { color: var(--ink-soft); font-size: 0.92rem; max-width: 52ch; }
.pass-tag {
  display: inline-block; margin-top: 1rem; font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.05em; text-transform: uppercase; border: 1px solid rgba(20,22,27,0.25);
  padding: 0.25rem 0.55rem; border-radius: 3px; color: var(--ink-soft);
}

.pass-stub {
  background: var(--floor-alt);
  border-left: 2px dashed rgba(20,22,27,0.28);
  padding: 1.4rem 1.3rem;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
.pass-stub::before, .pass-stub::after {
  content: ""; position: absolute; left: -9px; width: 18px; height: 18px;
  background: var(--floor); border-radius: 50%; border: 1px solid rgba(20,22,27,0.14);
}
.pass-stub::before { top: -9px; }
.pass-stub::after { bottom: -9px; }
@media (max-width: 760px) {
  .pass-stub { border-left: none; border-top: 2px dashed rgba(20,22,27,0.28); }
  .pass-stub::before, .pass-stub::after { left: auto; top: -9px; }
  .pass-stub::before { left: 20px; }
  .pass-stub::after { left: auto; right: 20px; bottom: auto; top: -9px; }
}

.pnr-label { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.3rem; }
.pnr-code { font-family: var(--font-mono); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.06em; margin-bottom: 1rem; }
.gate-closes { font-family: var(--font-mono); font-size: 0.72rem; color: var(--alert); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 1rem; }
.copy-btn {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--ink); color: var(--floor); border: none; padding: 0.5rem 0.8rem; border-radius: 3px;
  margin-bottom: 0.9rem;
}
.copy-btn:hover { background: var(--amber); color: #1B1300; }
.copy-btn.copied { background: #2E8B57; color: #fff; }
.stub-barcode { display: flex; align-items: flex-end; gap: 1.5px; height: 22px; }
.stub-barcode i { display: block; background: var(--ink); }

/* ---------- Boarding process timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; position: relative; }
@media (max-width: 780px) { .timeline { grid-template-columns: 1fr; } }
.timeline::before {
  content: ""; position: absolute; top: 17px; left: 0; right: 0; height: 1px;
  background: repeating-linear-gradient(to right, rgba(20,22,27,0.35) 0 6px, transparent 6px 12px);
}
@media (max-width: 780px) { .timeline::before { display: none; } }
.tl-step { position: relative; padding-top: 2.6rem; }
.tl-step .marker {
  position: absolute; top: 0; left: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--floor);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem;
}
.tl-step h3 { margin-bottom: 0.4rem; }
.tl-step p { color: var(--ink-soft); font-size: 0.88rem; }

/* ---------- Value / crew cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 780px) { .card-grid { grid-template-columns: 1fr; } }
.info-tile { background: #fff; border: 1px solid rgba(20,22,27,0.14); border-radius: 6px; padding: 1.6rem; }
.info-tile h3 { margin-bottom: 0.5rem; }
.info-tile p { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Flight status stat strip (light) ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 780px) { .stat-strip { grid-template-columns: 1fr; } }
.stat-tile { border-top: 3px solid var(--ink); padding-top: 1rem; }
.stat-tile .flap { font-size: 1.4rem; margin-bottom: 0.6rem; }
.stat-tile p { color: var(--ink-soft); font-size: 0.88rem; }

/* ===================== NEWSLETTER (frequent flyer) ===================== */
.ff-card {
  background: var(--board); color: #fff;
  border-radius: 8px; padding: 2.4rem 2.2rem;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.ff-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: repeating-linear-gradient(to bottom, var(--amber) 0 10px, transparent 10px 20px);
}
.ff-card h2 { color: #fff; font-size: 1.4rem; margin-bottom: 0.4rem; }
.ff-card p { color: #A9AFB6; font-size: 0.88rem; max-width: 38ch; }
.ff-form { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.ff-form input {
  font-family: var(--font-mono); font-size: 0.85rem; padding: 0.85rem 1rem;
  border: 1px solid #3A404C; border-radius: 3px; background: #171B22; color: #fff; min-width: 230px;
}
.ff-form input::placeholder { color: #6B7078; }
.ff-note { width: 100%; font-family: var(--font-mono); font-size: 0.64rem; color: #6B7078; margin-top: 0.6rem; }

/* ===================== FOOTER ===================== */
.runway-divider { display: flex; justify-content: center; gap: 10px; padding: 0.4rem 0; }
.runway-divider i { width: 6px; height: 6px; border-radius: 50%; display: block; }

.site-footer { background: var(--board); color: #C6CAD1; padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin: 2rem 0 2.2rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-desc { color: #8A8F98; font-size: 0.88rem; margin-top: 0.9rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: #6B7078; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.88rem; padding: 0.32rem 0; color: #C6CAD1; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid var(--board-line); padding-top: 1.4rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-family: var(--font-mono); font-size: 0.66rem; color: #6B7078; text-transform: uppercase; letter-spacing: 0.04em;
}

/* ===================== CONTACT: check-in desk ===================== */
.form-field { margin-bottom: 1.3rem; }
.form-field label {
  display: block; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--ink-soft); margin-bottom: 0.4rem;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font-family: var(--font-display); font-size: 0.95rem;
  padding: 0.85rem 0.9rem; border: 1px solid rgba(20,22,27,0.25); border-radius: 3px; background: #fff;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-status { font-family: var(--font-mono); font-size: 0.8rem; margin-top: 1rem; color: #2E8B57; display: none; }
.form-status.show { display: block; }

.desk-list { display: flex; flex-direction: column; gap: 1.1rem; }
.desk-card {
  background: #fff; border: 1px solid rgba(20,22,27,0.14); border-radius: 6px; padding: 1.4rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.desk-card .gate-no {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  background: var(--ink); color: var(--floor); padding: 0.25rem 0.5rem; border-radius: 3px; flex-shrink: 0;
}
.desk-card h4 { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 0.35rem; }
.desk-card .val { font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; }
.desk-card .sub { font-size: 0.84rem; color: var(--ink-soft); margin-top: 0.25rem; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid rgba(20,22,27,0.14); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left; padding: 1.1rem 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--ink);
}
.faq-q .plus { font-family: var(--font-mono); color: var(--ink); transition: transform 0.2s ease; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 220px; }
.faq-a p { color: var(--ink-soft); font-size: 0.92rem; padding-bottom: 1.1rem; max-width: 60ch; }

/* ===================== BLOG: inflight magazine ===================== */
.cover-story {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: center;
  background: #fff; border: 1px solid rgba(20,22,27,0.14); border-radius: 8px; padding: 2.2rem; margin-bottom: 3rem;
}
@media (max-width: 800px) { .cover-story { grid-template-columns: 1fr; } }
.cover-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.07em; background: var(--ink); color: var(--floor); padding: 0.25rem 0.6rem; border-radius: 3px; margin-bottom: 0.9rem;
}
.cover-visual {
  aspect-ratio: 4/3; background: var(--floor-alt); border: 1px solid rgba(20,22,27,0.14); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em;
}
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
@media (max-width: 900px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .article-grid { grid-template-columns: 1fr; } }
.article-card { background: #fff; border: 1px solid rgba(20,22,27,0.14); border-radius: 6px; padding: 1.4rem; }
.article-card .tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-soft); border: 1px solid rgba(20,22,27,0.25); padding: 0.2rem 0.5rem; border-radius: 3px; margin-bottom: 0.7rem;
}
.article-card p { color: var(--ink-soft); font-size: 0.88rem; margin-top: 0.5rem; }
.article-meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.9rem; }
