/* VinoReel Site – Wine-themed Liquid Glass Design System
   - No build tools, just modern CSS.
   - Uses CSS variables + `html[data-theme]` for light/dark.
   - Wine-warm palette: gold/amber, burgundy, merlot rose, violet.
*/

:root {
  color-scheme: light dark;

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;

  /* Sizing */
  --page-max: 1100px;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --blur: 18px;

  /* Wine-themed accents */
  --accent-0: 196 132 26;   /* warm gold/amber — matches app #C4841A */
  --accent-1: 128 0 32;     /* deep burgundy / wine red */
  --accent-2: 168 56 68;    /* merlot rose */
  --accent-3: 122 92 255;   /* violet — depth accent */

  /* Light theme tokens — warm parchment feel */
  --bg: 252 248 243;
  --bg-2: 245 238 228;
  --text: 32 18 12;
  --muted: 108 88 72;
  --card: 255 255 255;
  --card-2: 255 252 248;
  --border: 255 255 255;
  --border-2: 210 195 178;
  --shadow: 42 22 8;
  --shadow-strength: 0.18;
  --glass-alpha: 0.72;
  --glass-border: 0.45;
}

html[data-theme="dark"] {
  /* Dark theme — deep warm tones */
  --bg: 12 8 6;
  --bg-2: 20 14 10;
  --text: 245 238 228;
  --muted: 180 168 155;
  --card: 20 14 10;
  --card-2: 16 10 8;
  --border: 255 255 255;
  --border-2: 72 56 42;
  --shadow: 0 0 0;
  --shadow-strength: 0.0;
  --glass-alpha: 0.22;
  --glass-border: 0.14;
}

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

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: rgb(var(--text));
  line-height: 1.55;
  letter-spacing: -0.01em;
  background:
    radial-gradient(1200px 650px at 10% 10%, rgba(var(--accent-0) / 0.22), transparent 55%),
    radial-gradient(900px 520px at 95% 15%, rgba(var(--accent-1) / 0.16), transparent 60%),
    radial-gradient(1000px 700px at 30% 95%, rgba(var(--accent-2) / 0.14), transparent 60%),
    linear-gradient(180deg, rgb(var(--bg)), rgb(var(--bg-2)));
  background-attachment: scroll;
  overflow-x: hidden;
  position: relative;
}

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

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

::selection {
  background: rgba(var(--accent-0) / 0.35);
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: 14px;
  top: 14px;
  transform: translateY(-150%);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(var(--card) / 0.9);
  border: 1px solid rgba(var(--border) / 0.3);
  box-shadow: 0 18px 60px rgba(0 0 0 / 0.18);
  z-index: 9999;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ========== Background Liquid ========== */

.liquid-bg {
  pointer-events: none;
  position: absolute;
  inset: -100px;
  z-index: -1;
  filter: blur(0px) saturate(1.15);
  contain: paint;
  transform: translateZ(0);
}

.blob {
  position: absolute;
  width: min(520px, 55vmax);
  height: min(520px, 55vmax);
  border-radius: 44% 56% 38% 62% / 54% 40% 60% 46%;
  opacity: 0.6;
  mix-blend-mode: screen;
  filter: blur(14px);
  animation: blob-float 14s ease-in-out infinite;
}

html[data-theme="dark"] .blob {
  opacity: 0.42;
  mix-blend-mode: lighten;
}

.blob.blob-a {
  left: -120px;
  top: -120px;
  background:
    radial-gradient(circle at 30% 30%, rgba(var(--accent-0) / 0.85), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(var(--accent-2) / 0.6), transparent 60%);
  animation-duration: 16s;
}

.blob.blob-b {
  right: -160px;
  top: 10%;
  background:
    radial-gradient(circle at 30% 40%, rgba(var(--accent-1) / 0.75), transparent 60%),
    radial-gradient(circle at 60% 60%, rgba(var(--accent-0) / 0.5), transparent 60%);
  animation-duration: 18s;
  animation-delay: -4s;
}

.blob.blob-c {
  left: 18%;
  bottom: -220px;
  width: min(720px, 70vmax);
  height: min(720px, 70vmax);
  background:
    radial-gradient(circle at 35% 35%, rgba(var(--accent-2) / 0.5), transparent 65%),
    radial-gradient(circle at 70% 60%, rgba(var(--accent-3) / 0.35), transparent 65%),
    radial-gradient(circle at 55% 50%, rgba(var(--accent-0) / 0.45), transparent 70%);
  animation-duration: 20s;
  animation-delay: -8s;
}

@keyframes blob-float {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    border-radius: 44% 56% 38% 62% / 54% 40% 60% 46%;
  }
  35% {
    transform: translate3d(22px, 18px, 0) scale(1.04);
    border-radius: 52% 48% 55% 45% / 48% 62% 38% 52%;
  }
  70% {
    transform: translate3d(-14px, 26px, 0) scale(0.98);
    border-radius: 40% 60% 42% 58% / 58% 44% 56% 42%;
  }
}

