:root {
  --navy: #152c4a;
  --navy-ink: #0e1d33;
  --teal: #1f9b86;
  --teal-bright: #2ee6c8;
  --teal-soft: rgba(31, 155, 134, 0.12);
  --paper: #eef2f6;
  --white: #ffffff;
  --line: rgba(21, 44, 74, 0.1);
  --muted: #5b6b7c;
  --buy: #0c8a6a;
  --watch: #b45309;
  --skip: #c24132;
  --shadow: 0 1px 0 rgba(21, 44, 74, 0.04), 0 18px 40px rgba(14, 29, 51, 0.08);
  --radius: 16px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(1rem, 2.4vw, 2.75rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  min-height: 100%;
  height: auto;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.45;
  letter-spacing: -0.011em;
}

/* Fill the browser (or preview iframe) — no strip of page background around the app. */
html.html-desk,
html.html-desk body.is-desk {
  width: 100%;
  height: 100%;
  height: 100dvh;
  height: 100svh;
  max-width: none;
  overflow: hidden;
}
html.html-mkt,
html.html-mkt body.is-marketing {
  width: 100%;
  max-width: none;
  min-height: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  background: #050b14;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
a { color: var(--teal); }
a:hover { color: var(--navy-ink); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--navy);
  color: #fff;
  padding: 0.45rem 0.75rem;
  z-index: 80;
  border-radius: 8px;
}
.skip-link:focus { top: 0.75rem; color: #fff; }

.brand { display: inline-flex; align-items: center; text-decoration: none; background: transparent; }
.brand-logo { height: 44px; width: auto; max-width: min(16rem, 70vw); display: block; object-fit: contain; object-position: left center; }
.brand-logo-lockup { height: 72px; }
.brand-logo-mark { height: 48px; }
.brand-logo-foot { height: 64px; width: auto; }

h1, h2, h3, h4, .h4, .h5, .h6 {
  color: var(--navy-ink);
  letter-spacing: -0.045em;
  font-weight: 750;
  line-height: 1.12;
  margin: 0 0 0.35rem;
}
.h4 { font-size: 1.15rem; }
.h5 { font-size: 0.98rem; }
.h6 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 0.45rem;
}

.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: #d5dee8; max-width: 42rem; }

.page-head { margin-bottom: 1.1rem; }
.page-head h1 { font-size: clamp(1.55rem, 2vw, 2.05rem); }
.page-head p { max-width: 68ch; }

.panel, .card-quiet {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
}

.empty { padding: 1.2rem; }
.empty h2 { font-size: 1rem; }

.btn, .btn-resellence, .btn-outline-secondary, .btn-outline-danger, .btn-link, .btn-ghost, .btn-primary {
  font-family: inherit;
  font-weight: 650;
  border-radius: 999px;
  padding: 0.52rem 1.05rem;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-resellence, .btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 44, 74, 0.22);
}
.btn-resellence:hover, .btn-primary:hover {
  background: var(--navy-ink);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost, .btn-outline-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--navy); }
.btn-outline-danger {
  background: transparent;
  color: var(--skip);
  border-color: rgba(194, 65, 50, 0.35);
}
.btn-link { color: var(--teal); background: none; padding-left: 0.35rem; box-shadow: none; }
.btn:disabled { opacity: 0.55; transform: none; }

.form-control, .form-select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.62rem 0.75rem;
  color: var(--navy);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fbfcfd;
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 155, 134, 0.18);
  background: #fff;
}
.form-label { display: block; font-weight: 620; color: var(--navy); margin-bottom: 0.28rem; font-size: 0.86rem; }

