/* ═══════════════════════════════════════════════════════════════
   TENZIN TENSOR — Main Stylesheet
   All CRT effects, layout, components, and responsive rules.
═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #050505;
  --text: #f1eadb;
  --muted: #9b907b;
  --line: rgba(241,234,219,0.16);
  --gold: #c9a45d;
  --red: #7d1d17;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  overflow: hidden;
}

/* ─── SCANLINES ─── */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom,
    rgba(255,255,255,0.032) 0px, rgba(255,255,255,0.032) 1px,
    transparent 1px, transparent 4px);
  mix-blend-mode: overlay; opacity: 0.28; z-index: 9500;
}

/* ─── FILM GRAIN ─── */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
  opacity: 0.09; animation: grain 8s steps(10) infinite;
  pointer-events: none; z-index: 9400;
}
@keyframes grain {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-4%,3%); }
  40%  { transform: translate(3%,-2%); }
  60%  { transform: translate(-2%,-4%); }
  80%  { transform: translate(4%,2%); }
  100% { transform: translate(0,0); }
}

/* ─── FIXED NAV ─── */
#site-nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 10004;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 32px;
  border-bottom: 1px solid rgba(241,234,219,0.08);
  background: rgba(5,5,5,0.88);
}
.brand {
  letter-spacing: 0.18em; font-size: 12px;
  text-transform: uppercase; color: var(--text);
  text-decoration: none;
}
nav { display: flex; gap: 20px; align-items: center; }
#siteNav { display: flex; gap: 20px; align-items: center; }
.menu-toggle {
  display: none; width: 46px; height: 46px;
  border: 1px solid rgba(241,234,219,0.3); background: rgba(241,234,219,0.08);
  align-items: center; justify-content: center; flex-direction: column;
  gap: 6px; cursor: pointer; z-index: 10005;
  /* Ensure it's always above everything including the bezel */
  position: relative;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  transition: transform 0.28s, opacity 0.28s;
  border-radius: 1px;
}
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
nav a { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); transition: color 0.25s; text-decoration: none; }
nav a:hover { color: var(--text); }
#siteNav a { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); transition: color 0.25s; text-decoration: none; }
#siteNav a:hover { color: var(--text); }

/* ─── CRT PERSPECTIVE CONTAINER ─── */
#crt {
  position: fixed;
  inset: 8px 12px;
  z-index: 1;
  perspective: 900px;
  perspective-origin: 50% 42%;
  overflow: hidden;
  border-radius: 6% / 26%;
}

/* ─── CRT SCREEN ─── */
#crt-screen {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  will-change: transform;
  transform: rotateX(0deg) scale(1);
  filter: blur(0.45px);
}

/* ─── CHROMATIC ABERRATION ─── */
#chroma-r, #chroma-c {
  position: fixed; inset: 8px 12px;
  pointer-events: none; z-index: 9200;
  mix-blend-mode: screen;
  border-radius: 6% / 26%;
}
#chroma-r {
  background: radial-gradient(ellipse 70% 65% at 50% 50%, rgba(255,20,20,0.028) 0%, transparent 100%);
  transform: translateX(1.2px);
}
#chroma-c {
  background: radial-gradient(ellipse 70% 65% at 50% 50%, rgba(0,220,220,0.022) 0%, transparent 100%);
  transform: translateX(-1.2px);
}

/* ─── CRT BEZEL ─── */
#bezel {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 10003;
  border-radius: 6% / 26%;
  box-shadow:
    inset 0 0 0 14px #0d0d0d,
    inset 14px 14px 0 14px #0d0d0d,
    inset -14px -14px 0 14px #0d0d0d,
    inset 0 0 22px 8px rgba(0,0,0,0.9);
  filter: blur(3.5px);
  background:
    radial-gradient(ellipse at 50% 0%,   rgba(30,28,26,0.9) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(30,28,26,0.9) 0%, transparent 40%),
    radial-gradient(ellipse at 0%   50%, rgba(30,28,26,0.9) 0%, transparent 40%),
    radial-gradient(ellipse at 100% 50%, rgba(30,28,26,0.9) 0%, transparent 40%),
    #0d0d0d;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 8px 12px;
}