/* ========== Layout ========== */

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: min(var(--page-max), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 26px 0;
}

.section.tight {
  padding: 18px 0;
}

/* Doc pages (Support / Privacy / Terms) */
.doc .header {
  padding: 10px 0;
}

.doc .section {
  padding: 18px 0;
}

.doc .section.tight {
  padding: 12px 0;
}

.doc .page-hero.card {
  padding: 16px;
}

.doc .page-hero p {
  margin-top: 6px;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(var(--card) / 0.35);
  border-bottom: 1px solid rgba(var(--border) / 0.18);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  transform: translateZ(0);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0 0 0 / 0.18);
}

.brand-title {
  display: grid;
  line-height: 1.05;
}

.brand-title strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.brand-title span {
  font-size: 12px;
  color: rgba(var(--muted) / 0.95);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  font-size: 13px;
  color: rgba(var(--text) / 0.88);
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(var(--card) / 0.35);
  border: 1px solid rgba(var(--border) / 0.18);
  padding: 7px 9px;
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 650;
  font-size: 13px;
  letter-spacing: -0.01em;
  border: 1px solid rgba(var(--border) / 0.18);
  background: rgba(var(--card) / 0.55);
  box-shadow:
    0 20px 60px rgba(0 0 0 / 0.12),
    inset 0 1px 0 rgba(255 255 255 / 0.22);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  cursor: pointer;
  user-select: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 26px 70px rgba(0 0 0 / 0.14),
    inset 0 1px 0 rgba(255 255 255 / 0.24);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  border: 1px solid rgba(var(--border) / 0.18);
  background:
    radial-gradient(120% 160% at 10% 20%, rgba(var(--accent-0) / 0.55), transparent 60%),
    radial-gradient(120% 160% at 85% 30%, rgba(var(--accent-1) / 0.35), transparent 62%),
    rgba(var(--card) / 0.55);
}

.btn.primary .shine {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255 255 255 / 0.75);
  box-shadow: 0 0 0 10px rgba(255 255 255 / 0.12);
}

.icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* Coming Soon badge */
.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-0) / 0.3);
  background:
    radial-gradient(120% 160% at 10% 20%, rgba(var(--accent-0) / 0.22), transparent 60%),
    rgba(var(--card) / 0.55);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  font-weight: 650;
  font-size: 13px;
  color: rgba(var(--text) / 0.88);
  box-shadow:
    0 20px 60px rgba(0 0 0 / 0.1),
    inset 0 1px 0 rgba(255 255 255 / 0.22);
}

.coming-soon .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(var(--accent-0) / 0.9);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-0) / 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(var(--accent-0) / 0); }
}

/* ========== Hero ========== */

.hero {
  padding: 40px 0 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0;
}

