/* ==========================================================================
   ShedBye storefront — design tokens
   Brand green #14483B · Clementine #F2632E · Warm off-white #FCF8F2
   ========================================================================== */

:root {
  /* Brand */
  --brand:            #14483B;
  --brand-deep:       #0E332A;
  --accent:           #F2632E;
  --accent-hover:     #E4551F;
  --accent-text:      #B8410F; /* 5.2:1 on --bg, for small text */
  --bg:               #FCF8F2;

  /* Surfaces & text (light) */
  --surface:          #FFFFFF;
  --surface-sunk:     #F4EEE4;
  --band:             #F3EDE3;
  --text:             #14483B;
  --text-muted:       #4E6B62;
  --border:           #E3DACB;
  --border-strong:    #CFC2AD;
  --on-accent:        #FFFFFF;
  --shadow-sm:        0 1px 2px rgba(20, 72, 59, .06), 0 2px 8px rgba(20, 72, 59, .05);
  --shadow-md:        0 4px 12px rgba(20, 72, 59, .07), 0 12px 32px rgba(20, 72, 59, .08);
  --skeleton-a:       #EDE5D8;
  --skeleton-b:       #F7F1E7;

  /* Type */
  --font-display: "Bricolage Grotesque", "Hanken Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Hanken Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Space scale (4/8 rhythm) */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;   --s-9: 6rem;

  /* Radii */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand:         #8FD3BA;
    --brand-deep:    #A9E0CB;
    --accent:        #F2632E;
    --accent-hover:  #FF7845;
    --accent-text:   #FF9166; /* 8.0:1 on dark --bg */
    --bg:            #0E1A16;

    --surface:       #16261F;
    --surface-sunk:  #1C2F27;
    --band:          #132420;
    --text:          #F2EFE7;
    --text-muted:    #A7BDB3;
    --border:        #294038;
    --border-strong: #3B594E;
    --on-accent:     #FFFFFF;
    --shadow-sm:     0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md:     0 8px 28px rgba(0, 0, 0, .45);
    --skeleton-a:    #1B2C25;
    --skeleton-b:    #24382F;
  }
}

/* ==========================================================================
   Base
   ========================================================================== */

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

button { font: inherit; color: inherit; }

:where(a) { color: var(--brand); text-underline-offset: 3px; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--brand); color: var(--bg);
  padding: var(--s-3) var(--s-5); border-radius: var(--r-pill);
  font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--s-4); }

.wrap {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: var(--s-5);
}
.wrap.narrow { max-width: 760px; }

@media (min-width: 768px) { .wrap { padding-inline: var(--s-6); } }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  min-height: 60px;
  padding-block: var(--s-2);
}

.brand {
  display: inline-flex; align-items: center; gap: var(--s-2);
  text-decoration: none; color: var(--brand);
}
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.3125rem; letter-spacing: -.03em;
}
.header-note {
  font-size: .8125rem; font-weight: 500; color: var(--text-muted);
  display: none;
}
@media (min-width: 640px) { .header-note { display: block; } }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  position: relative;
  min-height: 48px;
  padding: var(--s-3) var(--s-6);
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              box-shadow .18s var(--ease), border-color .18s var(--ease);
}

.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); transform: scale(1.025); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: scale(.985); }

.btn-ghost { background: transparent; color: var(--brand); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); transform: scale(1.02); }

.btn[disabled], .btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .55;
  transform: none !important;
  box-shadow: none;
}

.btn-buy {
  width: 100%;
  min-height: 58px;
  /* 19px/700 keeps white-on-orange within WCAG large-text contrast */
  font-size: 1.1875rem;
  margin-top: var(--s-5);
}

