/* ============================================================
   ChempZ — marketing site
   Design tokens mirror the app's FlutterFlow LightModeTheme.
   Brand = black-on-white, Roboto, pill buttons, flat white cards.
   ============================================================ */

:root {
  /* Color tokens (from app_colors.dart) */
  --primary: #000000;
  --tertiary: #8f8f8f;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --bg-fun: #f2f2f2;
  --text: #0f0f0f;
  --text-2: #3c3c3c;
  --grey: #8f8f8f;
  --line: #dedede;
  --success: #4caf50;
  --warning: #ffa726;
  --error: #e53935;
  --white: #ffffff;

  /* Spacing (AppSpacing) */
  --xs: 4px;
  --sm: 8px;
  --md: 16px;
  --lg: 24px;
  --xl: 32px;

  /* Radius (AppRadius) */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 9999px;

  /* Shadows (AppShadows — black @ 10%) */
  --sh-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --sh-md: 0 3px 6px rgba(0, 0, 0, 0.1);
  --sh-lg: 0 8px 15px rgba(0, 0, 0, 0.1);
  --sh-xl: 0 16px 25px rgba(0, 0, 0, 0.1);

  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--primary);
  display: inline-block;
}

/* ----------  Buttons (black pill / grey / outlined)  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--r-lg);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--sh-md);
}
.btn-primary:hover { box-shadow: var(--sh-lg); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-outline:hover { background: var(--text); color: var(--white); }

.btn-ghost { background: transparent; color: var(--text); padding: 12px 16px; }
.btn-ghost:hover { color: var(--grey); }

.btn svg { width: 18px; height: 18px; }

/* ----------  Header / nav  ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--sh-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--bg-fun); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* language picker */
.lang-pick {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  overflow: hidden;
  flex: 0 0 auto;
}
.lang-pick button {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--grey);
  background: transparent;
  border: none;
  padding: 7px 11px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-pick button.active { background: var(--primary); color: var(--white); }
.lang-pick button:not(.active):hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ----------  Hero  ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  margin: 22px 0 0;
}
.hero h1 .accent { position: relative; white-space: nowrap; }
.hero p.lead {
  font-size: 19px;
  color: var(--text-2);
  margin-top: 22px;
  max-width: 520px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--grey);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; }

/* decorative court lines */
.court-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
  -webkit-mask-image: radial-gradient(circle at 75% 35%, #000 0%, transparent 62%);
          mask-image: radial-gradient(circle at 75% 35%, #000 0%, transparent 62%);
}
.hero .container { position: relative; z-index: 1; }

/* hero phone visual */
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual .blob {
  position: absolute;
  width: 420px;
  height: 420px;
  background: var(--bg-fun);
  border-radius: 46% 54% 60% 40% / 52% 44% 56% 48%;
  z-index: 0;
  filter: blur(2px);
}

/* ----------  Phone mockup  ---------- */
.phone {
  position: relative;
  width: 270px;
  aspect-ratio: 1080 / 2424;
  background: #000;
  border-radius: 42px;
  padding: 9px;
  box-shadow: var(--sh-xl), 0 40px 80px rgba(0, 0, 0, 0.18);
  z-index: 1;
}
.phone::before { /* notch */
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 22px;
  background: #000;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 2;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 34px;
  background: #fff;
}

/* ----------  Device mockup (screenshot with phone frame baked in)  ---------- */
.device {
  width: 290px;
  max-width: 78vw;
  z-index: 1;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.22));
  transition: transform 0.3s ease;
}
.device img { width: 100%; height: auto; display: block; }
.hero-visual .device:hover { transform: translateY(-6px); }

/* ----------  Stats strip  ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 0;
  text-align: center;
}
.stat .num { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.stat .label { font-size: 14px; color: var(--grey); margin-top: 4px; }
.stat + .stat { border-left: 1px solid var(--line); }

/* ----------  Section scaffolding  ---------- */
.section { padding: 92px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 16px 0 0; }
.section-head p { color: var(--text-2); font-size: 18px; margin-top: 16px; }
.section-head .eyebrow { justify-content: center; }
.section.alt { background: var(--bg-fun); }

