/* Custom IPC storefront, phone first. The TETROFIT site's look (~/Desktop/CHill/tetrofit/assets/site.css): clean and minimal,
   a full-width dark hero, light sections with flat white cards, condensed display type, mono eyebrows, pill buttons. */
:root {
  --bg: #0b0c0e;
  --bg-soft: #f4f4f4;
  --ink: #171a20;
  --ink-soft: #5c5e62;
  --ink-on-dark: #f4f4f4;
  --muted-on-dark: #a3a6ab;
  --line: #d0d1d2;
  --accent: #3e6ae1;
  --good: #1f7a3d;
  --bad: #b42318;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { margin: 0; }
body { background: var(--bg-soft); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
img, video, canvas { max-width: 100%; }
html, body { overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }

/* ---------- Top nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 22px; padding: 14px 28px;
  background: rgba(11, 12, 14, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink-on-dark);
}
.wordmark { font: 800 22px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.wordmark span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav-links a { text-decoration: none; opacity: 0.9; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav .tag { font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-on-dark); }

/* ---------- Pill buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 14px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.pill-light { background: #fff; color: #171a20; } .pill-light:hover { background: #e8e8e8; }
.pill-dark { background: #171a20; color: #fff; } .pill-dark:hover { background: #393c41; }
.pill-outline-light { background: transparent; color: #fff; border-color: #fff; } .pill-outline-light:hover { background: rgba(255,255,255,.08); }
.pill-outline { background: transparent; color: var(--ink); border-color: var(--ink); } .pill-outline:hover { background: rgba(23,26,32,.06); }
.pill-lg { min-height: 48px; padding: 0 30px; font-size: 15px; }
.pill:disabled { opacity: 0.4; cursor: default; }
.pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Hero / page head (dark) ---------- */
.hero {
  min-height: 92vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 120px 28px 72px; color: var(--ink-on-dark);
  background: radial-gradient(ellipse at 50% 30%, #1d2026 0%, var(--bg) 70%);
}
.page-head { padding: 130px 28px 44px; color: var(--ink-on-dark); background: radial-gradient(ellipse at 50% 0%, #1d2026 0%, var(--bg) 75%); }
.eyebrow { margin: 0 0 12px; font: 500 12px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.hero .eyebrow, .page-head .eyebrow, .dark .eyebrow { color: var(--muted-on-dark); }
.headline { margin: 0; font: 800 clamp(40px, 6vw, 72px)/0.98 var(--display); text-wrap: balance; }
.sub { margin: 18px auto 0; color: var(--muted-on-dark); font-size: 18px; max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- Sections ---------- */
section.block { padding: 88px 28px; }
.inner { max-width: 1140px; margin: 0 auto; }
.dark { background: var(--bg); color: var(--ink-on-dark); }
.section-title { margin: 0; font: 600 clamp(34px, 5vw, 52px)/1.02 var(--display); text-wrap: balance; }
.section-lede { margin: 16px 0 0; max-width: 56ch; color: var(--ink-soft); font-size: 17px; }
.dark .section-lede { color: var(--muted-on-dark); }
.cards { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 14px; background: #fff; padding: 32px; min-width: 0; color: var(--ink); }
.card h3 { margin: 0; font: 600 30px/1.05 var(--display); text-wrap: balance; }
.card p { margin: 0; color: var(--ink-soft); }
.price { margin: 0; font: 800 30px/1 var(--display); color: var(--ink); }
.status-tag { display: inline-block; font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }
.card > .status-tag, .opt > .status-tag { align-self: flex-start; }
.status-tag.good { color: var(--good); border-color: var(--good); }
.status-tag.blue { color: var(--accent); border-color: var(--accent); }
.status-tag.bad { color: var(--bad); border-color: var(--bad); }
.muted { color: var(--ink-soft); } .small { font-size: 14px; }
.mono { font-family: var(--mono); font-size: 13px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-soft); min-width: 0; }
.field input, .field select, .field textarea {
  height: 46px; width: 100%; padding: 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 4px;
  font: 400 16px/1.3 var(--body); color: var(--ink); outline: none;
}
.field textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: var(--ink); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.form-msg { margin: 0; font-size: 14px; color: var(--ink-soft); }
.form-msg.err { color: var(--bad); } .form-msg:empty { display: none; }
.notice { background: #fff; border-left: 3px solid var(--accent); padding: 14px 18px; font-size: 15px; }
.notice.err { border-left-color: var(--bad); color: var(--bad); }

footer { margin-top: auto; background: var(--bg); padding: 32px 28px 40px; color: var(--muted-on-dark); font-size: 12px; }
footer .inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #22252b; padding-top: 20px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- account chip in the nav ---------- */
.nav .who { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-dark); text-decoration: none; }
.nav-menu { display: none; }

/* ---------- modal (sign in) ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(11, 12, 14, 0.6); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.on { display: flex; }
.modal .box { background: #fff; width: min(440px, 100%); padding: 28px; display: flex; flex-direction: column; gap: 14px; max-height: 92vh; overflow: auto; }
.modal h3 { margin: 0; font: 600 30px/1.05 var(--display); }
.tabs { display: flex; gap: 6px; }
.tabs button { flex: 1; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- phones and small tablets ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  section.block { padding: 56px 18px; }
  .page-head { padding: 104px 18px 32px; }
  .card { padding: 24px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .nav { padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
  .nav-menu { display: inline-grid; gap: 4px; margin-left: auto; width: 36px; height: 36px; place-content: center; border: 0; background: transparent; color: inherit; cursor: pointer; }
  .nav-menu span { display: block; width: 18px; height: 2px; background: currentColor; }
  .nav-links { display: none; flex: 0 0 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.1); font-size: 16px; }
  .nav.open .nav-links { display: flex; }
  .nav-links > * { padding: 12px 0; }
  .nav-links .pill { justify-content: center; margin-top: 6px; }
  .hero { min-height: 0; padding: 104px 16px 48px; }
  .sub { font-size: 16px; }
  .actions .pill { flex: 1 1 auto; }
  .pill-lg { min-height: 46px; padding: 0 22px; }
  .modal .box { padding: 22px; }
}

/* ---------- Checkout, the soft way (body.soft: the product pages, the order page; and the sign-in box) ----------
   TETROFIT's product / checkout look: light grey panels with big round corners on white, white choice cards that
   take a blue ring and a tick when picked, 14 px rounded fields with a soft focus ring, round check boxes, and a
   floating price bar. */
body.soft { background: #fff; --blue: #2f6be0; --panel: #f5f5f7; --hair: #d2d2d7; }
.soft .sec { background: var(--panel); border-radius: 24px; padding: 26px 28px; margin-top: 14px; }
.soft .sec h2 { font: 600 22px/1.2 var(--body); letter-spacing: -0.01em; align-items: center; }
.soft .sec h2 .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--ink); font: 600 12px/1 var(--body); letter-spacing: 0; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.soft .sec .hint { font-size: 15px; color: #4b4e54; }
.soft .side h1 { font: 700 clamp(34px, 4.6vw, 48px)/1.05 var(--body); letter-spacing: -0.02em; }
.soft .choice { background: #fff; border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .12s; }
.soft .choice:hover { border-color: #a1a1a6; }
.soft .choice:active { transform: scale(.985); }
.soft .choice[aria-pressed="true"] { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 107, 224, .18); }
.soft .choice[aria-pressed="true"]::after { content: ""; position: absolute; top: 10px; left: 10px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: 0 2px 6px rgba(47, 107, 224, .35); animation: pop .28s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.soft .choice .lab b { font: 600 17px/1.25 var(--body); letter-spacing: -0.01em; }
.soft .choice .lab span { font-size: 14px; color: #6e6e73; }
.soft .choice .thumb { border-radius: 0; }
.soft .choice.custom .thumb, .soft .choice .thumb.plus { display: grid; place-items: center; background: #f0f0f3; font: 300 40px/1 var(--body); color: #6e6e73; }
.soft .choice .price-tag { border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); font: 600 12px/1 var(--body); letter-spacing: 0; padding: 6px 10px; }
.soft .tag-price { margin-top: 8px; align-self: flex-start; font: 600 13px/1 var(--body); color: var(--blue); background: rgba(47,107,224,.1); border-radius: 999px; padding: 6px 10px; }
.soft .choices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.soft .field { font-size: 14px; color: #4b4e54; }
.soft .field input, .soft .field select, .soft .field textarea { min-height: 48px; border: 1px solid var(--hair); border-radius: 14px; background: #fff; font-size: 17px; transition: border-color .2s, box-shadow .2s; }
.soft .field select { -webkit-appearance: none; appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6'/%3E%3C/svg%3E") right 16px center no-repeat; }
.soft .field input:hover, .soft .field select:hover, .soft .field textarea:hover { border-color: #a1a1a6; }
.soft .field input:focus-visible, .soft .field select:focus-visible, .soft .field textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 107, 224, .18); }
.soft .check input { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin: 0; border-radius: 50%; border: 1.5px solid #b0b0b6; background: #fff; cursor: pointer; flex: none; transition: background .15s, border-color .15s; }
.soft .check input:checked { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.soft .check { align-items: center; padding: 12px 14px; background: #fff; border-radius: 16px; line-height: 1.35; }
.soft .terms, .soft .video-ask { background: #fff; border-radius: 16px; }
.soft .sum { background: #fff; border-radius: 16px; border: 0; padding: 4px 16px; }
.soft .sum span { border-bottom-color: #ececf0; }
.soft .sum span:nth-last-child(-n+2) { border-bottom: 0; }
.soft .notice { border-radius: 14px; border-left: 0; background: #eef3ff; color: #22408f; }
.soft .notice.err { background: #fdecec; color: #b42318; }
.soft .stage .screen { border-radius: 22px; overflow: hidden; }
.soft .under .pill { border-color: var(--hair); color: var(--ink); background: #fff; }
.soft .under .pill[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.soft .bar { left: 50%; right: auto; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(980px, calc(100% - 28px));
  border: 1px solid rgba(0,0,0,.06); border-radius: 24px; padding: 12px 14px 12px 22px; background: rgba(255,255,255,.88); box-shadow: 0 18px 50px -18px rgba(0,0,0,.35); }
.soft .bar .t b { font: 700 24px/1 var(--body); letter-spacing: -0.02em; }
.soft .slots .day, .soft .slots .t { border-radius: 14px; border-color: var(--hair); }
.soft .slots .day.on { background: var(--blue); border-color: var(--blue); }
.soft .slots .t.on { border: 2px solid var(--blue); box-shadow: 0 0 0 3px rgba(47,107,224,.15); }
.soft .slots .day b, .soft .slots .t b { font-family: var(--body); font-weight: 600; }
.soft .card { border-radius: 24px; background: var(--panel); }
.soft .card .kv > span { border-bottom-color: #e3e3e8; }
.soft .page-head { padding-bottom: 36px; }
/* the VIN's tick */
.vin-ok { display: inline-flex; align-items: center; gap: 8px; color: #1d7a3a; font-weight: 600; }
.vin-ok svg { width: 22px; height: 22px; }
.vin-ok circle { fill: #1d7a3a; }
.vin-ok path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; animation: draw .45s .1s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes draw { from { stroke-dashoffset: 20; } to { stroke-dashoffset: 0; } }
/* the sign-in box everywhere */
.modal .box { border-radius: 24px; }
.modal .field input { min-height: 48px; border-radius: 14px; border-color: #d2d2d7; font-size: 17px; }
.modal .tabs { background: #f0f0f3; border-radius: 999px; padding: 3px; gap: 0; }
.modal .tabs .pill { border: 0; min-height: 36px; background: transparent; }
.modal .tabs .pill[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
@media (max-width: 960px) { .soft .sec { border-radius: 22px; padding: 22px 18px; margin: 12px 12px 0; } .soft .stage .screen { border-radius: 0; } }
@media (max-width: 640px) { .soft .choices.three { grid-template-columns: minmax(0, 1fr); } .soft .bar { padding: 10px 10px 10px 18px; } .soft .bar .t b { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { .soft .choice[aria-pressed="true"]::after, .vin-ok path { animation: none; } }
.soft .choice:not(:has(.thumb))[aria-pressed="true"]::after { left: auto; right: 14px; top: 14px; }
.soft .choice:not(:has(.thumb)) .lab { padding: 16px 18px; }
.soft .choice:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(47,107,224,.18); }
/* the tick sits top-right on text-only cards: keep the text clear of it */
.soft .choice:not(:has(.thumb)) .lab { padding-right: 52px; }
@media (max-width: 640px) { .soft #services { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Home, the soft way: round cards, pill status tags, a rounded cluster ---------- */
.home .card { border-radius: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 18px 40px -24px rgba(0,0,0,.22); transition: transform .25s, box-shadow .25s; }
.home .card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 26px 50px -24px rgba(0,0,0,.3); }
.home .dark .card { background: #fff; }
.home .card .status-tag { border: 0; background: #f0f0f3; color: var(--ink); font-family: var(--body); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 13px; padding: 7px 12px; }
.home .card .step-n { display: inline-block; align-self: flex-start; background: rgba(62,106,225,.1); border-radius: 999px; padding: 8px 12px; letter-spacing: .08em; }
.home .card h3 { font: 600 26px/1.15 var(--body); letter-spacing: -0.015em; }
.home .price { font: 700 34px/1 var(--body); letter-spacing: -0.02em; }
.home .section-title { font-family: var(--body); font-weight: 700; letter-spacing: -0.025em; }
.home .faq-item summary { font: 600 20px/1.25 var(--body); letter-spacing: -0.01em; }
.home .faq-item summary::after { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f0f0f3; flex: none; font-size: 18px; }
@media (max-width: 640px) { .home .card { border-radius: 22px; padding: 26px 22px; } }
