/* ==========================================================================
   weareinthecode.com — Author Zero
   Pixel / 8-bit aesthetic. Black background, phosphor green accent.
   Body text in Lora (serif, full Cyrillic). Display in VT323 (CRT terminal).
   UI in Inter. Body NEVER in VT323 — Cyrillic in pixel fonts is unreadable.
   ========================================================================== */

:root {
  --bg:        #000000;
  --bg-soft:   #0a0a0a;
  --accent:    #00FF41;
  --accent-dim:#0d4f1c;
  --text:      #c8e6c9;
  --muted:     #0d4f1c;
  --text-dim:  #6e8a72;

  --border-w:  3px;
  --pixel:     4px;

  --max-w:     1080px;
  --gutter:    clamp(16px, 4vw, 40px);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* hard pixel rendering for any pixel art / cover */
img.pixelated,
.pixelated {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* ---------- scanline overlay (~3% opacity, decorative) ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 255, 65, 0.025) 0px,
    rgba(0, 255, 65, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: screen;
}

/* ambient phosphor flicker — extremely subtle, optional */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  47%      { opacity: 1; }
  48%      { opacity: 0.985; }
  49%      { opacity: 1; }
  72%      { opacity: 0.992; }
  73%      { opacity: 1; }
}

/* ---------- typography ---------- */
.display {
  font-family: 'VT323', 'Courier New', monospace;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 1px rgba(0, 255, 65, 0.6);
}

h1, h2, h3 {
  font-family: 'VT323', 'Courier New', monospace;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-shadow: 0 0 2px rgba(0, 255, 65, 0.45);
}

h1 { font-size: clamp(56px, 11vw, 144px); }
h2 { font-size: clamp(40px, 7vw, 80px); }
h3 { font-size: clamp(28px, 4vw, 40px); }

p {
  margin: 0 0 1.1em 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent-dim);
  transition: border-color 120ms steps(2);
}
a:hover,
a:focus-visible {
  border-bottom-color: var(--accent);
  outline: none;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- container ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section {
  padding: clamp(72px, 12vh, 144px) 0;
  position: relative;
}

section + section {
  border-top: var(--border-w) solid var(--muted);
}

/* ---------- top bar (lang toggle, persistent) ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px var(--gutter);
  background: linear-gradient(to bottom, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 80%, transparent 100%);
  backdrop-filter: blur(2px);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.topbar__brand {
  color: var(--text-dim);
  font-weight: 500;
}
.topbar__brand .blink {
  color: var(--accent);
  animation: blink 1.1s steps(2, end) infinite;
}
@keyframes blink {
  0%, 60%   { opacity: 1; }
  61%, 100% { opacity: 0; }
}

.lang-toggle {
  display: inline-flex;
  border: 2px solid var(--muted);
  background: var(--bg);
}
.lang-toggle button {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 120ms steps(2), color 120ms steps(2);
}
.lang-toggle button:hover {
  color: var(--text);
}
.lang-toggle button.is-active {
  background: var(--accent);
  color: var(--bg);
}
.lang-toggle button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  padding-top: 96px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: blink 1.1s steps(2, end) infinite;
}

.hero__tagline {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: clamp(48px, 9vw, 116px);
  line-height: 0.95;
  color: var(--text);
  letter-spacing: 0.01em;
  margin-bottom: 32px;
}
.hero__tagline .accent {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.55);
}
.hero__tagline .caret {
  display: inline-block;
  width: 0.55ch;
  background: var(--accent);
  margin-left: 6px;
  animation: blink 1.1s steps(2, end) infinite;
}

.hero__sub {
  font-family: 'Lora', serif;
  font-size: 18px;
  color: var(--text);
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero__meta {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero__meta span {
  position: relative;
}
.hero__meta span + span::before {
  content: "//";
  margin-right: 18px;
  color: var(--muted);
}

/* hero cover */
.hero__cover-wrap {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 100%;
  max-width: 420px;
}

.hero__cover {
  position: relative;
  border: var(--border-w) solid var(--accent);
  background: var(--bg-soft);
  box-shadow:
    8px 8px 0 0 var(--muted),
    16px 16px 0 0 rgba(0, 255, 65, 0.12);
  transform: rotate(-1.2deg);
}
.hero__cover img {
  display: block;
  width: 100%;
  height: auto;
}
.hero__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 70%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
}