.alert {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-size: 0.92rem;
}
.alert-warning { background: #fff7e8; color: #7a4e00; }
.alert-info { background: #e8f7f3; color: var(--navy); }
.alert-success { background: #e6f7f1; color: #0b5c48; }
.alert-danger { background: #fdecea; color: var(--skip); }

code {
  font-family: var(--mono);
  font-size: 0.8em;
  background: rgba(21, 44, 74, 0.06);
  padding: 0.08rem 0.32rem;
  border-radius: 5px;
}

.text-danger { color: var(--skip); }
.text-end { text-align: right; }
.d-none { display: none !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.85rem !important; }
.mb-4 { margin-bottom: 1.15rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.85rem !important; }
.mt-4 { margin-top: 1.15rem !important; }

.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.75rem;
}
.g-2 { gap: 0.5rem; }
.g-3 { gap: 0.75rem; }
.col-12 { grid-column: span 12; }
.col-md-2 { grid-column: span 2; }
.col-md-3 { grid-column: span 3; }
.col-md-4 { grid-column: span 4; }
.col-md-6 { grid-column: span 6; }

.inline-form { display: inline; margin: 0; }
.action-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--teal);
  cursor: pointer;
  font-weight: 650;
}

/* Marketing — full viewport */
body.is-marketing {
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  background: var(--navy-ink);
  color: #e8eef4;
}
body.is-marketing h1, body.is-marketing h2, body.is-marketing .h4 { color: #fff; }
body.is-marketing .muted { color: #9aabc0; }
body.is-marketing a:not(.btn) { color: var(--teal-bright); }
.mkt-main { flex: 1; display: flex; flex-direction: column; min-height: 0; width: 100%; }

.mkt-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(21, 44, 74, 0.08);
}
.mkt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem var(--pad);
  width: 100%;
}
.mkt-nav { display: flex; align-items: center; gap: 1.25rem; }
.mkt-nav a { color: var(--navy) !important; text-decoration: none; font-weight: 620; font-size: 0.9rem; }
.mkt-nav a:hover { color: var(--teal) !important; }
.mkt-nav .btn { color: #fff !important; }

.hero {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: stretch;
  padding: clamp(2rem, 6vh, 5rem) var(--pad) clamp(2.5rem, 6vh, 4.5rem);
  position: relative;
  overflow: hidden;
  min-height: calc(100dvh - 4.6rem);
  min-height: calc(100svh - 4.6rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(31, 155, 134, 0.32), transparent 62%);
  pointer-events: none;
  animation: glow 12s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  left: -20%;
  bottom: -40%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(46, 201, 164, 0.12), transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 2vh 0; }
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 5.1rem);
  margin: 0.15rem 0 0.9rem;
  max-width: 18ch;
}
.hero .kicker { color: var(--teal-bright); }

