/* ==========================================================================
   LotMarque — lotmarque.com
   Global stylesheet
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --graphite: #1F2937;
  --graphite-deep: #111C2B;
  --graphite-soft: #EAECEF;
  --blue: #2563EB;
  --blue-dark: #1D4FD1;
  --blue-soft: #E7EEFD;
  --amber: #D97706;
  --amber-soft: #FDF0DC;
  --ink: #111827;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --bg-alt: #F4F5F7;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06), 0 1px 3px rgba(17, 24, 39, .05);
  --shadow: 0 4px 16px rgba(17, 24, 39, .07), 0 1px 3px rgba(17, 24, 39, .05);
  --shadow-lg: 0 18px 44px rgba(17, 24, 39, .13), 0 4px 12px rgba(17, 24, 39, .06);

  --font-display: "Barlow Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1160px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.5rem, 7vw, 3.9rem); }
h2 { font-size: clamp(1.95rem, 4.2vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--graphite-deep); }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .35rem; }

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

.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 44px 0; }

.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }

.btn--outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: var(--bg-alt); color: var(--ink); border-color: #cfd6cf; }

.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--graphite-deep); color: #fff; }

.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 32px; height: 32px; flex: none; }

.nav { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li { margin: 0; }
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 500;
  font-size: .98rem;
  text-decoration: none;
}
.nav-list a:hover { background: var(--bg-alt); color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .login-link {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.header-actions .login-link:hover { color: var(--blue); background: var(--bg-alt); }

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.burger span {
  display: block;
  position: relative;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .18s ease, top .18s ease;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px 0 20px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.mobile-nav li { margin: 0; border-bottom: 1px solid var(--line); }
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--blue); }
.mobile-nav .btn { margin-top: 4px; }

@media (min-width: 940px) {
  .nav { display: block; }
  .burger { display: none; }
  .mobile-nav, .mobile-nav.is-open { display: none; }
  .header-actions .login-link { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { padding: 48px 0 64px; background: var(--bg); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { font-size: 1.12rem; color: var(--muted); max-width: 34em; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-micro { font-size: .92rem; color: var(--muted); margin: 0; }

@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.02fr .98fr; gap: 56px; }
}

/* ---------- Hero mockup: walkaround phone + finished listing ---------- */
.showcase { position: relative; display: grid; gap: 18px; }
@media (min-width: 620px) { .showcase { grid-template-columns: 190px 1fr; align-items: start; gap: 20px; } }

