/* Official Translation — all styles. No build step; edit and reload. */

/* ---------- Fonts (self-hosted, latin subset, variable weight) ---------- */

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/source-serif-4-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens — "Slate & Signal" ---------- */

:root {
  --background: 216 26% 96%;      /* page ground, cool grey-blue paper */
  --foreground: 222 47% 11%;      /* body text */
  --card: 0 0% 100%;              /* raised surfaces */
  --card-foreground: 216 65% 12%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;
  --primary: 212 87% 33%;         /* actions, links, brand blue */
  --primary-foreground: 0 0% 100%;
  --secondary: 216 65% 12%;       /* headings and the footer ground */
  --secondary-foreground: 0 0% 100%;
  --muted: 215 29% 92%;           /* subtle fills */
  --muted-foreground: 217 15% 35%;/* secondary text */
  --accent: 23 88% 35%;           /* seals, tags, highlights — burnt amber */
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --success: 160 84% 39%;
  --border: 214 27% 83%;
  --input: 214 27% 83%;
  --ring: 212 87% 33%;
  --radius: 0.5rem;
  --radius-button: calc(var(--radius) - 2px);
  /* --success and --destructive sit below 4.5:1 as small text on white, so
     text uses these darker inks; the base tokens stay for fills and borders. */
  --success-ink: 161 94% 24%;
  --destructive-ink: 0 74% 42%;
  --header-h: 5rem;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
}

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: hsl(var(--secondary));
  text-wrap: balance;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1rem; }
.section p, .card p, .prose p { max-width: 65ch; }
p:last-child { margin-bottom: 0; }

a { color: hsl(var(--primary)); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

button { font: inherit; color: inherit; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: hsl(var(--primary) / 0.18); }

/* The hidden attribute must beat display utilities like .flex */
[hidden] { display: none !important; }

/* ---------- Utilities ---------- */

.container { max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.grid { display: grid; }
.hidden { display: none; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.border-t { border-top: 1px solid hsl(var(--border)); }
.border-border { border-color: hsl(var(--border)); }
.tabular { font-variant-numeric: tabular-nums; }
.pt-0 { padding-top: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- Type helpers ---------- */

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--accent));
  margin: 0 0 0.5rem;
}

.lede {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 60ch;
}

.muted { color: hsl(var(--muted-foreground)); }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--accent-foreground));
  background: hsl(var(--accent));
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  vertical-align: middle;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  padding: 0.625rem 1.25rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn-primary:hover { background: hsl(var(--primary) / 0.9); }
.btn-outline {
  background: transparent;
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.45);
}
.btn-outline:hover { border-color: hsl(var(--primary)); background: hsl(var(--primary) / 0.06); }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-size: 0.9375rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
}
.header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}
.logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }

header a img[alt="Official Translation"] { max-height: 52px; width: auto; }
@media (min-width: 768px) {
  header a img[alt="Official Translation"] { max-height: 64px; }
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}
@media (min-width: 768px) { .main-nav { display: flex; } }

.main-nav a:not(.btn),
#mobile-nav a:not(.btn) {
  color: hsl(var(--foreground));
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.25rem 0;
}
.main-nav a:not(.btn):hover,
#mobile-nav a:not(.btn):hover { color: hsl(var(--primary)); }
.main-nav a[aria-current="page"]:not(.btn),
#mobile-nav a[aria-current="page"]:not(.btn) {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

#mobile-nav { margin: 0; padding-left: 0; }
#mobile-nav a { padding: 0.5rem 0; }
#mobile-nav .btn { align-self: flex-start; margin-top: 0.5rem; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-button);
  cursor: pointer;
  margin-left: auto;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--foreground));
  text-decoration: none;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
}
.cart-button:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.cart-button svg { width: 1.1rem; height: 1.1rem; }
@media (min-width: 768px) { .cart-button { margin-left: 0; } }

/* ---------- Sections ---------- */

.section { padding-block: 4rem; }
.section-tight { padding-block: 2.5rem; }
@media (min-width: 768px) { .section { padding-block: 5rem; } }
.alt-ground { background: hsl(var(--muted) / 0.55); }

.section-head { max-width: 46rem; margin-bottom: 2.5rem; }

/* ---------- Cards ---------- */

.card {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin-top: 0; }
.cards-grid { display: grid; gap: 1.25rem; }

.source-line {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin-top: 1rem;
  margin-bottom: 0;
}
.source-line a { color: inherit; }