/* ─── TV STATIC CANVAS ─── */
#static-canvas {
  position: fixed; inset: 8px 12px;
  pointer-events: none; z-index: 9100;
  opacity: 0.055;
  mix-blend-mode: screen;
  border-radius: 6% / 26%;
}

/* ─── CRT VIGNETTE ─── */
#crt-vignette {
  position: fixed; inset: 8px 12px;
  pointer-events: none;
  z-index: 10001;
  border-radius: 6% / 26%;
  background: radial-gradient(ellipse 86% 78% at 50% 50%,
    transparent 42%, rgba(0,0,0,0.34) 64%,
    rgba(0,0,0,0.70) 82%, rgba(0,0,0,0.90) 100%);
}

/* ─── SCROLLABLE CONTENT ─── */
#scroll {
  position: absolute; inset: 0;
  overflow-y: scroll; overflow-x: hidden;
  scrollbar-width: none;
}
#scroll::-webkit-scrollbar { display: none; }

.page-bg {
  background:
    radial-gradient(circle at 50% 10%, rgba(125,29,23,0.18), transparent 36%),
    radial-gradient(circle at 80% 70%, rgba(201,164,93,0.08), transparent 28%),
    var(--bg);
}

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

/* ─── BUTTONS ─── */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px;
  border: 1px solid var(--line); background: rgba(241,234,219,0.04);
  color: var(--text); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  cursor: pointer; text-decoration: none;
}
.button:hover { background: rgba(201,164,93,0.12); border-color: rgba(201,164,93,0.4); transform: translateY(-2px); }
.button.primary { background: var(--text); color: #080706; border-color: var(--text); }
.button.primary:hover { background: #d8d0be; }

/* ─── SECTIONS ─── */
section {
  min-height: 100vh; padding: 120px 7vw 80px;
  display: grid; align-items: center;
  border-bottom: 1px solid rgba(241,234,219,0.08);
}
#home     { background: #050505; }
#archive  { background: #0d0b09; }
#download { background: #ede8da; color: #1a1610; }
#watch    { background: #060408; }
#free     { background: #0b0e0d; }

/* Download light-mode overrides */
#download .eyebrow             { color: #7a5a18; }
#download .section-title,
#download h2                   { color: #1a1610; }
#download .body-copy           { color: #3c3020; }
#download .product-card        { background: #fff; border-color: rgba(26,22,16,0.15); box-shadow: 0 20px 60px rgba(0,0,0,0.10); color: #1a1610; }
#download h3                   { color: #1a1610; }
#download .price               { color: #7a5a18; }
#download .features            { color: #3c3020; }
#download .features li::before { color: #7a5a18; }
#download .button              { border-color: rgba(26,22,16,0.20); color: #1a1610; background: transparent; }
#download .button:hover        { background: rgba(26,22,16,0.06); }
#download .button.primary      { background: #1a1610; color: #ede8da; border-color: #1a1610; }
#download .button.primary:hover { background: #2e2718; }

/* ─── LAYOUT VARIANTS ─── */
.hero  { grid-template-columns: 1.1fr 0.9fr; gap: 60px; overflow: hidden; position: relative; }
.split { grid-template-columns: 0.8fr 1.2fr; gap: 60px; }

/* ─── TYPOGRAPHY ─── */
.eyebrow {
  color: var(--gold); text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 12px; margin-bottom: 24px;
}
h1 {
  margin: 0; max-width: 920px;
  font-family: Georgia,'Times New Roman',serif;
  font-size: clamp(54px,10vw,142px); line-height: 0.85;
  letter-spacing: -0.08em; font-weight: 400;
  filter: blur(0.35px);
  text-shadow:
    0 0 2px rgba(255,255,255,0.32),
    0 0 14px rgba(201,164,93,0.13),
    1px 0 rgba(255,0,0,0.16),
    -1px 0 rgba(0,255,255,0.13);
}
.headline-scan { position: relative; display: inline-block; }
.headline-scan::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.45;
  background: repeating-linear-gradient(to bottom,
    rgba(5,5,5,0) 0px, rgba(5,5,5,0) 4px,
    rgba(5,5,5,0.26) 5px, rgba(5,5,5,0.26) 6px);
  mix-blend-mode: multiply;
}
.lead {
  max-width: 620px; margin: 30px 0 34px;
  color: #c9c0ad;
  font-size: 17px;
  line-height: 1.8;
  font-family: Inter, system-ui, sans-serif !important;
  font-weight: 400;
}
/* High-specificity override to ensure lead never inherits monospace from body */
#home .lead,
section .lead {
  font-family: Inter, system-ui, sans-serif !important;
  font-weight: 400;
}
.section-title {
  margin: 0 0 24px;
  font-family: Georgia,'Times New Roman',serif; font-weight: 400;
  font-size: clamp(40px,6vw,88px); line-height: 0.95; letter-spacing: -0.06em;
}
.body-copy {
  color: #c9c0ad; font-size: 17px; line-height: 1.8;
  font-family: Inter,system-ui,sans-serif; max-width: 690px;
}

/* ─── HERO CARD ─── */
.hero-card {
  min-height: 520px; border: 1px solid var(--line); position: relative; overflow: hidden;
  background: linear-gradient(160deg,rgba(255,255,255,0.08),transparent 35%),
              radial-gradient(circle at 50% 35%,rgba(201,164,93,0.15),transparent 35%), #0b0a09;
  box-shadow: 0 40px 90px rgba(0,0,0,0.48);
}
.hero-card::before { content: ""; }
.hero-card::after {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  filter: blur(12px); opacity: 0.78; transform: rotate(-8deg);
  background:
    radial-gradient(circle at 48% 35%,rgba(241,234,219,0.35),transparent 8%),
    radial-gradient(circle at 50% 52%,rgba(125,29,23,0.9),transparent 20%),
    radial-gradient(circle at 50% 50%,rgba(201,164,93,0.25),transparent 34%);
}
.card-bars {
  position: absolute; inset: 0; opacity: 0.75;
  background:
    linear-gradient(90deg,transparent 0 18%,rgba(241,234,219,0.08) 18% 19%,transparent 19% 100%),
    linear-gradient(0deg,transparent 0 70%,rgba(125,29,23,0.14) 70% 72%,transparent 72% 100%);
}

/* ─── ARCHIVE GRID ─── */
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.artifact {
  min-height: 190px; border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: transform 0.35s, border-color 0.35s;
  background:
    radial-gradient(circle at 50% 35%,rgba(241,234,219,0.14),transparent 18%),
    radial-gradient(circle at 50% 60%,rgba(125,29,23,0.7),transparent 28%),
    linear-gradient(135deg,rgba(201,164,93,0.16),rgba(0,0,0,0.2)), #090807;
}
.artifact:nth-child(2n) {
  background:
    radial-gradient(circle at 40% 35%,rgba(241,234,219,0.11),transparent 18%),
    radial-gradient(circle at 60% 55%,rgba(30,43,70,0.9),transparent 26%),
    linear-gradient(135deg,rgba(201,164,93,0.1),rgba(0,0,0,0.2)), #090807;
}
.artifact:hover { transform: translateY(-5px); border-color: rgba(201,164,93,0.35); }
.artifact span { position: absolute; left: 14px; bottom: 14px; color: rgba(241,234,219,0.55); font-size: 10px; letter-spacing: 0.12em; }
/* Image variant — no decorative background, just the image */
.artifact--image { background: #0a0908; }
.artifact--image:nth-child(2n) { background: #0a0908; }

/* ─── PRODUCT / EMAIL / VIDEO CARDS ─── */
.product-card, .email-card, .video-card {
  border: 1px solid var(--line); padding: clamp(24px,4vw,44px);
  background: rgba(11,10,9,0.74); box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.price { font-family: Georgia,'Times New Roman',serif; font-size: 48px; margin: 18px 0; color: var(--gold); }
.features { padding: 0; margin: 24px 0 30px; list-style: none; color: #c9c0ad; font-family: Inter,system-ui,sans-serif; line-height: 2; }
.features li::before { content: "✦"; color: var(--gold); margin-right: 10px; }

/* ─── FORMS ─── */
form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
input[type="email"] {
  flex: 1; min-width: 220px; height: 48px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.04);
  color: var(--text); padding: 0 14px; font: inherit;
}
input::placeholder { color: rgba(241,234,219,0.45); }

/* ─── VIDEO ─── */
.video-frame { width: 100%; aspect-ratio: 16/9; background: #000; border: 1px solid var(--line); overflow: hidden; margin-top: 28px; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* ─── FOOTER ─── */
footer {
  padding: 38px 7vw; display: flex; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-top: 1px solid rgba(241,234,219,0.08); background: #050505;
}

/* ─── STAR-WIPE TRANSITION ─── */
#overlay {
  position: fixed; inset: 8px 12px; z-index: 9999;
  pointer-events: none; overflow: hidden;
  opacity: 0; background: #020202;
  border-radius: 6% / 26%;
}
#starsCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
#star-wipe {
  position: fixed; inset: 8px 12px; z-index: 10000;
  pointer-events: none; overflow: hidden;
  background: #020202; border-radius: 6% / 26%;
  clip-path: none; display: none;
}
#star-content {
  position: absolute; inset: 0; overflow: hidden;
  perspective: 900px; perspective-origin: 50% 42%;
}
#star-content section { min-height: 100vh; height: 100vh; border-bottom: 0; padding-top: 120px; }
#star-content #site-nav, #star-content footer, #star-content .grain { display: none !important; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  #site-nav { padding: 16px 18px; }
  .menu-toggle { display: flex; }

  /* Hide desktop links, show hamburger */
  #siteNav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 100px 36px 60px;
    background:
      radial-gradient(circle at 50% 20%, rgba(125,29,23,0.22), transparent 34%),
      radial-gradient(circle at 75% 80%, rgba(201,164,93,0.10), transparent 30%),
      rgba(5,5,5,0.97);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.32s ease, visibility 0.32s ease, transform 0.32s ease;
    z-index: 10003; /* above bezel, below hamburger button */
  }

  body.menu-open #siteNav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Big tappable nav links */
  #siteNav a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 64px; /* large tap target */
    font-size: clamp(28px, 8vw, 52px);
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: -0.03em;
    text-transform: none;
    color: var(--text);
    border-bottom: 1px solid rgba(241,234,219,0.08);
    padding: 0 0 0 4px;
    text-decoration: none;
  }
  #siteNav a:hover { color: var(--gold); }

  /* CTA button link — styled differently */
  #siteNav a.button {
    display: inline-flex;
    width: auto;
    min-height: 52px;
    padding: 0 24px;
    margin-top: 24px;
    font-family: ui-monospace, monospace;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #080706;
    border-bottom: none;
    border: 1px solid var(--text);
    background: var(--text);
  }

  body.menu-open { overflow: hidden; }
  section, .hero, .split { grid-template-columns: 1fr; }
  .hero-card { min-height: 320px; }
  .archive-grid { grid-template-columns: 1fr 1fr; }

  /* Reduce CRT effects on mobile for performance */
  #crt { border-radius: 3% / 12%; }
  #bezel { border-radius: 3% / 12%; }
  #overlay, #star-wipe, #crt-vignette, #static-canvas, #chroma-r, #chroma-c {
    border-radius: 3% / 12%;
  }
}
@media (max-width: 560px) {
  section { padding: 110px 22px 70px; }
  h1 { font-size: clamp(50px,18vw,80px); }
  .archive-grid { grid-template-columns: 1fr; }
  .button { width: 100%; }
  form { display: block; }
  input[type="email"] { width: 100%; margin-bottom: 12px; }
  /* On very small screens, reduce bezel inset */
  #crt { inset: 4px 6px; border-radius: 2% / 8%; }
  #bezel { padding: 4px 6px; border-radius: 2% / 8%; }
  #overlay, #star-wipe, #crt-vignette, #static-canvas, #chroma-r, #chroma-c {
    inset: 4px 6px; border-radius: 2% / 8%;
  }
}