.hero p {
  margin: 14px 0 0;
  font-size: 16px;
  color: rgba(var(--muted) / 0.98);
  max-width: 58ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--border) / 0.18);
  background: rgba(var(--card) / 0.45);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  color: rgba(var(--text) / 0.88);
  font-size: 12px;
  font-weight: 600;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(var(--accent-0) / 0.9);
  box-shadow: 0 0 0 8px rgba(var(--accent-0) / 0.14);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
}

/* ========== Phone Mockup ========== */

.phone-area {
  position: relative;
}

.wine-swirl {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(var(--accent-1) / 0.3),
    rgba(var(--accent-0) / 0.45),
    rgba(var(--accent-2) / 0.3),
    rgba(var(--accent-1) / 0.3)
  );
  animation: swirl 10s ease-in-out infinite;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

@keyframes swirl {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.12); opacity: 0.9; }
}

html[data-theme="dark"] .wine-swirl {
  opacity: 0.55;
}

.glass {
  background: rgba(var(--card) / var(--glass-alpha));
  border: 1px solid rgba(var(--border) / var(--glass-border));
  border-radius: var(--radius-xl);
  box-shadow:
    0 34px 120px rgba(var(--shadow) / var(--shadow-strength)),
    inset 0 1px 0 rgba(255 255 255 / 0.22);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

.phone {
  padding: 18px;
  position: relative;
  z-index: 1;
}

.phone-shell {
  position: relative;
  border-radius: 34px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255 255 255 / 0.18), rgba(255 255 255 / 0.06)),
    rgba(var(--card-2) / 0.55);
  border: 1px solid rgba(var(--border) / 0.18);
  box-shadow:
    0 40px 120px rgba(0 0 0 / 0.18),
    inset 0 1px 0 rgba(255 255 255 / 0.22);
}

html[data-theme="dark"] .phone-shell {
  box-shadow:
    0 40px 120px rgba(0 0 0 / 0.45),
    inset 0 1px 0 rgba(255 255 255 / 0.12);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 10px;
  border-radius: 999px;
  background: rgba(0 0 0 / 0.38);
  filter: blur(0.2px);
  z-index: 5;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(0 0 0 / 0.22);
  aspect-ratio: 9 / 19.5;
  display: block;
}

.phone-screen picture {
  display: block;
  width: 100%;
  height: 100%;
}

.phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

/* Hero phone carousel — 3 images crossfade */
.phone-screen .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.phone-screen .hero-slide.is-active {
  opacity: 1;
}