/* ---------- Hero ---------- */

.hero { padding-block: 3.5rem 4rem; }
@media (min-width: 768px) { .hero { padding-block: 5rem; } }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .hero-grid { grid-template-columns: 1.1fr 1fr; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero h1 { font-size: clamp(1.625rem, 3.2vw, 2.25rem); }
.hero-actions .btn-lg { font-size: calc(1.0625rem * 1.5); padding: calc(0.875rem * 1.5) calc(1.75rem * 1.5); }
.hero .eyebrow { font-size: 0.9375rem; }
.hero-art { border-radius: var(--radius); }

/* ---------- Trust strip ---------- */

.trust-strip {
  display: grid;
  gap: 1.5rem;
  padding-block: 2rem;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}
@media (min-width: 768px) { .trust-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust-item h3 { font-family: 'Source Sans 3', -apple-system, sans-serif; font-size: 1rem; margin-bottom: 0.35rem; }
.trust-item p { font-size: 0.9rem; color: hsl(var(--muted-foreground)); margin: 0; }

/* ---------- Process steps ---------- */

.process-steps { display: grid; gap: 1.5rem; counter-reset: process; }
@media (min-width: 768px) { .process-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.process-step { counter-increment: process; }
.process-step::before {
  content: counter(process);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.process-step h3 { font-family: 'Source Sans 3', -apple-system, sans-serif; font-size: 1rem; margin-bottom: 0.35rem; }
.process-step p { font-size: 0.9rem; color: hsl(var(--muted-foreground)); margin: 0; }

/* ---------- FAQ ---------- */

.faq { max-width: 46rem; }
.faq-h { margin: 0; }
.faq-item { border-bottom: 1px solid hsl(var(--border)); }
.faq-item:first-child { border-top: 1px solid hsl(var(--border)); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.125rem 0.25rem;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  color: hsl(var(--secondary));
}
.faq-q::after {
  content: '+';
  content: '+' / '';
  font-size: 1.375rem;
  line-height: 1;
  color: hsl(var(--primary));
  flex-shrink: 0;
}
.faq-q[aria-expanded="true"]::after { content: '\2212'; content: '\2212' / ''; }
.faq-a { padding: 0 0.25rem 1.25rem; color: hsl(var(--muted-foreground)); }
.faq-a[hidden] { display: none; }

/* ---------- CTA band ---------- */

.cta-band { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.cta-band h2 { color: hsl(var(--secondary-foreground)); }
.cta-band p { color: hsl(var(--secondary-foreground) / 0.85); }

/* ---------- Footer ---------- */

.site-footer {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground) / 0.85);
  padding-block: 3rem 2rem;
  margin-top: 4rem;
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-col h3 {
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--secondary-foreground));
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.site-footer a { color: hsl(var(--secondary-foreground) / 0.85); text-decoration: none; }
.site-footer a:hover { color: hsl(var(--secondary-foreground)); text-decoration: underline; }
.footer-col a[href^="mailto:"] { overflow-wrap: anywhere; }
.site-footer img { max-height: 44px; width: auto; }
.footer-note {
  border-top: 1px solid hsl(var(--secondary-foreground) / 0.15);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

/* ---------- Order layout ---------- */

.order-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 768px) { .order-layout { grid-template-columns: minmax(0, 1fr) 21rem; } }

.order-steps { display: grid; gap: 1.25rem; min-width: 0; }

.step {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
}
.step-head { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 1rem; }
.step-head h2 { font-size: 1.25rem; margin: 0; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 2px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  font-weight: 600;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.step-num.is-done {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.step-sub { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin: 0.75rem 0 0; }

.field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.375rem;
}
.field-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .field-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Dropdowns ---------- */

.dropdown { position: relative; }
.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius-button);
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.dropdown-toggle::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  border-right: 2px solid hsl(var(--muted-foreground));
  border-bottom: 2px solid hsl(var(--muted-foreground));
  transform: rotate(45deg) translateY(-2px);
}
.dropdown-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
.dropdown-toggle.is-unset { color: hsl(var(--muted-foreground)); }
.dropdown-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 16rem;
  overflow: auto;
  margin: 0;
  padding: 0.25rem;
  list-style: none;
  background: hsl(var(--popover));
  color: hsl(var(--popover-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 8px 24px hsl(var(--secondary) / 0.12);
}
.dropdown-list[hidden] { display: none; }
.dropdown-list [role="option"] {
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius-button);
  cursor: pointer;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.dropdown-list [role="option"]:hover,
.dropdown-list [role="option"].is-active { background: hsl(var(--muted)); }
.dropdown-list [role="option"][aria-selected="true"] {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* ---------- Radio cards ---------- */

.radio-group { display: grid; gap: 0.625rem; border: 0; padding: 0; margin: 0; }
.radio-card {
  position: relative;
  display: block;
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius-button);
  padding: 0.875rem 1rem 0.875rem 2.6rem;
  cursor: pointer;
  background: hsl(var(--card));
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.radio-card:hover { border-color: hsl(var(--primary) / 0.5); }
.radio-card input {
  position: absolute;
  left: 1rem;
  top: 1.1rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: hsl(var(--primary));
  margin: 0;
}
.radio-card.is-checked {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.04);
}
.radio-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.9375rem; }
.radio-price { color: hsl(var(--muted-foreground)); font-weight: 400; font-variant-numeric: tabular-nums; }
.radio-meta { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-top: 0.2rem; font-variant-numeric: tabular-nums; }
.radio-saving { color: hsl(var(--success-ink)); }

/* ---------- Uploads ---------- */

.upload-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .upload-grid { grid-template-columns: 1fr 1fr; } }
.upload-tile {
  border: 1.5px dashed hsl(var(--input));
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.upload-tile.is-dragover { border-color: hsl(var(--primary)); background: hsl(var(--primary) / 0.05); }
.upload-tile.has-file { border-style: solid; border-color: hsl(var(--success)); }
.upload-tile h3 { font-family: 'Source Sans 3', -apple-system, sans-serif; font-size: 0.9375rem; margin-bottom: 0.6rem; }
.upload-actions { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.upload-actions .btn { padding: 0.45rem 0.9rem; font-size: 0.875rem; }
.upload-thumb {
  margin: 0.75rem auto 0;
  max-height: 7.5rem;
  width: auto;
  border-radius: var(--radius-button);
  border: 1px solid hsl(var(--border));
}
.upload-name { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin: 0.5rem 0 0; overflow-wrap: anywhere; }
.upload-warn { font-size: 0.8125rem; color: hsl(var(--accent)); margin: 0.5rem 0 0; }
.upload-error { font-size: 0.8125rem; color: hsl(var(--destructive-ink)); margin: 0.5rem 0 0; }
.upload-hint { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin: 0.6rem 0 0; }

/* ---------- Order summary (cart) ---------- */

.cart-col { position: relative; min-width: 0; }

.cart-swipe-wrap { position: relative; }
@media (min-width: 768px) {
  .cart-col { position: sticky; top: 6rem; }
}

.cart-delete {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 5.5rem;
  border: 0;
  border-radius: var(--radius);
  background: hsl(var(--destructive-ink));
  color: hsl(var(--destructive-foreground));
  font-weight: 600;
  cursor: pointer;
}

.cart-panel {
  position: relative;
  z-index: 1;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  touch-action: pan-y;
  transition: transform 0.18s ease;
}
.cart-panel.is-dragging { transition: none; }
.cart-panel h2 { font-size: 1.25rem; margin-bottom: 1rem; }

.cart-lines { margin: 0; }
.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  font-size: 0.9rem;
}
.cart-line dt { color: hsl(var(--muted-foreground)); flex-shrink: 0; }
.cart-line dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.cart-line dd .sub { display: block; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }

.cart-eta {
  background: hsl(var(--muted) / 0.6);
  border-radius: var(--radius-button);
  padding: 0.75rem 0.875rem;
  margin-top: 1rem;
  font-size: 0.875rem;
}
.cart-eta strong { display: block; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; color: hsl(var(--muted-foreground)); font-weight: 600; margin-bottom: 0.15rem; }

.cart-saving {
  color: hsl(var(--success-ink));
  font-size: 0.875rem;
  margin: 0.75rem 0 0;
  font-variant-numeric: tabular-nums;
}

.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid hsl(var(--border));
  margin-top: 1rem;
  padding-top: 1rem;
  font-weight: 600;
}
.cart-total {
  font-size: 1.125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--secondary));
}
.cart-total .currency { font-size: 0.7rem; font-weight: 400; color: hsl(var(--muted-foreground)); margin-left: 0.25rem; }

