/* FarePerks — brand system
   Green  #22AA01  (sampled from logo)
   Blue   #003293  (sampled from logo)
--------------------------------------------------------------- */

:root {
  --green: #22aa01;
  --green-dark: #1c8c01;
  --green-light: #eaf7e5;
  --blue: #003293;
  --blue-dark: #00246c;
  --blue-light: #eef2fb;
  --ink: #10192b;
  --body: #46536b;
  --line: #e2e7f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 25, 43, .06), 0 4px 12px rgba(16, 25, 43, .05);
  --shadow-md: 0 4px 10px rgba(16, 25, 43, .07), 0 18px 40px rgba(16, 25, 43, .09);
  --max: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px; /* sticky header clearance for anchor jumps */
  /* `clip` (not `hidden`) — `hidden` here would turn the page into a scroll
     container and silently break the sticky header. */
  overflow-x: clip;
}

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

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 800;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.muted { color: var(--body); }
.small { font-size: .9rem; }
.tiny  { font-size: .8rem; line-height: 1.5; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 50px;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 18px rgba(34, 170, 1, .32);
}
.btn-primary:hover { background: var(--green-dark); box-shadow: 0 10px 26px rgba(34, 170, 1, .38); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(0, 50, 147, .28); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-lg { padding: 18px 40px; font-size: 1.12rem; min-height: 58px; }
.btn-sm { padding: 10px 20px; font-size: .93rem; min-height: 44px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
}
.nav-logo { display: inline-flex; align-items: center; min-height: 46px; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: .96rem;
  text-decoration: none;
}
.nav-links a:hover { color: var(--blue); }
/* CTAs live in the header on desktop; this block is the mobile drawer only */
.drawer-cta { display: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- hero (photo) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: 78px 0 96px;
  color: #fff;
  background: #0a1c3d;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 16, 44, .58) 0%, rgba(3, 16, 44, .18) 40%, rgba(3, 16, 44, .34) 72%, rgba(3, 16, 44, .12) 100%);
}
/* A soft pool of shade directly behind the headline so white type stays
   readable without dimming the whole photograph. */
.hero-inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  width: min(1000px, 108%);
  height: 400px;
  z-index: -1;
  background: radial-gradient(58% 62% at 50% 45%, rgba(3, 16, 44, .62) 0%, rgba(3, 16, 44, .34) 55%, rgba(3, 16, 44, 0) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; margin: 0 auto 6px; text-align: center; }
.hero h1 {
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(3, 16, 44, .5);
  margin-bottom: .45em;
}
/* Two stacked lines, second in green. The brand green (#22aa01) goes muddy
   against deep blue and foliage, so the headline uses a brighter tint of it
   and keeps a shadow underneath for contrast on the photo. */
.hero h1 .l1,
.hero h1 .l2 { display: block; }
.hero h1 .l2 {
  color: #7ce04f;
  text-shadow: 0 2px 16px rgba(3, 16, 44, .75);
}
.hero-sub {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, .94);
  max-width: 34em;
  margin: 0 auto 30px;
  text-shadow: 0 1px 12px rgba(3, 16, 44, .45);
}
.hero .eyebrow {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: none;
}
.hero .hero-note { justify-content: center; margin-top: 22px; }
.hero .hero-note span { color: #fff; }

/* ---------- hero search widget ---------- */
.search-card {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(4, 20, 52, .32);
  padding: 26px;
  text-align: left;
  color: var(--body);
}
.search-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  width: fit-content;
  margin: 0 auto 22px;
}
.search-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  color: var(--body);
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}
.search-tab svg { width: 18px; height: 18px; }
.search-tab[aria-selected="true"] {
  background: var(--green);
  color: #fff;
  box-shadow: 0 3px 10px rgba(34, 170, 1, .3);
}
.search-fields {
  display: grid;
  grid-template-columns: 1.15fr 1fr auto;
  gap: 14px;
  align-items: end;
}
.search-field label {
  display: block;
  font-weight: 700;
  font-size: .82rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.search-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.search-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 50, 147, .12); }