.phone-screen .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shine-sweep {
  position: absolute;
  inset: -40%;
  background: linear-gradient(120deg, transparent 35%, rgba(255 255 255 / 0.18) 50%, transparent 65%);
  transform: translateX(-30%) rotate(10deg);
  animation: sweep 6.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes sweep {
  0%, 40% { transform: translateX(-35%) rotate(10deg); opacity: 0; }
  55% { opacity: 1; }
  70%, 100% { transform: translateX(35%) rotate(10deg); opacity: 0; }
}

/* ========== Screenshot Gallery ========== */

.gallery-section {
  padding: 10px 0 26px;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 20px 0 30px;
  scroll-padding-inline: 40px;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  scroll-snap-align: center;
  flex-shrink: 0;
  width: min(240px, 55vw);
}

.gallery-item .phone-shell {
  border-radius: 24px;
  padding: 6px;
}

.gallery-item .phone-notch {
  height: 6px;
  top: 6px;
  width: 35%;
}

.gallery-item .phone-screen {
  border-radius: 20px;
}

.gallery-item .phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Theme-aware screenshot switching */
.gallery-item .screen-light,
.gallery-item .screen-dark {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item .screen-dark {
  display: none;
}

html[data-theme="dark"] .gallery-item .screen-light {
  display: none;
}

html[data-theme="dark"] .gallery-item .screen-dark {
  display: block;
}

/* Gallery caption */
.gallery-caption {
  text-align: center;
  font-size: 12px;
  color: rgba(var(--muted) / 0.8);
  margin-top: 8px;
}

/* ========== Feature Grid ========== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--border) / 0.16);
  background: rgba(var(--card) / 0.45);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--border) / 0.26);
  background: rgba(var(--card) / 0.6);
  box-shadow: 0 20px 60px rgba(var(--shadow) / 0.1);
}

.feature h3 {
  margin: 10px 0 6px;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: rgba(var(--muted) / 0.95);
  font-size: 13px;
}

.feature .feat-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--border) / 0.22);
  background:
    radial-gradient(120% 120% at 30% 30%, rgba(var(--accent-0) / 0.34), transparent 58%),
    rgba(var(--card) / 0.5);
  box-shadow: inset 0 1px 0 rgba(255 255 255 / 0.18);
  font-size: 16px;
}

/* Staggered reveal for feature cards */
.reveal.is-visible .feature:nth-child(1) { transition-delay: 0ms; }
.reveal.is-visible .feature:nth-child(2) { transition-delay: 60ms; }
.reveal.is-visible .feature:nth-child(3) { transition-delay: 120ms; }
.reveal.is-visible .feature:nth-child(4) { transition-delay: 180ms; }
.reveal.is-visible .feature:nth-child(5) { transition-delay: 240ms; }
.reveal.is-visible .feature:nth-child(6) { transition-delay: 300ms; }

.card .feature {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.is-visible .feature {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible .feature:hover {
  transform: translateY(-3px);
}

/* ========== How It Works — Steps ========== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  padding: 20px 0;
}

.steps::before {
  content: '';
  position: absolute;
  top: 46px;
  left: 16.6%;
  right: 16.6%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(var(--accent-0) / 0.6),
    rgba(var(--accent-2) / 0.5),
    rgba(var(--accent-0) / 0.6)
  );
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-node {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border: 2px solid rgba(var(--accent-0) / 0.4);
  background:
    radial-gradient(circle at 30% 30%, rgba(var(--accent-0) / 0.3), transparent 60%),
    rgba(var(--card) / 0.7);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow:
    0 12px 40px rgba(var(--shadow) / 0.12),
    inset 0 1px 0 rgba(255 255 255 / 0.22);
  font-size: 20px;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.step:hover .step-node {
  transform: scale(1.08);
  box-shadow:
    0 16px 50px rgba(var(--accent-0) / 0.2),
    inset 0 1px 0 rgba(255 255 255 / 0.22);
}

.step h3 {
  font-size: 15px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 13px;
  color: rgba(var(--muted) / 0.95);
  margin: 0;
}

.step-number {
  font-size: 11px;
  font-weight: 700;
  color: rgba(var(--accent-0) / 0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

/* ========== Content / Headlines ========== */

.headline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.headline h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.headline p {
  margin: 0;
  color: rgba(var(--muted) / 0.95);
  font-size: 13px;
}

.card {
  padding: 20px;
}

.card-title {
  font-size: 14px;
  letter-spacing: -0.01em;
  color: rgba(var(--muted) / 0.95);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ========== Prose (long-form content) ========== */

.prose {
  color: rgba(var(--text) / 0.92);
}

.prose p {
  margin: 0 0 12px;
  color: rgba(var(--muted) / 0.96);
}

.prose h3 {
  margin: 18px 0 8px;
  font-size: 16px;
}

.prose h2 {
  margin: 20px 0 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose ul {
  margin: 10px 0 0 18px;
  padding: 0;
  color: rgba(var(--muted) / 0.96);
}

.prose li {
  margin: 6px 0;
}

.prose strong {
  color: rgba(var(--text) / 0.92);
}

.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(var(--card) / 0.5);
  border: 1px solid rgba(var(--border) / 0.15);
}

.prose a {
  color: rgb(var(--accent-0));
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-thickness: 2px;
}

/* Page hero */
.page-hero {
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.page-hero p {
  margin: 10px 0 0;
  color: rgba(var(--muted) / 0.98);
}

/* ========== Pills & Callouts ========== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--border) / 0.18);
  background: rgba(var(--card) / 0.45);
  color: rgba(var(--text) / 0.9);
  font-size: 12px;
  font-weight: 650;
}

.callout {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--border) / 0.18);
  background:
    radial-gradient(120% 140% at 10% 10%, rgba(var(--accent-0) / 0.14), transparent 55%),
    rgba(var(--card) / 0.4);
  padding: 14px 14px;
  color: rgba(var(--muted) / 0.98);
  font-size: 13px;
  line-height: 1.5;
}

.callout strong {
  color: rgba(var(--text) / 0.92);
}

.callout.warning {
  border-color: rgba(var(--accent-2) / 0.3);
  background:
    radial-gradient(120% 140% at 10% 10%, rgba(var(--accent-2) / 0.14), transparent 55%),
    rgba(var(--card) / 0.4);
}

/* Language pills for legal pages */
.lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.lang-pills a {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--border) / 0.18);
  background: rgba(var(--card) / 0.35);
  font-size: 12px;
  font-weight: 600;
  color: rgba(var(--text) / 0.8);
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.lang-pills a:hover {
  background: rgba(var(--card) / 0.55);
  border-color: rgba(var(--border) / 0.28);
  text-decoration: none;
}

.lang-pills a.active {
  background: rgba(var(--accent-0) / 0.2);
  border-color: rgba(var(--accent-0) / 0.35);
  color: rgba(var(--text) / 0.95);
}

/* ========== Table ========== */

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(var(--border) / 0.18);
  background: rgba(var(--card) / 0.45);
}

.table th,
.table td {
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(var(--border-2) / 0.35);
  vertical-align: top;
  font-size: 13px;
}

.table th {
  font-weight: 750;
  color: rgba(var(--text) / 0.9);
  background: rgba(var(--card) / 0.35);
}

.table tr:last-child td {
  border-bottom: none;
}

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

.faq-list details {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--border) / 0.16);
  background: rgba(var(--card) / 0.42);
  padding: 12px 14px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.faq-list details:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--border) / 0.24);
  background: rgba(var(--card) / 0.5);
}