/* ─── SAFARI / WEBKIT FIXES ─── */
@supports (-webkit-appearance: none) {
  /* Safari needs explicit height on the scroll container */
  #scroll { height: 100%; }
  #crt-screen { -webkit-filter: blur(0.45px); }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ═══════════════════════════════════════════════════════════════
   DYNAMIC SECTION STYLES
   CSS variables injected per-section via inline style attribute.
   These override the defaults set per-section above.
═══════════════════════════════════════════════════════════════ */

/* Background image overlay (image/gif sections) */
section {
  position: relative;
}
section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--section-overlay, transparent);
  pointer-events: none;
  z-index: 0;
}
section > * {
  position: relative;
  z-index: 1;
}

/* Typography variable overrides */
section h1,
section h2,
section h3 {
  color: var(--section-heading, inherit);
}
section .body-copy,
section p,
section li {
  color: var(--section-body, inherit);
}
section .eyebrow {
  color: var(--section-eyebrow, var(--gold));
}
section .price {
  color: var(--section-eyebrow, var(--gold));
}

/* ── Archive grid image label overlay ── */
.artifact-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: rgba(241,234,219,0.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 3;
  pointer-events: none;
}

/* ── Hero card label overlay ── */
.hero-card-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px 20px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: rgba(241,234,219,0.88);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  z-index: 4;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   PURCHASE MODAL
═══════════════════════════════════════════════════════════════ */
#tt-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
  padding: 20px;
}
#tt-modal-overlay.open {
  opacity: 1; pointer-events: all;
}
#tt-modal {
  background: #0f0e0c;
  border: 1px solid rgba(201,164,93,0.25);
  max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 48px 44px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.28s ease;
  scrollbar-width: none;
}
#tt-modal::-webkit-scrollbar { display: none; }
#tt-modal-overlay.open #tt-modal {
  transform: translateY(0);
}
#tt-modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none;
  color: rgba(241,234,219,0.4); font-size: 24px;
  cursor: pointer; line-height: 1; padding: 4px 8px;
  transition: color 0.2s;
}
#tt-modal-close:hover { color: var(--text); }

