/* =========================================================================
   TeraGrab — Design System
   Concept: "Claim Ticket" — retrieving a file feels like collecting a
   stamped manifest ticket from a cargo office. Dark ink surfaces carry a
   warm kraft-paper ticket as the signature element, stamped with a rust
   ink accent for actions and a verified-teal accent for success states.
   ========================================================================= */

:root {
  /* ---- ink (dark) surfaces ---- */
  --ink:        #13151b;
  --ink-2:      #191c23;
  --ink-3:      #21242d;
  --ink-line:   rgba(239, 230, 210, 0.10);
  --ink-line-2: rgba(239, 230, 210, 0.16);

  /* ---- paper (ticket) surfaces ---- */
  --paper:      #efe6d2;
  --paper-2:    #e6dabd;
  --paper-line: #c7b788;

  /* ---- accents ---- */
  --stamp:      #c1442c;
  --stamp-dark: #9c3520;
  --stamp-tint: rgba(193, 68, 44, 0.12);
  --verify:     #2e9c79;
  --verify-dark:#227557;
  --verify-tint:rgba(46, 156, 121, 0.14);

  /* ---- text ---- */
  --text-lt:       #f2ecdf;
  --text-lt-mute:  #a6a48f;
  --text-lt-mute2: #7d7d70;
  --text-dk:       #241f16;
  --text-dk-mute:  #6b6152;

  /* ---- type ---- */
  --f-display: 'Big Shoulders Display', sans-serif;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---- misc ---- */
  --radius:   10px;
  --radius-sm:6px;
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,0.55);
  --shadow-md: 0 12px 28px -14px rgba(0,0,0,0.4);
  --ease: cubic-bezier(.22,.68,0,1);
}

/* ============================= RESET ==================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--stamp); outline-offset: 3px; }

html, body { height: 100%; }
body {
  background: var(--ink);
  color: var(--text-lt);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.2px;
  color: var(--text-lt);
  text-wrap: balance;
}
.on-paper h1, .on-paper h2, .on-paper h3, .on-paper h4 { color: var(--text-dk); }

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }

p { color: var(--text-lt-mute); }
.on-paper p { color: var(--text-dk-mute); }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 24px; }

.mono { font-family: var(--f-mono); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stamp);
  font-weight: 600;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--stamp); box-shadow: 0 0 0 3px var(--stamp-tint);
}

.section { padding: 84px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--ink-2); border-block: 1px solid var(--ink-line); }
.section-head { max-width: 640px; margin: 0 auto 42px; text-align: center; }
.section-head p { margin-top: 12px; font-size: 1.05rem; }

/* thin blueprint grid backdrop, used behind hero + footer */
.grid-bg {
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
}

