/* malta-iptv — site styles */
:root {
  --ink: #0e1116;
  --ink-2: #151a22;
  --ink-3: #1d2430;
  --line: rgba(233, 220, 196, 0.12);
  --line-strong: rgba(233, 220, 196, 0.22);
  --stone: #e9dcc4;
  --stone-dim: #b9ae9a;
  --muted: #8f939c;
  --red: #d8423f;
  --red-deep: #a92f2d;
  --gold: #e7b65a;
  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "Figtree", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--stone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  /* fixed grain overlay */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: #f5ecdc;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stone-dim);
  margin-bottom: 1.2rem;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(216, 66, 63, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(216, 66, 63, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(216, 66, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 66, 63, 0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #e35552; transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-strong); color: var(--stone); background: transparent; }
.btn-ghost:hover { border-color: var(--stone); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 17, 22, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f5ecdc;
}
.brand b { font-weight: 800; color: var(--red); }
.brand .cross {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--red);
  display: grid; place-items: center;
}
.brand .cross svg { width: 16px; height: 16px; fill: #fff; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none;
  color: var(--stone-dim);
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: #f5ecdc; background: var(--ink-3); }
.header-cta { padding: 10px 18px; font-size: 0.92rem; }
.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--stone);
  border-radius: 10px;
  width: 44px; height: 40px;
  cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .header-cta { display: none; }
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    padding: 12px 20px 20px;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
}

/* Sections */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-alt { background: var(--ink-2); border-block: 1px solid var(--line); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  width: 760px; height: 760px;
  right: -220px; top: -260px;
  background: radial-gradient(closest-side, rgba(216, 66, 63, 0.22), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lede { font-size: 1.2rem; color: var(--stone-dim); max-width: 34ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2rem; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--gold); }

.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.8s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.18s; }
.reveal.d3 { animation-delay: 0.28s; }
.reveal.d4 { animation-delay: 0.4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Hero "screen" — CSS-built TV guide */
.screen {
  position: relative;
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(160deg, #262d39, #12161d);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(0,0,0,0.4) inset;
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
  transition: transform 0.6s ease;
}
.screen:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.screen-inner { border-radius: 12px; overflow: hidden; background: #0a0d12; }
.now-playing {
  position: relative;
  aspect-ratio: 16 / 8;
  background:
    radial-gradient(120% 90% at 20% 110%, rgba(231,182,90,0.55), transparent 55%),
    radial-gradient(90% 80% at 85% 0%, rgba(216,66,63,0.6), transparent 60%),
    linear-gradient(135deg, #1c3b4f, #0d1a24);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.now-playing::after {
  /* scanlines */
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 3px);
}
.badge-live {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  background: var(--red);
  color: #fff;
  padding: 4px 9px;
  border-radius: 5px;
  display: inline-flex; gap: 6px; align-items: center;
}
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.now-title { position: relative; z-index: 1; }
.now-title small { font-family: var(--mono); font-size: 0.72rem; color: rgba(255,255,255,0.7); letter-spacing: 0.1em; text-transform: uppercase; }
.now-title strong { display: block; font-family: var(--display); font-size: 1.5rem; color: #fff; line-height: 1.1; }
.progress { height: 3px; background: rgba(255,255,255,0.18); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 62%; background: #fff; animation: prog 12s linear infinite; }
@keyframes prog { from { width: 38%; } to { width: 88%; } }
.guide { padding: 6px 0; }
.guide-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.82rem;
}
.guide-row .ch { font-family: var(--mono); color: var(--muted); padding: 9px 12px; font-size: 0.75rem; }
.guide-row .slots { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 4px; padding: 5px 8px 5px 0; }
.guide-row .slots span {
  background: #161c25;
  border-radius: 5px;
  padding: 5px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--stone-dim);
}
.guide-row .slots span.on { background: rgba(216,66,63,0.18); color: #f5ecdc; box-shadow: inset 2px 0 0 var(--red); }
.screen-stand { width: 34%; height: 14px; margin: 0 auto; background: linear-gradient(#20262f, #12161d); border-radius: 0 0 10px 10px; }

/* Marquee */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--red);
  color: #fff;
  overflow: hidden;
  padding: 16px 0;
}
.ticker-track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
.ticker-track span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 22px;
  display: inline-flex; align-items: center; gap: 44px;
  white-space: nowrap;
}
.ticker-track span::after { content: "✦"; font-size: 0.8rem; opacity: 0.7; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 32px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: #f5ecdc; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Feature bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.section-alt .tile { background: var(--ink); }
.tile:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.tile p { color: var(--muted); margin: 0; }
.tile .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--ink-3);
  color: var(--gold);
  margin-bottom: 22px;
}
.tile .icon svg { width: 22px; height: 22px; }
.tile.span-4 { grid-column: span 4; }
.tile.span-3 { grid-column: span 3; }
.tile.span-2 { grid-column: span 2; }
.tile.feature-big { background: linear-gradient(140deg, #2a1515, var(--ink-2) 60%); }
.tile.feature-big h3 { font-size: 2rem; }
.tile .big-num { font-family: var(--display); font-size: 4.4rem; font-weight: 800; color: var(--red); line-height: 1; letter-spacing: -0.04em; margin-bottom: 10px; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.span-4, .tile.span-3, .tile.span-2 { grid-column: span 2; }
}
@media (min-width: 560px) and (max-width: 900px) {
  .tile.span-2 { grid-column: span 1; }
}

/* Devices */
.devices { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--stone);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}
.chip:hover { background: var(--ink-3); border-color: var(--stone-dim); }
.chip svg { width: 18px; height: 18px; color: var(--gold); }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split, .hero-grid { grid-template-columns: 1fr; } .screen { transform: none; } }

/* Pricing */
.toggle {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  margin-bottom: 36px;
}
.toggle button {
  background: none; border: 0;
  color: var(--stone-dim);
  font: 600 0.95rem var(--body);
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.toggle button[aria-selected="true"] { background: var(--stone); color: var(--ink); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plans.three { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
.plans[hidden] { display: none; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  transition: transform 0.3s, border-color 0.3s;
}
.plan:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.plan.featured { background: linear-gradient(180deg, #2b1717, var(--ink-2) 70%); border-color: rgba(216,66,63,0.55); }
.plan .ribbon {
  position: absolute; top: -12px; left: 26px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--red); color: #fff;
  padding: 5px 10px; border-radius: 6px;
}
.plan .ribbon.gold { background: var(--gold); color: var(--ink); }
.plan .term { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--stone-dim); margin-bottom: 18px; }
.plan .price { font-family: var(--display); font-size: 3.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #f5ecdc; }
.plan .price small { font-size: 1.1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .per { color: var(--muted); font-size: 0.9rem; margin: 8px 0 22px; min-height: 1.5em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; font-size: 0.95rem; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--gold); }
.plan .btn { margin-top: auto; }
.fine { color: var(--muted); font-size: 0.88rem; margin-top: 22px; }
@media (max-width: 1000px) { .plans, .plans.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .plans, .plans.three { grid-template-columns: 1fr; } }

/* Payment callout */
.callout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
  padding: 26px 30px;
  border-radius: var(--radius);
  border: 1px dashed rgba(231,182,90,0.45);
  background: rgba(231,182,90,0.06);
}
.callout .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--gold); color: var(--ink); display: grid; place-items: center; }
.callout .icon svg { width: 26px; height: 26px; }
.callout h3 { margin-bottom: 4px; }
.callout p { margin: 0; color: var(--stone-dim); }
@media (max-width: 760px) { .callout { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.step { padding: 0 30px 0 0; position: relative; }
.step .num {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.3rem;
  margin-bottom: 24px;
  background: var(--ink);
  position: relative; z-index: 1;
}
.step:first-child .num { background: var(--red); border-color: var(--red); color: #fff; }
.step::before {
  content: ""; position: absolute; top: 28px; left: 56px; right: 0;
  border-top: 1px dashed var(--line-strong);
}
.step:last-child::before { display: none; }
.step p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 36px; } .step::before { display: none; } }

/* Channel lists */
.lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.list-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ink-2);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.section-alt .list-card { background: var(--ink); }
.list-card:hover { border-color: var(--red); transform: translateY(-3px); }
.list-card p { color: var(--muted); margin: 0; }
.list-card .go { font-family: var(--mono); font-size: 0.82rem; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.faq-list details, .accordion details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child, .accordion details:first-child { border-top: 1px solid var(--line); }
details summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: #f5ecdc;
  position: relative;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "";
  position: absolute; right: 6px; top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--stone-dim);
  border-bottom: 2px solid var(--stone-dim);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s;
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--red); }
details .answer { padding: 0 0 22px; color: var(--stone-dim); max-width: 70ch; }
details .answer a { color: var(--gold); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 20px; } }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(40px, 7vw, 80px);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(231,182,90,0.35), transparent 60%),
    linear-gradient(120deg, var(--red-deep), var(--red));
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 30px;
  align-items: end;
}
.cta-band h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); margin: 0 0 0.3em; }
.cta-band p { margin: 0; opacity: 0.9; font-size: 1.1rem; max-width: 46ch; }
.cta-band .btn-primary { background: #fff; color: var(--red-deep); }
.cta-band .btn-primary:hover { background: var(--stone); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Page header (inner pages) */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 18ch; }
.page-hero p { color: var(--stone-dim); font-size: 1.15rem; max-width: 60ch; margin: 0; }
.crumbs { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.4rem; }
.crumbs a { text-decoration: none; color: var(--stone-dim); }
.crumbs a:hover { color: var(--red); }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--stone-dim); }
.prose a { color: var(--gold); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose code, .prose kbd { font-family: var(--mono); font-size: 0.9em; background: var(--ink-3); padding: 2px 6px; border-radius: 5px; color: var(--stone); }

/* Order layout + forms */
.order-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; } }
.panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}
.panel h2 { font-size: 1.6rem; }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field label, .field .label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--stone-dim);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--stone);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--stone-dim) 50%), linear-gradient(135deg, var(--stone-dim) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(231,182,90,0.18); }
.field input:user-invalid, .field select:user-invalid { border-color: var(--red); }
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.options { display: grid; gap: 10px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option label {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--stone);
  font-size: 1rem; font-weight: 500;
  margin: 0;
  transition: border-color 0.2s, background 0.2s;
}
.option label b { font-family: var(--display); font-size: 1.2rem; }
.option input:checked + label { border-color: var(--red); background: rgba(216,66,63,0.1); }
.option input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.hidden-field { position: absolute; left: -9999px; }