/* Modal content */
.tt-modal-eyebrow {
  color: var(--gold); text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 11px; margin-bottom: 16px;
}
.tt-modal-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 400; line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text); margin: 0 0 20px;
}
.tt-modal-price {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 40px; color: var(--gold);
  margin-bottom: 24px;
}
.tt-modal-features {
  list-style: none; padding: 0; margin: 0 0 32px;
  color: #c9c0ad; font-family: Inter, system-ui, sans-serif;
  font-size: 14px; line-height: 2.2;
  border-top: 1px solid rgba(241,234,219,0.08);
  padding-top: 20px;
}
.tt-modal-features li::before {
  content: "✦"; color: var(--gold); margin-right: 10px;
}
.tt-modal-btn {
  width: 100%; min-height: 52px;
  font-size: 12px; letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.tt-modal-note {
  font-size: 11px; color: rgba(200,190,168,0.4);
  text-align: center; letter-spacing: 0.05em;
  margin: 0;
}

/* Checkout iframe container */
#tt-modal-checkout { padding-top: 8px; }
#tt-checkout-frame { border-radius: 4px; }

/* WooCommerce inside iframe — can't style directly but
   the iframe has a white background which is fine for checkout */

/* Mobile */
@media (max-width: 560px) {
  #tt-modal { padding: 36px 24px; }
  .tt-modal-title { font-size: 28px; }
  #tt-checkout-frame { height: 500px; }
}

/* ── WooCommerce checkout/cart page styles ── */
.woocommerce-page h1,
.woocommerce-page h2,
.woocommerce-page h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400; color: var(--text);
}
.woocommerce-page p,
.woocommerce-page label,
.woocommerce-page td,
.woocommerce-page th { color: #c9c0ad; font-family: Inter, system-ui, sans-serif; }

.woocommerce-page input[type="text"],
.woocommerce-page input[type="email"],
.woocommerce-page input[type="tel"],
.woocommerce-page input[type="password"],
.woocommerce-page select,
.woocommerce-page textarea {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(241,234,219,0.15) !important;
  color: var(--text) !important;
  font-family: Inter, system-ui, sans-serif !important;
}
.woocommerce-page input:focus,
.woocommerce-page select:focus {
  border-color: rgba(201,164,93,0.5) !important;
  outline: none !important;
}
.woocommerce-page button[type="submit"],
.woocommerce-page #place_order {
  background: var(--text) !important;
  color: #080706 !important;
  border: none !important;
  font-family: Inter, system-ui, sans-serif !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}
.woocommerce-page button[type="submit"]:hover { background: #d8d0be !important; }

/* Hide shipping on digital product checkout */
.woocommerce-shipping-fields { display: none !important; }