/* Loading spinner inside buttons */
.spinner {
  display: none;
  width: 19px; height: 19px; flex: none;
  border: 2.5px solid color-mix(in srgb, var(--on-accent) 35%, transparent);
  border-top-color: var(--on-accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.is-loading .spinner { display: block; }
.btn.is-loading { pointer-events: none; opacity: .9; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Product layout
   ========================================================================== */

.product-grid {
  display: grid;
  gap: var(--s-6);
  padding-block: var(--s-6) var(--s-8);
  align-items: start;
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: var(--s-7);
    padding-block: var(--s-7) var(--s-9);
  }
  .gallery { position: sticky; top: 84px; }
}

/* --- Gallery --- */

.gallery-main {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity .25s var(--ease);
}
.gallery-main img.is-swapping { opacity: 0; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
  margin-top: var(--s-3);
}
@media (min-width: 480px) { .thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 900px) { .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); } }

.thumb {
  padding: 0;
  border: 2px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb:hover { transform: scale(1.04); border-color: var(--border-strong); }
.thumb[aria-current="true"] { border-color: var(--accent); }

/* --- Buy panel --- */

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}

.product-title {
  font-size: clamp(1.875rem, 5.2vw, 2.75rem);
  margin-bottom: var(--s-4);
}

.price-row {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: var(--s-3);
}

.price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.price-save {
  display: inline-flex; align-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-text);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--r-pill);
  padding: var(--s-1) var(--s-3);
  /* 15px/700 on a tinted chip — decorative emphasis, text repeated in stock line */
  font-size: .9375rem; font-weight: 700;
}
.price-unit {
  margin-top: var(--s-2);
  font-size: .9375rem; font-weight: 600; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.price-note {
  margin-top: var(--s-2);
  font-size: .875rem;
  color: var(--text-muted);
}

/* --- Variant options --- */

.options { margin-top: var(--s-6); }

.option-group { border: 0; padding: 0; margin: 0 0 var(--s-5); }

.option-legend {
  padding: 0;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}
.option-legend strong { color: var(--text); font-weight: 700; }

.option-values {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
}

.option-btn {
  min-height: 48px;
  padding: var(--s-2) var(--s-5);
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color .18s var(--ease), background-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease);
}
.option-btn:hover:not([disabled]) { border-color: var(--brand); transform: scale(1.03); }

.option-btn[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--bg);
}
@media (prefers-color-scheme: dark) {
  .option-btn[aria-pressed="true"] { color: #0E1A16; }
}

.option-btn[disabled] {
  cursor: not-allowed;
  opacity: .45;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.option-btn.is-soldout {
  color: var(--text-muted);
  border-color: var(--border);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--border-strong);
}
.option-btn.is-soldout[aria-pressed="true"] {
  background: var(--surface-sunk);
  border-color: var(--border-strong);
  color: var(--text-muted);
}

/* --- Stock + errors --- */

.stock-line {
  display: flex; align-items: center; gap: var(--s-2);
  font-size: .9375rem; font-weight: 600;
  min-height: 1.5rem;
}
.stock-line::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: currentColor;
}
.stock-line.in-stock { color: var(--brand); }
.stock-line.out-stock { color: var(--text-muted); }
.stock-line:empty { display: none; }

.buy-error {
  margin-top: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: var(--r-sm);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text);
}

.secure-note {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  margin-top: var(--s-3);
  font-size: .875rem;
  color: var(--text-muted);
}
.lock { width: 16px; height: 16px; flex: none; }

.trust-list {
  list-style: none;
  margin: var(--s-6) 0 0;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: grid; gap: var(--s-3);
  font-size: .9375rem;
  font-weight: 500;
}
.trust-list li { display: flex; align-items: flex-start; gap: var(--s-3); }
.trust-dot {
  width: 18px; height: 18px; flex: none; margin-top: .22em;
  border-radius: 50%;
  background: var(--brand);
  position: relative;
}
.trust-dot::after {
  content: ""; position: absolute; inset: 0;
  background: var(--surface);
  clip-path: polygon(20% 52%, 34% 52%, 44% 64%, 68% 32%, 80% 32%, 46% 76%);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding-block: var(--s-8); }

