/* SwapDesk · An Upgrade Brands product
   Layout: the original SwapDesk pop-up (centred on desktop and tablet, a bottom sheet on phones)
   over the modern white-and-blue contour background. */

@font-face {
  font-family: "LeagueSpartan";
  src: url("../league-spartan-master/webfonts/leaguespartan-bold.woff2") format("woff2"),
       url("../league-spartan-master/webfonts/leaguespartan-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #454545;
  --ink-3: #686767;
  --line: #cccccc;
  --brand: #1f5e9f;          /* swapdesk logo blue */
  --brand-deep: #18577b;     /* "Upgrade." headline blue */
  --action: #007bff;         /* original action blue */
  --action-hover: #0069d9;
  --selected: #c8e4ff;       /* original selected button */
  --hover: #e6f2ff;
  --popup: rgba(226, 240, 255, 0.58);
  --glass: rgba(232, 243, 255, 0.72);
  --green: #1a9e4b;          /* original "Check for Prices" outline, darkened for contrast */
  --warn: #9a5b00;
  --danger: #c4262e;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --brandface: "LeagueSpartan", "Helvetica Neue", Arial, sans-serif;   /* wordmark lockups only */
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 400 17px/1.47059 var(--text);
  letter-spacing: -0.022em;
  color: var(--ink);
  background: var(--white);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--action); }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