.cart-note { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin: 0.875rem 0 0; }
.cart-tools { margin-top: 1rem; }
.cart-hint { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin: 0.5rem 0 0; }

/* Mobile: summary lives in a bottom sheet behind a fixed bar */
@media (max-width: 767.98px) {
  body[data-page="order"] { padding-bottom: 4.5rem; }
  .cart-col {
    position: fixed;
    z-index: 45;
    left: 0;
    right: 0;
    bottom: 3.75rem;
    padding: 0 0.75rem;
    max-height: min(70vh, 32rem);
    overflow: auto;
    transform: translateY(calc(100% + 5rem));
    transition: transform 0.25s ease;
  }
  .cart-col.is-open { transform: translateY(0); }
  .cart-panel { box-shadow: 0 -8px 30px hsl(var(--secondary) / 0.25); }
}

.cart-bar {
  position: fixed;
  z-index: 46;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  padding: 0.75rem 1.25rem;
  border: 0;
  width: 100%;
  font-weight: 600;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.cart-bar .bar-hint { font-weight: 400; font-size: 0.875rem; color: hsl(var(--secondary-foreground) / 0.8); }
@media (min-width: 768px) { .cart-bar { display: none; } }

/* ---------- Payment success page ---------- */

.paid-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: hsl(var(--success-ink));
  color: #fff;
  font-weight: 700;
}
.success-hero { text-align: center; padding-block: 4rem 3rem; }
.success-hero .paid-check { width: 7rem; height: 7rem; font-size: 3rem; margin-bottom: 1.25rem; }
.success-hero h1 { margin-bottom: 0.5rem; font-size: 1.5rem; }
.success-ref-card {
  max-width: 26rem;
  margin: 2rem auto 0;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--success) / 0.5);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.success-ref-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  margin: 0 0 0.35rem;
}
.success-ref {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--secondary));
  margin: 0;
  overflow-wrap: anywhere;
}
.success-total { font-size: 0.9375rem; color: hsl(var(--success-ink)); margin: 0.5rem 0 0; }
.success-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- Digital-only panel ---------- */