.band {
  background: var(--band);
  border-block: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.125rem);
  margin-bottom: var(--s-6);
}

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--s-4);
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.125rem;
  margin-bottom: var(--s-4);
}
@media (prefers-color-scheme: dark) { .step-num { color: #0E1A16; } }

.step-title { font-size: 1.1875rem; margin-bottom: var(--s-2); }
.step-body { color: var(--text-muted); font-size: .9375rem; }

/* --- Rich text from Shopify --- */

.rte { font-size: 1.0625rem; }
.rte > * + * { margin-top: var(--s-4); }
.rte p { max-width: 68ch; }
.rte h3 {
  font-size: 1.25rem;
  margin-top: var(--s-6);
  letter-spacing: -.01em;
}
.rte ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: var(--s-3);
}
.rte li {
  position: relative;
  padding-left: var(--s-6);
  max-width: 68ch;
}
.rte li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--brand);
  color: var(--bg);
  padding-block: var(--s-7);
  margin-top: var(--s-8);
}
@media (prefers-color-scheme: dark) {
  .site-footer { background: #0B1512; color: var(--text); border-top: 1px solid var(--border); }
}

.footer-inner { display: grid; gap: var(--s-3); justify-items: center; text-align: center; }
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em;
}
.footer-tag { font-size: 1.0625rem; opacity: .9; }

.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4);
  margin: var(--s-3) 0;
}
.footer-links a {
  font-size: .875rem; font-weight: 500; opacity: .8;
  text-decoration: none; transition: opacity .2s var(--ease);
}
.footer-links a:hover { opacity: 1; text-decoration: underline; }

.footer-legal { font-size: .8125rem; opacity: .65; }

/* ==========================================================================
   Product details (static copy)
   ========================================================================== */

.product-details { font-size: 1.0625rem; line-height: 1.7; }
.product-details > * + * { margin-top: var(--s-4); }
.product-details h3 {
  font-size: 1.125rem; font-weight: 700;
  margin-top: var(--s-5);
}
.product-details ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--s-2);
}
.product-details li {
  position: relative; padding-left: var(--s-5);
}
.product-details li::before {
  content: "";
  position: absolute; left: 0; top: .65em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================================
   Sticky mobile buy bar
   ========================================================================== */

.buy-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-3) var(--s-5);
  padding-bottom: calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform .28s var(--ease);
}
.buy-bar.is-visible { transform: translateY(0); }