.search-input svg { flex: none; width: 18px; height: 18px; color: var(--body); }
.search-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  min-height: 54px;
  padding: 0;
}
.search-input input::placeholder { color: #97a2b6; }
.search-card .btn-search { min-height: 56px; padding: 0 34px; white-space: nowrap; }
.search-note { margin: 16px 0 0; font-size: .82rem; color: var(--body); text-align: center; }

/* ---------- brands strip ---------- */
.brands {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.brand {
  background: #fff;
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 18px 12px;
  text-align: center;
}
.brand span {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -.01em;
  color: var(--ink);
}
.brand small {
  display: block;
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--body);
  margin-top: 3px;
}
.brands-more { text-align: center; margin: 22px 0 0; font-size: .95rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
}
.hero-sub { font-size: 1.16rem; max-width: 33em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.check {
  flex: none;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900;
}

/* ---------- generic sections ---------- */
section { padding: 78px 0; }
.section-soft { background: var(--bg-soft); }
.section-blue { background: var(--blue); color: #cfd9f2; }
.section-blue h2, .section-blue h3 { color: #fff; }
.section-head { max-width: 44rem; margin: 0 auto 46px; text-align: center; }
.section-head p { font-size: 1.08rem; margin-bottom: 0; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

/* category tiles */
.cat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(0, 50, 147, .25); }
.cat svg { width: 40px; height: 40px; margin: 0 auto 14px; }
.cat h3 { font-size: 1.02rem; margin-bottom: .3em; }
.cat p { font-size: .88rem; margin: 0; }

/* steps */
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: grid; place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(0, 50, 147, .25);
}
.section-blue .step-num { background: var(--green); box-shadow: 0 6px 16px rgba(34, 170, 1, .3); }

/* cashback band */
.band {
  background: linear-gradient(135deg, var(--blue) 0%, #0a48c4 100%);
  color: #dbe4f8;
  border-radius: var(--radius-lg);
  padding: 46px;
  text-align: center;
}
.band h2 { color: #fff; }
.band .btn-primary { margin-top: 10px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
details.qa {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
details.qa summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 62px;      /* comfortable thumb target */
  padding: 16px 24px;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "+";
  color: var(--green);
  font-size: 1.5rem;
  line-height: 1;
  flex: none;
  font-weight: 700;
}
details.qa[open] summary::after { content: "\2013"; }
details.qa .qa-body { padding: 0 24px 20px; }
details.qa .qa-body p:last-child { margin-bottom: 0; }

/* ---------- forms ---------- */
.auth {
  background: var(--bg-soft);
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  padding: 54px 0;
}
.auth-card {
  width: 100%;
  max-width: 470px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
}
.auth-card h1 { font-size: 1.85rem; margin-bottom: .3em; }
.auth-card > p.sub { margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: .88rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 15px 15px;
  min-height: 52px;
  font-size: 16px; /* 16px minimum stops iOS from zooming on focus */
  font-family: inherit;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 50, 147, .12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 22px; cursor: pointer; }
.consent input { margin-top: 2px; flex: none; width: 22px; height: 22px; accent-color: var(--green); }
.form-msg {
  display: none;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: .92rem;
  margin-bottom: 16px;
}
.form-msg.err { display: block; background: #fdecec; color: #a32323; }
.form-msg.ok  { display: block; background: var(--green-light); color: var(--green-dark); }
.auth-alt { text-align: center; margin: 22px 0 0; font-size: .93rem; }
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line);
}
.trust-strip span { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink); }

/* ---------- travel portal ---------- */
.portal-bar {
  background: var(--blue);
  color: #fff;
  padding: 14px 0;
}
.portal-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.portal-bar strong { color: #fff; font-size: 1rem; }
.portal-bar .small { color: #c6d3ee; }
.portal-frame-wrap {
  position: relative;
  background: var(--bg-soft);
  min-height: 70vh;
}
.portal-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 74px - 54px);
  min-height: 620px;
  border: 0;
}
.portal-placeholder {
  max-width: 620px;
  margin: 0 auto;
  padding: 70px 24px;
  text-align: center;
}

/* ---------- footer ---------- */
.site-footer {
  background: #0b1730;
  color: #94a3bd;
  padding: 56px 0 30px;
  font-size: .93rem;
}
.site-footer a { color: #c3cee3; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-grid h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 2px; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: 42px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 40px; }
.footer-logo { height: 30px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .95; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .84rem;
}

/* ---------- legal pages ---------- */
.legal { max-width: 800px; margin: 0 auto; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.legal .updated {
  background: var(--blue-light);
  border-left: 3px solid var(--blue);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  font-size: .92rem;
}

/* ---------- sticky mobile CTA bar ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(160%) blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(16, 25, 43, .1);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(115%);
  transition: transform .24s ease;
}
.mobile-cta.show { transform: none; }
.mobile-cta .btn { width: 100%; min-height: 54px; font-size: 1.06rem; }
.mobile-cta .cta-note {
  display: block;
  text-align: center;
  font-size: .74rem;
  font-weight: 600;
  color: var(--body);
  margin-top: 6px;
  letter-spacing: .01em;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-card .btn-search { grid-column: 1 / -1; width: 100%; }
  .brands { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 820px) {
  .nav { height: 66px; }
  .nav-logo img { height: 30px; }
  .nav-toggle { display: block; padding: 12px 8px; }
  .nav .btn-ghost { display: none; }

  /* The header uses backdrop-filter, which makes it the containing block
     for fixed children — so the drawer is absolute inside the header. */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    max-height: calc(100vh - 66px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 8px 22px 28px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 58px;
    font-size: 1.08rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links .drawer-cta {
    border-bottom: 0;
    margin-top: 22px;
    display: grid;
    gap: 12px;
  }
  .nav-links .drawer-cta .btn { width: 100%; min-height: 54px; }
  .nav-links .drawer-cta .btn-primary { color: #fff; }
  .nav-links .drawer-cta .btn-ghost { color: var(--blue); }

  body.nav-open { overflow: hidden; }
  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 66px 0 0;
    background: rgba(11, 23, 48, .45);
    z-index: 40;
  }

  /* sticky CTA on every page except the booking portal */
  body:not(.no-mobile-cta) .mobile-cta { display: block; }
  body:not(.no-mobile-cta) { padding-bottom: 86px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  section { padding: 52px 0; }

  h1 { font-size: clamp(2rem, 8.4vw, 2.6rem); }
  h2 { font-size: clamp(1.55rem, 6.4vw, 2rem); }
  .section-head { margin-bottom: 32px; }
  .hero { padding: 40px 0 52px; }
  .hero-sub { font-size: 1.05rem; }
  .eyebrow { margin-bottom: 18px; font-size: .76rem; padding: 7px 14px; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-note { gap: 10px 16px; }
  .hero-note span { font-size: .86rem; }

  .search-card { padding: 18px 16px; border-radius: 18px; }
  .search-tabs { width: 100%; justify-content: space-between; margin-bottom: 18px; }
  .search-tab { flex: 1; justify-content: center; padding: 8px 10px; font-size: .9rem; }
  .search-tab svg { width: 16px; height: 16px; }
  .search-fields { grid-template-columns: 1fr; gap: 12px; }
  .search-card .btn-search { width: 100%; }
  .search-note { font-size: .78rem; }

  .brands { grid-template-columns: repeat(2, 1fr); }
  .brand { min-height: 78px; padding: 14px 10px; }
  .brand span { font-size: .95rem; }

  .hero-card { padding: 20px 18px; border-radius: 18px; }
  .perk-row { gap: 12px; padding: 11px 0; }
  .perk-icon { width: 38px; height: 38px; border-radius: 10px; }
  .perk-tag { font-size: .7rem; padding: 5px 8px; }
  .perk-row em { display: none; } /* keep rows to one line on small screens */

  .grid { gap: 14px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-5 { grid-template-columns: 1fr 1fr; }
  .cat { padding: 20px 12px; }
  .cat svg { width: 34px; height: 34px; margin-bottom: 10px; }
  .cat p { font-size: .82rem; }

  .step-num { width: 42px; height: 42px; margin-bottom: 14px; }
  .band { padding: 30px 20px; border-radius: 18px; }
  .band p { font-size: 1rem; }

  details.qa { padding: 16px 18px; }
  details.qa summary { font-size: .98rem; }

  .auth { min-height: 0; padding: 32px 0 40px; }
  .auth-card { padding: 26px 20px; border-radius: 18px; }
  .auth-card h1 { font-size: 1.6rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .trust-strip { gap: 10px 14px; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-bottom: 26px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .site-footer { padding: 40px 0 26px; }

  .portal-frame { height: calc(100vh - 66px - 92px); min-height: 480px; }
  .portal-bar .wrap { gap: 4px; }
}

@media (max-width: 380px) {
  .grid-5, .grid-4 { grid-template-columns: 1fr; }
  .hero-card { padding: 18px 14px; }
}