.aside-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.aside-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; color: var(--stone-dim); }
.aside-list .n { width: 34px; height: 34px; border-radius: 50%; background: var(--ink-3); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--stone); }
.aside-list strong { color: #f5ecdc; display: block; }
.email-box {
  margin-top: 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.92rem;
  flex-wrap: wrap;
}
.email-box a { color: var(--gold); text-decoration: none; word-break: break-all; }
.copy-btn {
  background: var(--ink-3); color: var(--stone); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 6px 12px; font: 600 0.8rem var(--body); cursor: pointer;
}
.copy-btn:hover { border-color: var(--stone); }
.notice {
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  background: rgba(231,182,90,0.08);
  border: 1px solid rgba(231,182,90,0.35);
  color: var(--stone);
}
.notice[hidden] { display: none; }
.notice pre {
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 0.85rem;
  background: var(--ink);
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0;
  color: var(--stone-dim);
}

/* Setup accordion */
.accordion details .answer p { margin-bottom: 0.8em; }
.accordion details .answer ol, .accordion details .answer ul { padding-left: 1.3em; }
.accordion summary .tag { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-left: 10px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 36px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--stone-dim); }
.footer-grid a:hover { color: var(--red); }
.footer-grid p { color: var(--muted); max-width: 34ch; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  color: var(--muted); font-size: 0.9rem;
}
.footer-bottom a { color: var(--muted); text-decoration: none; margin-left: 18px; }
.footer-bottom a:hover { color: var(--stone); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