.buy-bar-info { display: grid; min-width: 0; flex: 1; }
.buy-bar-price {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.1875rem;
  font-variant-numeric: tabular-nums;
}
.buy-bar-variant {
  font-size: .8125rem; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn-bar { flex: none; min-height: 50px; padding-inline: var(--s-6); font-size: 1.0625rem; }

@media (min-width: 900px) { .buy-bar { display: none; } }

/* ==========================================================================
   Loading + error states
   ========================================================================== */

.skeleton {
  border-radius: var(--r-sm);
  background: linear-gradient(100deg, var(--skeleton-a) 30%, var(--skeleton-b) 50%, var(--skeleton-a) 70%);
  background-size: 240% 100%;
  animation: shimmer 1.5s var(--ease) infinite;
}
@keyframes shimmer { from { background-position: 140% 0; } to { background-position: -40% 0; } }

.skel-main { aspect-ratio: 1 / 1; border-radius: var(--r-lg); }
.skel-thumb { aspect-ratio: 1 / 1; }
.skel-line { height: 1.1rem; margin-bottom: var(--s-3); }
.skel-title { height: 2.6rem; width: 92%; margin-bottom: var(--s-5); }
.skel-price { height: 2rem; width: 32%; margin-bottom: var(--s-5); }
.skel-block { height: 7rem; border-radius: var(--r); margin-bottom: var(--s-5); }
.skel-cta { height: 58px; border-radius: var(--r-pill); }

.state-card {
  max-width: 560px;
  margin: var(--s-8) auto;
  padding: var(--s-7) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.state-icon { width: 48px; height: 48px; color: var(--accent); margin: 0 auto var(--s-4); }
.state-title { font-size: 1.5rem; margin-bottom: var(--s-3); }
.state-body { color: var(--text-muted); margin-bottom: var(--s-6); }
.state-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }

/* ==========================================================================
   Entrance animations
   ========================================================================== */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-up {
  animation: fade-up 0.5s var(--ease) both;
}

.animate-fade-in {
  animation: fade-in 0.4s var(--ease) both;
}

.animate-scale-in {
  animation: scale-in 0.35s var(--ease) both;
}

/* Stagger delays for grid items */
.step:nth-child(1) { animation-delay: 0ms; }
.step:nth-child(2) { animation-delay: 80ms; }
.step:nth-child(3) { animation-delay: 160ms; }

.trust-list li:nth-child(1) { animation: fade-up 0.4s var(--ease) 200ms both; }
.trust-list li:nth-child(2) { animation: fade-up 0.4s var(--ease) 280ms both; }
.trust-list li:nth-child(3) { animation: fade-up 0.4s var(--ease) 360ms both; }

/* ==========================================================================
   Enhanced micro-interactions
   ========================================================================== */

/* Price transition */
.price {
  transition: color 0.2s var(--ease);
}

/* Option button press feedback */
.option-btn {
  transition: border-color .18s var(--ease), background-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}

.option-btn:active:not([disabled]) {
  transform: scale(0.97);
}

.option-btn[aria-pressed="true"] {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}

/* Stock indicator pulse */
.stock-line.in-stock::before {
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Gallery main image transition */
.gallery-main img {
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.gallery-main:hover img {
  transform: scale(1.02);
}

/* Thumb active ring */
.thumb[aria-current="true"] {
  box-shadow: 0 0 0 2px var(--accent);
  transform: scale(1.05);
}

/* Buy button glow on hover */
.btn-primary:hover {
  box-shadow: var(--shadow-md), 0 0 20px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* Step card hover lift */
.step {
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Section reveal animation */
.section-title {
  animation: fade-up 0.5s var(--ease) both;
}

/* Footer link underline animation */
.footer-tag {
  transition: opacity 0.2s var(--ease);
}

/* ==========================================================================
   Focus improvements
   ========================================================================== */

/* Enhanced focus ring for interactive elements */
.option-btn:focus-visible,
.thumb:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Focus ring for buy button */
.btn-buy:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .spinner { animation: spin 1s linear infinite !important; }
  .skeleton { animation: none !important; background: var(--skeleton-a); }
  .buy-bar { transition: none; }
  .step:hover { transform: none; }
  .gallery-main:hover img { transform: none; }
  .thumb[aria-current="true"] { transform: none; }
}

/* ==========================================================================
   Legal / info pages
   ========================================================================== */

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--s-2);
}

.page-updated {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: var(--s-6);
}

.legal-content {
  font-size: 1.0625rem;
  line-height: 1.75;
}
.legal-content > * + * { margin-top: var(--s-4); }
.legal-content h2 {
  font-size: 1.25rem;
  margin-top: var(--s-6);
  margin-bottom: var(--s-2);
}
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover { text-decoration-thickness: 2px; }

.contact-info {
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-5);
}
.contact-item {
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.contact-item h2 {
  font-size: 1.125rem;
  margin-bottom: var(--s-2);
}
.contact-item p { color: var(--text-muted); font-size: .9375rem; }
.contact-item p + p { margin-top: var(--s-1); }

/* ==========================================================================
   Reviews
   ========================================================================== */

.reviews-grid {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 640px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--s-5);
  margin: 0;
}
.review-text {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: var(--s-4);
  font-style: italic;
}
.review-author {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .875rem;
  flex: none;
}
.review-name {
  font-weight: 600;
  font-size: .9375rem;
  font-style: normal;
}
.review-meta {
  font-size: .8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
  display: grid;
  gap: var(--s-3);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.faq-question {
  padding: var(--s-4) var(--s-5);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s var(--ease);
}
.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--s-5) var(--s-4);
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}