/* ============================= BUTTONS =================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-stamp {
  background: var(--stamp); color: #fff5ee;
  box-shadow: 0 10px 24px -10px rgba(193,68,44,.55);
}
.btn-stamp:hover { background: var(--stamp-dark); }

.btn-ghost {
  background: transparent; color: var(--text-lt);
  border-color: var(--ink-line-2);
}
.btn-ghost:hover { border-color: var(--text-lt-mute); background: rgba(255,255,255,.03); }

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

.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* =============================== HEADER =================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  min-height: 64px;
  background: #13151b;
  border-bottom: 1px solid rgba(239,230,210,0.12);
  /* Avoid transparent/blur headers that disappear on some mobile browsers */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(239,230,210,0.18);
  background: #13151b;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display), Impact, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .2px;
  color: #efe6d2 !important;
  text-decoration: none;
  max-width: calc(100% - 56px);
  min-width: 0;
}
.brand:hover { color: #fff !important; }
.brand-name {
  color: #efe6d2 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #efe6d2;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 19px; height: 19px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 0.94rem;
  font-weight: 600;
  color: rgba(239,230,210,0.78);
  transition: color .18s ease;
  text-decoration: none;
}
.nav-link:hover,
.nav-link.active,
.nav-link[aria-current="page"] { color: #efe6d2; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm, 8px);
  background: #efe6d2;
  color: #13151b !important;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
}
.nav-cta:hover { background: #fff; color: #13151b !important; }

/* Hamburger — desktop hidden; mobile shown. Uses 3 real bars (no pseudo). */
.nav-toggle {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(239,230,210,0.28);
  background: rgba(239,230,210,0.08);
  color: #efe6d2;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 1002;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(239,230,210,0.14);
  outline: 2px solid #c1442c;
  outline-offset: 2px;
}
.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 20px;
  height: 16px;
  pointer-events: none;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #efe6d2 !important;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================== HERO ====================================== */
.hero { position: relative; padding: 76px 0 90px; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 0%, rgba(193,68,44,0.10), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 700px; margin: 0 auto; text-align: center; }
.hero-copy .eyebrow { justify-content: center; margin-bottom: 18px; }
.hero-copy h1 { margin-bottom: 16px; }
.hero-copy .lead { font-size: 1.14rem; max-width: 560px; margin-inline: auto; }

/* ---- ticket card (signature element) ---- */
.ticket-wrap { max-width: 620px; margin: 40px auto 0; position: relative; }

.ticket {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 34px 32px 28px 44px;
  position: relative;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
/* perforated stub edge */
.ticket::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 22px;
  background-image: radial-gradient(circle at 11px 18px, var(--ink) 6px, transparent 6.5px);
  background-size: 22px 26px;
  background-repeat: repeat-y;
  border-right: 1.5px dashed var(--paper-line);
}
.ticket-label {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dk-mute); margin-bottom: 16px;
}
.ticket-label .no { color: var(--text-dk); font-weight: 700; }

.ticket-stamp {
  position: absolute; top: -18px; right: 22px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px 7px 11px;
  border: 2px solid var(--stamp);
  border-radius: 30px;
  color: var(--stamp);
  background: var(--paper);
  font-family: var(--f-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  transform: rotate(-6deg);
}
.ticket-stamp svg { width: 13px; height: 13px; }

.ticket-form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ticket-input {
  flex: 1 1 280px;
  background: #fbf7ec;
  border: 1.6px solid var(--paper-line);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--text-dk);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.ticket-input::placeholder { color: #9a9078; }
.ticket-input:focus { border-color: var(--stamp); box-shadow: 0 0 0 4px var(--stamp-tint); outline: none; }
.ticket-input.is-invalid { border-color: var(--stamp); box-shadow: 0 0 0 4px var(--stamp-tint); }

/* input + paste button wrapper (ticket-input-wrap is the live class) */
.input-wrap,
.ticket-input-wrap {
  flex: 1 1 280px;
  position: relative;
  display: block;
  min-width: 0;
}
.input-wrap .ticket-input,
.ticket-input-wrap .ticket-input {
  width: 100%;
  padding-right: 96px;
  box-sizing: border-box;
}
.paste-btn {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--stamp-tint, rgba(193,68,44,.14));
  color: var(--stamp-dark, #9c3520);
  border: 1.5px solid var(--stamp, #c1442c);
  font-family: var(--f-mono), ui-monospace, monospace;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.paste-btn:hover,
.paste-btn:focus-visible {
  background: var(--stamp, #c1442c);
  color: #fff5ee;
  outline: none;
}
.paste-btn[data-mode="clear"] {
  background: rgba(19,21,27,.06);
  border-color: rgba(19,21,27,.22);
  color: #3a3428;
}
.paste-btn[data-mode="clear"]:hover {
  background: #3a3428;
  color: #fff;
  border-color: #3a3428;
}
.paste-btn svg { flex-shrink: 0; width: 14px; height: 14px; }

.ticket-submit { flex: 0 0 auto; min-width: 154px; position: relative; }
.ticket-submit .spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2.4px solid rgba(255,245,238,.4); border-top-color: #fff5ee;
  display: none; animation: spin .7s linear infinite;
}
.ticket-submit.is-loading .spinner { display: inline-block; }

.field-error {
  display: none; margin-top: 10px; font-size: 0.85rem; color: var(--stamp-dark); font-weight: 600;
}

.browser-note {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; font-size: 0.82rem; color: var(--text-dk-mute);
}
.browser-note svg { flex-shrink: 0; }

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

.hero-alert {
  display: flex; align-items: flex-start; gap: 10px;
  max-width: 620px; margin: 0 auto 16px;
  background: var(--stamp-tint); border: 1.4px solid rgba(193,68,44,.4);
  color: #ffd9cf; padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  max-width: 620px; margin: 26px auto 0;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--text-lt-mute); font-weight: 500; }
.trust-item svg { flex-shrink: 0; }

/* ============================= CHECKPOINTS (how it works) ================= */
.checkpoints { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: cp; }
.checkpoints::before {
  content: ""; position: absolute; top: 26px; left: 8%; right: 8%; height: 0;
  border-top: 1.6px dashed var(--ink-line-2); z-index: 0;
}
.checkpoint { position: relative; z-index: 1; padding-top: 8px; }
.cp-marker {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink-3); border: 1.6px solid var(--ink-line-2);
  font-family: var(--f-mono); font-weight: 700; color: var(--stamp); font-size: 0.95rem;
  margin-bottom: 18px;
}
.checkpoint h3 { margin-bottom: 8px; font-size: 1.15rem; }
.checkpoint p { font-size: 0.95rem; }

/* ============================= TWO-COLUMN INFO ============================ */
.split-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.split-cols h2 { margin-bottom: 14px; font-size: 1.7rem; }
.split-cols p + p { margin-top: 12px; }
.split-cols .tag {
  display: inline-block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-lt-mute2); border: 1px solid var(--ink-line-2);
  border-radius: 20px; padding: 4px 10px; margin-bottom: 14px;
}

/* ============================= SUPPORTED DOMAINS =========================== */
.manifest-panel {
  background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--radius);
  padding: 30px; position: relative; overflow: hidden;
}
.manifest-panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--stamp) 0 14px, transparent 14px 26px);
}
.domain-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px;
  margin-top: 6px;
}
.domain-chip {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 0.85rem; color: var(--text-lt);
  background: var(--ink-3); border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm); padding: 11px 13px;
}
.domain-chip svg { flex-shrink: 0; color: var(--verify); }

