/* =========================================================
   Tactile Living Atlas — SSR Guides, Communities & /coffee Folio
   Warm Editorial Parchment Daylight <-> Automatic Obsidian-Emerald Night
   ========================================================= */

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Warm Parchment Daylight */
  --bg: #F5EFE4;
  --surface: #FCF9F3;
  --surface-alt: #EFE8D9;
  --surface-recessed: #EAE2D3;
  --text: #1F1D1A;
  --text-muted: #5C5549;
  --text-subtle: #857D6F;
  --border: rgba(54, 45, 32, 0.11);
  --border-strong: rgba(54, 45, 32, 0.21);
  --accent: #1E7F5C;
  --accent-hover: #176649;
  --accent-ink: #FCF9F3;
  --accent-soft: rgba(30, 127, 92, 0.11);
  --amber: #C67D1B;
  --amber-soft: rgba(198, 125, 27, 0.12);
  --sky: #2B8CB8;
  --danger: #C24136;
  --danger-soft: rgba(194, 65, 54, 0.11);
  --contour-ink: rgba(92, 79, 62, 0.08);
  --shadow-folio: 0 22px 54px -16px rgba(48, 38, 22, 0.15), 0 4px 14px -4px rgba(48, 38, 22, 0.07);
  --shadow-soft: 0 8px 22px -8px rgba(48, 38, 22, 0.11);
  --specular: inset 0 1px 0 rgba(255, 253, 249, 0.92);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151310;
    --surface: #1E1A16;
    --surface-alt: #27221D;
    --surface-recessed: #312B24;
    --text: #F4EDE1;
    --text-muted: #B8AA96;
    --text-subtle: #867968;
    --border: rgba(240, 226, 202, 0.13);
    --border-strong: rgba(240, 226, 202, 0.23);
    --accent: #4EB88A;
    --accent-hover: #64C99D;
    --accent-ink: #0E1A14;
    --accent-soft: rgba(78, 184, 138, 0.15);
    --amber: #E5AA4B;
    --amber-soft: rgba(229, 170, 75, 0.16);
    --sky: #64A8C7;
    --danger: #E07264;
    --danger-soft: rgba(224, 114, 100, 0.15);
    --contour-ink: rgba(240, 226, 202, 0.065);
    --shadow-folio: 0 28px 64px -16px rgba(8, 6, 4, 0.65), 0 6px 18px -4px rgba(8, 6, 4, 0.42);
    --shadow-soft: 0 10px 24px -8px rgba(8, 6, 4, 0.48);
    --specular: inset 0 1px 0 rgba(255, 244, 224, 0.08);
  }
}

/* Explicit automatic solar body phase classes (no manual toggle) */
body.phase-day {
  --bg: #F5EFE4;
  --surface: #FCF9F3;
  --surface-alt: #EFE8D9;
  --surface-recessed: #EAE2D3;
  --text: #1F1D1A;
  --text-muted: #5C5549;
  --text-subtle: #857D6F;
  --border: rgba(54, 45, 32, 0.11);
  --border-strong: rgba(54, 45, 32, 0.21);
  --accent: #1E7F5C;
  --accent-hover: #176649;
  --accent-ink: #FCF9F3;
  --accent-soft: rgba(30, 127, 92, 0.11);
  --amber: #C67D1B;
  --amber-soft: rgba(198, 125, 27, 0.12);
  --sky: #2B8CB8;
  --danger: #C24136;
  --danger-soft: rgba(194, 65, 54, 0.11);
  --contour-ink: rgba(92, 79, 62, 0.08);
  --shadow-folio: 0 22px 54px -16px rgba(48, 38, 22, 0.15), 0 4px 14px -4px rgba(48, 38, 22, 0.07);
  --shadow-soft: 0 8px 22px -8px rgba(48, 38, 22, 0.11);
  --specular: inset 0 1px 0 rgba(255, 253, 249, 0.92);
}

body.phase-night {
  --bg: #151310;
  --surface: #1E1A16;
  --surface-alt: #27221D;
  --surface-recessed: #312B24;
  --text: #F4EDE1;
  --text-muted: #B8AA96;
  --text-subtle: #867968;
  --border: rgba(240, 226, 202, 0.13);
  --border-strong: rgba(240, 226, 202, 0.23);
  --accent: #4EB88A;
  --accent-hover: #64C99D;
  --accent-ink: #0E1A14;
  --accent-soft: rgba(78, 184, 138, 0.15);
  --amber: #E5AA4B;
  --amber-soft: rgba(229, 170, 75, 0.16);
  --sky: #64A8C7;
  --danger: #E07264;
  --danger-soft: rgba(224, 114, 100, 0.15);
  --contour-ink: rgba(240, 226, 202, 0.065);
  --shadow-folio: 0 28px 64px -16px rgba(8, 6, 4, 0.65), 0 6px 18px -4px rgba(8, 6, 4, 0.42);
  --shadow-soft: 0 10px 24px -8px rgba(8, 6, 4, 0.48);
  --specular: inset 0 1px 0 rgba(255, 244, 224, 0.08);
}

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

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input {
  font-family: inherit;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.brand-link img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a { color: var(--text-muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); text-decoration: none; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  padding: 11px 20px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: 0.94rem;
  box-shadow: var(--shadow-soft);
  transition: background 0.16s ease, transform 0.16s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
  text-decoration: none;
  transform: translateY(-1px);
}

main { padding: 36px 0 64px; }

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft), var(--specular);
  padding: 28px;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 11px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h2 {
  margin: 32px 0 12px;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

h3 {
  margin: 20px 0 8px;
  font-size: 1.06rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
}

.meta-stat {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.meta-stat-label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}

.meta-stat-value {
  display: block;
  margin-top: 4px;
  font-weight: 700;
  font-size: 0.98rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 18px 0 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--specular);
  padding: 20px;
}

