/* Passenger portal: one narrow column, phone first. */

.portal .shell { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; background: var(--surface); border-bottom: 1px solid #f3e1e3; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-family: var(--display); font-weight: 800; font-size: 15px; }
.brand small { font-size: 12px; color: var(--muted); }

.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--sunk); }
.lang a { display: flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--muted); text-decoration: none; }
.lang a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(35, 26, 27, .12); }

.hero {
  background: radial-gradient(circle at 90% -10%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, 0) 45%), var(--blush-hero);
  padding: 22px 20px 62px; display: flex; flex-direction: column; gap: 8px;
}
.hero--center { align-items: center; text-align: center; padding-top: 26px; }
.hero h1 { font-size: 30px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.hero p { margin: 0; font-size: 15px; color: var(--muted); }
.badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--red-strong); background: var(--surface); border: 1px solid var(--blush-line); border-radius: 999px; padding: 4px 10px;
}
.hero-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--surface); box-shadow: 0 6px 18px rgba(200, 16, 46, .14); display: grid; place-items: center; }

.content { display: flex; flex-direction: column; gap: 18px; padding: 0 20px; margin-top: -44px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 10px 28px rgba(200, 16, 46, .10); }
.card h2 { font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

.code-input {
  height: 56px; width: 100%; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 0 16px;
  font: 500 21px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--bg);
}
.code-input:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(200, 16, 46, .15); }
.code-input.is-invalid { border: 2px solid var(--danger); background: #fff6f6; }

.alert { display: flex; gap: 10px; align-items: flex-start; background: var(--blush); border: 1px solid var(--blush-line); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.alert svg { flex-shrink: 0; margin-top: 2px; }
.alert strong { display: block; color: var(--red-deep); }
.alert span { color: #5a3036; }

/* The form is one child of .card, so it needs its own spacing. */
.redeem { display: flex; flex-direction: column; gap: 16px; }
.check { display: flex; gap: 12px; align-items: center; min-height: 44px; padding: 4px 2px; font-size: 14px; color: var(--muted); line-height: 1.4; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--red); flex-shrink: 0; cursor: pointer; }
.check a { font-weight: 600; }

.card .btn-primary { width: 100%; height: 54px; font-size: 17px; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.section-head h2 { font-size: 16px; }
.section-head span { font-size: 13px; color: var(--muted); }
.packages { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.packages li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.packages li:last-child { border-bottom: 0; }
.packages ul { list-style: none; margin: 0; padding: 0; }
.packages b { display: block; font-size: 15px; }
.packages small { font-size: 13px; color: var(--muted); }
.packages .price { font-weight: 700; color: var(--red); white-space: nowrap; }

.tip { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.tip-icon { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #fdecee 0%, #f5c9ce 100%); display: grid; place-items: center; flex-shrink: 0; }
.tip b { display: block; font-size: 15px; }
.tip span { font-size: 14px; color: var(--muted); }

.meter-row { display: flex; justify-content: space-between; align-items: baseline; }
.meter-row span { font-size: 14px; font-weight: 600; color: var(--muted); }
.meter-row strong { font-family: var(--display); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.meter { height: 8px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f07a83 0%, #d0101f 100%); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stats div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stats small { display: block; font-size: 13px; color: var(--muted); }
.stats b { font-size: 17px; }

.notes { display: flex; flex-direction: column; gap: 10px; }
.notes p { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 14px; color: var(--muted); }
.notes svg { flex-shrink: 0; margin-top: 2px; }

.zone { margin-top: auto; padding: 18px 20px 22px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.zone svg { flex-shrink: 0; margin-top: 1px; }
.zone strong { color: var(--ink); }

/* Terms page */
.legal { padding: 24px 20px 8px; display: flex; flex-direction: column; gap: 14px; }
.legal h1 { font-size: 26px; }
.legal h2 { font-size: 17px; margin-top: 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15px; }
.legal ul { padding-left: 20px; margin: 0; }
.legal .meta { color: var(--muted); font-size: 13px; }
.legal .summary { background: var(--blush); border: 1px solid var(--blush-line); border-radius: 12px; padding: 14px 16px; }
.legal .back { align-self: flex-start; }