/* ============================= FAQ ========================================= */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--ink-line); border-radius: var(--radius-sm); background: var(--ink-2); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; text-align: left; font-weight: 700; font-size: 1rem;
}
.faq-q .icon { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-q .icon::before, .faq-q .icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--stamp);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.faq-q .icon::before { width: 12px; height: 2px; transform: translate(-50%,-50%); }
.faq-q .icon::after { width: 2px; height: 12px; transform: translate(-50%,-50%); }
.faq-item.is-open .faq-q .icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }

.faq-a-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.faq-item.is-open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a { padding: 0 22px 20px; font-size: 0.96rem; color: var(--text-lt-mute); }

/* ============================= DISCLAIMER =================================== */
.disclaimer-box {
  background: var(--paper); color: var(--text-dk); border-radius: var(--radius);
  padding: 26px 28px; font-size: 0.92rem; line-height: 1.65;
  border-left: 5px solid var(--stamp);
}
.disclaimer-box strong { color: var(--text-dk); }

/* ============================= FOOTER ======================================= */
.site-footer { border-top: 1px solid var(--ink-line); padding: 34px 0; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer-row .copy { font-size: 0.86rem; color: var(--text-lt-mute2); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 0.86rem; color: var(--text-lt-mute); }
.footer-links a:hover { color: var(--text-lt); }

/* ============================= RESULT PAGE: LOADER =========================== */
.result-shell {
  min-height: calc(100vh - 76px);
  min-height: calc(100dvh - 76px); /* mobile browsers ka address-bar show/hide se 100vh jump ho jaata hai; dvh us jump ko fix karta hai */
  display: flex; align-items: center; padding: 50px 0;
}

.loader-card {
  max-width: 520px; margin: 0 auto; text-align: center;
  background: var(--paper); color: var(--text-dk);
  border-radius: var(--radius); padding: 46px 36px 38px; position: relative;
  box-shadow: var(--shadow-lg);
}
.loader-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 22px;
  background-image: radial-gradient(circle at 11px 18px, var(--ink) 6px, transparent 6.5px);
  background-size: 22px 26px; background-repeat: repeat-y;
  border-right: 1.5px dashed var(--paper-line);
}