.card h3 { margin-top: 0; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 18px 0 28px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--surface-alt);
  font-weight: 700;
}

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

ul.clean-list {
  padding-left: 20px;
  margin: 10px 0 22px;
}

ul.clean-list li { margin-bottom: 8px; }

.callout {
  background: var(--amber-soft);
  border-left: 4px solid var(--amber);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  margin: 22px 0;
  font-size: 0.94rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.faq-item h3 { margin: 0 0 6px; font-size: 1rem; }
.faq-item p { margin: 0; color: var(--text-muted); }

.coffee-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.coffee-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.coffee-pill:hover {
  background: var(--amber);
  color: #161108;
  text-decoration: none;
  transform: translateY(-1px);
}

.coffee-pill.primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
}

.coffee-pill.primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

/* =========================================================
   Tactile Living Atlas — Branded /coffee Folio
   ========================================================= */

.coffee-stage {
  max-width: 600px;
  margin: 8px auto 24px;
}

.coffee-folio {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-folio), var(--specular);
  padding: 32px 30px 28px;
}

.coffee-folio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 320px at 14% 6%, color-mix(in srgb, var(--amber) 14%, transparent), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.coffee-contour-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--contour-ink);
  pointer-events: none;
  z-index: 0;
}

.coffee-folio-inner {
  position: relative;
  z-index: 1;
}

.coffee-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.coffee-cup-emblem {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--amber-soft), var(--surface-alt));
  border: 1px solid color-mix(in srgb, var(--amber) 34%, var(--border));
  box-shadow: var(--specular), 0 10px 24px -12px color-mix(in srgb, var(--amber) 45%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--amber);
}

.coffee-eyebrow {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid color-mix(in srgb, var(--amber) 28%, transparent);
}

.coffee-cup-svg {
  width: 48px;
  height: 48px;
  display: block;
}

.coffee-steam-path {
  transform-origin: center bottom;
  animation: coffeeSteamDrift 3.2s ease-in-out infinite;
}

.coffee-steam-path.steam-2 { animation-delay: 0.7s; }
.coffee-steam-path.steam-3 { animation-delay: 1.4s; }

@keyframes coffeeSteamDrift {
  0%, 100% {
    opacity: 0.35;
    transform: translateY(1.5px) scaleY(0.92);
  }
  50% {
    opacity: 0.92;
    transform: translateY(-2.5px) scaleY(1.06);
  }
}

.coffee-title-col h1 {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  margin: 0 0 4px;
}

.coffee-subtitle {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.48;
}

/* Cup Selector + Spring Detent Indicator */
.coffee-selector-section {
  margin-bottom: 22px;
}

.coffee-selector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.coffee-section-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}

.coffee-live-total-chip {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid color-mix(in srgb, var(--amber) 32%, transparent);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.coffee-preset-bar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  border-radius: 22px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.coffee-preset-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  border-radius: 16px;
  background: var(--surface);
  border: 1.5px solid color-mix(in srgb, var(--amber) 58%, var(--border));
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--amber) 35%, transparent), var(--specular);
  pointer-events: none;
  opacity: 0;
  will-change: transform, width;
}

.coffee-preset-btn {
  position: relative;
  z-index: 1;
  min-height: 112px;
  padding: 14px 8px 12px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.16s ease, transform 0.16s ease;
}

.coffee-card-cups {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  transition: color 0.18s ease, transform 0.22s ease;
}

.coffee-card-svg {
  display: block;
  overflow: visible;
}

.coffee-card-title {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.coffee-card-price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  background: var(--surface-recessed);
  color: var(--text-muted);
  transition: background 0.18s ease, color 0.18s ease;
}

.coffee-preset-btn:hover { color: var(--text); }
.coffee-preset-btn.active { color: var(--text); }

.coffee-preset-btn:hover .coffee-card-cups,
.coffee-preset-btn.active .coffee-card-cups {
  color: var(--amber);
  transform: translateY(-2px) scale(1.04);
}