/* ----------  Features grid  ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }
.feature .icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 20px; }
.feature p { color: var(--text-2); font-size: 15px; margin-top: 8px; }

/* ----------  How it works  ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step { position: relative; padding-top: 8px; }
.step .n {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 18px;
}
.step h3 { font-size: 21px; }
.step p { color: var(--text-2); margin-top: 8px; }

/* ----------  Showcase carousel  ---------- */
.showcase-rail {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 8px 24px 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.showcase-rail::-webkit-scrollbar { height: 8px; }
.showcase-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.showcase-item { scroll-snap-align: center; flex: 0 0 auto; text-align: center; }
.showcase-item .device { width: 256px; }
.showcase-item .cap { margin-top: 8px; font-weight: 600; font-size: 16px; }
.showcase-item .cap span { display: block; font-weight: 400; font-size: 14px; color: var(--grey); margin-top: 2px; }

/* ----------  Split feature (book/maps)  ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media { display: flex; justify-content: center; }
.split h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 16px; }
.split p { color: var(--text-2); font-size: 17px; margin-top: 18px; }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.check-list .tick {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.check-list .tick svg { width: 14px; height: 14px; }

/* ----------  FAQ  ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  padding: 22px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q .chev { transition: transform 0.25s ease; flex: 0 0 auto; }
.faq-q .chev svg { width: 22px; height: 22px; }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  color: var(--text-2);
  font-size: 16px;
}
.faq-a p { padding: 0 4px 24px; }

/* ----------  CTA band  ---------- */
.cta-band {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.7); font-size: 18px; margin-top: 16px; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-primary { background: var(--white); color: var(--primary); }
.cta-band .btn-outline { color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--primary); border-color: var(--white); }
.cta-band .court-lines { opacity: 0.18; -webkit-mask-image: none; mask-image: none; }

/* store badges */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--r-md);
  padding: 12px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.store-badge svg { width: 28px; height: 28px; flex: 0 0 auto; }
.store-badge .t { line-height: 1.15; text-align: left; }
.store-badge .t small { display: block; font-size: 11px; opacity: 0.75; font-weight: 400; }
.store-badge .t strong { font-size: 17px; font-weight: 600; }
.cta-band .store-badge { background: var(--white); color: var(--primary); }

/* ----------  Footer  ---------- */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img { height: 34px; width: auto; filter: invert(1) brightness(2); }
.footer-brand .word { display: flex; align-items: center; gap: 10px; }
.footer-brand .word strong { color: var(--white); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.footer-brand p { margin-top: 16px; font-size: 14px; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col a { display: block; font-size: 15px; padding: 6px 0; color: rgba(255, 255, 255, 0.7); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.footer-bottom a:hover { color: var(--white); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Search page (search.html)
   ============================================================ */
.search-hero { padding: 56px 0 28px; }
.search-hero h1 { font-size: clamp(32px, 4.5vw, 48px); margin: 14px 0 0; }
.search-sub { color: var(--text-2); font-size: 17px; margin-top: 14px; max-width: 620px; }

/* segmented Courts/Games toggle */
.seg {
  display: inline-flex;
  gap: 6px;
  margin-top: 28px;
  padding: 6px;
  background: var(--bg-fun);
  border-radius: var(--r-full);
}
.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  border: none;
  padding: 11px 24px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.seg-btn svg { width: 18px; height: 18px; }
.seg-btn.active { background: var(--primary); color: var(--white); box-shadow: var(--sh-sm); }

/* layout: filter rail + results */
.search-body { padding: 28px 0 88px; }
.search-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}
.filters {
  position: sticky;
  top: 96px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
}
.input-wrap { position: relative; }
.input-wrap .i-lead {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--grey);
  pointer-events: none;
}
.input-wrap input,
.input-wrap select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-fun);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 13px 14px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.input-wrap input { cursor: text; }
.input-wrap input#q { padding-left: 40px; }
.input-wrap input:focus,
.input-wrap select:focus { outline: none; border-color: var(--primary); background: var(--white); }
.input-wrap select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238f8f8f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
}
.btn-block { width: 100%; margin-top: 6px; padding: 12px; font-size: 15px; }