.scan-frame {
  width: 100px; height: 100px; margin: 0 auto 22px; position: relative;
  border: 2px solid var(--text-dk); border-radius: 10px; overflow: hidden;
  background: #fbf7ec;
}
.scan-frame svg { width: 56px; height: 56px; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: var(--text-dk); opacity: .85; }
.scan-line {
  position: absolute; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--stamp), transparent);
  box-shadow: 0 0 12px 1px rgba(193,68,44,.7);
  animation: scan 1.7s ease-in-out infinite;
}
@keyframes scan { 0% { top: 4%; } 50% { top: 92%; } 100% { top: 4%; } }

.loader-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.loader-note { font-size: 0.9rem; color: var(--text-dk-mute); margin-bottom: 26px; }

.stage-list { text-align: left; display: flex; flex-direction: column; gap: 3px; margin-bottom: 26px; }
.stage-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 4px;
  font-size: 0.93rem; color: #9a917b; font-weight: 500;
  transition: color .25s var(--ease);
}
.stage-dot {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--paper-line); display: grid; place-items: center;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease);
}
.stage-dot svg { width: 11px; height: 11px; opacity: 0; transform: scale(.4); transition: opacity .2s var(--ease), transform .25s var(--ease); }
.stage-item.is-active { color: var(--text-dk); }
.stage-item.is-active .stage-dot { border-color: var(--stamp); }
.stage-item.is-active .stage-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--stamp); animation: pulse-dot 1s ease-in-out infinite; }
.stage-item.is-done { color: var(--verify-dark); }
.stage-item.is-done .stage-dot { border-color: var(--verify); background: var(--verify); transform: scale(1.05); }
.stage-item.is-done .stage-dot svg { opacity: 1; transform: scale(1); color: #fff; }
@keyframes pulse-dot { 0%,100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1); opacity: 1; } }

.tape-track { height: 10px; border-radius: 6px; background: #ddd0ab; overflow: hidden; position: relative; }
.tape-fill {
  height: 100%; width: 0%; border-radius: 6px;
  background: repeating-linear-gradient(-45deg, var(--stamp) 0 8px, var(--stamp-dark) 8px 16px);
  transition: width 1s linear;
}
.countdown { margin-top: 12px; font-family: var(--f-mono); font-size: 0.8rem; color: var(--text-dk-mute); }
.countdown span { color: var(--text-dk); font-weight: 700; }

/* ============================= RESULT PAGE: FILE CARDS ======================= */
.results-head { text-align: center; margin-bottom: 34px; }
.badge-ready {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--verify-tint); color: var(--verify); border: 1px solid rgba(46,156,121,.4);
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  padding: 6px 12px; border-radius: 20px; margin-bottom: 14px;
}

