/* ==========================================================================
   RacketZ Sprint — storefront stylesheet
   Design language: "Courtside" (see DESIGN.md)
   Structure = deep court green · Action = optic lime · Data = mono numerals
   Flat surfaces + hairline borders; hard "sticker" shadows on interactive
   elements only; no gradients-as-decoration, no glassmorphism, no fade-ins.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* The storefront ships a light theme and a dark theme, both driven by the
     system preference. Declaring "light dark" also opts the page out of
     browser forced-darkening (Chrome Auto Dark Theme) so the design is never
     inverted. See https://developer.chrome.com/blog/auto-dark-theme */
  color-scheme: light dark;
  --court: #0F3D2E;
  --deep: #0A2C21;
  --line-w: #F4F7F2;
  --lime: #D9F24E;
  --lime-deep: #B9D62F;
  --paper: #EFF2EC;
  --surface: #FFFFFF;
  --ink: #131C17;
  --muted: #5A675F;
  --hairline: #D8DFD3;
  --hairline-dark: rgba(244, 247, 242, 0.16);
  --panel-dark: rgba(10, 44, 33, 0.55);
  --out: #B4471F;
  --pre: #9A6B2F;

  --r-ctl: 8px;
  --r-plate: 16px;
  --r-tag: 4px;

  --font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --pop: 3px 3px 0 rgba(19, 28, 23, 0.9);
  --pop-hover: 4px 4px 0 rgba(19, 28, 23, 0.9);
  --pop-soft: 4px 4px 0 rgba(19, 28, 23, 0.16);
  --float: 0 1px 2px rgba(10, 32, 24, 0.1), 0 14px 34px rgba(10, 32, 24, 0.14);

  --wrap: 1180px;
  --gut: 20px;
}
@media (min-width: 720px) { :root { --gut: 32px; } }

/* --- Base --------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--court); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.band :focus-visible, .site-foot :focus-visible, .hero-panel :focus-visible { outline-color: var(--lime); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.pre-line { white-space: pre-line; }
.row { display: flex; align-items: center; gap: 16px; }
.spread { justify-content: space-between; }

/* Mono micro-label — the scoreboard voice for data, never decorative */
.tag-mini {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}

/* --- Buttons (sticker-press behaviour: instant, tactile, interruptible) -- */
.btn {
  -webkit-appearance: none; appearance: none; border: 2px solid var(--ink);
  background: var(--surface); color: var(--ink); cursor: pointer;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 18px; min-height: 46px; border-radius: var(--r-ctl);
  box-shadow: var(--pop); transition: transform 120ms ease-out, box-shadow 120ms ease-out, background 120ms ease-out;
  text-align: center;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: var(--pop-hover); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 rgba(19, 28, 23, 0.9); transition-duration: 60ms; }
.btn .ic { width: 1.05em; height: 1.05em; }
.btn-lime { background: var(--lime); }
.btn-lime:hover { background: var(--lime-deep); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { color: var(--line-w); background: #000; }
.btn-line { background: transparent; }
.btn-wide { width: 100%; }
.btn-big { font-size: 0.9rem; padding: 15px 24px; min-height: 52px; }

/* Text link with arrow, nudges on hover (primary links only) */
.link-more { font-family: var(--font-mono); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.link-more .ar { display: inline-block; transition: transform 150ms ease-out; }
.link-more:hover .ar { transform: translateX(3px); }

/* --- Chips, tags, status ------------------------------------------------ */
.sticker {
  display: inline-block; background: var(--surface); border: 2px solid var(--ink);
  border-radius: var(--r-tag); transform: rotate(-2deg);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.66rem;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px;
  box-shadow: 2px 2px 0 rgba(19, 28, 23, 0.85);
}
.sticker.out { background: var(--ink); color: var(--paper); }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--hairline); background: var(--surface); border-radius: var(--r-ctl);
  font-family: var(--font-mono); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 7px 12px; color: var(--ink);
}
.status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--court); flex: none; }
.status.out .dot { background: var(--out); }
.status.pre .dot { background: var(--pre); }
.band .status, .site-foot .status { color: rgba(244, 247, 242, 0.75); }
.band .status .dot { background: var(--lime); }
.band .status.out .dot { background: #F08A64; }
.band .status.pre .dot { background: #E2B872; }

/* --- Price -------------------------------------------------------------- */
.price-now { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; }
.price-was { font-family: var(--font-mono); font-weight: 500; font-size: 0.82rem; color: var(--muted); white-space: nowrap; }

/* --- Ticker ------------------------------------------------------------- */
.ticker { background: var(--ink); color: var(--line-w); overflow: hidden; }
.marquee { display: flex; width: max-content; animation: rz-slide 46s linear infinite; }
.marquee span {
  padding: 9px 0; white-space: nowrap;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.07em; text-transform: uppercase;
}
@keyframes rz-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Header ------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(239, 242, 236, 0.85);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--hairline);
}
.head-row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.wordmark {
  font-family: var(--font-display); font-weight: 900; font-size: 1.22rem;
  letter-spacing: -0.03em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
}
.wm-dot { width: 9px; height: 9px; background: var(--lime); border: 2px solid var(--ink); display: inline-block; border-radius: 2px; }
.wordmark img { height: 30px; width: auto; }
.nav { display: none; margin-left: 10px; gap: 22px; }
.nav a {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.76rem;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.head-phone { display: none; font-family: var(--font-mono); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.03em; }
.head-phone .ic { width: 15px; height: 15px; vertical-align: -2px; margin-right: 5px; color: var(--court); }
.head-cta { padding: 9px 14px; min-height: 42px; font-size: 0.72rem; }

/* Mobile menu (native <details>, works without JS) */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.icon-btn {
  width: 42px; height: 42px; border: 2px solid var(--ink); border-radius: var(--r-ctl);
  background: var(--surface); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--pop); transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}