.phone {
  width: 190px;
  justify-self: start;
  padding: 8px;
  background: var(--graphite);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.phone-screen { background: #fff; border-radius: 17px; overflow: hidden; }
.phone-bar {
  background: var(--graphite);
  color: #fff;
  padding: 10px 12px;
  border-bottom: 2px solid var(--blue);
}
.phone-bar .kicker {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
}
.phone-bar .vin {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 10px 10px 6px; }
.shot {
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.shot::after {
  content: attr(data-label);
  position: absolute;
  left: 4px; bottom: 4px;
  font-family: var(--font-mono);
  font-size: .52rem;
  letter-spacing: .04em;
  color: #fff;
  background: rgba(17, 24, 39, .72);
  padding: 1px 4px;
  border-radius: 3px;
}
.shot--front { background: linear-gradient(155deg, #C9D3E2 0 52%, #8794A6 52% 100%); }
.shot--side  { background: linear-gradient(155deg, #D4D8DE 0 52%, #94A0AF 52% 100%); }
.shot--rear  { background: linear-gradient(155deg, #C6CEDA 0 52%, #7F8C9D 52% 100%); }
.shot--todo {
  background: var(--amber-soft);
  border: 1px dashed var(--amber);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8A4B04;
  text-align: center;
  padding: 4px;
}
.shot--todo::after { content: none; }
.note-strip {
  margin: 0 10px 12px;
  padding: 9px 10px;
  background: var(--bg-alt);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .72rem;
  line-height: 1.5;
  color: var(--ink);
}
.note-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.listing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.lc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px 13px;
  border-bottom: 1px solid var(--line);
}
.lc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  line-height: 1.2;
  letter-spacing: -.005em;
}
.lc-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.lc-price {
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lc-body { padding: 14px 18px 16px; }
.lc-body p { font-size: .82rem; line-height: 1.6; color: #374151; margin: 0 0 12px; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.chip {
  font-size: .72rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--amber-soft);
  color: #8A4B04;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}
.flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.window-card {
  border: 2px solid var(--graphite);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.wc-head {
  background: var(--graphite);
  color: #fff;
  padding: 7px 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.wc-head span:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.wc-head span:last-child { font-family: var(--font-mono); font-size: .66rem; font-variant-numeric: tabular-nums; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .72rem; }
.spec-table th, .spec-table td { padding: 5px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table th { font-weight: 500; color: var(--muted); width: 42%; }
.spec-table td { font-variant-numeric: tabular-nums; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.showcase-caption { grid-column: 1 / -1; font-size: .84rem; color: var(--muted); margin: 0; }

/* ---------- Illustration band ---------- */
.figure-band {
  max-width: 900px;
  margin: 42px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.figure-band img { width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.figure-band figcaption { padding: 14px 18px; font-size: .9rem; color: var(--muted); }
.figure-band figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 2px;
}

/* ---------- Social proof ---------- */
.proof { background: var(--bg-alt); padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof p {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 18px;
}
.proof-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 34px;
}
.proof-logos img { height: 34px; width: auto; filter: grayscale(1); opacity: .55; }

/* ---------- Problem cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 16px;
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge--amber { background: var(--amber-soft); color: #8A4B04; }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 22px; list-style: none; padding: 0; margin: 0 0 44px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.step { position: relative; padding-top: 8px; }
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .98rem; }

.photo-card { padding: 0; overflow: hidden; }
.photo-card img { width: 100%; height: auto; }
.photo-card figcaption { padding: 16px 20px; color: var(--muted); font-size: .95rem; }

.cookie-prefs .btn { margin-top: 14px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 980px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.plan {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.plan--featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.plan-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.plan-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.plan-price .amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
}
.plan-price .unit { color: var(--muted); font-size: .98rem; font-weight: 500; }
.plan-billing { font-size: .86rem; color: var(--muted); margin: 0 0 12px; }
.plan-best {
  font-size: .92rem;
  color: var(--ink);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 0 0 18px;
}
.plan--featured .plan-best { background: var(--blue-soft); }
.plan-features { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan-features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: .96rem;
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0; top: .38em;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231E40AF'%3E%3Cpath d='M8.1 15.2 3.4 10.5l1.6-1.6 3.1 3.1 6.9-6.9 1.6 1.6z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.plan-features li.is-lead { font-weight: 600; padding-left: 0; }
.plan-features li.is-lead::before { display: none; }

.pricing-note { max-width: 780px; margin: 28px auto 0; text-align: center; color: var(--muted); font-size: .9rem; }
.pricing-compare {
  max-width: 780px;
  margin: 16px auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.section--alt .pricing-compare { background: #fff; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.stars { display: flex; gap: 2px; margin-bottom: 14px; color: #EA580C; }
.stars svg { width: 18px; height: 18px; }
.quote-card blockquote { margin: 0 0 18px; font-size: 1.02rem; }
.quote-card figcaption { margin-top: auto; font-size: .9rem; color: var(--muted); }
.quote-card figcaption strong { display: block; color: var(--ink); font-size: .98rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.03rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236B7280'%3E%3Cpath d='M10 14 3.5 7.5 5 6l5 5 5-5 1.5 1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item[open] summary { background: var(--bg-alt); }
.faq-answer { padding: 4px 20px 20px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--graphite); color: #fff; padding: 64px 0; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 20px; }
.cta-band p { color: rgba(255,255,255,.86); max-width: 42em; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 52px 0 28px; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1.5fr; gap: 30px; } }

.footer-col h4 {
  font-size: .84rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 4px; }
.footer-col ul a,
.footer-col ul .linklike {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink);
  font-size: .96rem;
  text-decoration: none;
}
.footer-col ul a:hover,
.footer-col ul .linklike:hover { color: var(--blue); text-decoration: underline; }
.footer-about p { color: var(--muted); font-size: .95rem; margin: 14px 0 0; }
.footer-about .brand { margin-bottom: 4px; }
.footer-contact address {
  font-style: normal;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.75;
}
.footer-contact address strong { color: var(--ink); font-weight: 600; }
.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: .86rem;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 150;
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner h2 { font-size: 1.12rem; margin-bottom: 6px; }
.cookie-banner p { color: var(--muted); font-size: .93rem; margin-bottom: 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-prefs { display: none; margin: 4px 0 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.cookie-prefs.is-open { display: block; }
.cookie-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cookie-row:last-child { border-bottom: 0; }
.cookie-row input[type="checkbox"] { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--blue); }
.cookie-row .cookie-row-text { font-size: .92rem; }
.cookie-row strong { display: block; font-family: var(--font-display); }
.cookie-row span { color: var(--muted); }

/* ---------- Auth page ---------- */
.auth { display: grid; min-height: calc(100vh - var(--header-h)); }
@media (min-width: 940px) { .auth { grid-template-columns: 1fr 1fr; } }

.auth-form-side {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px 64px;
  background: var(--bg);
  order: 1;
}
.auth-panel {
  background: var(--graphite);
  color: #fff;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: 0;
}
@media (min-width: 940px) {
  .auth-panel { order: 1; padding: 56px 48px; }
  .auth-form-side { order: 0; padding: 56px 40px 72px; align-items: center; }
}
.auth-panel .brand { color: #fff; }
.auth-panel .panel-line {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 26px 0 14px;
}
.auth-panel .panel-sub { color: rgba(255,255,255,.85); max-width: 34em; margin-bottom: 28px; }
.auth-panel .panel-list { list-style: none; margin: 24px 0 0; padding: 0; color: rgba(255,255,255,.92); }
.auth-panel .panel-list li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: .96rem; }
.auth-panel .panel-list li::before {
  content: "";
  position: absolute; left: 0; top: .35em;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath d='M8.1 15.2 3.4 10.5l1.6-1.6 3.1 3.1 6.9-6.9 1.6 1.6z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.card-preview .qp-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 10px; margin-bottom: 12px;
}
.card-preview .qp-head strong { font-family: var(--font-display); }
.card-preview .qp-head span { font-size: .78rem; color: var(--muted); }

.auth-card { width: 100%; max-width: 480px; }
.auth-card h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); margin-bottom: 8px; }
.auth-intro { color: var(--muted); margin-bottom: 24px; }

.auth-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 26px;
}
.auth-toggle button {
  min-height: 44px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  color: var(--muted);
  cursor: pointer;
}
.auth-toggle button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .94rem;
  margin-bottom: 6px;
}
.field .hint { display: block; font-weight: 400; font-family: var(--font-body); color: var(--muted); font-size: .84rem; margin-top: 2px; }

.input, .select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.input:hover, .select:hover { border-color: #C7CDD6; }
.input:focus, .select:focus { border-color: var(--blue); outline: 3px solid rgba(37,99,235,.22); outline-offset: 0; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236B7280'%3E%3Cpath d='M10 14 3.5 7.5 5 6l5 5 5-5 1.5 1.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
}

.password-wrap { position: relative; }
.password-wrap .input { padding-right: 82px; }
.toggle-pass {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  min-height: 40px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
}
.toggle-pass:hover { background: var(--bg-alt); }

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .95rem;
  margin-bottom: 18px;
}
.checkbox input[type="checkbox"] {
  width: 22px; height: 22px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--blue);
}

.field-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.field-row .checkbox { margin-bottom: 0; }
.link-plain { font-size: .95rem; }

.error-msg {
  display: none;
  color: #B42318;
  font-size: .87rem;
  margin-top: 6px;
}
.field.has-error .input,
.field.has-error .select { border-color: #B42318; }
.field.has-error .error-msg,
.checkbox-field.has-error .error-msg { display: block; }

.form-note { color: var(--muted); font-size: .92rem; margin-top: 18px; text-align: center; }

.form-success {
  display: none;
  background: var(--blue-soft);
  border: 1px solid #C3D6F9;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: #1E3A8A;
  font-size: .95rem;
  margin-bottom: 20px;
}
.form-success.is-visible { display: block; }

.auth-form[hidden] { display: none; }

.card-preview {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  max-width: 360px;
}
.card-preview img { border-radius: 8px; width: 100%; height: auto; }

/* ---------- Policy pages ---------- */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 48px 0 40px; }
.page-head h1 { margin-bottom: 10px; }
.page-head .updated { color: var(--muted); font-size: .95rem; margin: 0; }
.page-head .intro { color: var(--muted); margin-top: 14px; max-width: 60ch; }

.legal { padding: 48px 0 72px; }
.legal-inner { max-width: 780px; margin: 0 auto; }
.legal h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  margin: 40px 0 12px;
  padding-top: 8px;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.08rem; margin: 24px 0 8px; }
.legal p, .legal li { color: #374151; }
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal li { margin-bottom: .5rem; }

.toc {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 36px;
}
.toc h2 { font-size: 1rem; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 1; }
@media (min-width: 700px) { .toc ol { columns: 2; column-gap: 30px; } }
.toc li { margin-bottom: .3rem; font-size: .95rem; }

.contact-block {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 16px;
}
.contact-block address { font-style: normal; line-height: 1.8; }
.contact-block address strong { font-weight: 600; }

.table-wrap { overflow-x: auto; margin: 18px 0 26px; border: 1px solid var(--line); border-radius: var(--radius); }
table.cookies { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 620px; }
table.cookies th, table.cookies td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cookies th { background: var(--bg-alt); font-family: var(--font-display); font-size: .86rem; }
table.cookies tr:last-child td { border-bottom: 0; }

.callout {
  background: var(--amber-soft);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 20px 0;
}
.callout p { margin: 0; color: #7A4405; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 90px 0 110px; }
.notfound .code {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 10px;
}
.notfound p { color: var(--muted); max-width: 46ch; margin: 0 auto 26px; }
.notfound .btn { margin: 0 6px 10px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .btn:hover { transform: none; }
}

/* ---------- Inline button that reads as a link (cookie settings) ---------- */
.linklike {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.site-footer .linklike { text-decoration: none; }
.site-footer .linklike:hover,
.linklike:hover { color: var(--blue); text-decoration: underline; }
