/* ============================================================
   TradeUp — iPhone 旧机回收落地页
   浅色 · 功能化 · 信息密集（真实回收平台风格）
   Mobile-First
   ============================================================ */
:root {
  --bg: #f5f7f8;
  --bg-alt: #eef2f4;
  --card: #ffffff;
  --line: #e3e8eb;
  --line-strong: #d2dade;

  --green: #0e9f6e;
  --green-dk: #0b8a5f;
  --green-soft: #e6f6f0;
  --teal: #0b7a75;
  --red: #d64545;
  --ink: #16212a;
  --muted: #5b6b76;
  --weak: #8a97a1;

  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(16, 42, 56, 0.08);
  --shadow-sm: 0 2px 8px rgba(16, 42, 56, 0.06);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --wrap: 1160px;
  --gutter: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--muted);
  font-family: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 64px; /* sticky bar space on mobile */
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap.narrow { max-width: 760px; }
.tui-section { padding: 52px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green-dk); margin-bottom: 12px;
}
.eyebrow.green { background: var(--green-soft); padding: 6px 12px; border-radius: 999px; }
.section-head { max-width: 660px; margin-bottom: 28px; }
.section-head h2 { font-size: 25px; }
.section-head p { margin-top: 10px; font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font-weight: 700; font-size: 15px; line-height: 1;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(14, 159, 110, 0.25); }
.btn-primary:hover { background: var(--green-dk); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--green-dk); }
.btn-light:hover { background: #f1faf6; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #cdd8de; font-size: 12.5px; }
.topbar-in { display: flex; align-items: center; gap: 18px; height: 36px; overflow: hidden; }
.tb-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tb-item svg { color: var(--green); }
.tb-hide { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 800; color: var(--ink); }
.logo b { color: var(--green); }
.logo-mark {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 9px; background: var(--green); color: #fff;
}
.logo-mark svg { width: 18px; height: 18px; }
.nav-links { display: none; align-items: center; gap: 2px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px;
  font-size: 14.5px; font-weight: 600; color: var(--muted); border-radius: 8px;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-alt); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta { display: none; }
.hamburger { width: 46px; height: 46px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 10px; }
.hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(15, 30, 40, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 330px); z-index: 80;
  background: #fff; padding: 20px 18px 30px; display: flex; flex-direction: column; gap: 2px;
  transform: translateX(100%); transition: transform 0.32s var(--ease); overflow-y: auto;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15);
}
.drawer.open { transform: translateX(0); }
.drawer-close { align-self: flex-end; width: 44px; height: 44px; font-size: 26px; color: var(--weak); }
.drawer a:not(.btn) { min-height: 50px; display: flex; align-items: center; padding: 0 6px; font-size: 16px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.drawer-cta { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #fff, var(--bg)); padding: 34px 0 0; }
.hero-in { display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: 31px; letter-spacing: -0.02em; }
.hl { color: var(--green); }
.hero-sub { margin-top: 14px; font-size: 16px; color: var(--muted); max-width: 540px; }
.hero-sub strong { color: var(--ink); }
.hero-search {
  margin-top: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px; display: flex; flex-direction: column; gap: 8px;
}
.hs-ico { display: none; }
.hero-search select {
  flex: 1; min-height: 48px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: 9px; background: var(--bg); color: var(--ink);
  font-size: 15px; font-family: inherit; -webkit-appearance: none; appearance: none;
}
.hero-search select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.hero-rating { margin-top: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); }
.hero-rating strong { color: var(--ink); }
.stars { color: #f5a623; display: inline-flex; gap: 1px; }
.hero-payout { margin-top: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 12.5px; color: var(--weak); }
.pay-badge {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: #fff;
  font-size: 12px; font-weight: 700; color: var(--ink);
}
.pay-badge.dark { background: var(--bg-alt); }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.hero-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-float {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 10px 14px;
  display: flex; align-items: center; gap: 10px; font-size: 12px;
}
.hero-float svg { width: 22px; height: 22px; color: var(--green); }
.hero-float b { display: block; color: var(--ink); font-size: 13px; }
.hero-float span { color: var(--weak); }
.hero-float-1 { top: 14px; left: 14px; }
.hero-float-2 { bottom: 14px; right: 14px; }

/* press bar */
.press-bar { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; }
.press-in { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 18px 0; }
.press-label { font-size: 12px; color: var(--weak); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.press-name { font-size: 17px; font-weight: 800; color: #b7c1c8; letter-spacing: -0.01em; }

/* ---------- Stats ---------- */
.stats { background: var(--ink); }
.stats-in { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 26px 0; }
.stat { text-align: center; }
.stat b { display: block; font-size: 26px; color: #fff; font-weight: 800; }
.stat span { font-size: 13px; color: #9fb0ba; }

/* ---------- Estimator ---------- */
.estimator {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; display: grid;
}
.est-main { padding: 20px 18px; }
.est-step { padding: 18px 0; border-bottom: 1px solid var(--line); }
.est-step:last-child { border-bottom: none; }
.est-step[data-needs] { opacity: 0.55; pointer-events: none; }
.est-step[data-needs].ready { opacity: 1; pointer-events: auto; }
.est-step-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.est-step-h h3 { font-size: 16px; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.step-dot {
  width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--green);
  color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center;
}
.tag-bonus { font-size: 11px; font-weight: 800; color: var(--green-dk); background: var(--green-soft); padding: 3px 8px; border-radius: 999px; }

.opt { transition: border-color 0.15s, background 0.15s, transform 0.1s; -webkit-tap-highlight-color: transparent; }
.opt:active { transform: scale(0.98); }
.opt-grid.model-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.model-opt {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
.model-opt:hover { border-color: var(--line-strong); }
.model-opt.sel { border-color: var(--green); background: var(--green-soft); }
.model-ico { color: var(--weak); flex: none; display: grid; }
.model-opt.sel .model-ico { color: var(--green); }
.model-name { flex: 1; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.model-price { font-size: 13px; font-weight: 700; color: var(--green-dk); white-space: nowrap; }

.opt-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.opt-row:last-child { margin-bottom: 0; }
.chip-opt {
  min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font-size: 14px; font-weight: 600; color: var(--ink);
}
.chip-opt:hover { border-color: var(--line-strong); }
.chip-opt.sel { border-color: var(--green); background: var(--green); color: #fff; }
.chip-bonus em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--green-dk); background: var(--green-soft); padding: 2px 7px; border-radius: 999px; margin-left: 4px; }
.chip-bonus.sel em { background: rgba(255, 255, 255, 0.25); color: #fff; }

.cond-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.cond-opt {
  text-align: left; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
.cond-opt b { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 2px; }
.cond-opt span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.cond-opt.sel { border-color: var(--green); background: var(--green-soft); }

/* summary */
.est-summary {
  background: var(--ink); color: #d8e2e8; padding: 24px 20px;
  position: sticky; bottom: 0;
}
.sum-label { font-size: 13px; color: #9fb0ba; font-weight: 600; }
.sum-price { font-size: 40px; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.1; margin: 4px 0 2px; }
.sum-sub { font-size: 13px; color: #9fb0ba; min-height: 20px; }
.sum-break { margin: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.sum-break li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: #c4d0d7; }
.sum-break li b { color: #fff; font-weight: 700; }
.sum-break li.bonus b, .sum-break li.bonus { color: #5fe0ac; }
.sum-break li.total { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 10px; margin-top: 2px; font-size: 15px; }
.sum-break li.total span, .sum-break li.total b { color: #fff; font-weight: 800; }
.sum-lock { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #9fb0ba; margin-bottom: 14px; }
.sum-lock svg { color: #5fe0ac; flex: none; }
.sum-fine { margin-top: 10px; font-size: 11.5px; color: #7d8f99; text-align: center; }
.offer-done {
  margin-top: 14px; display: flex; gap: 9px; align-items: flex-start;
  background: rgba(95, 224, 172, 0.14); border: 1px solid rgba(95, 224, 172, 0.4);
  color: #cdeede; border-radius: 10px; padding: 12px 14px; font-size: 13.5px;
}
.offer-done svg { color: #5fe0ac; flex: none; margin-top: 2px; }
.offer-done b { color: #fff; display: block; }
.offer-done[hidden], .contact-form[hidden] { display: none; }

/* contact form (dark summary panel) */
.contact-form { margin-top: 4px; display: flex; flex-direction: column; gap: 12px; }
.cf-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #fff; }
.cf-title svg { color: #5fe0ac; flex: none; }
.cf-group { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.cf-group + .cf-group { border-top: 1px dashed rgba(255, 255, 255, 0.14); margin-top: 4px; padding-top: 12px; }
.cf-group-title { font-size: 12px; font-weight: 700; color: #d7e0e5; }
.cf-group-title .cf-opt { color: #7d8f99; font-weight: 500; }
.cf-field label { display: block; font-size: 12.5px; color: #9fb0ba; margin-bottom: 6px; }
.cf-field label .cf-opt { color: #7d8f99; font-weight: 500; }
.cf-input { display: flex; align-items: center; gap: 9px; background: rgba(255, 255, 255, 0.07); border: 1.5px solid rgba(255, 255, 255, 0.16); border-radius: 10px; padding: 0 12px; transition: border-color 0.15s; }
.cf-input:focus-within { border-color: #5fe0ac; }
.cf-ico { display: grid; place-items: center; color: #7d8f99; flex: none; }
.cf-input input {
  flex: 1; min-height: 46px; background: transparent; border: none; outline: none;
  color: #fff; font-size: 15px; font-family: inherit;
}
.cf-input input::placeholder { color: #6f8089; }
.cf-error { font-size: 12.5px; color: #ff9b9b; background: rgba(240, 94, 94, 0.12); border: 1px solid rgba(240, 94, 94, 0.4); border-radius: 8px; padding: 9px 11px; }
.cf-back { min-height: 40px; font-size: 13.5px; font-weight: 600; color: #9fb0ba; text-decoration: underline; text-underline-offset: 3px; }
.cf-back:hover { color: #fff; }

/* ---------- Condition guide ---------- */
.cond-guide { display: grid; grid-template-columns: 1fr; gap: 12px; }
.cg-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.cg-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cg-letter {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-dk); font-weight: 800; font-size: 15px;
}
.cg-top b { font-size: 16px; color: var(--ink); flex: 1; }
.cg-factor { font-size: 12px; font-weight: 700; color: var(--muted); }
.cg-card p { font-size: 13.5px; margin-bottom: 10px; }
.cg-card ul { display: flex; flex-direction: column; gap: 6px; }
.cg-card li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); }
.cg-card li svg { color: var(--green); flex: none; margin-top: 3px; }
.cg-card li.off svg { color: var(--red); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 12px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.step-ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dk); margin-bottom: 12px; }
.step-no { position: absolute; top: 14px; right: 16px; font-size: 28px; font-weight: 800; color: var(--bg-alt); }
.step h3 { font-size: 16px; margin-bottom: 5px; }
.step p { font-size: 14px; }
.how-media { position: relative; margin-top: 22px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.how-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.how-media-cap {
  position: absolute; left: 14px; bottom: 14px; background: rgba(255, 255, 255, 0.96);
  border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: 12px;
  box-shadow: var(--shadow);
}
.how-media-cap svg { width: 22px; height: 22px; color: var(--green); }
.how-media-cap b { display: block; color: var(--ink); font-size: 13px; }
.how-media-cap span { color: var(--muted); }

/* ---------- Promo band ---------- */
.promo-band { background: var(--green); color: #fff; padding: 34px 0; }
.promo-in { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.promo-ic { width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, 0.18); display: grid; place-items: center; flex: none; }
.promo-ic svg { width: 26px; height: 26px; color: #fff; }
.promo-txt h3 { color: #fff; font-size: 22px; }
.promo-txt p { margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, 0.92); max-width: 620px; }

/* ---------- Reviews ---------- */
.rev-score { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; flex-wrap: wrap; }
.rev-score b { color: var(--ink); }
.reviews { display: grid; grid-template-columns: 1fr; gap: 12px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.rev-top { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; display: grid; place-items: center; flex: none; }
.rev-top b { display: block; color: var(--ink); font-size: 14.5px; }
.rev-meta { font-size: 12px; color: var(--weak); }
.rev-stars { margin-left: auto; }
.review blockquote { font-size: 14px; color: var(--ink); line-height: 1.55; }
.rev-verified { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--green-dk); }
.rev-verified svg { width: 14px; height: 14px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-q { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 18px; text-align: left; font-size: 15px; font-weight: 700; color: var(--ink); }
.faq-q .chev { flex: none; color: var(--green); transition: transform 0.25s var(--ease); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-a-in { padding: 0 18px 18px; font-size: 14px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--ink); color: #fff; padding: 56px 0; text-align: center; }
.final-in { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.final-cta h2 { color: #fff; font-size: 27px; }
.final-cta p { color: #a9bcc6; font-size: 15px; max-width: 520px; }
.final-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 8px; font-size: 13px; color: #9fb0ba; }
.final-trust svg { color: #5fe0ac; vertical-align: -2px; margin-right: 5px; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 40px 0 28px; }
.footer-top { display: grid; gap: 28px; padding-bottom: 26px; }
.footer-brand p { margin: 12px 0; font-size: 13.5px; color: var(--muted); max-width: 340px; }
.footer-pay { display: flex; flex-wrap: wrap; gap: 7px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.fcol h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--weak); margin-bottom: 12px; }
.fcol a { display: block; padding: 6px 0; font-size: 14px; color: var(--muted); }
.fcol a:hover { color: var(--green-dk); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--weak); }
.disclaimer { line-height: 1.5; }
.footer-lang { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }

/* ---------- Sticky mobile bar ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #fff; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 16px; box-shadow: 0 -6px 20px rgba(16, 42, 56, 0.08);
}
.sb-price span { display: block; font-size: 11.5px; color: var(--weak); }
.sb-price b { font-size: 20px; color: var(--ink); }
.sticky-bar .btn { min-height: 46px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Tablet ≥ 640px
   ============================================================ */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .tui-section { padding: 64px 0; }
  .section-head h2 { font-size: 30px; }
  .tb-hide { display: inline-flex; }
  .hero h1 { font-size: 42px; }
  .hero-search { flex-direction: row; align-items: center; }
  .hs-ico { display: grid; place-items: center; padding-left: 8px; color: var(--weak); }
  .hero-search select { border: none; background: transparent; }
  .hero-search .btn { flex: none; }
  .opt-grid.model-grid { grid-template-columns: repeat(2, 1fr); }
  .cond-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cond-guide { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .stats-in { grid-template-columns: repeat(4, 1fr); }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .promo-in { flex-direction: row; align-items: center; }
  .promo-in .btn { flex: none; }
}

/* ============================================================
   Desktop ≥ 1024px
   ============================================================ */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .hamburger { display: none; }
  .hero { padding: 56px 0 0; }
  .hero-in { grid-template-columns: 1.05fr 0.95fr; gap: 44px; }
  .hero h1 { font-size: 54px; }
  .estimator { grid-template-columns: 1.55fr 1fr; }
  .est-main { padding: 28px; }
  .est-summary { position: sticky; top: 84px; align-self: start; }
  .opt-grid.model-grid { grid-template-columns: repeat(2, 1fr); }
  .cond-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .cond-guide { grid-template-columns: repeat(4, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1.2fr 2fr; gap: 40px; }
  .sticky-bar { display: none; }
  .final-cta h2 { font-size: 34px; }
}

/* ========== Open-in-Safari guide ========== */
.safari-mask {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(22, 33, 42, 0.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .28s ease;
  padding: 16px;
}
.safari-mask.show { opacity: 1; }
.safari-sheet {
  position: relative; width: 100%; max-width: 460px;
  background: #fff; border-radius: 18px 18px 14px 14px;
  padding: 26px 20px 20px; text-align: center;
  box-shadow: 0 24px 60px rgba(22, 33, 42, .3);
  transform: translateY(24px); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  max-height: 92vh; overflow-y: auto;
}
.safari-mask.show .safari-sheet { transform: translateY(0); }
.safari-close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--text-weak);
  border-radius: 50%; cursor: pointer;
}
.safari-close:active { background: var(--surface-2); }
.safari-compass {
  width: 60px; height: 60px; margin: 0 auto 12px;
  display: grid; place-items: center;
  background: #E7F6F0; border-radius: 16px;
}
.safari-sheet h3 { font-size: 19px; color: var(--ink); margin-bottom: 8px; letter-spacing: -.01em; }
.safari-sub { font-size: 14px; color: var(--text-2); line-height: 1.5; margin-bottom: 18px; }
.safari-steps { list-style: none; text-align: left; margin: 0 0 18px; display: grid; gap: 12px; }
.safari-steps li {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; position: relative;
}
.safari-steps li.hint { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,159,110,.15); }
.ss-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 800;
  display: grid; place-items: center; margin-top: 1px;
}
.ss-txt { font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.ss-txt strong { color: var(--ink); }
.ss-dots {
  grid-column: 2; display: none;
  width: 46px; height: 30px; margin-top: 6px;
  border: 1.5px solid var(--text-weak); border-radius: 8px;
  align-items: center; justify-content: center; gap: 3px;
}
.ss-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--text-2); display: block; }
.ss-dots.pulse { animation: dotPulse 1s ease-in-out infinite; border-color: var(--brand); }
@keyframes dotPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.safari-actions { display: grid; gap: 8px; }
.safari-cta {
  width: 100%; min-height: 50px; border: 0; border-radius: 10px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 15px;
  cursor: pointer; transition: background .2s;
}
.safari-cta:active { background: var(--brand-dark); }
.safari-continue {
  width: 100%; min-height: 46px; border: 0; background: transparent;
  color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.safari-note { font-size: 12px; color: var(--text-weak); margin-top: 12px; line-height: 1.4; }
.footer-safari {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; margin-top: 2px;
  color: var(--teal); font-size: 14px; font-weight: 600;
  cursor: pointer; min-height: 32px; text-align: left;
}
.footer-safari:active { opacity: .7; }
@media (min-width: 640px) {
  .safari-mask { align-items: center; }
  .safari-sheet { border-radius: 18px; }
}