.icon-btn:hover { transform: translate(-1px, -1px); box-shadow: var(--pop-hover); }
.icon-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.icon-btn .ic { width: 18px; height: 18px; }
.menu[open] .icon-btn { background: var(--lime); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 12px); width: min(78vw, 300px);
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-plate);
  box-shadow: var(--float); padding: 10px; z-index: 70;
}
.menu-panel a.m-link {
  display: block; padding: 12px 12px; border-radius: var(--r-ctl);
  font-family: var(--font-mono); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.menu-panel a.m-link:hover { background: var(--paper); }
.menu-panel .m-foot { border-top: 1px solid var(--hairline); margin-top: 8px; padding: 12px 12px 6px; display: grid; gap: 10px; }
.menu-panel .m-note { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .head-phone { display: inline-block; }
  .menu { display: none; }
  .head-cta { padding: 11px 18px; min-height: 46px; font-size: 0.78rem; }
}

/* --- Hero --------------------------------------------------------------- */
.hero { padding: 34px 0 40px; }
.hero-grid { display: grid; gap: 28px; }
.hero-chip { margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(2.5rem, 8.6vw, 4.7rem); font-weight: 900;
  line-height: 0.97; letter-spacing: -0.035em; text-transform: uppercase;
  margin-bottom: 16px; color: var(--ink);
}
.hero-lede { font-size: 1.08rem; color: var(--muted); max-width: 56ch; margin-bottom: 22px; }
.hero .cta-row { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.trust-line {
  border-top: 1px solid var(--hairline); padding-top: 14px; margin: 0;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
}
.trust-line .ic { width: 15px; height: 15px; color: var(--court); }
.trust-line span { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }

/* Hero product panel — the "featured frame" */
.hero-panel {
  background: var(--court); color: var(--line-w); border-radius: var(--r-plate);
  border: 2px solid var(--ink); box-shadow: var(--pop-soft);
  padding: 20px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
}
.hero-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--hairline-dark) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline-dark) 1px, transparent 1px);
  background-size: 88px 88px;
}
.hero-panel::after {
  content: ""; position: absolute; left: -12%; right: -12%; top: 30%;
  height: 2px; background: rgba(244, 247, 242, 0.35); transform: rotate(-7deg); pointer-events: none;
}
.hero-panel > * { position: relative; }
.hp-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hp-flag { font-family: var(--font-mono); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; }
.hp-price { background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r-tag); transform: rotate(2deg); box-shadow: 2px 2px 0 rgba(10, 20, 15, 0.7); font-family: var(--font-mono); font-weight: 700; font-size: 0.86rem; padding: 5px 10px; white-space: nowrap; }
.hp-media { border-radius: calc(var(--r-plate) - 8px); overflow: hidden; background: #fff; border: 1px solid rgba(244, 247, 242, 0.25); }
.hp-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hp-info { display: grid; gap: 6px; }
.hp-name { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em; text-transform: uppercase; margin: 0; }
.hp-spec { font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(244, 247, 242, 0.75); margin: 0; }
.hp-note { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(244, 247, 242, 0.55); margin: 0; }

@media (min-width: 960px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1.12fr 0.88fr; gap: 48px; align-items: stretch; }
  .hero .cta-row { flex-direction: row; }
  .hero-panel { padding: 26px; justify-content: space-between; }
  .hp-media img { aspect-ratio: 16 / 11; }
}