.file-card {
  max-width: 620px; margin: 0 auto; background: var(--paper); color: var(--text-dk);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  position: relative;
}
.file-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--ink-3); }
.file-body { padding: 26px 28px 28px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  font-family: var(--f-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 5px; background: var(--ink-3); color: var(--text-lt);
}
.chip-outline { background: transparent; border: 1px solid var(--paper-line); color: var(--text-dk-mute); }

.file-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 4px; }
.file-title-row h2 { font-size: 1.2rem; font-family: var(--f-body); font-weight: 700; word-break: break-word; }
.copy-btn {
  flex-shrink: 0; font-family: var(--f-mono); font-size: 0.75rem; font-weight: 700;
  border: 1.4px solid var(--text-dk); border-radius: 20px; padding: 6px 13px;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.copy-btn:hover { background: var(--text-dk); color: var(--paper); }
.copy-btn.is-copied { background: var(--verify); border-color: var(--verify); color: #fff; }

.file-meta { font-family: var(--f-mono); font-size: 0.85rem; color: var(--text-dk-mute); margin-bottom: 22px; }

.file-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.file-actions .btn { flex: 1 1 140px; }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.92rem; color: var(--text-lt-mute); margin-top: 30px; }
.back-link:hover { color: var(--text-lt); }
.back-link-row { text-align: center; }

/* ============================= PLAYER PAGE ==================================== */
.player-shell { padding: 44px 0 70px; }
.player-wrap { border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); margin: 26px 0 24px; border: 1px solid var(--ink-line); }
.player-wrap video { width: 100%; display: block; max-height: 74vh; background: #000; }

.player-meta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.quality-select {
  background: var(--ink-3); border: 1px solid var(--ink-line-2); color: var(--text-lt);
  border-radius: var(--radius-sm); padding: 8px 12px; font-family: var(--f-mono); font-size: 0.85rem;
}

/* ============================= EMPTY / 404 ===================================== */
.empty-shell {
  min-height: calc(100vh - 76px);
  min-height: calc(100dvh - 76px);
  display: flex; align-items: center;
}
.empty-inner { text-align: center; max-width: 480px; margin: 0 auto; padding: 40px 0; }
.empty-code { font-family: var(--f-display); font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; color: var(--ink-3); line-height: 1; -webkit-text-stroke: 1.5px var(--ink-line-2); }
.empty-ticket { display: inline-block; margin: 6px 0 18px; }

/* ============================= RESPONSIVE ======================================= */
@media (max-width: 860px) {
  .split-cols { grid-template-columns: 1fr; gap: 34px; }
  .checkpoints { grid-template-columns: 1fr; gap: 22px; }
  .checkpoints::before { display: none; }
}

@media (max-width: 900px) {
  body.nav-open { overflow: hidden; touch-action: none; }

  .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
    width: 100% !important;
    min-height: 64px !important;
    background: #13151b !important;
    border-bottom: 1px solid rgba(239,230,210,0.16) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.35);
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .nav-row {
    height: 64px !important;
    min-height: 64px !important;
  }

  .brand,
  .brand-name {
    color: #efe6d2 !important;
  }

  /* Keep content below fixed header */
  body { padding-top: 0; }
  main,
  #main-content,
  .empty-shell,
  .result-shell,
  .player-shell {
    padding-top: 64px !important;
  }

  .nav-toggle {
    display: inline-flex !important;
  }

  .nav-links {
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 10px 18px 32px !important;
    background: #13151b !important;
    border-top: 1px solid rgba(239,230,210,0.12);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translate3d(100%,0,0);
    visibility: hidden;
    pointer-events: none;
    transition: transform .22s ease, visibility .22s ease;
  }
  .nav-links.is-open {
    transform: translate3d(0,0,0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link,
  .nav-cta {
    display: block !important;
    width: 100%;
    padding: 16px 6px !important;
    border-bottom: 1px solid rgba(239,230,210,0.10);
    border-radius: 0 !important;
    text-align: left;
    color: #efe6d2 !important;
    font-size: 1.05rem;
    background: transparent !important;
  }
  .nav-cta {
    margin-top: 14px !important;
    text-align: center !important;
    border-radius: 10px !important;
    border-bottom: 0 !important;
    background: #efe6d2 !important;
    color: #13151b !important;
    font-weight: 800 !important;
    padding: 14px 12px !important;
  }
}

@media (max-width: 760px) {
  /* kept for older overrides — header rules live in 900px block above */
}

@media (max-width: 760px) {
  .ticket { padding: 28px 20px 24px 36px; }
  .ticket-stamp { position: static; display: inline-flex; margin-bottom: 14px; transform: rotate(-3deg); }
  .file-actions .btn { flex: 1 1 100%; }
}


@media (max-width: 520px) {
  .section { padding: 60px 0; }
  h1 { font-size: 2.4rem; }
  .domain-grid { grid-template-columns: 1fr 1fr; }
  .container { padding-inline: 16px; }
  .ticket { padding: 24px 16px 20px 30px; }
  .ticket-form-row { flex-direction: column; align-items: stretch; }
  .ticket-input { flex: 0 0 auto; width: 100%; }
  .input-wrap,
  .ticket-input-wrap { flex: 0 0 auto; width: 100%; }
  .ticket-input-wrap .ticket-input { padding-right: 96px; }
  .paste-btn { right: 8px; min-height: 38px; padding: 8px 14px; }
  .ticket-submit,
  .btn-stamp { width: 100%; }

  .file-body { padding: 20px 18px 22px; }
  .file-title-row h2 { font-size: 1.05rem; }
  .trust-strip { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 400px) {
  .domain-grid { grid-template-columns: 1fr; }
  .loader-card { padding: 34px 20px 28px; }
}
.site-footer{
    background:#111827;
    color:#ddd;
    padding:60px 0 25px;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:30px;
}

.footer-box h3,
.footer-box h4{
    color:#fff;
    margin-bottom:15px;
}

.footer-box p{
    line-height:1.8;
    color:#bbb;
}

.footer-box ul{
    margin:0;
    padding:0;
    list-style:none;
}

.footer-box li{
    margin:10px 0;
}

.footer-box a{
    color:#bbb;
    text-decoration:none;
    transition:.3s;
}

.footer-box a:hover{
    color:#fff;
}

.footer-divider{
    margin:35px 0;
    border:none;
    border-top:1px solid rgba(255,255,255,.1);
}

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

.copy{
    font-size:14px;
}

.footer-note{
    font-size:13px;
    color:#999;
}
.hero-features{

padding:70px 0;

}

.feature-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:25px;

}

.feature-card{

background:#fff;

border-radius:12px;

padding:25px;

text-align:center;

box-shadow:0 5px 15px rgba(0,0,0,.08);

transition:.3s;

}

.feature-card:hover{

transform:translateY(-6px);

}

.feature-card .icon{

font-size:40px;

margin-bottom:15px;

}

.stats-section{

padding:60px 0;

background:#0f172a;

color:#fff;

}

.stats-grid{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:20px;

text-align:center;

}

.stat-box h2{

font-size:40px;

color:#3b82f6;

margin-bottom:10px;

}


/* =========================================================================
   SEO / A11y / CWV enhancements (2026 audit)
   ========================================================================= */

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

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
  z-index:10000;
}
.skip-link:focus,
.skip-link:focus-visible{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 14px;
  background:var(--stamp);
  color:#fff;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  outline:2px solid #fff;
  outline-offset:2px;
}

/* Breadcrumbs */
.breadcrumbs{
  margin: 0 0 18px;
  font-size: .86rem;
}
.breadcrumbs-list{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:.35rem .5rem;
  padding:0;
  margin:0;
  color: var(--text-dk-mute, rgba(239,230,210,.72));
}
.breadcrumbs-item{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
}
.breadcrumbs-item:not(:last-child)::after{
  content:"/";
  opacity:.45;
  margin-left:.15rem;
}
.breadcrumbs a{
  color: var(--stamp);
  text-decoration:none;
  font-weight:500;
}
.breadcrumbs a:hover{ text-decoration:underline; }
.breadcrumbs [aria-current="page"]{ color: inherit; font-weight:600; }

/* Trust / E-E-A-T */
.trust-section{ padding: 70px 0; }
.trust-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.trust-grid > div{
  padding: 18px 18px 16px;
  background: var(--ink-2, #191c23);
  border: 1px solid var(--ink-line, rgba(239,230,210,.10));
  border-radius: 12px;
}
.trust-grid h3{
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--paper, #efe6d2);
}
.trust-grid p{
  margin:0;
  color: var(--text-dk-mute, rgba(239,230,210,.72));
  line-height:1.55;
  font-size:.95rem;
}

/* Related internal links */
.related-tools{ padding: 70px 0; }
.tool-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.tool-grid a{
  display:block;
  padding: 16px 14px;
  text-align:center;
  background: var(--ink-2, #191c23);
  border: 1px solid var(--ink-line, rgba(239,230,210,.10));
  border-radius: 12px;
  text-decoration:none;
  font-weight:600;
  color: var(--paper, #efe6d2);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.tool-grid a:hover,
.tool-grid a:focus-visible{
  border-color: var(--stamp);
  background: rgba(193,68,44,.12);
  transform: translateY(-1px);
}

/* Steps as ordered list without default markers */
.steps-grid{
  list-style:none;
  padding:0;
  margin: 28px 0 0;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.step-card{
  padding: 20px;
  border-radius: 14px;
  background: var(--ink-2, #191c23);
  border: 1px solid var(--ink-line, rgba(239,230,210,.10));
}
.step-num{
  display:inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--stamp);
  font-weight:700;
  letter-spacing:.06em;
  margin-bottom: 10px;
}

/* Domain chips */
.domain-grid{
  list-style:none;
  padding:0;
  margin: 24px 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.domain-chip{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--ink-line-2, rgba(239,230,210,.16));
  background: var(--ink-3, #21242d);
  font-size:.9rem;
}

/* Feature cards */
.feature-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.feature-card{
  padding: 18px;
  border-radius: 14px;
  background: var(--ink-2, #191c23);
  border: 1px solid var(--ink-line, rgba(239,230,210,.10));
}
.feature-card h3{ margin-top:0; }

/* Hero bullets */
.hero-bullets{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  list-style:none;
  padding:0;
  margin: 22px 0 0;
  color: var(--text-dk-mute, rgba(239,230,210,.78));
  font-size:.92rem;
}
.hero-bullets li{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
}
.hero-bullets li::before{
  content:"";
  width:6px;height:6px;border-radius:50%;
  background: var(--stamp);
  display:inline-block;
}

.form-hint{
  margin: 10px 0 0;
  font-size:.75rem;
  color: var(--text-dk-mute, rgba(239,230,210,.65));
}

/* FAQ a11y open state */
.faq-a[hidden]{ display:none !important; }
.faq-q{
  width:100%;
  text-align:left;
  cursor:pointer;
}
.faq-item.is-open .faq-icon{ transform: rotate(45deg); }

/* Footer semantic headings (p.styled) */
.footer-brand-title{
  margin:0 0 10px;
  font-size:1.15rem;
  font-weight:800;
  font-family: "Big Shoulders Display", Impact, sans-serif;
  letter-spacing:.02em;
}
.footer-heading{
  margin:0 0 12px;
  font-size:.95rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color: var(--paper-2, #e6dabd);
}
.footer-eeat{
  margin-top:12px;
  font-size:.78rem;
  opacity:.8;
  line-height:1.5;
}
.footer-note a{ color: var(--stamp); }

/* Blog search */
.blog-search{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin: 8px 0 28px;
}

/* Content-visibility for below-fold sections (CWV) */
#how-it-works,
#supported,
#features,
#faq,
#resources,
#trust,
.site-footer{
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

/* Reduce layout shift on sticky header */
.site-header{ min-height: 64px; }

/* Media lazy-friendly defaults */
img, video{
  max-width:100%;
  height:auto;
}
video{ background:#000; }

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

/* High-contrast focus for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline: 2.5px solid var(--stamp);
  outline-offset: 3px;
}

/* Mobile nav open body lock helper */
body.nav-open{ overflow:hidden; }

/* Ensure ticket/input doesn't overflow small panels */
.ticket-form-row{ min-width:0; }
.ticket-input{ min-width:0; }

/* Empty/404 */
.empty-shell{ min-height: 52vh; display:grid; place-items:center; padding:48px 0; }
.empty-inner{ text-align:center; max-width:520px; }
.empty-code{
  font-family:"Big Shoulders Display", Impact, sans-serif;
  font-size:clamp(4rem,12vw,6.5rem);
  line-height:1;
  color: var(--stamp);
  opacity:.9;
  margin-bottom: 8px;
}


/* iOS notch / safe area */
@supports (padding: max(0px)) {
  @media (max-width: 900px) {
    .site-header { padding-top: env(safe-area-inset-top, 0px); }
    .nav-links.is-open,
    .nav-links { top: calc(64px + env(safe-area-inset-top, 0px)) !important; }
    main, #main-content, .empty-shell, .result-shell, .player-shell {
      padding-top: calc(64px + env(safe-area-inset-top, 0px)) !important;
    }
  }
}


