/* Sales page: a flight booking site look. Loads after site.css. */
:root {
  --sky1: #0a2342;
  --sky2: #0f4c81;
  --sky3: #1b86a8;
  --sun: #ffb347;
  --sun-d: #f59e1b;
  --ink-on-sky: #f4f8fc;
}
.fly { background: var(--paper); }

/* top bar sits on the sky */
.fly .bar { padding-top: 16px; padding-bottom: 8px; position: relative; z-index: 2; }
.fly .brand, .fly .bar nav a.plain { color: var(--ink-on-sky); }
.fly .bar nav a.plain:hover { color: #fff; text-decoration: underline; }
.fly .bar nav a.plain { opacity: 0.9; }
.fly .btn.go { background: var(--sun); color: #1b1200; border-color: var(--sun); }
.fly .btn.go:hover { background: #ffc878; color: #1b1200; }

/* hero */
.sky {
  position: relative; overflow: hidden; color: var(--ink-on-sky);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 190, 120, 0.35), transparent 60%),
    linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 55%, var(--sky3) 100%);
  padding-bottom: 70px;
}
.sky::before, .sky::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(26px); opacity: 0.22; background: #fff;
}
.sky::before { width: 340px; height: 90px; left: -60px; top: 150px; }
.sky::after { width: 420px; height: 110px; right: -90px; top: 330px; }
.path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.5; }
.skycontent { position: relative; z-index: 1; padding-top: 28px; display: grid; gap: 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun); }
.sky h1 { color: #fff; font-size: clamp(36px, 8.5vw, 58px); line-height: 1.02; margin: 10px 0 14px; letter-spacing: -0.03em; }
.sky h1 span { color: var(--sun); display: block; }
.sky .lede { color: #d5e5f3; font-size: clamp(18px, 3.4vw, 21px); max-width: 33em; margin: 0; }

/* booking card */
.book {
  background: var(--card); color: var(--ink); border-radius: 22px; padding: 18px; max-width: 560px;
  box-shadow: 0 24px 60px rgba(3, 14, 30, 0.45); border: 1px solid rgba(255, 255, 255, 0.5);
}
.book .legs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.leg { border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.leg small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: var(--muted); }
.leg b { display: block; font-size: 17px; color: var(--navy); line-height: 1.2; overflow-wrap: anywhere; }
.leg .code { font-size: 26px; font-weight: 900; letter-spacing: 0.04em; color: var(--teal-d); line-height: 1.1; }
.swap { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--paper); display: grid; place-items: center; font-size: 18px; }
.book .row2 { margin-top: 12px; display: grid; gap: 10px; }
.book .lab { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 6px; display: block; }
.rides { display: flex; flex-wrap: wrap; gap: 6px; }
.rides span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 14px; font-weight: 700; color: var(--navy); }
.classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.classes button {
  min-height: 46px; border-radius: 12px; border: 2px solid var(--line); background: transparent; color: var(--ink);
  font: inherit; font-weight: 800; cursor: pointer; padding: 4px 6px;
}
.classes button[aria-pressed="true"] { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.classes button:focus-visible { outline: 3px solid var(--sun-d); outline-offset: 2px; }
.classnote { margin: 8px 2px 0; font-size: 14px; color: var(--muted); min-height: 2.8em; }
.bigbtn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 12px;
  min-height: 64px; padding: 10px 18px; border-radius: 16px; background: var(--sun); color: #1b1200;
  font-size: clamp(18px, 4.6vw, 24px); font-weight: 900; letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; text-align: center;
  box-shadow: 0 8px 0 #c97d0a, 0 14px 24px rgba(201, 125, 10, 0.35); transition: transform 0.08s, box-shadow 0.08s;
}
.bigbtn:hover { background: #ffc069; }
.bigbtn:active { transform: translateY(5px); box-shadow: 0 3px 0 #c97d0a; }
.bigbtn:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }
.fine { margin: 14px 2px 0; text-align: center; font-size: 13px; color: var(--muted); }

.heroshot { display: none; }
@media (min-width: 900px) {
  .skycontent { grid-template-columns: 1.1fr 0.9fr; align-items: start; gap: 48px; padding-top: 48px; }
  .heroshot { display: block; justify-self: center; width: 300px; transform: rotate(3deg); }
  .heroshot img { border-radius: 30px; border: 7px solid #061a31; box-shadow: 0 30px 60px rgba(3, 14, 30, 0.55); }
}

/* stats strip hangs off the sky like a ticket */
.strip { position: relative; z-index: 2; margin-top: -40px; }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.strip li { padding: 16px 14px; text-align: center; border-bottom: 1px dashed var(--line); }
.strip li:nth-child(odd) { border-right: 1px dashed var(--line); }
.strip li:nth-last-child(-n+2) { border-bottom: 0; }
.strip b { display: block; font-size: clamp(26px, 6vw, 36px); line-height: 1; color: var(--teal-d); letter-spacing: -0.02em; }
.strip span { color: var(--muted); font-size: 14px; font-weight: 600; }
@media (min-width: 760px) {
  .strip ul { grid-template-columns: repeat(4, 1fr); }
  .strip li { border-bottom: 0 !important; border-right: 1px dashed var(--line); }
  .strip li:last-child { border-right: 0; }
}

/* destinations */
.dests { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .dests { grid-template-columns: repeat(3, 1fr); } }
.dest {
  border-radius: 18px; padding: 14px 14px 16px; color: #fff; min-height: 150px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow);
}
.dest::before { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; right: -40px; top: -50px; background: rgba(255, 255, 255, 0.16); }
.dest .iata { position: absolute; top: 12px; left: 14px; font-weight: 900; letter-spacing: 0.1em; font-size: 14px; opacity: 0.9; }
.dest h3 { margin: 0; font-size: 21px; line-height: 1.1; }
.dest p { margin: 2px 0 0; font-size: 14px; opacity: 0.92; }
.dest .tag { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(0, 0, 0, 0.28); padding: 3px 9px; border-radius: 999px; align-self: flex-start; }
.d1 { background: linear-gradient(150deg, #e0526f, #7a2a63); }
.d2 { background: linear-gradient(150deg, #2aa6c6, #12507a); }
.d3 { background: linear-gradient(150deg, #e08a2b, #8f3b2a); }
.d4 { background: linear-gradient(150deg, #18a37a, #0d5a55); }
.d5 { background: linear-gradient(150deg, #6a5fd6, #2c2b78); }
.d6 { background: linear-gradient(150deg, #3f8fe0, #1b3f8f); }

/* departures board */
.boardwrap { display: grid; gap: 26px; align-items: center; }
@media (min-width: 860px) { .boardwrap { grid-template-columns: 1.1fr 0.9fr; gap: 44px; } }
.board { background: #0b1522; color: #f1e9c8; border-radius: 18px; padding: 8px 14px 14px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; box-shadow: var(--shadow); border: 3px solid #1e2d42; }
.board h3 { margin: 10px 0 8px; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: #ffb347; }
.board .r { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 9px 0; border-top: 1px dashed #2b3c55; font-size: 15px; }
.board .r:first-of-type { border-top: 0; }
.board .st { font-weight: 800; letter-spacing: 0.08em; }
.board .done { color: #5fe0a0; }
.board .go { color: #ffb347; }
.board .meta { color: #8aa0bb; font-size: 12px; }

/* boarding passes */
.passes { display: grid; gap: 16px; }
@media (min-width: 860px) { .passes { grid-template-columns: repeat(3, 1fr); } }
.pass { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pass .top { background: var(--navy); color: var(--paper); padding: 10px 16px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.pass .body { padding: 16px; border-bottom: 2px dashed var(--line); }
.pass .body b { display: block; font-size: 22px; color: var(--navy); line-height: 1.15; margin-bottom: 6px; }
.pass .body span { color: var(--muted); }
.pass .foot { padding: 10px 16px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.pass::before, .pass::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); top: calc(100% - 52px); }
.pass::before { left: -10px; border-right: 1px solid var(--line); }
.pass::after { right: -10px; border-left: 1px solid var(--line); }
section.tint .pass::before, section.tint .pass::after { background: var(--card); }

/* final CTA */
.cta-sky { background: linear-gradient(180deg, var(--sky2), var(--sky1)); color: #fff; text-align: center; padding: 64px 0 70px; }
.cta-sky h2 { color: #fff; }
.cta-sky .sub { color: #d5e5f3; margin-left: auto; margin-right: auto; }
.cta-sky .bigbtn { max-width: 560px; margin: 8px auto 0; }
.cta-sky .fine { color: #b9cfe4; }

@media (prefers-reduced-motion: no-preference) {
  .plane { animation: drift 9s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translate(0, 0) rotate(-8deg); } to { transform: translate(14px, -10px) rotate(-2deg); } }
}

@media (max-width: 360px) {
  .book { padding: 14px; }
  .book .legs { gap: 6px; }
  .leg { padding: 8px 9px; }
  .leg b { font-size: 14px; }
  .leg .code { font-size: 22px; }
  .swap { width: 30px; height: 30px; font-size: 15px; }
}

/* tasks first: the hero card is a task list with the trip as the bonus */
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo li { display: flex; align-items: center; gap: 12px; border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.todo .box { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--muted); position: relative; }
.todo .d .box { background: var(--teal); border-color: var(--teal); }
.todo .d .box::after { content: ""; position: absolute; left: 8px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(40deg); }
.todo .t { flex: 1; min-width: 0; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.todo .d .t { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--muted); }
.todo .c { flex: none; font-weight: 900; color: var(--teal-d); }
.bonusrow { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--navy); color: var(--paper); }
.bonusrow small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--gold); }
.bonusrow b { font-size: 17px; line-height: 1.2; }
.bonusrow .code { flex: none; font-size: 13px; font-weight: 900; letter-spacing: 0.08em; opacity: 0.9; }
.book .lab + .todo { margin-top: 2px; }
.book.wide { max-width: none; }
.book.wide .lab { margin-top: 4px; }
.book.wide .rides { margin-bottom: 4px; }
.phone { width: min(280px, 80vw); margin: 0 auto; border-radius: 26px; border: 6px solid var(--navy); box-shadow: var(--shadow); background: #fff; }
.cap { text-align: center; color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.cap b { color: var(--ink); }
@media (max-width: 360px) {
  .bonusrow .code { display: none; }
  .todo li { padding: 8px 10px; gap: 9px; }
}

/* headline: Ta-da! Task done. with the promise underneath */
.sky h1 em { font-style: normal; color: var(--sun); }
.sky h1 span { color: #fff; font-size: 0.46em; line-height: 1.2; letter-spacing: -0.01em; font-weight: 800; margin-top: 14px; }

/* mobile: a boarding pass at the top of the hero */
.bp { position: relative; background: var(--card); color: var(--ink); border-radius: 18px; margin: 4px 0 20px; box-shadow: 0 16px 36px rgba(3, 14, 30, 0.4); overflow: hidden; max-width: 560px; }
.bph { display: flex; justify-content: space-between; gap: 8px; background: var(--navy); color: var(--paper); padding: 8px 14px; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.bpb { padding: 12px 14px 14px; border-bottom: 2px dashed var(--line); position: relative; }
.bpb::before, .bpb::after { content: ""; position: absolute; bottom: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--sky2); }
.bpb::before { left: -10px; }
.bpb::after { right: -10px; }
.bp small { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; color: var(--muted); }
.bp .route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.bp .route .to { text-align: right; }
.bp .cd { display: block; font-size: 34px; font-weight: 900; letter-spacing: 0.03em; line-height: 1; color: var(--teal-d); }
.bp .route b { display: block; font-size: 14px; color: var(--navy); }
.bp .arr { font-size: 22px; color: var(--muted); }
.bp .meta3 { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bp .meta3 b { font-size: 14px; color: var(--navy); }
.bpf { height: 34px; margin: 10px 14px 12px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px); opacity: 0.8; border-radius: 2px; }
@media (max-width: 899px) { .bonusrow { display: none; } }
@media (min-width: 900px) { .bp { display: none; } }