/* --- Section rhythm ----------------------------------------------------- */
.section { padding: 40px 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.sec-head h2 { margin: 0; text-transform: uppercase; letter-spacing: -0.02em; }
.sec-meta { font-family: var(--font-mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.small-head { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; }

/* --- Category rail ------------------------------------------------------ */
.cats-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.hint { font-family: var(--font-mono); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cat-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 44vw);
  gap: 12px; overflow-x: auto; padding: 4px 2px 14px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.cat-cell {
  scroll-snap-align: start; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-plate); padding: 16px; display: grid; gap: 26px;
  transition: transform 120ms ease-out, background 120ms ease-out, border-color 120ms ease-out;
}
.cat-cell:hover { border-color: var(--ink); background: #fff; transform: translateY(-2px); }
.cat-cell:active { transform: scale(0.98); }
.cat-ic { width: 30px; height: 30px; }
.cat-ic .ic { width: 28px; height: 28px; color: var(--court); }
.cat-name { font-family: var(--font-display); font-weight: 800; font-size: 0.98rem; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
.cat-count { font-family: var(--font-mono); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 4px 0 0; }
@media (min-width: 900px) {
  .cat-rail { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; overflow: visible; padding: 2px; }
  .cat-cell { border: 1px solid var(--hairline); border-radius: var(--r-plate); padding: 18px 16px; }
  .cat-cell:hover { transform: translateY(-2px); background: #fff; }
}

/* --- Product grid & plates ---------------------------------------------- */
.grid-draw {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 900px) { .grid-draw { gap: 16px; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.plate { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-plate); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.plate-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--hairline); overflow: hidden; }
.plate-media img { width: 100%; height: 100%; object-fit: contain; padding: 9%; transition: transform 200ms ease-out; }
.plate-media:hover img { transform: scale(1.045); }
.plate-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.plate-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.plate-spec { font-family: var(--font-mono); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.plate-name { margin: 0; font-size: 1rem; letter-spacing: -0.015em; }
.plate-name a { display: block; }
.plate-desc { margin: 0; color: var(--muted); font-size: 0.83rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plate-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hairline); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plate-prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plate .btn { padding: 8px 12px; min-height: 40px; font-size: 0.7rem; box-shadow: 2px 2px 0 rgba(19, 28, 23, 0.9); }
.plate .btn:hover { box-shadow: 3px 3px 0 rgba(19, 28, 23, 0.9); }
.plate .status { margin-top: 6px; }
@media (max-width: 640px) {
  .plate-body { padding: 11px; }
  .plate-name { font-size: 0.9rem; }
  .plate-desc { display: none; }
  .plate-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .plate .btn { width: 100%; }
}

/* --- Court band (stringing) --------------------------------------------- */
.band { background: var(--court); color: var(--line-w); position: relative; overflow: hidden; }
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--hairline-dark) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline-dark) 1px, transparent 1px);
  background-size: 88px 88px;
}
.band::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 18%; height: 2px;
  background: rgba(244, 247, 242, 0.28); transform: rotate(-5deg); pointer-events: none;
}
.band-inner { position: relative; padding: 52px 0; display: grid; gap: 30px; }
.band-chip { background: transparent; border-color: var(--hairline-dark); color: var(--line-w); }
.band h2 { text-transform: uppercase; font-weight: 900; letter-spacing: -0.03em; line-height: 0.98; font-size: clamp(1.9rem, 6vw, 3.3rem); margin: 14px 0 12px; }
.band-lede { color: rgba(244, 247, 242, 0.82); max-width: 52ch; margin-bottom: 0; }
.band .link-more { border-color: var(--line-w); }
.band .link-more:hover { color: var(--line-w); }
.strings { display: grid; gap: 8px; align-self: start; }
.string-row {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center;
  background: var(--panel-dark); border: 1px solid var(--hairline-dark);
  border-radius: var(--r-ctl); padding: 12px 14px;
}
.string-name { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; }
.string-notes { grid-column: 1; font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; color: rgba(244, 247, 242, 0.6); }
.string-price { grid-column: 2; grid-row: 1 / span 2; font-family: var(--font-mono); font-weight: 700; font-size: 1rem; }
.band-note { font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(244, 247, 242, 0.55); margin: 6px 0 0; }
.band-ctas { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 960px) {
  .band-inner { grid-template-columns: 1.05fr 0.95fr; gap: 56px; padding: 72px 0; align-items: start; }
  .band-ctas { flex-direction: row; align-items: center; }
}

/* --- Visit block -------------------------------------------------------- */
.visit { display: grid; gap: 20px; }
.visit-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-plate); padding: 22px; }
.vrow { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--hairline); }
.vrow:first-of-type { border-top: 0; }
.vrow .ic-wrap { width: 38px; height: 38px; border: 1px solid var(--hairline); border-radius: var(--r-ctl); display: grid; place-items: center; background: var(--paper); }
.vrow .ic-wrap .ic { width: 17px; height: 17px; color: var(--court); }
.vrow .vlabel { font-family: var(--font-mono); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin: 2px 0 3px; }
.vrow .vval { margin: 0; font-size: 0.95rem; }
.vrow .vval.mono { font-size: 0.86rem; }
.visit-side {
  background: var(--court); color: var(--line-w); border-radius: var(--r-plate); border: 2px solid var(--ink);
  padding: 24px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px;
}
.visit-side::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--hairline-dark) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline-dark) 1px, transparent 1px);
  background-size: 72px 72px; pointer-events: none;
}
.visit-side > * { position: relative; }
.visit-side .big-glyph .ic { width: 46px; height: 46px; color: var(--lime); }
.visit-side h3 { text-transform: uppercase; font-weight: 900; font-size: 1.35rem; margin: 0; }
.visit-side p { color: rgba(244, 247, 242, 0.8); margin: 0; font-size: 0.92rem; }
.visit-side .btn-line { border-color: var(--line-w); color: var(--line-w); background: transparent; box-shadow: none; }
.visit-side .btn-line:hover { background: rgba(244, 247, 242, 0.1); color: var(--line-w); }
@media (min-width: 960px) { .visit { grid-template-columns: 1.1fr 0.9fr; gap: 32px; } }