.digital-panel .eyebrow { font-size: 1.625rem; }

/* ---------- Payment trust strip ---------- */

.payment-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}
.payment-trust.centered { justify-content: center; }
.trust-lock { width: 1.25rem; height: 1.25rem; color: hsl(var(--success-ink)); flex-shrink: 0; }
.stripe-word { color: #635bff; font-weight: 700; font-size: 1.125em; }
.card-badges { display: inline-flex; gap: 0.5rem; }
.card-badge { width: 58px; height: 36px; display: block; }

/* Inside the cart: its own row above the total */
.cart-panel .payment-trust {
  justify-content: center;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

/* ---------- Messages ---------- */

.order-msg {
  border-radius: var(--radius-button);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  margin: 0 0 1rem;
}
.order-msg.is-error {
  background: hsl(var(--destructive) / 0.08);
  border: 1px solid hsl(var(--destructive) / 0.35);
  color: hsl(var(--destructive-ink));
}
.order-msg.is-ok {
  background: hsl(var(--success) / 0.1);
  border: 1px solid hsl(var(--success) / 0.4);
  color: hsl(var(--success-ink));
}
.order-msg[hidden] { display: none; }

/* ---------- Forms (contact) ---------- */

.form-grid { display: grid; gap: 1rem; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius-button);
  padding: 0.625rem 0.875rem;
}
.form-field textarea { min-height: 9rem; resize: vertical; }
.hp-field { display: none; }

/* ---------- Modals ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: hsl(var(--secondary) / 0.55);
}
.modal[hidden] { display: none; }
.modal-card {
  background: hsl(var(--card));
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 26rem;
  width: 100%;
  box-shadow: 0 20px 50px hsl(var(--secondary) / 0.35);
}
.modal-card h2 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.25rem; flex-wrap: wrap; }
.btn-danger { background: hsl(var(--destructive-ink)); color: hsl(var(--destructive-foreground)); }
.btn-danger:hover { background: hsl(var(--destructive-ink) / 0.9); }

.cam-modal .modal-card { max-width: 34rem; }
.cam-video { width: 100%; border-radius: var(--radius-button); background: hsl(var(--secondary)); aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Reveals ---------- */

.reveal-init { opacity: 0; transform: translateY(14px); }
.reveal-in { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }

/* ---------- Reduced motion ---------- */

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