/* corner brackets on cover */
.hero__cover::before {
  content: "";
  position: absolute;
  inset: -10px;
  pointer-events: none;
  background:
    /* top-left */
    linear-gradient(var(--accent), var(--accent)) top left / 14px 3px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top left / 3px 14px no-repeat,
    /* top-right */
    linear-gradient(var(--accent), var(--accent)) top right / 14px 3px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 3px 14px no-repeat,
    /* bottom-left */
    linear-gradient(var(--accent), var(--accent)) bottom left / 14px 3px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 3px 14px no-repeat,
    /* bottom-right */
    linear-gradient(var(--accent), var(--accent)) bottom right / 14px 3px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 3px 14px no-repeat;
}

/* hero ambient: floating binary glyphs */
.hero__matrix {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--accent);
  opacity: 0.08;
  letter-spacing: 0.4em;
  overflow: hidden;
}
.hero__matrix span {
  position: absolute;
  white-space: nowrap;
  animation: rain 22s linear infinite;
}
.hero__matrix span:nth-child(1) { left: 4%;  animation-delay: 0s;   }
.hero__matrix span:nth-child(2) { left: 22%; animation-delay: -7s;  }
.hero__matrix span:nth-child(3) { left: 41%; animation-delay: -3s;  }
.hero__matrix span:nth-child(4) { left: 60%; animation-delay: -14s; }
.hero__matrix span:nth-child(5) { left: 78%; animation-delay: -10s; }
.hero__matrix span:nth-child(6) { left: 92%; animation-delay: -18s; }
@keyframes rain {
  0%   { transform: translateY(-50vh); }
  100% { transform: translateY(120vh); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__matrix { display: none; }
  .blink, .hero__eyebrow::before, .hero__tagline .caret { animation: none; }
}

/* scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'VT323', monospace;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  z-index: 3;
}
.scroll-indicator .arrow {
  display: block;
  font-size: 22px;
  margin-top: 6px;
  animation: bob 1.6s steps(2, end) infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ---------- section header tag ---------- */
.tag {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.tag::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
}

/* ---------- about ---------- */
.about__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.about__head .glyph {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(0, 255, 65, 0.5));
}
.about__head h2 {
  margin: 0;
}

.about__body {
  max-width: 64ch;
  font-size: 17.5px;
  color: var(--text);
}
.about__body p { margin-bottom: 1.25em; }
.about__body p:last-child { margin-bottom: 0; }
.about__body em {
  color: var(--accent);
  font-style: normal;
  font-family: 'VT323', monospace;
  font-size: 1.18em;
  letter-spacing: 0.02em;
}

.about__meta {
  margin-top: 36px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.about__meta span::before {
  content: "[ ";
  color: var(--accent);
}
.about__meta span::after {
  content: " ]";
  color: var(--accent);
}

/* ---------- book ---------- */
.book {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 50%, var(--bg) 100%);
}

.book__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 880px) {
  .book__grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 64px;
  }
}

.book__meta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.book__meta-row .chip {
  border: 2px solid var(--muted);
  padding: 6px 10px;
  background: var(--bg);
}
.book__meta-row .chip.accent {
  border-color: var(--accent);
  color: var(--accent);
}

.book__title {
  margin-bottom: 24px;
}

.book__desc {
  font-size: 17px;
  max-width: 56ch;
  margin-bottom: 36px;
}

/* teaser card */
.teaser {
  position: relative;
  background: var(--bg);
  border: var(--border-w) solid var(--muted);
  padding: 32px 28px 0 28px;
  font-family: 'Lora', Georgia, serif;
  color: var(--text);
}
.teaser__chrome {
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 26px;
  background: var(--muted);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--accent-dim);
}
.teaser__chrome::before {
  content: "■ ■ ■";
  margin-right: 12px;
  color: var(--text);
  letter-spacing: 0.3em;
  font-size: 10px;
}
.teaser__inner {
  margin-top: 28px;
  max-height: 380px;
  overflow: hidden;
  position: relative;
}
.teaser__inner::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 200px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--bg) 85%
  );
  pointer-events: none;
}
.teaser__epigraph {
  font-style: italic;
  color: var(--text-dim);
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-bottom: 24px;
  font-size: 16px;
}
.teaser__chapter-label {
  font-family: 'VT323', monospace;
  color: var(--accent);
  font-size: 22px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  display: block;
}
.teaser p {
  font-size: 16.5px;
  line-height: 1.7;
}