/* --- Footer ------------------------------------------------------------- */
.site-foot { background: var(--deep); color: var(--line-w); margin-top: 56px; }
.foot-cta { position: relative; overflow: hidden; border-bottom: 1px solid var(--hairline-dark); }
.foot-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(244, 247, 242, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 247, 242, 0.08) 1px, transparent 1px);
  background-size: 88px 88px; pointer-events: none;
}
.foot-cta-inner { position: relative; padding: 44px 0; display: grid; gap: 18px; }
.foot-cta h2 { text-transform: uppercase; font-weight: 900; font-size: clamp(1.9rem, 6vw, 3rem); letter-spacing: -0.03em; margin: 0; }
.foot-cta .lede { color: rgba(244, 247, 242, 0.78); margin: 8px 0 0; max-width: 46ch; }
@media (min-width: 960px) {
  .foot-cta-inner { grid-template-columns: 1fr auto; align-items: center; padding: 56px 0; }
}
.foot-grid { display: grid; gap: 28px; padding: 40px 0; }
.fcol h3 { font-family: var(--font-mono); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(244, 247, 242, 0.6); margin-bottom: 12px; }
.fcol p { color: rgba(244, 247, 242, 0.82); font-size: 0.9rem; margin: 0 0 6px; }
.fcol .fwordmark { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; text-transform: uppercase; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.fcol a.f-link { display: block; padding: 5px 0; color: rgba(244, 247, 242, 0.82); font-size: 0.92rem; }
.fcol a.f-link:hover { color: var(--lime); }
.foot-base {
  border-top: 1px solid var(--hairline-dark); padding-top: 18px; padding-bottom: 26px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(244, 247, 242, 0.55);
}
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; } }

