/* Shared sale-site upgrade. Loaded after brand CSS. */

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 80;
  padding: 0.7rem 1rem;
  background: #fff;
  color: #111;
  font-weight: 800;
  text-decoration: none;
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: transparent;
  color: inherit;
  border: 2px solid currentColor;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 720px) {
  header.nav { flex-wrap: wrap; gap: 0.6rem; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  header.nav nav {
    display: none;
    flex-basis: 100%;
    padding-bottom: 0.4rem;
  }
  header.nav nav.is-open { display: flex; flex-direction: column; gap: 0.15rem; }
  header.nav nav a {
    margin-left: 0;
    padding: 0.7rem 0;
    min-height: 44px;
  }
}

:focus-visible {
  outline: 3px solid #c4a574;
  outline-offset: 3px;
}

.offer-form input,
.offer-form textarea,
.offer-form button {
  font-size: 1rem;
  min-height: 48px;
}
.offer-form textarea { min-height: 7rem; resize: vertical; }
.offer-form label { font-weight: 700; }
.offer-form .hint,
.field-error {
  font-size: 0.82rem;
  font-weight: 600;
}
.field-error { color: #f0c7a0; }
.offer-form input:user-invalid,
.offer-form textarea:user-invalid {
  border-color: #e0a070;
  box-shadow: inset 3px 0 0 #e0a070;
}

.steps {
  display: grid;
  gap: 0.7rem;
  margin: 0.4rem 0 1.1rem;
  padding: 0;
  list-style: none;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
}
.steps strong {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 2px solid currentColor;
  font-size: 0.8rem;
}

.why, .faq, .services { content-visibility: auto; contain-intrinsic-size: auto 420px; }

.sticky-buy { padding-bottom: calc(0.7rem + env(safe-area-inset-bottom)); }
.sale-bar a, .btn, .nav-toggle { touch-action: manipulation; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* System theme, with a saved override from the top toggle. */
html {
  color-scheme: light;
  --page: #f7f4ef;
  --ink: #1b1814;
  --muted: #4e463c;
  --card: #fff;
  --line: #d8cfc2;
  --field: #fff;
  --field-line: #6e675c;
  --giant: #e6dfd4;
  --err: #8a3412;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #12110f;
    --ink: #f4efe6;
    --muted: #c9bfb0;
    --card: #1c1a17;
    --line: #3a342c;
    --field: #0e0d0b;
    --field-line: #6e675c;
    --giant: #2a2722;
    --err: #f0c7a0;
  }
}
html[data-theme="dark"] {
  color-scheme: dark;
  --page: #12110f;
  --ink: #f4efe6;
  --muted: #c9bfb0;
  --card: #1c1a17;
  --line: #3a342c;
  --field: #0e0d0b;
  --field-line: #6e675c;
  --giant: #2a2722;
  --err: #f0c7a0;
}
html[data-theme="light"] {
  color-scheme: light;
  --page: #f7f4ef;
  --ink: #1b1814;
  --muted: #4e463c;
  --card: #fff;
  --line: #d8cfc2;
  --field: #fff;
  --field-line: #6e675c;
  --giant: #e6dfd4;
  --err: #8a3412;
}

body,
header.nav,
.hero,
.hero-copy,
.why,
.offer,
.faq,
.services,
.site-foot,
.sticky-buy,
.photo-band,
.vip,
.prose {
  background: var(--page);
  color: var(--ink);
}
.hero h1,
.hero h2,
h1,
h2,
.lede,
.price-xl,
.brand,
.why-list li,
.sticky-buy,
.pills span {
  color: var(--ink);
}
.kicker,
.site-foot,
nav a,
.crumbs { color: var(--muted); }
.giant { color: var(--giant); }
.amp-grid article,
.card,
.offer-form,
.why-list li {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.amp-grid h3,
.amp-grid p,
.card p,
.card h3 { color: var(--ink); }
.offer-form input,
.offer-form textarea {
  background: var(--field);
  color: var(--ink);
  border-color: var(--field-line);
}
.btn-ghost { color: var(--ink); border-color: var(--ink); }
.field-error { color: var(--err); }
.pills span,
.faq details { border-color: var(--line); }

.theme-toggle {
  position: fixed;
  z-index: 70;
  top: 0.35rem;
  right: 0.5rem;
  min-height: 1.7rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: var(--page);
  color: var(--ink);
  font: 700 0.68rem/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.theme-toggle:hover { filter: brightness(1.08); }

@media print {
  .sale-bar, .sticky-buy, .nav-toggle, .offer-form, .skip-link, .theme-toggle { display: none !important; }
  body { background: #fff; color: #111; padding: 0; }
}