:focus-visible { outline: 3px solid rgba(0, 123, 255, 0.45); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- the stage behind the pop-up ---------- */
.stage { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.wave { position: absolute; opacity: 0; will-change: transform, opacity, clip-path; }
.wave-a { width: min(78vw, 900px); right: -18vw; top: -8vh; transform: rotate(-18deg); }
.wave-b { width: min(70vw, 820px); left: -22vw; bottom: -22vh; transform: rotate(28deg); }
.stage-logo {
  position: absolute; left: 50%; top: max(2.2vh, env(safe-area-inset-top)); translate: -50% 0;
  width: 150px; opacity: 0; pointer-events: auto;
}
.stage-logo img { width: 100%; height: auto; }
.stage-tag {
  position: absolute; left: 4vw; bottom: 6vh; margin: 0;
  font: 700 1.6rem/1.08 var(--brandface); letter-spacing: -0.5px; opacity: 0;
}
.stage-tag .t1 { color: #555; }
.stage-tag .t2 { color: var(--ink); }
.stage-tag .t3 { color: var(--brand-deep); }
.stage-arrows { position: absolute; right: 4vw; bottom: 6.5vh; width: 64px; opacity: 0; }
.stage-credit { position: absolute; right: 4vw; top: 3vh; margin: 0; text-align: right; font-size: 0.8125rem; color: var(--ink-2); opacity: 0; pointer-events: auto; line-height: 1.35; }
.stage-credit b { color: var(--ink); display: block; font-size: 0.9375rem; }
.stage-credit a { color: inherit; text-decoration: none; }

@media (max-width: 1024px) {
  .stage-tag, .stage-arrows { display: none; }
}
@media (max-width: 600px) {
  .stage-logo { width: 132px; top: calc(env(safe-area-inset-top) + 3.2vh); }
  .stage-credit { display: none; }
  .wave-a { width: 150vw; right: -70vw; top: -14vh; }
  .wave-b { width: 140vw; left: -80vw; bottom: 8vh; }
}

/* Opening: the background draws in slowly while the pop-up rises. */
.intro .wave { animation: waveIn 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.intro .wave-b { animation-delay: 0.15s; }
.intro .stage-logo, .intro .stage-tag, .intro .stage-arrows, .intro .stage-credit { animation: fadeUp 0.9s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.ready .wave, .ready .stage-logo, .ready .stage-tag, .ready .stage-arrows, .ready .stage-credit { opacity: 1; }
@keyframes waveIn {
  from { opacity: 0; clip-path: circle(0% at 70% 40%); }
  to { opacity: 1; clip-path: circle(120% at 70% 40%); }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- the pop-up ---------- */
.popup {
  position: fixed; z-index: 10; left: 50%; top: calc(50% + 3.5vh);
  width: min(80vw, 640px); height: min(82vh, 760px);
  translate: -50% -50%;
  display: flex; flex-direction: column;
  background: var(--popup);
  -webkit-backdrop-filter: blur(3px) saturate(140%);
  backdrop-filter: blur(3px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: var(--shadow);
  will-change: transform;
}
@media (min-width: 601px) and (max-width: 1024px) { .popup { width: min(92vw, 640px); } }
@media (max-width: 600px) {
  .popup {
    left: 0; right: 0; top: auto; bottom: 0; translate: none; width: 100%;
    height: 85%; border-radius: 30px 30px 0 0;
  }
}
.popup-head { flex: none; margin: 0; padding: 14px 20px 6px; text-align: center; font-size: 15px; color: var(--ink-3); position: relative; }
.popup-head .grab { display: none; }
@media (max-width: 600px) {
  .popup-head { padding-top: 8px; }
  .popup-head .grab { display: block; width: 38px; height: 5px; border-radius: 3px; background: rgba(0, 0, 0, 0.14); margin: 0 auto 8px; }
}
.popup-body {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 4px 24px 0; scroll-padding-top: 64px; scroll-padding-bottom: 150px;
  display: flex; flex-direction: column;
}
/* Every screen fills the pop-up; navigation sits at the bottom, always in reach. */
.screen { flex: 1 0 auto; width: 100%; max-width: 440px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; }
.screen.wide { max-width: 560px; }
.screen-main { flex: 1 0 auto; padding-bottom: 12px; }
.screen-foot {
  position: sticky; bottom: 0; z-index: 4; margin: 0 -24px; padding: 22px 24px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(232, 243, 255, 0), rgba(232, 243, 255, 0.94) 26px);
  display: grid; gap: 12px;
}
@media (min-width: 601px) { .screen-foot { padding-bottom: 16px; } }
.screen-foot .pills { margin: 0; flex-wrap: nowrap; gap: 12px; }
.screen-foot .pill { flex: 1 1 0; min-width: 0; padding: 0 14px; font-size: 16px; font-weight: 600; white-space: nowrap; }
.screen-foot .pill { background: rgba(255, 255, 255, 0.92); }
.screen-foot .pill.go { font-weight: 600; background: var(--action); }
.list-meta { margin: 0 0 2px; }
.screen-foot .btn { min-height: 56px; }
.credit { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); text-align: center; }
.stack.tight { gap: 10px; margin: 0; }
.foot-link { margin: -4px 0 0; }
.foot-link .link { min-height: 36px; padding: 6px; }

/* home */
.home .screen-main { display: flex; flex-direction: column; justify-content: center; padding-top: 8px; }
.kicker { margin: 8px 0 0; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.home .h-display { font-size: clamp(2.3rem, 10vw, 3.4rem); margin: 8px 0 10px; }
.home .lead { font-size: 17px; margin: 0 auto 6px; max-width: 30ch; color: var(--ink-2); }
.steps { list-style: none; margin: 18px auto 4px; padding: 0; display: grid; gap: 12px; text-align: left; max-width: 360px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--brand); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 15px; margin-top: 1px; }
.steps b { display: block; font-size: 16px; color: var(--ink); letter-spacing: -0.012em; }
.steps li > span:last-child { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
@media (max-height: 760px) and (max-width: 600px) { .steps li:nth-child(3) { display: none; } }
@media (max-height: 680px) and (max-width: 600px) { .steps { display: none; } }
.credit b { color: var(--ink-2); }

/* ---------- type (original scale) ---------- */
.h-display, .h-title, .h-sub, .big-num { font-family: var(--display); font-weight: 700; line-height: 1.12; text-wrap: balance; }
.h-display { font-family: var(--brandface); letter-spacing: -1px; line-height: 1.08; }
.h-display { font-size: clamp(2.2rem, 7vw, 3.2rem); margin: 22px 0 6px; }
.h-display .blue, .h-title .blue { color: var(--brand-deep); }
.h-title { font-weight: 800 !important; font-size: clamp(1.75rem, 5.8vw, 2rem); letter-spacing: -0.024em; margin: 18px 0 8px; }
.h-sub { font-size: 1.3rem; margin: 22px 0 10px; letter-spacing: -0.02em; }
.lead { margin: 8px 0 4px; }
.par { margin: 6px 0 14px; }
.small { font-size: 0.875rem; color: var(--ink-2); margin: 6px 0 14px; }
.eyebrow { font-size: 0.8125rem; color: var(--ink-3); margin: 10px 0 4px; letter-spacing: -0.005em; }
.group-label { text-align: left; padding: 0 25px; margin: 10px 0 -2px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.big-num { font-weight: 800 !important; font-size: clamp(3rem, 13vw, 3.75rem); color: var(--brand-deep); letter-spacing: -0.035em; line-height: 1; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.left { text-align: left; }

/* ---------- buttons (original shapes, refined) ---------- */
.stack { display: grid; gap: 12px; margin: 16px 0; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px;
  padding: 16px 20px 16px 24px; text-align: left;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  font-size: 16px; color: var(--ink);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease-out;
}
.opt:active { transform: scale(0.985); transition-duration: 0.05s; }
.opt.is-selected, .opt[aria-checked="true"], .opt[aria-pressed="true"] { background: var(--selected); font-weight: 600; border-color: #9fcaf5; }
.opt .main { flex: 1; min-width: 0; }
.opt .sub { display: block; font-size: 13.5px; color: var(--ink-2); font-weight: 400; margin-top: 1px; }
.opt .val { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.opt .chev { width: 8px; height: 14px; color: #999; flex: none; }
.opt .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #9aa4ae; flex: none; display: grid; place-items: center; background: var(--white); }
.opt .tick.box { border-radius: 6px; }
.opt[aria-checked="true"] .tick, .opt[aria-pressed="true"] .tick { background: var(--action); border-color: var(--action); }
.opt[aria-checked="true"] .tick::after, .opt[aria-pressed="true"] .tick::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.opt.center { justify-content: center; text-align: center; padding-left: 20px; }
.opt.crumb { min-height: 52px; background: var(--selected); font-weight: 600; border-color: #9fcaf5; }
.opt.crumb .edit { font-size: 13px; font-weight: 500; color: var(--action); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 60px;
  padding: 14px 20px; border-radius: 10px; font-size: 17px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--action); background: var(--white); color: var(--action);
  transition: background-color 0.15s ease, transform 0.12s ease-out, opacity 0.15s ease;
}
.btn:active { transform: scale(0.985); transition-duration: 0.05s; }
.btn.blue { background: var(--action); color: #fff; border-color: var(--action); }
.btn.green { color: var(--green); border-color: rgb(37, 211, 102); }
.btn.green.fill { background: #1fae55; color: #fff; border-color: #1fae55; }
.btn:disabled, .pill:disabled { opacity: 0.45; cursor: default; transform: none; }
.btn .ico { width: 22px; height: 22px; flex: none; }

.pills { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 22px 0 6px; }
.pill {
  min-width: 132px; height: 50px; padding: 0 26px; border-radius: 30px; font-size: 1em; text-align: center; font-weight: 600;
  background: transparent; color: var(--action); border: 2px solid lightblue;
  transition: background-color 0.15s ease, transform 0.12s ease-out;
}
.pill.go { background: var(--action); color: #fff; border-color: var(--action); }
.pill:active { transform: scale(0.97); }
.link { background: none; border: 0; padding: 10px 6px; min-height: 44px; color: var(--action); font-size: 15px; font-weight: 500; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; margin: 0 -24px; padding-inline: 24px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 38px; padding: 0 16px; border-radius: 30px; font-size: 15px;
  background: var(--white); border: 1px solid var(--line); color: var(--ink); position: relative;
  transition: background-color 0.15s ease;
}
.chip::before { content: ""; position: absolute; inset: -4px 0; }
.chip[aria-pressed="true"] { background: var(--selected); border-color: #9fcaf5; font-weight: 600; padding-right: 12px; display: inline-flex; align-items: center; gap: 6px; }
.chip-x { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(0, 0, 0, 0.12); font-size: 13px; line-height: 1; font-weight: 600; }
.chip-hint { margin: -2px 0 0; font-size: 12.5px; color: var(--ink-3); text-align: left; }

.field { position: relative; }
.field input {
  width: 100%; min-height: 54px; padding: 0 44px 0 46px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--white); font-size: 16px; -webkit-appearance: none; appearance: none;
}
.field input:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.18); }
.field .ico { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: #888; pointer-events: none; }
.field .clear { position: absolute; right: 4px; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border: 0; background: none; color: #999; display: grid; place-items: center; }
.field input:placeholder-shown ~ .clear { display: none; }

.form-field { display: grid; gap: 6px; text-align: left; margin: 0 0 14px; }
.form-field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.form-field input { min-height: 54px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 0 16px; font-size: 16px; }
.form-field input:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.18); }
.hp { position: absolute; left: -5000px; }

/* ---------- lists ---------- */
.list-top { position: sticky; top: -4px; z-index: 3; margin: 0 -24px; padding: 10px 24px 10px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: grid; gap: 10px; }
.list-top .field input { min-height: 48px; }
.list-top .chip { min-height: 36px; }
.list-actions { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; margin: 2px 0 4px; }
.list-actions .link { display: inline-flex; align-items: center; gap: 6px; }
.list-actions .ico { width: 18px; height: 18px; }
.group { background: var(--white); border: 1px solid #d9e2ea; border-radius: 12px; overflow: hidden; text-align: left; }
.series { margin: 18px 0 0; }
.series-h { position: sticky; top: var(--list-top, 118px); z-index: 2; margin: 0 0 8px; padding: 8px 17px 6px; font: 700 1.1rem/1.2 var(--display); letter-spacing: -0.018em; color: var(--brand-deep); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); text-align: left; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 16px; border: 0; background: transparent; text-align: left; position: relative; font-size: 16px; }
.row + .row, .row + .row-more, .row-more + .row { border-top: 1px solid #e6ebf0; }
.row[aria-expanded="true"] { background: var(--selected); }
.row .main { flex: 1; min-width: 0; }
.row .t { display: block; font-weight: 500; }
.row .s { display: block; color: var(--ink-2); font-size: 13.5px; }
.row .v { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .chev { width: 8px; height: 14px; color: #aaa; flex: none; transition: transform 0.2s ease; }
.row[aria-expanded="true"] .chev { transform: rotate(90deg); }
.row-more { padding: 6px 16px 16px; background: #f4f9ff; }
.row-more .row { padding: 8px 4px; min-height: 44px; border-top: 1px solid #e6ebf0; }
.row-more .btn { margin-top: 12px; min-height: 50px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 600; background: rgba(0, 123, 255, 0.12); color: #0059b8; vertical-align: 1px; margin-left: 6px; }
.tag.warn { background: rgba(255, 159, 10, 0.16); color: var(--warn); }
.count, .empty { color: var(--ink-3); font-size: 14px; margin: 18px 0 0; }
.empty { padding: 30px 0; }

/* ---------- questions, value, compare ---------- */
.progress { height: 4px; border-radius: 2px; background: rgba(0, 0, 0, 0.08); overflow: hidden; margin: 6px auto 0; max-width: 240px; }
.progress i { display: block; height: 100%; background: var(--action); transform-origin: left; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.battery { display: flex; gap: 12px; align-items: stretch; }
.battery label { position: relative; flex: 1; }
.battery input { width: 100%; min-height: 60px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 44px 0 22px; font: 600 1.6rem var(--display); letter-spacing: -0.02em; -moz-appearance: textfield; appearance: textfield; }
.battery input::-webkit-outer-spin-button, .battery input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.battery input:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.18); }
.battery label::after { content: "%"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; font: 600 1.3rem var(--display); color: #888; }
.battery .opt { width: auto; flex: none; }
.so-far { margin: 0; font-size: 15px; color: var(--ink-2); display: flex; justify-content: space-between; align-items: baseline; background: var(--white); border: 1px solid #d9e2ea; border-radius: 10px; padding: 12px 16px; }
.so-far b { color: var(--brand-deep); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.q-opts .opt .main { font-weight: 600; font-size: 17px; letter-spacing: -0.015em; }
.q-opts .opt .sub { font-weight: 400; font-size: 14px; line-height: 1.35; margin-top: 3px; color: var(--ink-2); letter-spacing: -0.005em; }
.q-opts .opt { padding-top: 15px; padding-bottom: 15px; }
.battery-big { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 16px 0 14px; }
.battery-big .cell { position: relative; width: 120px; height: 52px; border: 3.5px solid var(--ink); border-radius: 14px; padding: 4px; }
.battery-big .cell::after { content: ""; position: absolute; right: -12px; top: 50%; translate: 0 -50%; width: 6px; height: 22px; border-radius: 0 4px 4px 0; background: var(--ink); }
.battery-big .cell i { display: block; height: 100%; border-radius: 8px; background: #34c759; transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease; }
.battery-big .cell i.low { background: #ff9f0a; }
.battery-big label { display: flex; align-items: baseline; justify-content: center; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 6px 22px; width: 100%; }
.battery-big label:focus-within { border-color: var(--action); box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.18); }
.battery-big input { width: 3.2ch; border: 0; background: none; text-align: right; font: 700 56px/1.1 var(--display); letter-spacing: -0.03em; color: var(--ink); -moz-appearance: textfield; appearance: textfield; padding: 0; }
.battery-big input:focus { outline: none; }
.battery-big input::-webkit-outer-spin-button, .battery-big input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.battery-big .pct { font: 600 34px var(--display); color: #8a8f96; }
.info { background: rgba(255, 255, 255, 0.7); border: 1px solid #d9e2ea; border-radius: 12px; padding: 14px 16px; text-align: left; font-size: 15px; margin: 16px 0 0; }
.info p { margin: 0; }
.info p + p { margin-top: 6px; }
.btn.add { margin-top: 4px; }
.illo { width: 30px; height: 44px; flex: none; color: #7b8894; }
.opt[aria-checked="true"] .illo { color: var(--action); }

.card { background: var(--white); border: 1px solid #d9e2ea; border-radius: 12px; padding: 16px 18px; text-align: left; }
.lines { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.lines li + li { border-top: 1px solid #e6ebf0; }
.lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines .pending span:last-child { color: var(--warn); font-size: 14px; }
.lines .total { font-weight: 800; font-size: 17px; }
.lines .total span:last-child { color: var(--brand-deep); }
.stop { background: #fff; border: 1px solid #f3c3c5; border-radius: 12px; padding: 16px 18px; margin: 16px 0; }
.stop b { color: var(--danger); display: block; margin-bottom: 4px; }
.notice { background: #fff8e8; border: 1px solid #f5dca6; border-radius: 10px; padding: 12px 14px; font-size: 14px; text-align: left; margin: 12px 0; }

.cmp-grid { display: grid; gap: 12px; margin: 16px 0; }
@media (min-width: 560px) { .cmp-grid { grid-template-columns: 1fr 1fr; } }
.cmp { position: relative; background: var(--white); border: 1px solid #d9e2ea; border-radius: 12px; padding: 14px 16px 16px; text-align: left; display: flex; flex-direction: column; gap: 2px; min-height: 150px; }
.cmp .t { font-weight: 600; padding-right: 36px; }
.cmp .s { font-size: 13.5px; color: var(--ink-2); }
.cmp .p { font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cmp .k { margin-top: auto; padding-top: 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }
.cmp.receive .k, .cmp.even .k { color: #0a7d45; }
.cmp .n { font: 700 1.85rem/1.05 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.cmp .x { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border: 0; background: none; color: #999; display: grid; place-items: center; border-radius: 50%; }
.cmp .x svg { width: 18px; height: 18px; }
.cmp.gone { opacity: 0.6; }
.cities { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.cities .opt { min-height: 52px; padding: 12px 14px; justify-content: center; text-align: center; }
.city-text { font-size: 15px; margin: 10px 0 4px; }
.linkbox { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; margin: 12px 0; color: var(--action); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 50; translate: -50% 0;
  transform: translateY(12px); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px);
  background: #1d1d1f; color: #fff; padding: 12px 18px; border-radius: 24px; font-size: 15px; text-align: center;
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.toast.show { opacity: 1; transform: none; }

/* ---------- motion & accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.1s !important; }
  .opt:active, .btn:active, .pill:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .popup { background: #e8f3ff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .list-top, .series-h { background: #e8f3ff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: #6b6b6b; --ink-2: #222; --ink-3: #333; }
  .popup { background: #eef6ff; border: 1px solid #1d1d1f; }
}

.more-note { margin: 10px 2px 12px; font-size: 14.5px; color: var(--ink-2); text-align: left; }
.mine { background: var(--selected); border: 1px solid #9fcaf5; border-radius: 12px; padding: 14px 18px; text-align: left; margin: 16px 0; }
.mine-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.mine-top .main { display: block; }
.mine-top b { display: block; font-size: 17px; }
.mine-top .sub { display: block; font-size: 14px; color: var(--ink-2); }
.mine-top .val { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--brand-deep); font-variant-numeric: tabular-nums; }
.eyebrow-s { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand); margin-bottom: 2px; }
.mine-cond { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.mine-how { margin-top: 8px; border-top: 1px solid #9fcaf5; padding-top: 6px; }
.mine-how summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--action); padding: 8px 0; list-style: none; display: flex; justify-content: space-between; min-height: 44px; align-items: center; }
.mine-how summary::-webkit-details-marker { display: none; }
.mine-how summary::after { content: "›"; font-size: 22px; transform: rotate(90deg); transition: transform 0.2s ease; }
.mine-how[open] summary::after { transform: rotate(-90deg); }
.mine-how .lines { background: #fff; border-radius: 10px; padding: 4px 14px; }
.mine-cond::first-letter { text-transform: uppercase; }
.btn.two { flex-direction: column; gap: 2px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.btn .bsub { font-size: 13px; font-weight: 400; opacity: 0.85; letter-spacing: -0.005em; }
.btn.green .bsub, .btn:not(.blue) .bsub { color: var(--ink-2); opacity: 1; }
.home .lead { max-width: 32ch; }
@media (max-height: 700px) and (max-width: 600px) {
  .home .h-display { font-size: 2.1rem; margin: 4px 0 6px; }
  .home .kicker { margin-top: 2px; }
  .home .lead { font-size: 15px; }
  .btn.two { min-height: 58px; padding-top: 8px; padding-bottom: 8px; }
}
.home-note { margin: 2px 4px 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); text-align: center; }
@media (max-height: 700px) and (max-width: 600px) { .home-note { font-size: 13px; } }
@media (max-height: 700px) and (max-width: 600px) { .home .lead { display: none; } }
/* home, round 3 */
.home .kicker { margin-top: 18px; }
.home .h-display { margin: 18px 0 22px; }
.home .lead { font-size: 15px; line-height: 1.45; }
.home .stack.tight { gap: 14px; }
.home .stack.tight .btn { min-height: 68px; font-size: 18px; border-radius: 12px; }
.home-note { font-size: 12.5px; margin-top: 4px; }
@media (max-height: 700px) and (max-width: 600px) {
  .home .kicker { margin-top: 6px; }
  .home .h-display { margin: 10px 0 12px; }
  .home .stack.tight .btn { min-height: 60px; }
}
.popup-body:not(.overflowing) .screen-foot { background: none; }

/* Buttons, round 4: the old SwapDesk proportions (about 75–88% of the pop-up, generous padding,
   clear gaps) with softer, bubble-like shapes. */
:root { --col: min(88%, 344px); }
.stack, .cities, .screen-main > .field, .battery-big, .info, .so-far, .screen-foot > .btn, .screen-main > .btn, .home-note, .chip-hint { width: var(--col); margin-inline: auto; }
.stack { gap: 14px; margin-top: 18px; margin-bottom: 18px; }
.opt, .btn {
  border-radius: 18px; border: 1px solid #d3e0ec; background: var(--white);
  box-shadow: 0 1px 2px rgba(31, 94, 159, 0.06), 0 4px 14px rgba(31, 94, 159, 0.07);
}
.opt { min-height: 64px; padding: 18px 22px; }
.opt.crumb { min-height: 56px; border-color: #9fcaf5; box-shadow: none; }
.btn { min-height: 60px; padding: 16px 22px; border-color: var(--action); }
.btn.green { border-color: rgb(37, 211, 102); }
.btn.blue, .btn.green.fill { box-shadow: 0 6px 18px rgba(0, 123, 255, 0.22); }
.btn.green.fill { box-shadow: 0 6px 18px rgba(31, 174, 85, 0.22); }
.home .stack.tight { gap: 16px; width: var(--col); }
.home .stack.tight .btn { min-height: 66px; border-radius: 20px; }
.cities { gap: 12px; }
.cities .opt { border-radius: 16px; }
/* Navigation pills keep the old sizes instead of stretching edge to edge. */
.screen-foot .pills { justify-content: center; gap: 14px; }
.screen-foot .pill { flex: 0 1 auto; min-width: 140px; max-width: 180px; height: 50px; padding: 0 22px; }
.chip-hint { text-align: center; }
.field { display: block; }
.home .stack.tight { margin: 0 auto; }
.opt.ver .val { text-align: right; line-height: 1.2; }
.opt.ver .val small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); }
/* Round 5: search spans the column; buttons are narrower and taller than it. */
:root { --btncol: min(80%, 316px); }
.stack, .cities, .home .stack.tight, .screen-foot > .btn, .screen-main > .btn { width: var(--btncol); }
.opt { min-height: 70px; padding: 20px 22px; }
.opt.crumb { min-height: 60px; }
.btn { min-height: 64px; }
.home .stack.tight .btn { min-height: 70px; }
.field input, .list-top .field input {
  min-height: 50px; background: #eef5ff; border: 1px solid #cfe0f3; border-radius: 14px; box-shadow: none;
}
.field input::placeholder { color: #6d7f93; }
.field .ico { color: #5b7fa6; }
.field input:focus { background: #f5f9ff; }

/* Round 5: search stays at the top (sticky); selected choices sit under it; buttons are narrower
   and taller than the search bar; search has a mild blue tint. */
:root { --btncol: min(80%, 316px); }
.stack, .cities, .home .stack.tight, .screen-foot > .btn, .screen-main > .btn { width: var(--btncol); }
.opt { min-height: 70px; padding: 20px 22px; }
.opt.crumb { min-height: 60px; }
.btn { min-height: 64px; }
.home .stack.tight .btn { min-height: 70px; }
.pick-search { position: sticky; top: -4px; z-index: 3; margin: 0 -24px; padding: 10px 24px 8px; background: linear-gradient(rgba(232, 243, 255, 0.96) 75%, rgba(232, 243, 255, 0)); }
.pick-search .field { width: var(--col); margin: 0 auto; }
.stack.crumbs { margin-top: 10px; margin-bottom: 6px; }
.field input, .list-top .field input {
  min-height: 50px; background: #eef5ff; border: 1px solid #cfe0f3; border-radius: 14px; box-shadow: none;
}
.field input::placeholder { color: #6d7f93; }
.field .ico { color: #5b7fa6; }
.field input:focus { background: #f5f9ff; }

/* Brief loading moment after the device is chosen. */
.loading .screen-main { display: flex; align-items: center; justify-content: center; }
.loading .screen-foot { display: none; }
.load { display: grid; justify-items: center; gap: 4px; padding-bottom: 40px; }
.load-ring { width: 76px; height: 76px; margin-bottom: 10px; }
.load-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.load-ring circle { fill: none; stroke: rgba(31, 94, 159, 0.14); stroke-width: 6; }
.load-ring .arc { stroke: var(--action); stroke-linecap: round; stroke-dasharray: 176; stroke-dashoffset: 176; animation: ringFill linear forwards; }
@keyframes ringFill { to { stroke-dashoffset: 0; } }
.load-step { font-size: 14px; color: var(--ink-3); margin: 6px 0 0; }

/* Round 6: content sits in the middle of the pop-up (no dead gap above the buttons),
   bigger headers and descriptions like the old SwapDesk, slimmer home buttons. */
.screen-main { display: flex; flex-direction: column; justify-content: center; }
.screen-main > * { flex: none; }
.h-title { font-size: clamp(1.95rem, 7.4vw, 2.3rem); line-height: 1.1; margin: 10px 0 12px; }
.h-title.h-big { font-size: clamp(2.3rem, 9vw, 2.75rem); margin-top: 18px; }
.par { font-size: 17px; line-height: 1.45; margin: 0 0 16px; }
.lead.big-lead { font-size: 19px; line-height: 1.45; }
.lead.big-lead strong { font-weight: 700; }
.lead.big-lead strong.num { font-weight: 800; color: var(--brand-deep); }
.home .h-display { font-size: clamp(2.7rem, 12vw, 3.6rem); margin: 0 0 14px; }
.home .lead { font-size: 16px; }
.home .stack.tight { width: min(72%, 290px); gap: 16px; margin: 26px auto 0; }
.home .stack.tight .btn { min-height: 60px; font-size: 17px; border-radius: 16px; }
.home .screen-foot .home-note { width: min(84%, 320px); }
.home .h-display { font-size: clamp(2.3rem, 9.6vw, 3.4rem); }
.home .stack.tight { width: min(80%, 300px); }
.home .stack.tight .btn { font-size: 16.5px; white-space: nowrap; padding-inline: 14px; }
.h-title.h-big { font-size: clamp(2rem, 8vw, 2.6rem); }
/* Round 7: no dead space. Spread each screen's blocks evenly down the pop-up
   and scale the key content up so short screens feel full, not empty. */
.screen-main { justify-content: space-evenly; gap: 6px; }
.screen-main > .stack, .screen-main > .cities { margin-top: 6px; margin-bottom: 6px; }
.lead.big-lead { font-size: clamp(19px, 2.6vh, 23px); }
.h-title.h-big { font-size: clamp(2.2rem, 5.2vh, 2.9rem); }
.cities { gap: 14px; }
.cities .opt { min-height: clamp(58px, 8vh, 76px); font-size: 17px; }
.city-text { font-size: 17px; line-height: 1.45; }
.opt.crumb { min-height: clamp(58px, 7.5vh, 70px); font-size: 17px; }
.lines { font-size: 16px; }
.lines li { padding: 10px 0; }
.home .screen-main { justify-content: space-evenly; }
.home .stack.tight { margin: 0 auto; }
.h-title.h-big { font-size: clamp(2rem, min(8.6vw, 5vh), 2.8rem); white-space: nowrap; }
.cities .opt { font-size: 16px; padding: 10px 8px; white-space: nowrap; }
/* Home: equal space between headline, intro and buttons (no margins, the column spaces them). */
.home .screen-main { justify-content: center; gap: clamp(22px, 3.6vh, 36px); padding: 8px 0 12px; }
.home .screen-main > * { margin: 0 !important; }
.home .stack.tight { margin: 0 auto !important; }
.home .home-note { margin-inline: auto !important; }
@media (max-width: 600px) { .popup { height: 88%; } }
.home .screen-main { gap: clamp(22px, 4.4vh, 46px); }
.home .h-display { font-size: clamp(2.3rem, min(10.5vw, 6vh), 3.6rem); }
.home .stack.tight { gap: clamp(14px, 2.2vh, 20px); }
.home .stack.tight .btn { min-height: clamp(58px, 8vh, 74px); font-size: clamp(16.5px, 2.2vh, 19px); }
.home .lead { font-size: clamp(15px, 2.2vh, 18px); }
.home .home-note { font-size: clamp(12.5px, 1.7vh, 14px); }

/* Round 8: "Your Device" result page, and one style for every bottom action:
   pill-shaped like Go Back / Confirm, distinct from the rounded selection buttons. */
.congrats { font: 800 clamp(1.9rem, min(8vw, 4.6vh), 2.5rem)/1.1 var(--display); letter-spacing: -0.024em; margin: 8px 0 4px; }
.screen-foot > .btn {
  width: min(100%, 374px); min-height: 54px; height: 54px; border-radius: 30px; margin: 0 auto;
  font-size: 17px; font-weight: 600; box-shadow: none; border-width: 2px;
}
.screen-foot > .btn.blue { background: var(--action); border-color: var(--action); color: #fff; }
.screen-foot > .btn.green.fill { background: #1fae55; border-color: #1fae55; color: #fff; }
.screen-foot .pill { height: 54px; border-radius: 30px; }
.screen-foot .pills { width: min(100%, 374px); margin: 0 auto; }
.screen-foot .pill { flex: 1 1 0; max-width: none; min-width: 0; }
.screen-foot .pills .pill:only-child { flex: 0 1 200px; }
/* No address line at the top of the pop-up: the credit sits at the bottom. */
.popup-head { padding: 10px 20px 0; min-height: 10px; }
@media (max-width: 600px) { .popup-head { padding-top: 8px; } .popup-head .grab { margin-bottom: 2px; } }

/* Home: headline and intro read as one block; buttons and note sit together below it. */
.home .screen-main { gap: clamp(26px, 4.2vh, 40px); }
.home-intro .h-display { margin: 0 0 12px !important; }
.home-intro .lead { margin: 0 auto !important; }
.home .home-note { margin-top: calc(-1 * clamp(8px, 1.6vh, 16px)) !important; }
.home .screen-main { gap: clamp(26px, 5.4vh, 52px); }

.tiv { margin: 4px 0 0; }
.tiv-label { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.tiv .big-num { margin: 2px 0 0; }

.tiv { margin: 4px 0 0; }
.tiv-label { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.tiv .big-num { margin: 2px 0 0; }

.home .lead { max-width: none; font-size: clamp(13.5px, min(3.9vw, 2.2vh), 17px); }
.home .lead .nw { white-space: nowrap; }
.home .lead .lead-2 { display: inline-block; margin-top: 6px; color: var(--ink-3); }

.home .lead { font-size: clamp(14px, min(4.4vw, 2.4vh), 18px); }
@media (max-height: 700px) and (max-width: 600px) { .home .lead { display: block; font-size: 14px; } .home .lead .lead-2 { display: none; } }
.home .lead { font-size: clamp(13.5px, min(4.05vw, 2.4vh), 18px); }

/* Device picking: progress bar and sliding headings. */
.pick-progress { max-width: 240px; margin: 4px auto 6px; }
.pick-progress i { transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pick-head-wrap { position: relative; overflow: hidden; }
.pick-head.leaving { position: absolute; inset: 0 0 auto 0; pointer-events: none; }
.loading .screen-main { justify-content: flex-start; }
.loading .load-bar { margin-top: 4px; }
.pick-progress { width: 100%; max-width: 240px; flex: none; height: 5px; background: rgba(31, 94, 159, 0.14); }
.pick-progress i { background: var(--action); }

/* Header and its description always read as one block. */
.head-block .h-title { margin-bottom: 8px; }
.head-block .par { margin: 0; }
.result-block .tiv { margin: 0 0 10px; }
.result-block .congrats { margin: 0 0 8px; }
.result-block .par { margin: 0; }
.result-block .tiv { margin-bottom: 16px; } .result-block .congrats { margin-bottom: 10px; }

.checks { list-style: none; margin: 4px auto 0; padding: 0; width: var(--col); text-align: left; font-size: 15.5px; line-height: 1.4; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--action); font-weight: 700; }
.so-far-inline b { color: var(--brand-deep); font-weight: 800; }

/* Hover tints only on devices with a real pointer (phones keep :hover after a tap). */
@media (hover: hover) and (pointer: fine) {
  .opt:hover { background: var(--hover); }
  .btn:hover { background: var(--hover); }
  .btn.blue:hover { background: var(--action-hover); }
  .btn.green:hover { background: #eafbf0; }
  .btn.green.fill:hover { background: #189447; }
  .pill:hover { background: rgba(255, 255, 255, 0.6); }
  .pill.go:hover { background: var(--action-hover); }
  .link:hover { text-decoration: underline; }
  .row:hover { background: #f4f9ff; }
  .cmp .x:hover { background: #f1f4f7; color: var(--ink); }
}

.choose .screen-main { justify-content: center; gap: clamp(24px, 4vh, 40px); }
.choose .q-opts { gap: 16px; margin: 0 auto; }
.choose .q-opts .opt { min-height: clamp(88px, 12vh, 112px); padding: 22px 24px; }
.choose .q-opts .opt .main { font-size: 19px; }
.choose .par strong.num { color: var(--brand-deep); font-weight: 800; }

/* Choices made so far collapse into a one-line trail under search: Phones › Apple › iPhone Air */
.trail { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 4px; width: var(--col); margin: 4px auto 2px; }
.trail .chip { min-height: 34px; font-size: 14.5px; padding: 0 10px 0 14px; }
.trail-sep { color: var(--ink-3); font-size: 18px; line-height: 1; padding: 0 2px; }
.trail { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; width: auto; margin-inline: -24px; padding: 2px 24px; }
.trail::-webkit-scrollbar { display: none; }
.trail .chip { flex: none; font-size: 14px; padding: 0 8px 0 12px; }
.trail:has(.chip:only-child), .trail { justify-content: safe center; }

/* Home, round 9: headroom above the headline; the intro reads as one paragraph. */
.home .screen-main { justify-content: center; padding-top: clamp(28px, 6vh, 64px); }
.home .lead { font-size: clamp(15px, min(4.3vw, 2.3vh), 18px); line-height: 1.45; max-width: 31ch; margin-inline: auto !important; color: var(--ink-2); }
.home .home-note { max-width: 36ch; }
.home .lead { max-width: 35ch; }
@media (max-height: 700px) and (max-width: 600px) { .home .screen-main { padding-top: 14px; gap: 20px; } .home .lead { display: none; } }
.home .lead { max-width: none; font-size: clamp(15px, min(4.1vw, 2.2vh), 17px); }

/* Picking screens: compact heading and one-line help, so the options are visible straight away. */
.pick-head .h-title { font-size: clamp(1.5rem, 6vw, 1.75rem); margin: 6px 0 4px; }
.pick-head .par { font-size: 14px; line-height: 1.35; color: var(--ink-3); margin: 0 0 4px; }
.pick-search { padding-top: 6px; padding-bottom: 4px; }
.picking .screen-main { justify-content: flex-start; gap: 0; }
.picking .stack { margin-top: 10px; }

/* Tighter side margins everywhere. */
.popup-body { padding-left: 14px; padding-right: 14px; }
.screen-foot, .list-top, .pick-search { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
.chips { margin: 0 -14px; padding-inline: 14px; }
:root { --col: min(100%, 400px); --btncol: min(92%, 380px); }
.screen.wide { max-width: 620px; }
/* The Menu / Trade-In Menu */
.list-head { text-align: center; padding: 6px 0 2px; }
.list-head .h-title { margin: 4px 0 2px; }
.list-sub { margin: 0; font-size: 13px; color: var(--ink-3); }
.list-top { gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.list-top .trail { margin: 0; }
.step-q { margin: 14px 0 0; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
.table-bar { display: grid; gap: 6px; margin: 4px 0 0; }
.table-bar .list-actions { justify-content: center; margin: 0; }
/* Picking screens, round 3: keep the roomy spacing of the original; only the help text is smaller.
   Short lists sit centred in the pop-up; long lists start under the search and scroll. */
.picking .screen-main { justify-content: center; gap: 18px; padding-top: 16px; padding-bottom: 16px; }
.picking .screen-main > * { margin-top: 0; margin-bottom: 0; }
.pick-head .h-title { font-size: clamp(1.75rem, 6.6vw, 2.1rem); margin: 0 0 8px; }
.pick-head .par { font-size: 14.5px; color: var(--ink-3); margin: 0; }
.pick-search { padding-top: 8px; padding-bottom: 8px; }
.picking .trail { margin: -4px auto 0; }
.picking .stack { margin-top: 0; }
.picking .pick-progress { margin: 0 auto; }
.result-block .congrats { font-size: clamp(1.6rem, min(6.6vw, 3.8vh), 2.1rem); }
.result-block .par { font-size: 15.5px; line-height: 1.45; }
/* Condition checklist: tight like the old site. */
.checks { gap: 2px; font-size: 15px; line-height: 1.35; }
.checks li { padding-left: 22px; }
/* Menu header rows: search, choices, conditions, share/copy and the list, all 14px apart. */
.list-top { gap: 14px; padding-bottom: 7px; }
.list-top .trail { margin: 0; padding-top: 0; padding-bottom: 0; }
.table-bar { gap: 14px; margin: 7px 0 0; }
.table-bar .chips { padding-top: 0; padding-bottom: 0; }
.table-bar .list-actions { margin: 0; }
.table-bar + .series { margin-top: 14px; }
.wide.picking .screen-main { gap: 0; justify-content: flex-start; }
.wide.picking .list-head { margin-bottom: 14px; }
/* Picking headings may wrap to two lines; keep them at the standard title size. */
.pick-head .h-title { font-size: clamp(1.85rem, 7.4vw, 2.3rem); line-height: 1.12; }
.wide.picking .screen-main { gap: 0; justify-content: flex-start; }
.wide.picking .list-head { margin-bottom: 14px; }
.pick-head .h-title { font-size: clamp(1.85rem, 7.4vw, 2.3rem); line-height: 1.12; }
.list-head .h-title .hub { color: #6DA64A; }
.list-sub { font-size: 14.5px; color: var(--ink-2); line-height: 1.4; margin: 2px 0 0; }
.list-date { font-size: 12.5px; color: var(--ink-3); margin: 4px 0 0; }
.choose .head-block .h-title { margin-bottom: 14px; }
.choose .choose-num { margin: -8px 0 0; }
/* Compare: each device carries its own Proceed to Swap. */
.cmp .cmp-go { align-self: stretch; margin-top: 12px; height: 46px; min-width: 0; font-size: 16px; font-weight: 600; }
.mine.chosen .val small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); text-align: right; }
/* Every page heading starts on the same line: content is top-aligned under a fixed top offset.
   On short choice pages the options sit in the middle of the space below the heading. */
.screen:not(.home) .screen-main { justify-content: flex-start !important; padding-top: 18px !important; }
.screen:not(.home) .screen-main > :first-child,
.screen:not(.home) .screen-main > .pick-progress + .pick-head-wrap,
.screen:not(.home) .screen-main > .progress:first-child + * { margin-top: 0 !important; }
.screen:not(.home) .screen-main .h-title { margin-top: 0 !important; }
.screen:not(.home) .screen-main > .progress:first-child, .screen:not(.home) .screen-main > .pick-progress:first-child { margin-bottom: 18px !important; }
.screen:not(.home) .screen-main > .eyebrow:first-child { margin: 0 0 6px !important; }
.choose .screen-main > .head-block + * { margin-top: auto !important; }
.choose .screen-main > :last-child { margin-bottom: auto !important; }
.loading .screen-main { justify-content: flex-start !important; }
/* Same heading line on every page: progress bars and the question counter sit in a fixed band above it. */
.screen { position: relative; }
.screen:not(.home) .screen-main { padding-top: 58px !important; }
.screen:not(.home) .screen-main > .progress,
.screen:not(.home) .screen-main > .pick-progress { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 240px; margin: 0 !important; }
.screen:not(.home) .screen-main > .eyebrow:first-child { position: absolute; top: 24px; left: 0; right: 0; margin: 0 !important; }
.list-head { padding: 0 !important; }
.loading .screen-main > .load-bar { top: 12px; }
/* Even vertical rhythm: heading → 8px → subtext → 18px → next block. */
.head-block .h-title, .screen-main > .h-title { margin: 0 0 8px !important; }
.head-block .par, .screen-main > .h-title + .par { margin: 0 0 18px !important; }
.screen-main > .mine, .screen-main > .stack, .screen-main > .cmp-grid, .screen-main > .cities, .screen-main > .card { margin-top: 0 !important; margin-bottom: 18px !important; }
.city-sub { min-height: 2.9em; }
.wide.picking .list-head .h-title, .list-head .h-title { margin: 0 0 4px !important; }
.list-head { margin-top: -4px; }
.list-head { margin-top: -6px; }

/* Device name sits directly on its value, everywhere the value is shown. */
.dev-value { margin: 0 0 6px; }
.dev-line { margin: 0 0 2px; font-size: 16px; color: var(--ink); }
.dev-value .big-num { margin: 0; }
.choose .screen-main > .head-block + .dev-value { margin-top: auto !important; }

/* One header standard (Complete your Swap): title → 8px → subtext → 18px. */
.head-block .h-title, .screen-main > .h-title, .list-head .h-title, .wide.picking .list-head .h-title { margin: 0 0 8px !important; }
.head-block .par, .list-head .list-sub { margin: 0 0 18px !important; }
.list-head .list-sub:has(+ .list-date) { margin-bottom: 6px !important; }
.head-block .par { font-size: 16px; line-height: 1.45; }
/* Selected-device blocks keep the button column's margins instead of running to the edge. */
.screen-main > .mine, .screen-main > .card, .screen-main > .cmp-grid, .screen-main > .btn.add { width: var(--btncol) !important; max-width: 100%; margin-left: auto !important; margin-right: auto !important; box-sizing: border-box; }
/* Pinned search/trail on the lists: solid enough that rows scrolling under it don't show through. */
.list-top, .pick-search, .series-h { background: rgba(236, 244, 255, 0.97) !important; }

/* Home on laptops and tablets: the headline stays on two lines and everything fits without scrolling. */
.home .h-display { white-space: nowrap; }
@media (min-width: 601px) {
  .home .h-display { font-size: clamp(2.3rem, min(5.4vh, 3.2rem), 3.2rem); }
  .home .screen-main { gap: clamp(14px, 3.2vh, 34px); padding-bottom: 4px; }
  .home .stack.tight { gap: clamp(10px, 1.6vh, 16px); }
  .home .stack.tight .btn { min-height: clamp(50px, 6.6vh, 62px); }
  .home .lead { font-size: clamp(15px, 2vh, 17px); }
}
@media (min-width: 601px) and (max-height: 700px) {
  .home .screen-main { gap: 12px; }
  .home .stack.tight .btn { min-height: 48px; }
}
@media (max-width: 360px) { .home .h-display { font-size: 10.2vw; } }

/* List pages: same header rhythm and text as every other page, held to the same column as the home page. */
.list-head, .list-top .field, .list-top .trail, .table-bar { width: min(100%, 440px); margin-left: auto !important; margin-right: auto !important; }
.list-head .h-title { margin: 0 0 8px !important; }
.list-head .list-sub { font-size: 16px; line-height: 1.45; color: var(--ink-2); margin: 0 0 6px !important; }
.list-head .list-date { margin: 0 !important; }
.wide.picking .list-head { margin-bottom: 18px; }
/* Condition chips wrap and centre instead of running off the edge. */
.table-bar .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; overflow: visible; margin: 0; padding-inline: 0; }
.table-bar .chips .chip { flex: none; }

/* ===== One content column on every page =====
   The pop-up keeps a real side margin, and everything inside it (headers, subtext, search, chips,
   lists, cards, buttons) sits in the same centred column, so nothing runs to the pop-up's edges. */
:root { --pad: 22px; --colmax: 440px; }
@media (min-width: 601px) { :root { --pad: 32px; } }
.popup-body { padding-left: var(--pad) !important; padding-right: var(--pad) !important; }
.screen-foot, .list-top, .pick-search { margin-left: calc(-1 * var(--pad)) !important; margin-right: calc(-1 * var(--pad)) !important; padding-left: var(--pad) !important; padding-right: var(--pad) !important; }
.screen-main > :not(.list-top):not(.pick-search):not(.progress):not(.pick-progress):not(.eyebrow), [data-list] > *, .list-top > *, .pick-search > *, .screen-foot > * { max-width: var(--colmax); margin-left: auto !important; margin-right: auto !important; box-sizing: border-box; }
.screen-main > .head-block, .screen-main > .list-head, [data-list] > *, .list-top > .field, .list-top > .trail, .pick-search > .field, .screen-main > .dev-value, .list-top .field, .pick-search .field { width: 100%; }
.screen-foot > .pills { width: min(100%, var(--colmax)); }
.table-bar .chips { margin-left: 0 !important; margin-right: 0 !important; }
/* Small caps labels get the same space below as above. */
.step-q { margin: 14px 0 12px !important; }

/* Home: buttons, note and credit move up together as one unit; lead → first button gap is 20% tighter. */
:root { --hg: clamp(26px, 5.4vh, 52px); }
@media (min-width: 601px) { :root { --hg: clamp(14px, 3.2vh, 34px); } }
@media (min-width: 601px) and (max-height: 700px) { :root { --hg: 12px; } }
.home .screen-main { gap: var(--hg) !important; }
.home .home-intro { transform: translateY(-12px); }
.home .stack.tight, .home .home-note, .home .screen-foot .credit { transform: translateY(calc(-12px - 0.2 * var(--hg))); }

/* One box width for every container (search, trail, options, list rows, cards), phone and laptop alike.
   Header text can run a little wider; boxes never touch the pop-up's sides. */
:root { --box: min(86%, 380px); }
.screen-main [data-list], .screen-main > .table-bar { width: 100% !important; }
.list-top .field, .pick-search .field, .screen-main > .field,
.stack, .screen-main .stack, [data-list] .stack, [data-list] > .series, [data-list] > .table-bar,
.screen-main > .mine, .screen-main > .card, .screen-main > .cmp-grid, .screen-main > .cities, .screen-main > .checks,
.list-top .trail, .pick-search + .trail, .screen-main > .trail, .screen-main > .step-q {
  width: var(--box) !important; max-width: var(--box) !important; margin-left: auto !important; margin-right: auto !important; box-sizing: border-box;
}
.home .stack.tight { width: min(80%, 300px) !important; max-width: none !important; }
.list-head, .head-block { width: min(94%, 440px) !important; }
/* Search: the clear button only takes space once something is typed, so the full example fits. */
.field input:placeholder-shown { padding-right: 12px !important; padding-left: 42px !important; }

/* Lists: series → model card (bold name) → condition rows → storage sizes with prices. */
.series > .group + .group { margin-top: 10px; }
.model-h { margin: 0; padding: 12px 16px 4px; font-weight: 700; font-size: 17px; color: var(--ink); }
.model-h + .row { border-top: 0; }
.row .t { font-weight: 600; }
.model-row .t { font-weight: 700; font-size: 17px; }
.row .v small { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-right: 2px; }
.row-more .more-note { margin: 4px 0 8px; font-size: 13.5px; color: var(--ink-2); }
.sizes { display: grid; gap: 8px; }
.size { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid #cfe0f3; border-radius: 12px; background: #fff; font-size: 15.5px; text-align: left; }
.size .st { flex: 1; font-weight: 600; }
.size .sp { font-weight: 700; font-variant-numeric: tabular-nums; }
.size .sa { min-width: 64px; text-align: center; padding: 6px 10px; border-radius: 999px; background: var(--action); color: #fff; font-size: 13.5px; font-weight: 600; }
.size.in { background: var(--selected); border-color: #9fcaf5; }
.size.in .sa { background: transparent; color: var(--brand-deep); }
.deal-row .size-add { flex: none; padding: 6px 12px; border-radius: 999px; border: 0; background: var(--action); color: #fff; font-size: 13.5px; font-weight: 600; }
.row .v small { display: block; text-align: right; margin: 0 0 -2px; line-height: 1.1; }
.row .v { text-align: right; }
/* Default header line, a little higher on every page (progress bar and counter still clear it). */
.screen:not(.home) .screen-main { padding-top: 46px !important; }

/* Audit fixes */
.screen-main > .checks, .screen-main > .btn.add { width: var(--box) !important; max-width: var(--box) !important; }
.mine-how .lines + .link, .mine-how .lines + p, .mine-how > p { margin-top: 12px !important; }
.screen:not(.home) .screen-main > .eyebrow:first-child { top: 20px !important; }

.soon-row .t { font-weight: 700; font-size: 17px; }
.soon-tag { flex: none; padding: 5px 11px; border-radius: 999px; background: #e3f0ff; color: var(--brand-deep); font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; }
/* Condition checklist: smaller text */
.screen-main > .checks { font-size: 13.5px !important; line-height: 1.35; gap: 3px; }
.screen-main > .checks li { padding-left: 20px; }
.screen-main > .checks { margin-bottom: 28px !important; }

/* Sold out: listed so customers know we sell it, never priced or selectable. */
.size.out { opacity: 0.55; background: #f3f6fa; border-style: dashed; }
.size.out .sa, .opt.out .val.sold, .row .v.out { background: none; color: #c0392b; font-weight: 700; font-size: 13.5px; padding: 0; }
.opt.ver.out { opacity: 0.55; cursor: default; }
.notice-only { margin: 12px auto 0; padding: 10px 14px; border-radius: 12px; background: #fff4e5; color: #8a4b00; font-size: 14px; line-height: 1.4; max-width: var(--box); }

/* Swap Rates: compact cards, three lines each. */
.mine.slim { padding: 10px 14px 4px; }
.mine.slim .mine-top { align-items: baseline; }
.mine.slim .mine-top .main { display: flex; align-items: baseline; flex-wrap: wrap; min-width: 0; }
.mine.slim .mine-top b { display: inline; font-size: 16px; }
.mine.slim .mine-top .sub { display: inline; font-size: 14px; }
.mine.slim .mine-top .val { font-size: 19px; }
.mine.slim .mine-cond { margin: 2px 0 0; font-size: 13px; }
.mine.slim .mine-how { margin-top: 4px; padding-top: 0; }
.mine.slim .mine-how summary { min-height: 34px; padding: 4px 0; font-size: 14px; }
.mine.slim .mine-how[open] .mine-cond { white-space: normal; }
.cmp.slim { min-height: 0; padding: 10px 14px 12px; gap: 4px; }
.cmp.slim .t { font-weight: 400; font-size: 15px; line-height: 1.3; padding-right: 30px; }
.cmp.slim .t b { font-weight: 700; }
.cmp.slim .t .s { font-size: 13.5px; }
.cmp.slim .row2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cmp.slim .kn { white-space: nowrap; }
.cmp.slim .k { margin: 0; padding: 0; font-size: 11px; display: inline; }
.cmp.slim .n { font-size: 19px; display: inline; }
.cmp.slim .cmp-go { margin-top: 6px; height: 38px; font-size: 15px; }
.cmp.slim .x { top: -2px; right: -2px; }
/* Choose page: value sits closer under the subtext so both options and Go Back show without scrolling. */
.choose .screen-main > .head-block + .dev-value, .choose .screen-main > .head-block + * { margin-top: 14px !important; }
.choose .screen-main > :last-child { margin-bottom: 0 !important; }
.choose .q-opts .opt { min-height: 0; padding: 18px 22px; }
@media (max-height: 760px) {
  .choose .screen-main { justify-content: flex-start !important; }
  .choose .head-block .par { margin-bottom: 10px !important; }
  .choose .screen-main > .head-block + .dev-value { margin-top: 4px !important; }
  .choose .dev-value .big-num { font-size: 46px; }
  .choose .q-opts { gap: 10px; }
  .choose .q-opts .opt { padding: 13px 18px; }
  .choose .q-opts .opt .main { font-size: 17px; }
}
@media (max-height: 760px) {
  .choose .screen-main { gap: 12px !important; }
  .choose .head-block .par { margin-bottom: 0 !important; }
  .choose .q-opts .opt .sub { font-size: 14px; }
}
@media (max-height: 760px) {
  .choose .screen-main { gap: 8px !important; }
  .choose .dev-value .big-num { font-size: 40px; }
  .choose .q-opts .opt { padding: 10px 16px; }
  .choose .q-opts { gap: 8px; }
}
/* Swap Rates cards never grow past their column (long names wrap or trim instead). */
.cmp-grid { grid-template-columns: minmax(0, 1fr) !important; }
@media (min-width: 560px) { .cmp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; } }
.cmp, .cmp.slim .row2, .cmp.slim .t { min-width: 0; }
.cmp.slim .row2 .p { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp.slim .t { white-space: normal; overflow: visible; }
.cmp.slim .row2 .p { overflow: visible; white-space: nowrap; font-size: 13px; }
.cmp.slim .row2 { flex-wrap: wrap; row-gap: 2px; }
.cmp.slim .n { font-size: 18px; }
.cmp.slim .k { font-size: 10.5px; }
.cmp.slim .t { }
.cmp.slim .row2 { flex-wrap: nowrap; }
.cmp.slim .row2 .p { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
.cmp.slim .row2 { align-items: flex-end; }
.cmp.slim .row2 .p { white-space: nowrap; overflow: visible; line-height: 1.35; }
.cmp.slim .kn { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.cmp.slim .n { font-size: 21px; }

/* Several trade-in devices on Swap Rates */
.mine.multi { margin-bottom: 10px !important; position: relative; }
.mine.multi .mine-top { padding-right: 34px; }
.mine.multi .eyebrow-s { display: block; }
.mine .x { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; border: 0; background: none; color: #6a7c90; display: grid; place-items: center; border-radius: 50%; }
.mine .x svg { width: 16px; height: 16px; }
.screen-main > .trade-total { width: var(--box); max-width: var(--box); margin: 0 auto 12px !important; display: flex; justify-content: space-between; align-items: baseline; padding: 4px 14px; font-size: 15px; color: var(--ink-2); }
.trade-total b { font: 800 22px/1 Inter; color: var(--brand-deep); letter-spacing: -0.02em; }
.screen-main > .btn.trade-add { margin-bottom: 22px !important; min-height: 48px; font-size: 16px; background: transparent; border-style: dashed; }
.mine.multi { padding-top: 8px; }
.mine.multi .mine-top .main { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; }
.mine.multi .mine-top b, .mine.multi .mine-top .sub { display: inline; }
.mine.multi .mine-top .val { font-size: 17px; flex: none; }
.mine.multi .mine-how summary { min-height: 30px; padding: 2px 0; font-size: 13.5px; }
.mine.multi .x { top: 2px; right: 0; }
.mine.multi .mine-top .main { white-space: normal; overflow: visible; min-width: 0; flex: 1; }
.mine.multi .mine-top b { font-size: 15.5px; line-height: 1.25; }

/* Choose page with several trade-in devices */
.dev-list { width: var(--box); margin: 0 auto 10px; background: rgba(255,255,255,0.7); border: 1px solid #d9e2ea; border-radius: 14px; padding: 4px 6px 4px 14px; }
.dev-list .dev-line { display: flex; align-items: center; gap: 6px; margin: 0; padding: 6px 0; font-size: 15px; text-align: left; }
.dev-list .dev-line + .dev-line { border-top: 1px solid #e6ebf0; }
.dev-list .dv { margin-left: auto; font-weight: 700; color: var(--brand-deep); font-variant-numeric: tabular-nums; }
.dev-list .x { flex: none; width: 34px; height: 34px; border: 0; background: none; color: #8a99aa; display: grid; place-items: center; border-radius: 50%; }
.dev-list .x svg { width: 14px; height: 14px; }
.choose .q-opts .opt svg { flex: none; }

.choose .q-opts .opt[data-act="addtrade"] { min-height: 0; padding: 12px 22px; background: transparent; border: 1.5px dashed #9fcaf5; box-shadow: none; }
.choose .q-opts .opt[data-act="addtrade"] .main { font-size: 16.5px; color: var(--action); }
.choose .q-opts .opt[data-act="addtrade"] svg { color: var(--action); width: 18px; height: 18px; }
.choose.multi .screen-main { justify-content: flex-start !important; gap: 0 !important; }
.choose.multi .head-block .par { margin-bottom: 12px !important; }
.choose.multi .screen-main > .head-block + .dev-value { margin-top: 0 !important; }
.choose.multi .dev-value { margin-bottom: 12px; }
.choose.multi .dev-list { margin-bottom: 8px; }
.choose.multi .dev-list .dev-line { padding: 3px 0; font-size: 14.5px; }
.choose.multi .tiv-label { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.choose.multi .big-num { font-size: 46px; line-height: 1.05; margin: 0; }
.choose.multi .q-opts { gap: 10px; }
.choose.multi .q-opts .opt { padding: 12px 18px; }
.choose.multi .q-opts .opt .main { font-size: 17px; }
.choose.multi .q-opts .opt .sub { font-size: 14px; }

.choose .q-opts .opt[data-act="addtrade"] { padding: 10px 22px; min-height: 48px; }
.choose .q-opts .opt[data-act="addtrade"] small { font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.choose .q-opts { gap: 10px; }
.choose .dev-value .big-num { font-size: clamp(44px, 7vh, 64px); }
.choose .head-block .par { margin-bottom: 10px !important; }
.choose .screen-main { gap: 8px !important; }
.choose .screen-main > .head-block + .dev-value { margin-top: 0 !important; }
.choose .q-opts .opt { padding: 14px 20px; }
.choose.multi .q-opts .opt { padding: 9px 18px; }
.choose.multi .q-opts .opt[data-act="addtrade"] { min-height: 42px; padding: 6px 18px; }
.choose.multi .big-num { font-size: 42px; }
.choose.multi .dev-list { padding-top: 2px; padding-bottom: 2px; }
.choose .q-opts .opt[data-act="addtrade"] .main { white-space: nowrap; }
.choose .screen-main > .btn.trade-add { margin-bottom: 10px !important; }

/* Choose page: navigation buttons, centred like the rest of the site's navigation. */
.choose .screen-main > .btn.trade-add, .choose .nav-stack { width: var(--box) !important; max-width: var(--box) !important; margin-left: auto !important; margin-right: auto !important; }
.choose .nav-stack { display: grid; gap: 10px; }
.choose .nav-stack .btn { width: 100%; min-height: 56px; justify-content: center; text-align: center; font-size: 17px; }
.choose .screen-main > .btn.trade-add { min-height: 56px; justify-content: center; }
/* All three choose-page buttons share one size. */
.choose .screen-main > .btn.trade-add, .choose .nav-stack .btn { height: 58px !important; min-height: 58px !important; padding-top: 0 !important; padding-bottom: 0 !important; font-size: 17px !important; box-sizing: border-box; }
/* All three choose-page buttons share one size. */
.choose .screen-main > .btn.trade-add, .choose .nav-stack .btn { height: 58px !important; min-height: 58px !important; padding-top: 0 !important; padding-bottom: 0 !important; font-size: 17px !important; box-sizing: border-box; }
/* Equal space above the total label and below the total amount. */
.choose.multi .dev-list { margin-bottom: 16px !important; }
.choose.multi .dev-value { margin-bottom: 0 !important; }
.choose.multi .dev-value .big-num { line-height: 1; padding-bottom: 0; }
.choose.multi .screen-main > .dev-value + .btn.trade-add { margin-top: 16px !important; }
/* Device list: values line up on the right. */
.dev-list .dev-line { display: grid !important; grid-template-columns: auto 1fr auto 34px; align-items: center; }
.dev-list .dev-line .dv { text-align: right; }
.dev-list .ds { white-space: nowrap; color: var(--ink-2); }
/* Go Back (and every outline pill) uses the same outline as the outline buttons. */
.pill:not(.go) { border: 1px solid var(--action) !important; }
.choose .screen-main > .btn.trade-add { width: calc(var(--box) * 0.98) !important; max-width: calc(var(--box) * 0.98) !important; height: 57px !important; min-height: 57px !important; }

/* Device list: fixed columns (name · storage · value · remove), one line each, whatever the name length. */
.choose .dev-list { width: min(100%, 380px) !important; max-width: none !important; padding: 2px 4px 2px 12px; }
.dev-list .dev-line { grid-template-columns: minmax(0, 1fr) 58px 96px 30px !important; column-gap: 6px; padding: 6px 0 !important; }
.dev-list .dev-line strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.dev-list .ds { text-align: center; font-size: 13.5px; }
.dev-list .dv { text-align: center !important; margin: 0; font-size: 14px; }
.dev-list .x { width: 30px; height: 30px; justify-self: center; }
/* Same space under the total whether or not the add button is there. */
.choose.multi .screen-main > .dev-value + .nav-stack { margin-top: 16px !important; }
.choose .dev-list { padding: 2px 2px 2px 10px; }
.dev-list .dev-line { grid-template-columns: minmax(0, 1fr) 50px 86px 26px !important; column-gap: 4px; }
.dev-list .dev-line strong { text-overflow: clip; }
.dev-list .ds { font-size: 13px; }
.dev-list .dv { font-size: 13.5px; }
.dev-list .x { width: 26px; height: 26px; }

/* Quote page (opened from a link) */
.qv-head .par { margin-bottom: 12px !important; color: var(--ink-3); font-size: 15px !important; }
.qv-total { margin: 0 auto 8px; text-align: center; }
.qv-total .tiv-label { margin: 0 0 2px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.qv-total .big-num { margin: 0; line-height: 1.05; }
.qv-total .small { margin: 6px 0 0; }
.screen-main > .qv-label { width: var(--box); max-width: var(--box); margin: 14px auto 6px !important; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-deep); text-align: left; }
.screen-main > .qv-card { width: var(--box); max-width: var(--box); margin: 0 auto 6px !important; background: #fff; border: 1px solid #d9e2ea; border-radius: 14px; padding: 4px 14px; text-align: left; }
.qv-dev + .qv-dev { border-top: 1px solid #e6ebf0; }
.qv-dev { padding: 8px 0; }
.qv-row { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.qv-name { flex: 1; min-width: 0; font-size: 15px; }
.qv-sub { color: var(--ink-2); font-weight: 400; white-space: nowrap; }
.qv-val { flex: none; font-weight: 800; color: var(--brand-deep); font-variant-numeric: tabular-nums; font-size: 15.5px; }
.qv-cond { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.qv-card .lines { margin: 8px 0 2px; padding: 0; }
.qv-tot { border-top: 1px solid #e6ebf0; padding: 10px 0 8px; }
.qv-tot .qv-name strong { font-size: 15px; }
.qv-foot { margin-top: 10px !important; }
.qv-name strong { display: block; white-space: nowrap; overflow: hidden; }

/* Quote page: what they pay leads */
.screen-main > .qv-label:first-of-type { margin-top: 4px !important; }
.qv-head + .qv-label, .notice + .qv-label { margin-top: 4px !important; }
.cmp-grid .cmp.slim .n { font-size: 24px; color: var(--brand-deep); }
.qv-card + .qv-foot { margin-top: 8px !important; }
/* Share page: brand mark on the left of each option, title and note on one line each */
.share-pg .q-opts .opt { gap: 14px; padding: 14px 16px; }
.share-pg .q-opts .opt .tt, .share-pg .q-opts .opt .sub { display: block; white-space: nowrap; overflow: hidden; }
.q-opts .opt .brand-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; }
.q-opts .opt .brand-ico svg { width: 22px; height: 22px; }
.brand-ico.image, .brand-ico.copy { background: #e6f1ff; color: var(--action); }
.brand-ico.walink { background: #25d366; color: #fff; }
.brand-ico.tiktok { background: #111; color: #fff; }
/* Reopened quote: WhatsApp pill */
.pill.wa, .screen-foot .pill.wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #1fae55; border-color: #1fae55 !important; color: #fff; }
.pill.wa svg { width: 20px; height: 20px; flex: none; }
.share-pg .q-opts { width: 100%; }
.share-pg .q-opts .opt { min-width: 0; }
.share-pg .q-opts .opt .tt { font-size: 17px; }
/* Swap rates: every trade-in card can be removed */
.mine.slim { position: relative; }
.mine.slim .mine-top { padding-right: 34px; }
/* Complete your Swap: change the device being swapped into */
.mine.chosen .chg { display: block; padding: 0; min-height: 0; margin-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--action); background: none; border: 0; text-align: left; }
.mine-edits { display: flex; gap: 20px; flex-wrap: wrap; }
.qv-head .qv-edit { display: block; margin: -4px auto 10px; padding: 0; min-height: 0; font-size: 15px; font-weight: 600; color: var(--action); background: none; border: 0; }
.conds-val { text-align: center; margin-top: 4px; } .conds-val b { color: var(--ink); }
/* Home: tiny brand line above the headline */
.home-kicker { position: relative; top: -6px; margin: 0 0 6px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #5a7fa0; text-align: center; }
/* Figures first, then what they mean underneath (BALANCE TO SWAP, VALUE FOR YOUR PHONE) */
.cmp .kn .k { margin-top: 3px; padding-top: 0; font-size: 11px; letter-spacing: 0.06em; }
.mine-top .val small, .qv-val small { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); text-align: right; white-space: nowrap; }
.mine-top .val, .qv-val { text-align: right; }
.mine.chosen .val small { margin-top: 2px; }
/* Trade-in card: condition on the left, what the figure means on the right, under the amount */
.mine.slim .mine-cond { display: flex; align-items: baseline; gap: 10px; }
.mine.slim .mine-cond .c { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine.slim .mine-how[open] .mine-cond .c, .mine.slim .mine-cond .c { display: block; }
.mine-cond .vx { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.mine.slim .mine-top { padding-right: 34px; }
/* Swap cards: the condition line wraps instead of running under the figure */
.cmp.slim .row2 .p { white-space: normal; }
/* Home: quiet "Open Quote" text link between the buttons and the note */
.home .open-quote { display: block; margin: 0 auto 6px; padding: 0 10px; line-height: 1.6; min-height: 0; background: none; border: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--action); }
/* Open a Quote page */
.oq-field { width: var(--col, 100%); max-width: 340px; margin: 18px auto 0; }
.oq-field input { text-align: center; font-size: 22px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.oq-err { text-align: center; color: #c0392b; min-height: 1.2em; }

.home .home-tail { margin: 0 !important; }
.home .home-tail .home-note { margin-top: 0 !important; }
/* Make room for Open Quote on phones: slightly tighter spacing between the home blocks */
@media (max-width: 600px) { :root { --hg: clamp(18px, 3.9vh, 42px); } }
.home .home-tail { transform: translateY(calc(-12px - 0.2 * var(--hg))); }
.home .home-tail .home-note { transform: none; }
/* Open Quote sits exactly midway: the same space above it (to the last button) as below it (to the note). */
.home .open-quote { line-height: 1; padding: 0 10px; margin: 0 auto 16px; }
.home .home-tail { margin-top: calc(16px - var(--hg)) !important; }
/* Home on phones: smaller note, and tighter spacing on shorter screens so nothing runs into the footer */
@media (max-width: 600px) {
  .home .home-note { font-size: 11.5px !important; line-height: 1.4; }
}
@media (max-width: 600px) and (min-height: 701px) and (max-height: 820px) { :root { --hg: clamp(14px, 2.6vh, 24px); } }
@media (max-width: 600px) and (min-height: 701px) and (max-height: 760px) { :root { --hg: 12px; } }

/* Swap devices: one card per model, a compact row per storage and condition (7 Oct). */
.mcard {
  background: var(--white); border: 1px solid #d3e0ec; border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(31, 94, 159, 0.06), 0 4px 14px rgba(31, 94, 159, 0.07);
}
.mcard.has-sel { border-color: #9fcaf5; }
.mcard-t { text-align: left; margin: 0; padding: 16px 20px 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.cfg {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 22px;
  text-align: left; background: none; border: 0; border-top: 1px solid #e8eff6; font-size: 15.5px; color: var(--ink);
  transition: background-color 0.15s ease;
}
.cfg .main { flex: 1; min-width: 0; }
.cfg .sub { display: block; font-size: 13px; font-weight: 400; color: var(--ink-2); margin-top: 1px; }
.cfg .val { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cfg .tick { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #9aa4ae; flex: none; display: grid; place-items: center; background: var(--white); }
.cfg[aria-checked="true"] { background: var(--selected); }
.cfg[aria-checked="true"] .main { font-weight: 600; }
.cfg[aria-checked="true"] .tick { background: var(--action); border-color: var(--action); }
.cfg[aria-checked="true"] .tick::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.cfg:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
.cfg.out { opacity: 0.55; cursor: default; }
.cfg.out .val.sold { background: none; color: #c0392b; font-weight: 700; font-size: 13.5px; padding: 0; }
@media (hover: hover) { .cfg:not(.out):hover { background: var(--hover); } .cfg[aria-checked="true"]:hover { background: var(--selected); } }
.cfg { padding: 11px 20px; gap: 14px; }
.cfg .l2 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 2px; }
.cfg .l2 .sub { margin-top: 0; }
.cfg .l2 .val { font-size: 15px; }
.cfg[aria-checked="true"] .l2 .sub { font-weight: 400; }

/* ---------- Sign in (7 Oct) ---------- */
.screen.welcome { display: flex; align-items: center; justify-content: center; min-height: 100%; text-align: center; }
.welcome-t { font-size: clamp(2.6rem, 11vw, 3.6rem); margin: 0; }
.me-chip {
  position: fixed; z-index: 20; top: calc(env(safe-area-inset-top, 0px) + 28px); right: 16px;
  height: 32px; padding: 0 14px; border-radius: 16px; border: 1px solid #cfe0f3; background: rgba(255, 255, 255, 0.92);
  color: var(--action); font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em;
  box-shadow: 0 2px 10px rgba(31, 94, 159, 0.08); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.me-chip:active { transform: scale(0.96); }
.btn.two { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.btn.two .bt { font-weight: 600; }
.btn.two .bs { font-size: 12px; font-weight: 500; opacity: 0.75; letter-spacing: 0; }
.si-fields { width: var(--col); margin: 0 auto; display: grid; gap: 14px; }
.si-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px 4px; text-align: left; }
.si-field input { width: 100%; font-size: 17px; }
.si-fields .small { margin: 0; text-align: center; }
.si-fields .oq-err:empty { display: none; }
.si-note { font-size: 12.5px; }
.me-pg .head-block .link, .me-pg .signout, .pin-card .link { background: none; border: 0; padding: 0; color: var(--action); font: inherit; font-weight: 600; cursor: pointer; }
.me-label { width: var(--col); margin: 6px auto 8px; text-align: left; }
.me-pg .mcard.codes, .me-pg .codes-empty, .pin-card { width: var(--col); margin-inline: auto; }
.code-row .main { font-weight: 600; letter-spacing: 0.01em; }
.code-row .l2 .sub { font-weight: 400; }
.code-row .l2 .sub:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-row .l2 .sub:last-child { flex: none; }
.code-row svg { flex: none; width: 8px; height: 14px; color: #999; }
.me-pg .signout { display: block; margin: 18px auto 0; font-size: 15px; }
.pin-card { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 18px 20px; margin-bottom: 14px; background: var(--white); border: 1px solid #d3e0ec; border-radius: 18px; box-shadow: 0 1px 2px rgba(31, 94, 159, 0.06), 0 4px 14px rgba(31, 94, 159, 0.07); }
.pin-t { margin: 0; font-size: 17px; font-weight: 600; }
.pin-card .small { margin: 0; }
.pin-card .oq-err:empty { display: none; }
.pin-in { width: 9.5ch; text-align: center; font-size: 24px; letter-spacing: 0.4em; min-height: 50px; background: #eef5ff; border: 1px solid #cfe0f3; border-radius: 14px; }
.pin-card .btn { width: 100%; min-height: 52px; }
.me-chip.oq-chip { right: auto; left: 16px; }
.si-switch { margin: 6px 0 0; text-align: center; font-size: 15px; color: var(--ink-2); }
.si-switch .link, .signin .link { background: none; border: 0; padding: 0; color: var(--action); font: inherit; font-weight: 600; cursor: pointer; }
.me-pg .me-actions { margin: 4px auto 0; gap: 12px; }
.me-pg .me-actions .btn { min-height: 56px; }
.me-tiles { width: var(--btncol); margin: 14px auto 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.me-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 12px 8px;
  background: var(--white); border: 1px solid #d3e0ec; border-radius: 16px; color: var(--action); font-size: 14px; font-weight: 600;
  box-shadow: 0 1px 2px rgba(31, 94, 159, 0.06), 0 4px 14px rgba(31, 94, 159, 0.07); transition: transform 0.12s ease-out, background-color 0.15s ease;
}
.me-tile:active { transform: scale(0.97); }
.me-tile svg { width: 22px; height: 22px; }
.me-tile span { color: var(--ink); }
.si-cities { width: 100%; margin: 0; }
.si-cities .opt { min-height: 46px; padding: 8px 6px; font-size: 15px; }
.signin .screen-main { justify-content: flex-start; }
@media (max-width: 400px) { .me-chip { height: 30px; padding: 0 11px; font-size: 12.5px; right: 10px; } .me-chip.oq-chip { left: 10px; right: auto; } }
.me-search { width: var(--col); margin: 0 auto 10px; position: relative; }
.me-search input { width: 100%; padding-left: 44px; }
.dev-row .main { font-weight: 600; }
.dev-row .go-sub { color: var(--action) !important; font-weight: 600 !important; }
.me-menu {
  position: fixed; z-index: 30; top: calc(env(safe-area-inset-top, 0px) + 66px); right: 12px; width: min(270px, calc(100vw - 24px));
  max-height: calc(100vh - 100px); overflow-y: auto; padding: 6px; background: rgba(255, 255, 255, 0.97);
  border: 1px solid #d3e0ec; border-radius: 18px; box-shadow: 0 12px 40px rgba(31, 94, 159, 0.22);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: mmIn 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: top right;
}
@keyframes mmIn { from { opacity: 0; transform: scale(0.94) translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .me-menu { animation: none; } }
.mm-head { display: grid; gap: 2px; padding: 10px 12px 8px; text-align: left; }
.mm-head b { font-size: 15px; color: var(--ink); }
.mm-head span { font-size: 13px; color: var(--ink-2); }
.mm-item { display: block; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; background: none; text-align: left; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; }
.mm-item:hover, .mm-item:focus-visible { background: var(--hover, #eef5ff); outline: none; }
.mm-item.danger { color: #c0392b; }
.mm-sep { height: 1px; margin: 4px 8px; background: #e8eff6; }
.stage-logo { z-index: 21; }
.me-pg .me-search { width: var(--col) !important; max-width: none; }
/* Guest / Sign In: two-line buttons get room to breathe (Daniel, 7 Oct). */
.choose .nav-stack.signin-ask { gap: 18px; margin-top: 12px !important; }
.choose .nav-stack.signin-ask .btn { height: 74px !important; min-height: 74px !important; gap: 4px; }
/* One unit sits above the device name, the same on every page. */
.tag.top { display: flex; width: max-content; margin: 0 0 6px; vertical-align: 0; }
/* Storage leads each row; the SIM version sits underneath, lighter. */
.size .st { display: flex; flex-direction: column; gap: 2px; font-weight: 700; }
.size .st small { font-size: 13px; font-weight: 500; color: var(--muted, #5b6b7d); }

/* ---------- Dark mode (8 Oct): only the background changes. ----------
   Navy page, white contour waves, white logo and top buttons. The pop-up and everything in it stay as they are. */
@media (prefers-color-scheme: dark) {
  html, body { background: #0E2238; }
  .wave { filter: brightness(0) invert(1); }
  .ready .wave { opacity: 0.5; }
  @keyframes waveIn {
    from { opacity: 0; clip-path: circle(0% at 70% 40%); }
    to { opacity: 0.5; clip-path: circle(120% at 70% 40%); }
  }
  .stage-logo img, .stage-arrows { filter: brightness(0) invert(1); }
  .stage-tag .t1, .stage-tag .t2 { color: #F4F8FC; }
  .stage-tag .t3 { color: #4DA3FF; }
  .stage-credit, .stage-credit b { color: #BFD3E8; }
  .me-chip { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); color: #FFFFFF; box-shadow: none; }
  /* Still see-through on navy, but frosted more so it stays light and readable. */
  .popup { background: rgba(232, 243, 255, 0.9); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-color: rgba(255, 255, 255, 0.35); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); }
  /* Bars that stick to the top and bottom of the pop-up take the same frosted colour, so there are no light bands. */
  .list-top, .pick-search, .series-h { background: rgba(210, 223, 238, 0.97) !important; }
  .screen-foot { background: linear-gradient(rgba(210, 223, 238, 0), rgba(210, 223, 238, 0.97) 26px); }
}
/* Add a Device to Compare: storage leads, like the price list (8 Oct). */
.cfg .cfg-st { font-weight: 700; }
/* Opening a quote link: the blue bar in the usual place, the words under it (8 Oct). */
.qv-opening { margin: 0 !important; text-align: center; }
/* Account menu (8 Oct): wide buttons for the main actions, tiles for the rest, like the account page. */
.me-menu { width: min(320px, calc(100vw - 24px)); padding: 10px; }
.mm-wide { display: grid; gap: 8px; margin: 2px 0 10px; }
.mm-btn { min-height: 48px !important; padding: 10px 14px !important; font-size: 15px !important; border-radius: 12px !important; }
.mm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mm-tile { min-height: 70px !important; font-size: 13.5px !important; }
.mm-out { text-align: center !important; margin-top: 8px; font-weight: 600 !important; }