/* results */
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 16px;
}
.count { font-weight: 600; font-size: 16px; }
.sort { display: flex; align-items: center; gap: 10px; }
.sort label { font-size: 14px; color: var(--grey); }
.sort select {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 30px 9px 12px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238f8f8f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 9px center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}
.chip {
  position: absolute;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  backdrop-filter: blur(4px);
}
.card-media .chip:first-of-type { top: 10px; left: 10px; }
.card-media .chip:last-of-type { top: 10px; right: 10px; }
.chip-free { color: var(--success); }
.chip-rate { color: var(--text); }
.chip-spots { color: var(--success); }
.chip-full { color: var(--error); }

.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; }
.card-city { font-size: 12.5px; color: var(--grey); }
.card-title { font-size: 17px; margin: 4px 0 0; line-height: 1.25; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tag {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-fun);
  border-radius: var(--r-full);
  padding: 4px 10px;
}
.card-desc {
  font-size: 13.5px;
  color: var(--text-2);
  margin-top: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* loading skeleton */
.card.skeleton { pointer-events: none; }
.card.skeleton .card-media { background: var(--bg-fun); }
.card.skeleton .card-body { gap: 10px; }
.sk-line { height: 12px; border-radius: 6px; background: var(--bg-fun); margin-top: 12px; }
.sk-line.short { width: 55%; }
.card.skeleton .card-media,
.sk-line { animation: skpulse 1.2s ease-in-out infinite; }
@keyframes skpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--grey);
}
.empty svg { width: 40px; height: 40px; margin-bottom: 12px; }
.empty h3 { font-size: 20px; color: var(--text); }
.empty p { margin-top: 6px; }

