/* mma. - brand stylesheet. Single dark theme, by design - see CLAUDE.md before changing tokens. */

:root {
  --bg: #121212;
  --bg-raised: #1a1a1a;
  --bg-sunken: #0a0a0a;
  --red: #e8232f;
  --red-bright: #f6323f;
  --red-deep: #7a1119;
  --white: #f1f1f2;
  --grey: #a1a1a1;
  --grey-faint: #666668;
  --line: rgba(255, 255, 255, 0.08);

  --font-display: 'General Sans', 'Switzer', -apple-system, 'Inter', system-ui, sans-serif;
  --font-body: var(--font-display);
  --font-mono: 'Space Mono', 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  --container: 1120px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: #fff; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 16px;
}
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.02; font-weight: 800; max-width: 22ch; }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.1; max-width: 22ch; }
h3 { font-size: 20px; }
p { margin: 0 0 16px; color: var(--grey); }
p.lead { font-size: 18px; color: var(--grey); max-width: 56ch; }
strong { color: var(--white); font-weight: 600; }

.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- eyebrow / index tags ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--red); display: inline-block; }

.index-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-faint);
  display: block;
  margin-bottom: 14px;
}

/* ---------- outline/fill heading treatment ---------- */
.headline-outline {
  -webkit-text-stroke: 1px var(--white);
  color: transparent;
  display: block;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.headline-fill { color: var(--red); display: block; }

/* ---------- corner bracket frame ---------- */
.bracket-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.bracket-frame.lg { padding: 44px; }
.bracket-frame::before,
.bracket-frame::after,
.bracket-frame .corner-tl,
.bracket-frame .corner-br { display: none; } /* placeholder to keep specificity simple */
.bracket-frame .corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--grey-faint);
  z-index: 2;
}
.bracket-frame .corner.tl { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.bracket-frame .corner.tr { top: -1px; right: -1px; border-top: 1px solid; border-right: 1px solid; }
.bracket-frame .corner.bl { bottom: -1px; left: -1px; border-bottom: 1px solid; border-left: 1px solid; }
.bracket-frame .corner.br { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }

/* ---------- red glow ---------- */
.glow-wrap { position: relative; overflow: hidden; }
.glow {
  position: absolute;
  pointer-events: none;
  background: radial-gradient(circle, var(--red-deep) 0%, transparent 70%);
  opacity: 0.55;
  z-index: 0;
}
.glow.top-right { top: -220px; right: -220px; width: 520px; height: 520px; }
.glow.center { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 460px; height: 460px; opacity: 0.35; }

/* ---------- header / nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 18, 18, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo-lockup { display: flex; align-items: center; gap: 12px; }
.logo-lockup img, .logo-lockup svg { width: 44px; height: auto; }
.logo-text { line-height: 1.15; }
.logo-text .name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--white); text-transform: lowercase; }
.logo-text .sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--grey-faint); text-transform: uppercase; }

nav.main-nav { display: flex; align-items: center; gap: 32px; }
nav.main-nav a.nav-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.15s ease;
}
nav.main-nav a.nav-link:hover, nav.main-nav a.nav-link.active { color: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-bright); }
.btn-ghost { border-color: var(--line); color: var(--white); }
.btn-ghost:hover { border-color: var(--grey-faint); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; color: var(--white); cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  padding: 56px 0;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
}
.hero > .hero-inner { width: 100%; }
.hero-inner { position: relative; z-index: 1; }
.hero p.lead { margin: 22px 0 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-strip .stat { background: var(--bg-raised); padding: 18px 16px; }
.stat-strip .stat .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-faint); margin-bottom: 8px; }
.stat-strip .stat .v { font-size: 17px; font-weight: 700; color: var(--white); }

/* ---------- sections ---------- */
section { padding: 84px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }
section header.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
section header.section-head h2 { margin-bottom: 10px; }

/* ---------- numbered service cards ---------- */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-card { background: var(--bg-raised); padding: 32px; position: relative; }
.service-card .num { font-family: var(--font-mono); font-size: 13px; color: var(--red); margin-bottom: 18px; display: block; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { margin-bottom: 0; font-size: 14.5px; }

/* ---------- pricing strip ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pricing-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pricing-group { margin-bottom: 40px; }
.pricing-group .group-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-faint); margin-bottom: 14px; }
.price-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; }
.price-card.featured {
  background: linear-gradient(180deg, var(--red-deep) 0%, #2a0d10 55%, var(--bg-sunken) 100%);
  border-color: var(--red);
  position: relative;
}
.price-card .tier-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.price-card.featured .tier-name { color: var(--white); }
.price-card .tag { font-size: 9.5px; background: var(--red); color: #fff; padding: 2px 7px; border-radius: 20px; }
.price-card .price { font-family: var(--font-mono); font-size: 34px; font-weight: 700; color: var(--white); margin: 8px 0 4px; }
.price-card .price small { font-size: 14px; color: var(--grey-faint); font-weight: 400; }
.price-card .for { font-size: 13px; color: var(--grey-faint); margin-bottom: 20px; }
.price-card ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.price-card li { font-size: 14px; color: var(--grey); padding: 8px 0; border-top: 1px solid var(--line); }
.price-card.featured li { border-top-color: rgba(255,255,255,0.12); color: #e8dede; }
.price-card li:first-child { border-top: none; }

.addon-note {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--grey);
}
.addon-note .plus { color: var(--red); font-family: var(--font-mono); margin-right: 4px; }
.price-card.featured .addon-note { border-top-color: rgba(255,255,255,0.12); color: #e8dede; }

/* ---------- circular badge ---------- */
.badge-circle { width: 168px; height: 168px; position: relative; }
.badge-circle svg { width: 100%; height: 100%; }
.badge-circle .badge-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.badge-circle .badge-center .from { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: var(--grey); text-transform: uppercase; }
.badge-circle .badge-center .price { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--red); }
.badge-circle .badge-center .tag { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.08em; color: var(--grey-faint); text-transform: uppercase; }

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid var(--line); padding: 6px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 16px 0; font-family: var(--font-display); font-weight: 600; color: var(--white); display: flex; justify-content: space-between; align-items: center; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); color: var(--red); font-size: 20px; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-body { padding: 0 0 20px; font-size: 14.5px; color: var(--grey); max-width: 68ch; }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-faint); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field textarea { resize: vertical; min-height: 90px; }
.honeypot { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
footer.site-footer { background: var(--bg-sunken); border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 40px; border-top: 1px solid var(--line); }
.footer-col .index-tag { display: block; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--grey); padding: 5px 0; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { margin-top: 40px; font-size: 12.5px; color: var(--grey-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.divider { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* ---------- responsive ---------- */

/* Larger screens: give the logo more breathing room from the edge */
@media (min-width: 641px) {
  header.site-header .nav-row { padding-left: 40px; }
}

/* Tablet and below: tighten the rhythm, keep multi-column where it still fits */
@media (max-width: 1024px) {
  .hero { padding: 48px 0; }
  section { padding: 64px 0; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile nav + single-column layouts */
@media (max-width: 860px) {
  .card-grid, .pricing-grid { grid-template-columns: 1fr; }
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    display: none;
    max-height: 80vh;
    overflow-y: auto;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .footer-grid { flex-direction: column; }
  .footer-cta { flex-direction: column; align-items: flex-start; }
}

/* Small phones: reclaim wasted vertical space, guarantee no overflow */
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .nav-row { padding-bottom: 26px; }
  .hero { padding: 40px 0; }
  section { padding: 48px 0; }
  .stat-strip .stat { padding: 14px 12px; }
  .service-card { padding: 24px; }
  .price-card { padding: 22px 20px; }
  .bracket-frame { padding: 24px; }
  .bracket-frame.lg { padding: 28px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; text-align: center; justify-content: center; }
  .badge-circle { margin: 0 auto; }
  .glow.top-right { width: 320px; height: 320px; top: -140px; right: -140px; }
}

/* Very small phones (older/smaller devices) */
@media (max-width: 360px) {
  h1 { font-size: clamp(30px, 9vw, 38px); }
}