/* --- Page head (inner pages) -------------------------------------------- */
.page-head { padding: 36px 0 8px; }
.page-head h1 { text-transform: uppercase; font-weight: 900; letter-spacing: -0.03em; }
.page-head .lede { color: var(--muted); max-width: 60ch; }
.crumbs { padding-top: 18px; font-family: var(--font-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { border-bottom: 1px solid var(--hairline); }
.crumbs a:hover { border-color: var(--ink); }

/* --- Shop: search + filters --------------------------------------------- */
.filters { display: grid; gap: 12px; margin-top: 18px; }
.searchbar { display: flex; gap: 10px; max-width: 560px; }
.searchbar input[type="search"] {
  flex: 1; min-height: 48px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: var(--r-ctl);
  background: var(--surface); font: inherit; font-size: 0.95rem; box-shadow: var(--pop-soft);
}
.searchbar input[type="search"]:focus-visible { outline-offset: 0; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link {
  border: 1px solid var(--hairline); background: var(--surface); border-radius: var(--r-ctl);
  padding: 8px 13px; font-family: var(--font-mono); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.05em; text-transform: uppercase; transition: background 120ms ease-out, border-color 120ms ease-out, transform 120ms ease-out;
}
.chip-link:hover { border-color: var(--ink); }
.chip-link:active { transform: scale(0.97); }
.chip-link.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.count-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.empty {
  border: 1px dashed var(--hairline); border-radius: var(--r-plate); background: var(--surface);
  padding: 34px 22px; text-align: center; display: grid; gap: 8px; justify-items: center;
}
.empty p { margin: 0; }

/* --- Product detail ----------------------------------------------------- */
.pdp { display: grid; gap: 24px; padding-top: 22px; }
.gallery { display: grid; gap: 12px; align-content: start; }
.main-plate {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-plate);
  overflow: hidden;
}
.main-plate .mp-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
.main-plate .mp-media { aspect-ratio: 1 / 1; display: grid; place-items: center; background: #fff; }
@media (max-width: 640px) { .main-plate .mp-media { aspect-ratio: 4 / 3; } }
.main-plate .mp-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.main-plate .mp-foot { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--hairline); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumbs img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 8%;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-ctl); cursor: pointer;
  transition: border-color 120ms ease-out, transform 120ms ease-out;
}
.thumbs img:hover { border-color: var(--ink); transform: translateY(-2px); }
.thumbs img.sel { border: 2px solid var(--ink); box-shadow: var(--pop-soft); }

.buybox { display: grid; gap: 14px; align-content: start; }
.buybox .cat-tag { font-family: var(--font-mono); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.buybox h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.99; margin: 0; }
.brandline { font-family: var(--font-mono); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.price-block { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.price-block .price-now { font-size: clamp(1.5rem, 4.5vw, 2rem); }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status-row .status { font-size: 0.78rem; }
.buybox .desc { margin: 0; color: var(--ink); }
.pdp-ctas { display: grid; gap: 10px; }
.micro { font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 0; }
.fact-list { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.fact { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.fact .ic { width: 18px; height: 18px; color: var(--court); margin-top: 3px; }
.fact p { margin: 0; font-size: 0.88rem; }

.spec-section { padding-top: 8px; }
.spec-cols { display: grid; gap: 10px; }
table.specs { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-plate); overflow: hidden; }
table.specs th, table.specs td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--hairline); font-size: 0.88rem; vertical-align: top; }
table.specs tr:last-child th, table.specs tr:last-child td { border-bottom: 0; }
table.specs th { font-family: var(--font-mono); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); width: 42%; }
table.specs td { font-family: var(--font-mono); font-weight: 600; }
.related { padding-top: 8px; }

@media (min-width: 960px) { .pdp { grid-template-columns: 1.08fr 0.92fr; gap: 44px; align-items: start; } }
@media (min-width: 960px) { .spec-cols { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* Sticky order bar — product pages on phones (persistent target) */
.sticky-order {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-top: 1px solid var(--hairline);
}
.sticky-order .so-info { min-width: 0; display: grid; }
.sticky-order .so-price { font-family: var(--font-mono); font-weight: 700; font-size: 0.98rem; }
.sticky-order .so-name { font-family: var(--font-mono); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-order .btn { margin-left: auto; flex: none; padding: 10px 16px; }
body.pdp-page { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 960px) { .sticky-order { display: none; } body.pdp-page { padding-bottom: 0; } }

/* --- Stringing page ----------------------------------------------------- */
.steps { display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-plate); overflow: hidden; margin-bottom: 28px; }
.step { background: var(--surface); padding: 18px; display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.step .n { font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; border: 2px solid var(--ink); border-radius: var(--r-ctl); width: 40px; height: 40px; display: grid; place-items: center; background: var(--paper); }
.step h3 { margin: 2px 0 4px; font-size: 1rem; text-transform: uppercase; }
.step p { margin: 0; color: var(--muted); font-size: 0.88rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
table.prices { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-plate); overflow: hidden; }
table.prices th, table.prices td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--hairline); font-size: 0.9rem; }
table.prices tr:last-child td { border-bottom: 0; }
table.prices thead th { font-family: var(--font-mono); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
table.prices td.num { font-family: var(--font-mono); font-weight: 700; white-space: nowrap; }
form.book { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-plate); padding: 20px; display: grid; gap: 14px; }
form.book label { display: grid; gap: 6px; font-family: var(--font-mono); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
form.book input, form.book select {
  font: inherit; font-size: 0.95rem; min-height: 46px; padding: 10px 12px;
  border: 1px solid var(--hairline); border-radius: var(--r-ctl); background: var(--paper);
  color: var(--ink);
}
form.book input:focus, form.book select:focus { border-color: var(--ink); background: #fff; }

/* --- Misc inner pages (about / contact) --------------------------------- */
.two-col { display: grid; gap: 24px; align-items: start; }
.side-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-plate); padding: 22px; }
.side-card h3 { text-transform: uppercase; }
ul.ticks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 9px; }
ul.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 0.92rem; }
ul.ticks .ic { width: 15px; height: 15px; color: var(--court); margin-top: 4px; }
iframe.map { width: 100%; min-height: 340px; border: 1px solid var(--hairline); border-radius: var(--r-plate); background: var(--surface); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  border: 1px solid var(--hairline); background: var(--surface); border-radius: var(--r-ctl);
  padding: 8px 13px; font-family: var(--font-mono); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.socials a:hover { border-color: var(--ink); }
@media (min-width: 960px) { .two-col { grid-template-columns: 1.2fr 0.8fr; gap: 40px; } }

/* --- Icons -------------------------------------------------------------- */
.ic { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -2px; flex: none; }
@media (max-width: 899px) {
  .head-cta { width: 42px; height: 42px; padding: 0; min-height: 42px; border-radius: var(--r-ctl); }
  .head-cta .lbl { display: none; }
}

/* --- Motion preferences ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { animation: none; }
  .btn, .btn:hover, .btn:active, .cat-cell, .plate-media img, .thumbs img, .link-more .ar { transition: none; transform: none; box-shadow: var(--pop); }
  .plate-media:hover img { transform: none; }
}

/* --- Depth pass: elevation, hover lift, layered shadows ------------------ */
.site-head { box-shadow: 0 14px 34px -24px rgba(10, 32, 24, 0.5); }
.plate { transition: transform 160ms ease-out, box-shadow 160ms ease-out, border-color 160ms ease-out; }
.plate:hover { transform: translateY(-3px); box-shadow: var(--float); border-color: var(--ink); }
.plate-media { box-shadow: inset 0 0 0 1px rgba(19, 28, 23, 0.05); }
.visit-side { box-shadow: var(--pop-soft); }

/* --- Theme: dark (system preference) — the court under floodlights ------- */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0C1410;
    --surface: #16231C;
    --ink: #ECF2ED;
    --muted: #9FB0A6;
    --hairline: rgba(236, 242, 237, 0.15);
    --panel-dark: rgba(5, 22, 16, 0.6);
    --out: #E0714A;
    --pre: #C99C55;
    --pop: 3px 3px 0 rgba(0, 0, 0, 0.85);
    --pop-hover: 4px 4px 0 rgba(0, 0, 0, 0.85);
    --pop-soft: 4px 4px 0 rgba(0, 0, 0, 0.5);
    --float: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 38px rgba(0, 0, 0, 0.5);
  }
  .site-head { background: rgba(12, 20, 16, 0.85); }
  a:hover { color: var(--lime); }
  .dot { background: var(--lime); }
  .head-phone .ic, .trust-line .ic, .cat-ic .ic, .vrow .ic-wrap .ic, .fact .ic, ul.ticks .ic { color: #7FD8AC; }
  .cat-cell:hover { background: var(--surface); border-color: var(--lime); }
  .menu-panel, .hero-panel, .visit-side { border-color: rgba(236, 242, 237, 0.22); }
  .menu-panel a.m-link:hover { background: rgba(236, 242, 237, 0.06); }
  .plate-media { box-shadow: inset 0 0 0 1px rgba(236, 242, 237, 0.06); }
  .plate .btn { box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.9); }
  .plate .btn:hover { box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.9); }
  .ticker { background: var(--deep); color: rgba(244, 247, 242, 0.85); }
  .btn-ink:hover { background: #CFD8D2; color: var(--paper); }
}