.result-cta {
  margin-top: 28px;
  background: var(--bg-fun);
  border-radius: var(--r-md);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.result-cta strong { display: block; font-size: 17px; }
.result-cta span { font-size: 14px; color: var(--text-2); }

@media (max-width: 860px) {
  .search-layout { grid-template-columns: 1fr; gap: 24px; }
  .filters { position: static; }
  .filters form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  .field { margin-bottom: 14px; }
  .field:first-child, .btn-block { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .filters form { grid-template-columns: 1fr; }
  .seg { display: flex; width: 100%; }
  .seg-btn { flex: 1; justify-content: center; padding: 12px; }
  .results-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ----------  Responsive  ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .store-row { justify-content: center; }
  .hero-note { justify-content: center; }
  .hero-visual { margin-top: 12px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .split.reverse .split-media { order: 0; }
  .check-list { text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    gap: 4px;
    box-shadow: var(--sh-md);
  }
  .nav-links.open a { width: 100%; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-primary { display: none; }
  .lang-pick button { padding: 6px 9px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .stat:nth-child(3) { border-left: none; }
  .stat + .stat { border-left: none; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta-band { padding: 48px 24px; }
}

/* ============================================================
   Detail view (read-only) + Blog
   ============================================================ */
.cards .card { cursor: pointer; }
.cards .card.skeleton { cursor: default; }
.cards .card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.detail-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 5vh 16px; overflow-y: auto;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.detail-overlay[hidden] { display: none; }
.detail-card {
  position: relative; width: 100%; max-width: 560px;
  background: var(--white); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-xl); animation: dpop 0.2s ease;
}
@keyframes dpop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.detail-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.92); color: var(--text);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-sm);
}
.detail-close svg { width: 20px; height: 20px; }
.detail-media { width: 100%; aspect-ratio: 16 / 10; background: #1b1b1b center / cover no-repeat; }
.detail-body { padding: 24px 26px 26px; }
.detail-title { font-size: 24px; margin: 0 0 16px; }
.d-grid { display: grid; border-top: 1px solid var(--line); }
.d-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.d-label { color: var(--grey); }
.d-val { font-weight: 600; text-align: right; }
.d-desc { margin-top: 18px; }
.d-desc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey); margin: 0 0 6px; }
.d-desc p { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.d-map { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 14px; text-decoration: underline; }
.d-notice { margin-top: 22px; padding: 18px; background: var(--bg-fun); border-radius: var(--r-md); }
.d-notice p { font-size: 14px; color: var(--text-2); margin: 0 0 14px; }
.d-store { display: flex; gap: 10px; }
.d-store .btn-block { flex: 1; padding: 12px; font-size: 14px; }

.blog-hero { padding: 64px 0 8px; }
.blog-hero h1 { font-size: clamp(32px, 4.5vw, 48px); margin: 14px 0 0; }
.blog-hero p { color: var(--text-2); font-size: 18px; margin-top: 14px; max-width: 600px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 40px 0 88px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }
.post-card .pc-media { aspect-ratio: 16 / 10; background: #1b1b1b center / cover no-repeat; }
.post-card .pc-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .pc-date { font-size: 13px; color: var(--grey); }
.post-card h3 { font-size: 19px; margin: 8px 0 0; }
.post-card p { color: var(--text-2); font-size: 14.5px; margin-top: 10px; }
.post-card .pc-read { margin-top: auto; padding-top: 16px; font-weight: 600; font-size: 14px; }

.article { max-width: 720px; margin: 0 auto; padding: 48px 0 88px; }
.article .a-back { font-size: 14px; font-weight: 600; color: var(--grey); }
.article .a-date { font-size: 14px; color: var(--grey); margin-top: 24px; }
.article h1 { font-size: clamp(30px, 4vw, 42px); margin: 8px 0 0; }
.article .a-media { aspect-ratio: 16 / 9; background: #1b1b1b center / cover no-repeat; border-radius: var(--r-md); margin: 28px 0; }
.article h2 { font-size: 23px; margin: 32px 0 12px; }
.article p { color: var(--text); font-size: 17px; line-height: 1.7; margin: 0 0 16px; }
.article ul { color: var(--text); font-size: 17px; line-height: 1.7; padding-left: 22px; margin: 0 0 16px; }
.article li { margin-bottom: 8px; }

/* cookie / consent bar */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 760px; margin: 0 auto;
  background: var(--primary); color: var(--white);
  border-radius: var(--r-md); padding: 16px 18px;
  box-shadow: var(--sh-xl);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  animation: dpop 0.25s ease;
}
.consent-text { flex: 1 1 280px; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); margin: 0; }
.consent-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.consent-link { font-size: 13px; color: var(--white); text-decoration: underline; white-space: nowrap; }
.consent-btn { padding: 9px 16px; font-size: 14px; }
.consent .btn-primary { background: var(--white); color: var(--primary); }
.consent .btn-outline { color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.consent .btn-outline:hover { background: var(--white); color: var(--primary); border-color: var(--white); }
@media (max-width: 560px) {
  .consent { flex-direction: column; align-items: stretch; gap: 12px; }
  .consent-actions { justify-content: flex-end; }
}

.post-card .pc-media, .article .a-media {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 250'%3E%3Crect width='400' height='250' fill='%231b1b1b'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.22' stroke-width='2'%3E%3Crect x='40' y='30' width='320' height='190' rx='4'/%3E%3Cline x1='200' y1='30' x2='200' y2='220'/%3E%3Ccircle cx='200' cy='125' r='38'/%3E%3Crect x='40' y='80' width='70' height='90'/%3E%3Crect x='290' y='80' width='70' height='90'/%3E%3C/g%3E%3C/svg%3E");
}

@media (max-width: 860px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } .d-store { flex-direction: column; } .detail-body { padding: 20px; } }