.faq-list details + details {
  margin-top: 10px;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 750;
  color: rgba(var(--text) / 0.92);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary .chev {
  color: rgba(var(--muted) / 0.95);
  font-weight: 800;
  transform-origin: center;
  transition: transform 200ms ease;
}

.faq-list details[open] summary .chev {
  transform: rotate(90deg);
}

.faq-list .answer {
  margin-top: 10px;
  color: rgba(var(--muted) / 0.98);
  font-size: 13px;
}

.muted {
  color: rgba(var(--muted) / 0.95);
}

/* ========== Utilities ========== */

.mt-12 {
  margin-top: 12px;
}

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

.footer {
  margin-top: auto;
  padding: 26px 0 34px;
  border-top: 1px solid rgba(var(--border) / 0.16);
  background: rgba(var(--card) / 0.22);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer small {
  color: rgba(var(--muted) / 0.98);
}

.footer a {
  color: rgba(var(--text) / 0.9);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
}

.footer a:hover {
  background: rgba(var(--card) / 0.35);
  border: 1px solid rgba(var(--border) / 0.18);
  padding: 7px 9px;
  text-decoration: none;
}

/* ========== Reveal Animation ========== */

.reveal {
  opacity: 1;
  transform: translateY(12px);
  transition: opacity 580ms ease, transform 580ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive ========== */

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .steps::before {
    display: none;
  }
  .wine-swirl {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(var(--page-max), calc(100% - 28px));
  }
  .nav-links {
    display: none;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 28px;
  }
  .gallery-item {
    width: min(200px, 65vw);
  }

  .doc .section {
    padding: 14px 0;
  }
  .doc .section.tight {
    padding: 10px 0;
  }
  .doc .page-hero.card {
    padding: 14px;
  }
  .doc .page-hero h1 {
    font-size: clamp(22px, 7vw, 30px);
  }
}

/* ========== Reduced Motion ========== */

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