.teaser__footer {
  position: relative;
  margin-top: -32px;
  padding: 18px 8px 24px 8px;
  z-index: 2;
  text-align: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* CTA buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 22px;
  border: 3px solid var(--accent);
  background: var(--bg);
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  transition: transform 90ms steps(2), box-shadow 90ms steps(2), background 90ms steps(2), color 90ms steps(2);
  box-shadow: 5px 5px 0 0 var(--muted);
}
.btn:hover,
.btn:focus-visible {
  background: var(--accent);
  color: var(--bg);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 0 var(--muted);
  outline: none;
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 var(--muted);
}
.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--bg);
  color: var(--accent);
}
.btn--ghost {
  border-color: var(--muted);
  color: var(--text);
  box-shadow: 5px 5px 0 0 transparent;
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg);
}
.btn .price {
  color: inherit;
  border-left: 2px solid currentColor;
  padding-left: 12px;
  margin-left: 4px;
  font-family: 'VT323', monospace;
  font-size: 18px;
  letter-spacing: 0.04em;
}

/* free preview funnel */
.preview {
  margin-top: 56px;
  padding: 32px;
  background: var(--bg);
  border: var(--border-w) dashed var(--muted);
}
.preview h3 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 8px;
}
.preview__sub {
  color: var(--text);
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 56ch;
}
.preview__form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}
.preview__form input[type="email"] {
  flex: 1 1 280px;
  appearance: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  padding: 16px 18px;
  background: var(--bg);
  color: var(--text);
  border: 3px solid var(--muted);
  outline: none;
  transition: border-color 120ms steps(2);
}
.preview__form input[type="email"]:focus {
  border-color: var(--accent);
  color: var(--text);
}
.preview__form input[type="email"]::placeholder {
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.preview__form input[type="email"][aria-invalid="true"] {
  border-color: #ff5640;
}
.preview__error {
  flex-basis: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff5640;
  display: none;
  margin-top: 4px;
}
.preview__error.is-visible {
  display: block;
}

.preview__success {
  display: none;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
  border: 3px solid var(--accent);
  background: rgba(0, 255, 65, 0.06);
  margin-top: 4px;
}
.preview__success.is-visible {
  display: flex;
}
.preview__success .check {
  font-family: 'VT323', monospace;
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
}
.preview__success .copy {
  font-size: 16px;
  color: var(--text);
}
.preview__success .copy strong {
  color: var(--accent);
  font-weight: 400;
  font-family: 'VT323', monospace;
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
}

.preview__fineprint {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  margin-top: 16px;
  text-transform: uppercase;
}

/* ---------- connect ---------- */
.connect {
  background: var(--bg);
}
.connect h2 {
  margin-bottom: 36px;
}
.connect__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) {
  .connect__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px;
  background: var(--bg-soft);
  border: var(--border-w) solid var(--muted);
  transition: border-color 120ms steps(2), transform 120ms steps(2);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.contact-card:hover,
.contact-card:focus-within {
  border-color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 var(--muted);
  outline: none;
}
.contact-card .ico {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  color: var(--accent);
}
.contact-card .label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.contact-card .value {
  font-family: 'VT323', monospace;
  color: var(--accent);
  font-size: 24px;
  letter-spacing: 0.02em;
  word-break: break-all;
}
.contact-card .value.body {
  font-family: 'Lora', serif;
  font-size: 16px;
  color: var(--text);
  letter-spacing: 0;
}
.contact-card .copy-btn {
  margin-top: 12px;
  appearance: none;
  background: transparent;
  border: 2px solid var(--muted);
  color: var(--text-dim);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 120ms steps(2);
}
.contact-card .copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.contact-card .copy-btn.is-copied {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- footer ---------- */
footer.foot {
  padding: 48px 0 64px 0;
  border-top: var(--border-w) solid var(--muted);
  text-align: center;
}
.foot__glyph {
  width: 56px;
  height: 56px;
  color: var(--accent);
  margin: 0 auto 16px;
  display: block;
  filter: drop-shadow(0 0 4px rgba(0, 255, 65, 0.4));
}
.foot__copy {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.foot__copy .accent {
  color: var(--accent);
}
.foot .lang-toggle {
  margin: 0 auto;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--bg);
  border: 3px solid var(--accent);
  color: var(--accent);
  font-family: 'VT323', monospace;
  font-size: 20px;
  letter-spacing: 0.04em;
  padding: 14px 22px;
  z-index: 200;
  box-shadow: 6px 6px 0 0 var(--muted);
  opacity: 0;
  pointer-events: none;
  transition: transform 200ms steps(3), opacity 200ms steps(3);
}
.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast::before {
  content: "▶ ";
  color: var(--text);
}

/* ---------- i18n visibility ---------- */
[data-i18n-en],
[data-i18n-ru] { display: none; }

html[lang="en"] [data-i18n-en] { display: revert; }
html[lang="ru"] [data-i18n-ru] { display: revert; }

/* When a span/inline carries the attr, force inline */
html[lang="en"] span[data-i18n-en],
html[lang="ru"] span[data-i18n-ru] { display: inline; }

/* ---------- responsive: small screens ---------- */
@media (max-width: 540px) {
  body { font-size: 16px; }

  .hero__tagline { font-size: 44px; line-height: 0.98; }
  .hero__cover-wrap { max-width: 320px; }

  .topbar { padding: 10px var(--gutter); }
  .topbar__brand { display: none; }

  .preview { padding: 22px; }
  .preview__form input[type="email"] { flex-basis: 100%; }
  .btn { padding: 14px 18px; font-size: 12px; }

  section { padding: 64px 0; }
}

/* keep VT323 legible at very small sizes — scale down rather than swap */
@media (max-width: 380px) {
  h1 { font-size: 56px; }
  h2 { font-size: 40px; }
  .hero__tagline { font-size: 40px; }
}

/* ---------- accessibility helpers ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* respect users who don't want motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   CHECKOUT MODAL
   ============================================================ */

.checkout-modal[hidden] { display: none; }
.checkout-modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 1.25rem;
}
.checkout-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(2px);
}
.checkout-modal__panel {
  position: relative;
  width: 100%; max-width: 460px;
  background: var(--bg-soft, #0a0a0a);
  border: 3px solid var(--accent, #00FF41);
  box-shadow: 6px 6px 0 0 var(--muted, #0d4f1c);
  padding: 2rem 1.75rem 1.5rem;
  font-family: 'Lora', Georgia, serif;
  color: var(--text, #c8e6c9);
}
.checkout-modal__close {
  position: absolute; top: 0.5rem; right: 0.75rem;
  background: transparent; border: 0;
  color: var(--accent, #00FF41);
  font-family: 'VT323', monospace; font-size: 2rem;
  line-height: 1; cursor: pointer; padding: 0.25rem 0.5rem;
}
.checkout-modal__close:hover, .checkout-modal__close:focus-visible {
  background: rgba(0, 255, 65, 0.1); outline: none;
}
.checkout-modal__panel h3 {
  font-family: 'VT323', monospace;
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  color: var(--accent, #00FF41);
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
  font-weight: 400;
}
.checkout-modal__panel h3 em {
  font-style: italic; color: var(--text, #c8e6c9);
}
.checkout-modal__sub {
  font-size: 0.92rem; line-height: 1.55;
  color: var(--text, #c8e6c9);
  margin: 0 0 1.5rem;
  opacity: 0.85;
}
.checkout-modal__form {
  display: flex; flex-direction: column; gap: 0.75rem;
}
.checkout-modal__form input[type="email"] {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg, #000);
  color: var(--text, #c8e6c9);
  border: 2px solid var(--muted, #0d4f1c);
}
.checkout-modal__form input[type="email"]:focus {
  outline: none; border-color: var(--accent, #00FF41);
}
.checkout-modal__form input[aria-invalid="true"] { border-color: #ff6b6b; }
.checkout-modal__form .btn { justify-content: center; }
.checkout-modal__form .btn[disabled] { opacity: 0.55; cursor: progress; }
.checkout-modal__error {
  display: none; color: #ff6b6b; font-size: 0.85rem; margin: 0;
}
.checkout-modal__error.is-visible { display: block; }
.checkout-modal__fineprint {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem; color: var(--muted, #0d4f1c);
  text-align: center; margin: 1.25rem 0 0;
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .checkout-modal__panel { padding: 1.5rem 1.25rem 1.25rem; }
}