.hero-aside {
  background: linear-gradient(165deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: clamp(1.1rem, 2vw, 1.8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  min-height: 22rem;
}
.hero-aside h2 {
  color: #c5d0dc;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero-verdicts { display: grid; gap: 0.7rem; margin-top: 1.1rem; }
.chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 14px;
  padding: 0.95rem 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: translateZ(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chip:hover { transform: translateY(-2px); }
.chip-buy { background: linear-gradient(90deg, #12886c, #1f9b86); color: #fff; box-shadow: 0 12px 28px rgba(18, 136, 108, 0.35); }
.chip-watch { background: linear-gradient(90deg, #d4a017, #e4b84a); color: #1d1600; }
.chip-skip { background: linear-gradient(90deg, #c24132, #e05a4c); color: #fff; }
.chip small { font-weight: 560; letter-spacing: 0; opacity: 0.92; font-size: 0.82rem; }

.mkt-band {
  padding: 2.5rem var(--pad) 3.5rem;
  background: #101e32;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mkt-band .kicker { color: var(--teal-bright); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 0.85rem;
}
.feature {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
  color: #e8eef4;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(46, 201, 164, 0.45); color: inherit; }
.feature h2 { font-size: 1.08rem; color: #fff; }
body.is-desk .feature {
  background: var(--white);
  color: inherit;
  border-color: var(--line);
  box-shadow: var(--shadow);
}
body.is-desk .feature h2 { color: var(--navy-ink); }

.mkt-footer {
  background: #0b1626;
  color: #8a9bb0;
  font-size: 0.86rem;
  padding: 1.1rem var(--pad) 1.4rem;
}
.mkt-footer-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}
.mkt-footer p { margin: 0; max-width: 78ch; }

body.is-auth { height: 100%; overflow: hidden; }
body.is-auth .mkt-footer { display: none; }
body.is-auth .mkt-main { min-height: 0; }
.auth-wrap {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 0.9fr);
  min-height: calc(100dvh - 4.6rem);
  min-height: calc(100svh - 4.6rem);
  width: 100%;
}
.auth-copy {
  padding: clamp(2rem, 8vh, 5rem) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(31, 155, 134, 0.28), transparent 55%),
    linear-gradient(165deg, #0e1d33, #152c4a 70%);
}
.auth-copy h1 { font-size: clamp(2rem, 4vw, 3.4rem); max-width: 14ch; color: #fff; }
.auth-copy .kicker { color: var(--teal-bright); }
.auth-copy .muted { color: #b7c4d4; max-width: 42ch; }
.auth-card {
  margin: auto var(--pad);
  width: min(26rem, 100%);
  max-width: none;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}
.auth-card h2, .auth-card .h4 { color: var(--navy-ink); }
.auth-card .brand { margin-bottom: 0.85rem; }
.auth-card .brand-logo { height: 72px; }

/* Desk — pin to the visible window so the grid cannot sit on a shorter inner canvas. */
body.is-desk {
  background: var(--navy-ink);
  overflow: hidden;
  width: 100%;
  height: 100%;
  height: 100dvh;
  height: 100svh;
}
.desk {
  display: grid;
  grid-template-columns: 15.25rem minmax(0, 1fr);
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
}
body.is-desk .desk-side,
body.is-desk aside.desk-side {
  background: var(--navy-ink);
  color: #c5d0dc;
  padding: 0.85rem 0.7rem 1.2rem;
  height: 100%;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(46, 230, 200, 0.12);
  box-shadow: inset -12px 0 28px rgba(46, 230, 200, 0.04);
}
body.is-desk .desk-brand {
  background: transparent;
  border-radius: 0;
  padding: 0 0 0.75rem;
}
body.is-desk .desk-brand .brand-logo {
  height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: normal;
  background: transparent;
  border-radius: 0;
}
.desk-shell {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #e7ecf2;
}
body.is-desk .desk-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem var(--pad);
  background: var(--navy-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}
body.is-desk .desk-tagline {
  margin: 0;
  color: #9aabc0;
  font-size: 0.82rem;
  font-weight: 550;
}
body.is-desk .nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-weight: 650;
  color: #fff;
}
.desk-main {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1.1rem var(--pad) 2rem;
  max-width: none;
  width: 100%;
}

.desk-nav { display: flex; flex-direction: column; gap: 0.08rem; flex: 1; }
.nav-label {
  margin: 0.75rem 0.55rem 0.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7e90a6;
  font-weight: 700;
}
body.is-desk .nav-link, body.is-desk .nav-link-button {
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: #d5dee8;
  padding: 0.42rem 0.65rem;
  border-radius: 9px;
  font-weight: 560;
  font-size: 0.9rem;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
body.is-desk .nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
body.is-desk .nav-link.is-active {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 155, 134, 0.28);
}
.nav-logout { margin-top: auto; padding-top: 0.8rem; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
}
.stat .muted { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.stat strong { display: block; font-size: 1.35rem; margin-top: 0.1rem; letter-spacing: -0.04em; }
.stat .muted:last-child { display: block; text-transform: none; letter-spacing: 0; margin-top: 0.2rem; font-weight: 500; }

.verdict-hero {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.verdict, .verdict-pill {
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.4rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
}
.verdict.buy, .verdict-pill.buy {
  background: linear-gradient(180deg, #16a37a, #0c8a6a);
  color: #fff;
  box-shadow: 0 8px 20px rgba(12, 138, 106, 0.28);
}
.verdict.watch, .verdict-pill.watch {
  background: linear-gradient(180deg, #f0c14b, #d4a017);
  color: #1d1600;
}
.verdict.skip, .verdict-pill.skip {
  background: linear-gradient(180deg, #e05a4c, #c24132);
  color: #fff;
}
.verdict-hero h1 { margin: 0; font-size: clamp(1.45rem, 2.2vw, 2.05rem); }
.freshness {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #fff3d6;
  color: #7a4e00;
}
.freshness.is-live { background: #d9f5ec; color: #0c8a6a; }

.split-work {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.9fr);
  gap: 0.9rem;
  align-items: start;
}
.reason-list p { margin: 0 0 0.45rem; font-size: 0.92rem; }
.fee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fee-grid li {
  padding: 0.48rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.sparkline {
  width: 100%;
  height: 4.6rem;
  background: linear-gradient(180deg, rgba(31,155,134,0.16), rgba(31,155,134,0.04));
  border-radius: 10px;
}
.history-points {
  list-style: none;
  padding: 0;
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.12rem 1rem;
  font-family: var(--mono);
}

.board { display: grid; gap: 0.45rem; }
.shortlist-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.shortlist-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(14, 29, 51, 0.1); }

.ask-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 16rem);
  gap: 0.85rem;
  align-items: start;
}
.ask-layout .form-control[rows] { min-height: 8.5rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}
.hero .btn-ghost:hover { border-color: var(--teal-bright); color: #fff; }
.hero .btn-resellence {
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(31, 155, 134, 0.35);
}
.hero .btn-resellence:hover { background: #187e6d; }

.catalog-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr));
  gap: 0.65rem;
}
.product-mini {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
body.is-marketing .product-mini {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: #e8eef4;
}
.product-mini:hover { transform: translateY(-2px); border-color: var(--teal); color: inherit; }
.product-mini strong { display: block; margin: 0.15rem 0; }

.role-pill {
  font-weight: 750;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--teal-soft);
  color: var(--navy);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.measure-list { margin: 0; padding-left: 1.1rem; color: var(--muted); }

.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 29, 51, 0.45);
  z-index: 40;
}

@keyframes glow {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-6%, 4%) scale(1.08); }
}

/* Desktop (≥1024): sidebar always in the grid. Never a hamburger drawer. */
@media (min-width: 1024px) {
  body.is-desk .desk {
    display: grid !important;
    grid-template-columns: 15.25rem minmax(0, 1fr) !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
  body.is-desk .desk-side,
  body.is-desk aside.desk-side {
    position: relative !important;
    transform: none !important;
    width: auto !important;
    height: 100% !important;
    min-height: 0 !important;
    inset: auto !important;
    visibility: visible !important;
  }
  body.is-desk .nav-toggle {
    display: none !important;
  }
  body.is-desk .nav-scrim,
  body.nav-open .nav-scrim {
    display: none !important;
  }
  body.is-desk .desk-shell {
    height: 100% !important;
    overflow: hidden;
  }
  body.is-desk .desk-main {
    flex: 1;
    min-height: 0;
    height: auto !important;
    overflow: auto;
  }
}

/* Phone / small tablet: overlay drawer */
@media (max-width: 1023px) {
  .hero, .auth-wrap, .split-work, .ask-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 2rem; }
  .auth-wrap { min-height: auto; }
  .auth-card { margin: 1.5rem var(--pad) 2.5rem; }
  .col-md-2, .col-md-3, .col-md-4, .col-md-6 { grid-column: span 12; }
  body.is-desk .desk { grid-template-columns: 1fr; position: fixed; inset: 0; height: 100%; }
  body.is-desk { overflow: auto; }
  body.is-desk .desk-side,
  body.is-desk aside.desk-side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    width: min(18.5rem, 88vw);
    height: 100dvh;
    box-shadow: 8px 0 32px rgba(14, 29, 51, 0.35);
  }
  body.nav-open .desk-side,
  body.nav-open aside.desk-side {
    transform: translateX(0) !important;
  }
  body.is-desk .nav-toggle { display: inline-flex; }
  body.nav-open .nav-scrim { display: block; }
  .desk-shell, .desk-main { height: auto; }
  .desk-main { overflow: visible; }
  .mkt-nav a:not(.btn-demo):not(.mkt-login) { display: none; }
  .shortlist-card { grid-template-columns: 1fr; }
  .shortlist-card .text-end { text-align: left !important; }
  .mkt-footer-inner { flex-direction: column; align-items: flex-start; }
  .hero h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