.coffee-preset-btn.active .coffee-card-price {
  background: var(--amber-soft);
  color: var(--amber);
}

.coffee-preset-btn .cup-steam {
  transform-origin: center bottom;
}

.coffee-preset-btn.active .cup-steam,
.coffee-preset-btn:hover .cup-steam {
  animation: coffeeSteamDrift 2.6s ease-in-out infinite;
}

/* Visual Coffee Coaster Tray */
.coffee-tray-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px 10px 14px;
  border-radius: 18px;
  background: var(--surface-alt);
  border: 1px dashed color-mix(in srgb, var(--amber) 32%, var(--border));
}

.coffee-tray-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.coffee-cup-tray {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.coffee-tray-cup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  animation: coffeeCupPop 0.24s ease backwards;
  animation-delay: calc(var(--cup-idx, 0) * 28ms);
}

@keyframes coffeeCupPop {
  from { opacity: 0; transform: translateY(4px) scale(0.76); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.coffee-tray-more {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid color-mix(in srgb, var(--amber) 28%, transparent);
}

.coffee-tray-caption {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.coffee-stepper {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 3px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--specular);
  flex-shrink: 0;
}

.coffee-step-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border: none;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.14s ease, transform 0.12s ease;
}

.coffee-step-btn:hover:not(:disabled) { background: var(--surface-recessed); }
.coffee-step-btn:active:not(:disabled) { transform: scale(0.92); }
.coffee-step-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.coffee-step-count {
  min-width: 30px;
  text-align: center;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text);
}

.coffee-step-count::before {
  content: '×';
  opacity: 0.52;
  margin-right: 1px;
  font-weight: 600;
}

/* Stripe Elements Container */
.coffee-elements-shell {
  padding: 20px;
  border-radius: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.coffee-express-wrap[hidden] { display: none; }

.coffee-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-subtle);
}

.coffee-divider::before,
.coffee-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.coffee-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 0;
}

.coffee-skeleton[hidden] { display: none; }

.coffee-skel-bar {
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-recessed) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: coffeeSkelShimmer 1.6s ease-in-out infinite;
}

.coffee-skel-bar.short { height: 22px; width: 46%; }

@keyframes coffeeSkelShimmer {
  0% { background-position: 180% 0; }
  100% { background-position: -180% 0; }
}

.coffee-error-banner {
  margin: 12px 0 0;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--danger-soft);
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
}

.coffee-error-banner[hidden] { display: none; }

.coffee-pay-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  padding: 12px 22px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: background 0.16s ease, transform 0.14s ease, opacity 0.16s ease, box-shadow 0.16s ease;
}

.coffee-pay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.coffee-pay-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.coffee-pay-btn:active:not(:disabled) { transform: scale(0.985); }
.coffee-pay-btn:disabled { opacity: 0.56; cursor: wait; }

.coffee-btn-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent-ink) 35%, transparent);
  border-top-color: var(--accent-ink);
  animation: coffeeSpin 0.8s linear infinite;
}

.coffee-btn-spinner[hidden] { display: none; }

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

/* Passport Stamp Completion Card */
.coffee-passport-card {
  text-align: center;
  padding: 18px 8px 6px;
}

.coffee-passport-card[hidden] { display: none; }

.coffee-stamp-seal {
  width: 118px;
  height: 118px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 2.5px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: rotate(-8deg);
  box-shadow: var(--shadow-soft);
}

.coffee-stamp-seal::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 65%, transparent);
}

.coffee-stamp-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coffee-stamp-check {
  margin: 3px 0;
}

.coffee-stamp-qty {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.coffee-passport-title {
  margin: 0 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.coffee-passport-summary {
  margin: 0 auto 22px;
  max-width: 420px;
  font-size: 0.96rem;
  color: var(--text-muted);
}

/* Legal & Privacy Disclosure */
.coffee-disclosure {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  line-height: 1.52;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.coffee-disclosure strong { color: var(--text); }

.coffee-fallback-box {
  padding: 22px 20px;
  border-radius: 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.coffee-fallback-box p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .coffee-folio { padding: 24px 18px 22px; }
  .coffee-header { align-items: flex-start; gap: 14px; }
  .coffee-cup-emblem { width: 58px; height: 58px; border-radius: 16px; }
  .coffee-cup-svg { width: 38px; height: 38px; }
  .coffee-elements-shell { padding: 14px; }
  .coffee-preset-bar { gap: 5px; padding: 5px; }
  .coffee-preset-btn { min-height: 102px; padding: 11px 4px 10px; }
  .coffee-card-title { font-size: 0.8rem; }
  .coffee-tray-bar { flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .coffee-steam-path,
  .cup-steam,
  .coffee-tray-cup,
  .coffee-skel-bar,
  .coffee-btn-spinner {
    animation: none !important;
  }
  .btn-primary,
  .coffee-pill,
  .coffee-pay-btn,
  .coffee-step-btn {
    transition: none !important;
  }
}
