/* ============================================================
   instantpnr.com — TERMINAL / DEPARTURES identity  (v1.0)
   Homepage components. Light architectural canvas; the dark
   split-flap departure board is an object on it, not the page.
   Signage yellow = action · Gate blue = information.
   ============================================================ */

/* ---------- status ticker (under nav) ---------- */
.ticker {
    background: var(--tarmac); color: #d7dae1; overflow: hidden;
    border-bottom: 2px solid var(--ink); height: 34px; display: flex; align-items: center;
}
.ticker-track {
    display: flex; gap: 0; white-space: nowrap; will-change: transform;
    animation: ticker-scroll 46s linear infinite;
}
.ticker span {
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em;
    text-transform: uppercase; padding: 0 26px; position: relative;
}
.ticker span::after {
    content: '▸'; position: absolute; right: -6px; color: var(--signage); font-size: 10px;
}
.ticker b { color: var(--signage); font-weight: 600; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- hero ---------- */
.t-hero { background: var(--concrete); border-bottom: 2px solid var(--ink); position: relative; overflow: hidden; }
.t-hero::before { /* faint runway centerline */
    content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px;
    background: repeating-linear-gradient(90deg, rgba(22,24,29,.06) 0 42px, transparent 42px 74px);
    pointer-events: none;
}
.t-hero-grid {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px;
    padding: 72px 0 92px; align-items: start; position: relative;
}

.t-sign-row { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.t-sign {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-disp); font-weight: 600; font-size: 15px;
    letter-spacing: .1em; text-transform: uppercase;
    padding: 6px 14px; border: 2px solid var(--ink); border-radius: 6px;
}
.t-sign--yellow { background: var(--signage); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.t-sign--white  { background: #fff; color: var(--ink); }
.t-sign .arr { font-size: 17px; line-height: 0; }

.t-hero h1 {
    text-transform: uppercase; color: var(--ink);
    font-size: clamp(2.6rem, 5.2vw, 4.6rem); margin-bottom: 20px;
}
.t-hero h1 .sub-line { display: block; }

/* split-flap headline word */
.flap-word { display: inline-flex; gap: 5px; vertical-align: baseline; transform: translateY(3px); }
.flap-word .tile {
    display: inline-grid; place-items: center; position: relative;
    background: var(--tarmac); color: #fff; border-radius: 5px;
    width: .82em; height: 1.08em; font-family: var(--font-disp); font-weight: 700;
    box-shadow: 0 3px 0 rgba(22,24,29,.35);
    animation: tile-in .5s cubic-bezier(.2,.9,.3,1.2) backwards;
}
.flap-word .tile::after { /* Solari hairline */
    content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px;
    background: rgba(0,0,0,.55); transform: translateY(-50%);
}
.flap-word .tile:nth-child(1) { animation-delay: .10s; }
.flap-word .tile:nth-child(2) { animation-delay: .17s; }
.flap-word .tile:nth-child(3) { animation-delay: .24s; }
.flap-word .tile:nth-child(4) { animation-delay: .31s; }
.flap-word .tile:nth-child(5) { animation-delay: .38s; }
.flap-word .tile:nth-child(6) { animation-delay: .45s; }
.flap-word .tile:nth-child(7) { animation-delay: .52s; }
.flap-word .tile:nth-child(8) { animation-delay: .59s; }
@keyframes tile-in { from { transform: rotateX(88deg); opacity: 0; } to { transform: rotateX(0); opacity: 1; } }

.t-lead { font-size: 1.14rem; color: var(--text-muted); max-width: 520px; margin-bottom: 28px; }

.t-chips { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; max-width: 520px; margin-bottom: 30px; }
.t-chip {
    display: flex; align-items: center; gap: 10px; background: #fff;
    border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 13px;
    font-size: 14px; font-weight: 600; color: var(--ink);
}
.t-chip .go { color: var(--primary); font-weight: 800; font-size: 15px; }

.t-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.t-stats {
    display: flex; gap: 0; border: 2px solid var(--ink); border-radius: 8px;
    background: #fff; overflow: hidden; max-width: 560px;
}
.t-stat { flex: 1; padding: 13px 16px; border-right: 2px solid var(--ink); }
.t-stat:last-child { border-right: 0; }
.t-stat b { display: block; font-family: var(--font-mono); font-weight: 600; font-size: 17px; color: var(--ink); }
.t-stat span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }

/* ---------- the departure board ---------- */
.board-stack { position: relative; }
.board {
    background: var(--tarmac); border: 2px solid var(--ink); border-radius: 14px;
    padding: 18px 18px 56px; color: #e8eaef;
    box-shadow: 8px 8px 0 rgba(22,24,29,.22);
}
.board-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.board-title {
    font-family: var(--font-disp); font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; font-size: 17px; color: var(--signage);
    display: flex; align-items: center; gap: 10px;
}
.board-live {
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
    color: var(--ready); display: inline-flex; align-items: center; gap: 6px;
}
.board-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ready); box-shadow: 0 0 0 3px rgba(31,184,114,.25); animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.board-row {
    display: grid; grid-template-columns: 50px 82px 1fr 108px; gap: 10px;
    align-items: center; padding: 9px 8px; border-top: 1px solid #262930;
    font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
}
.board-row--head {
    border-top: 0; color: #767c89; font-size: 10px; letter-spacing: .18em;
    text-transform: uppercase; padding-bottom: 6px;
}
.board-row .rt { color: #fff; letter-spacing: .04em; }
.board-row .rt i { font-style: normal; color: var(--signage); padding: 0 2px; }
.board-status { text-align: right; font-size: 11px; letter-spacing: .1em; }
.board-status.ok   { color: var(--ready); }
.board-status.sent { color: #767c89; }

/* split-flap status cell */
.flap-cell { position: relative; height: 16px; perspective: 300px; }
.flap-cell .flap {
    position: absolute; inset: 0; text-align: right; backface-visibility: hidden;
    transform-origin: 50% 0; letter-spacing: .1em; font-size: 11px;
}
.flap-cell .f1 { color: var(--signage); animation: flap-a 6.5s steps(1,end) infinite; }
.flap-cell .f2 { color: var(--ready);   animation: flap-b 6.5s steps(1,end) infinite; }
.flap-cell--alt .f1 { animation-delay: 2.6s; }
.flap-cell--alt .f2 { animation-delay: 2.6s; }
@keyframes flap-a {
    0%   { transform: rotateX(0);      opacity: 1; }
    46%  { transform: rotateX(0);      opacity: 1; }
    50%  { transform: rotateX(-92deg); opacity: 0; }
    96%  { transform: rotateX(-92deg); opacity: 0; }
    100% { transform: rotateX(0);      opacity: 1; }
}
@keyframes flap-b {
    0%   { transform: rotateX(92deg);  opacity: 0; }
    46%  { transform: rotateX(92deg);  opacity: 0; }
    50%  { transform: rotateX(0);      opacity: 1; }
    96%  { transform: rotateX(0);      opacity: 1; }
    100% { transform: rotateX(92deg);  opacity: 0; }
}

.board-row--you {
    background: var(--signage); color: var(--ink); border-radius: 7px;
    border-top: 0; margin-top: 8px; font-weight: 600;
}
.board-row--you .rt, .board-row--you .board-status { color: var(--ink); }
.board-row--you .board-status::after { content: '▼'; margin-left: 6px; font-size: 9px; animation: point-down 1.4s ease-in-out infinite; display: inline-block; }
@keyframes point-down { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* ---------- the counter (search form) ---------- */
.counter {
    background: #fff; border: 2px solid var(--ink); border-radius: 12px;
    margin: -46px 20px 0; position: relative; overflow: hidden;
    box-shadow: 8px 8px 0 var(--ink);
}
.counter-head {
    background: var(--signage); border-bottom: 2px solid var(--ink);
    padding: 11px 18px; display: flex; align-items: center; justify-content: space-between;
}
.counter-head b {
    font-family: var(--font-disp); font-weight: 700; font-size: 18px;
    letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.counter-head .ref { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; color: rgba(22,24,29,.65); }
.counter-body { padding: 20px 18px 18px; }

.counter .trip-toggle { display: flex; gap: 0; border: 2px solid var(--ink); border-radius: 7px; overflow: hidden; margin-bottom: 16px; }
.counter .trip-toggle input { display: none; }
.counter .trip-toggle label {
    flex: 1; text-align: center; padding: 9px 6px; cursor: pointer;
    font-family: var(--font-disp); font-weight: 600; font-size: 15px;
    letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
    background: #fff; transition: all .12s;
}
.counter .trip-toggle label + input + label { border-left: 2px solid var(--ink); }
.counter .trip-toggle input:checked + label { background: var(--ink); color: var(--signage); }

.counter .field { position: relative; margin-bottom: 13px; }
.counter .field label {
    display: block; font-family: var(--font-mono); font-size: 10px;
    letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 5px; font-weight: 600;
}
.counter .field input[type="text"],
.counter .field input[type="date"] {
    width: 100%; padding: 11px 12px; border: 1.5px solid var(--border);
    border-radius: 7px; font-family: 'Barlow', sans-serif; font-size: 15px; font-weight: 600;
    color: var(--ink); background: var(--bg-soft); outline: none; transition: border .12s, box-shadow .12s;
    box-sizing: border-box;
}
.counter .field input:focus { border-color: var(--ink); background: #fff; box-shadow: 3px 3px 0 rgba(22,24,29,.14); }
.counter .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.counter .field-row .field { margin-bottom: 13px; }
.counter .ac-results { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; }
.counter .btn-block { justify-content: center; margin-top: 4px; font-size: 16px; padding: 15px 20px; }
.counter-note {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
    text-align: center; color: var(--text-muted); margin: 13px 0 0;
}
.counter-note b { color: var(--ink); font-weight: 600; }

/* ---------- section scaffolding ---------- */
.t-section { padding: 88px 0; }
.t-section--soft { background: var(--bg-soft); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.t-head { max-width: 680px; margin: 0 auto 46px; text-align: center; }
.t-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}
.t-eyebrow::before { content: '▸'; color: var(--signage); text-shadow: 0 0 0 var(--ink); -webkit-text-stroke: .6px var(--ink); }
.t-head h2 { text-transform: uppercase; }
.t-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- gates (how it works) ---------- */
.gates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gate { background: #fff; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 5px 5px 0 rgba(22,24,29,.16); }
.gate-plate {
    background: var(--signage); border-bottom: 2px solid var(--ink);
    padding: 12px 18px; display: flex; align-items: baseline; justify-content: space-between;
}
.gate-plate b { font-family: var(--font-disp); font-weight: 700; font-size: 26px; letter-spacing: .06em; color: var(--ink); text-transform: uppercase; }
.gate-plate span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: rgba(22,24,29,.6); }
.gate-body { padding: 22px 20px 24px; }
.gate-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.gate-body p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* ---------- destinations (wayfinding tiles) ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 13px; max-width: 1100px; margin: 0 auto; }
.dest {
    display: flex; align-items: center; gap: 12px; background: #fff;
    border: 1.5px solid var(--border); border-left: 4px solid var(--primary);
    border-radius: 8px; padding: 13px 15px; color: var(--ink);
    font-weight: 600; font-size: 14.5px; transition: all .13s;
}
.dest .flag { font-size: 21px; line-height: 1; }
.dest::after { content: '→'; margin-left: auto; color: var(--primary); font-weight: 800; opacity: 0; transform: translateX(-5px); transition: all .13s; }
.dest:hover { border-color: var(--ink); border-left-color: var(--signage); transform: translateY(-2px); box-shadow: 3px 3px 0 rgba(22,24,29,.14); color: var(--ink); }
.dest:hover::after { opacity: 1; transform: translateX(0); }
.t-more { text-align: center; margin-top: 26px; }
.t-more a { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; font-weight: 600; }

/* ---------- why us (pictogram plates) ---------- */
.plates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plate { background: #fff; border: 1.5px solid var(--border); border-radius: 11px; padding: 24px 22px; transition: all .13s; }
.plate:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 4px 4px 0 rgba(22,24,29,.14); }
.plate .pic {
    width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px;
    background: var(--signage); border: 2px solid var(--ink); border-radius: 9px; margin-bottom: 16px;
}
.plate h3 { font-size: 1.08rem; margin-bottom: 7px; }
.plate p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ---------- fare board (pricing) ---------- */
.fareboard {
    background: var(--tarmac); border: 2px solid var(--ink); border-radius: 16px;
    padding: 30px 26px 30px; box-shadow: 8px 8px 0 rgba(22,24,29,.2);
}
.fareboard-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 6px 20px; color: var(--signage);
}
.fareboard-head b { font-family: var(--font-disp); font-weight: 700; font-size: 19px; letter-spacing: .12em; text-transform: uppercase; }
.fareboard-head span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: #767c89; text-transform: uppercase; }
.fares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fare {
    background: #fff; border: 2px solid var(--ink); border-radius: 11px;
    padding: 24px 22px; display: flex; flex-direction: column; position: relative;
}
.fare--popular { box-shadow: 0 0 0 3px var(--signage); }
.fare-pop {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--signage); border: 2px solid var(--ink); border-radius: 5px;
    font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .14em;
    padding: 3px 10px; text-transform: uppercase; white-space: nowrap;
}
.fare h3 { font-family: var(--font-disp); text-transform: uppercase; letter-spacing: .05em; font-size: 1.25rem; margin-bottom: 2px; }
.fare .tagline { color: var(--text-muted); font-size: 13px; margin-bottom: 14px; }
.fare .price { display: flex; align-items: baseline; gap: 7px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1.5px dashed var(--border); }
.fare .amount { font-family: var(--font-mono); font-weight: 600; font-size: 34px; color: var(--ink); letter-spacing: -.02em; }
.fare .cur { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); letter-spacing: .1em; }
.fare ul { list-style: none; margin: 0 0 20px; padding: 0; flex: 1; }
.fare li { font-size: 14px; padding: 5px 0 5px 22px; position: relative; color: var(--text); }
.fare li::before { content: '✓'; position: absolute; left: 0; color: var(--ready); font-weight: 800; }
.fare-note { text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: #b9bdc7; margin: 22px 0 0; }
.fare-note b { color: var(--signage); font-weight: 600; }

/* ---------- reviews (boarding-stub restyle of shared marquee) ---------- */
body.page-home .review {
    background: #fff; border: 1.5px solid var(--border); border-radius: 10px;
    box-shadow: none; position: relative; overflow: hidden;
}
body.page-home .review::before {
    content: 'PASSENGER REVIEW'; display: block;
    font-family: var(--font-mono); font-size: 9px; letter-spacing: .22em;
    color: var(--text-light); margin-bottom: 8px;
}
body.page-home .review:hover { border-color: var(--ink); }
body.page-home .review .stars { color: var(--accent-dark); letter-spacing: 2px; }
body.page-home .review-avatar {
    background: var(--signage); color: var(--ink); border: 2px solid var(--ink);
    font-weight: 800; border-radius: 7px;
}

/* ---------- FAQ (info desk restyle) ---------- */
body.page-home .faq-item { background: #fff; border: 1.5px solid var(--border); border-radius: 9px; box-shadow: none; }
body.page-home .faq-item:hover { border-color: var(--ink); }
body.page-home .faq-item.open { border-color: var(--ink); box-shadow: 3px 3px 0 rgba(22,24,29,.12); }
body.page-home .faq-q { font-weight: 700; }

/* ---------- blog teaser tiles ---------- */
.articles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }
.article-tile {
    display: block; background: #fff; border: 1.5px solid var(--border);
    border-radius: 11px; padding: 24px; color: var(--text); transition: all .13s;
}
.article-tile:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 4px 4px 0 rgba(22,24,29,.14); color: var(--text); }
.article-tile .cat {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--primary); font-weight: 600; margin-bottom: 9px;
}
.article-tile h3 { font-size: 1.1rem; margin-bottom: 8px; }
.article-tile p { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
    .t-hero-grid { grid-template-columns: 1fr; gap: 44px; padding: 52px 0 72px; }
    .board-stack { max-width: 620px; }
    .gates, .plates, .fares { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .gates, .plates, .fares { grid-template-columns: 1fr; }
    .t-chips { grid-template-columns: 1fr; }
    .counter { margin: -40px 8px 0; }
    .board { padding: 14px 12px 50px; }
    .board-row { grid-template-columns: 42px 66px 1fr 92px; font-size: 11px; gap: 7px; }
    .t-stats { flex-direction: column; }
    .t-stat { border-right: 0; border-bottom: 2px solid var(--ink); }
    .t-stat:last-child { border-bottom: 0; }
    .t-hero h1 { font-size: clamp(2.2rem, 9vw, 2.9rem); }
    .fareboard { padding: 22px 14px; }
    .t-section { padding: 64px 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
    .flap-word .tile { animation: none; }
    .flap-cell .f1 { animation: none; opacity: 0; }
    .flap-cell .f2 { animation: none; opacity: 1; transform: none; }
    .board-live::before, .board-row--you .board-status::after { animation: none; }
    body.page-home .review-track { animation-play-state: paused; }
}
