/* ============================================================
   Fontcast marketing — design "1a" (dark, product-continuous)
   Tokens mirror the handoff (README.md / Fontcast - Marketing.dc.html).
   Plain static CSS — no build step.
   ============================================================ */

:root {
  /* palette */
  --bg: #0f1012;
  --panel: #1a1b1e;
  --border: #2c2d31;
  --divider: #1f2023;
  --grid: #17181b;
  --text: #e7e7e4;
  --text-2: #a9aab0;
  --muted: #7c7d81;
  --faint: #5f6065;
  --accent: #f0503c;
  --accent-grad: linear-gradient(150deg, #f0503c, #c73320);
  --warm-wash: linear-gradient(160deg, #20130f, #1a1b1e);

  /* type */
  --ui: "Space Grotesk", sans-serif;
  --mono: "IBM Plex Mono", monospace;

  /* layout */
  --maxw: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ui);
  color: var(--text);
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  opacity: 0.85;
}

code {
  font-family: var(--mono);
  color: var(--text);
  font-size: 0.92em;
}

/* ------------------------------ buttons ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn-lg {
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 12px;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-glow {
  box-shadow: 0 10px 28px -10px var(--accent);
}
.btn-glow-sm {
  box-shadow: 0 10px 28px -12px var(--accent);
}
.btn-outline {
  border-color: var(--border);
  color: var(--text);
}
.btn-outline-accent {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-dark {
  background: var(--bg);
  color: #fff;
  border-radius: 13px;
}
.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  border-radius: 11px;
  font-size: 14px;
}
.link-muted {
  font-size: 13.5px;
  color: var(--text-2);
}

/* ------------------------------ nav ------------------------------ */
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.mark-sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.mark svg {
  position: relative;
}
/* dotted "raster" texture on the tile's left half */
.mark-raster {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1.4px, transparent 1.7px);
  background-size: 8px 8px;
}
.nav-links {
  display: flex;
  gap: 26px;
  font-size: 13.5px;
  color: var(--text-2);
  margin: 0 auto;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ------------------------------ hero ------------------------------ */
.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 40px 8px;
  text-align: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  margin-bottom: 26px;
}
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: fc-pulse 1.6s infinite;
}
.hero-title {
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 auto 22px;
  max-width: 860px;
}
.accent {
  color: var(--accent);
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0 auto 30px;
  max-width: 600px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.hero-micro {
  margin-top: 18px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--muted);
}

/* ------------------------ hero transformation ------------------------ */
.transform-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 44px 40px 76px;
}
.transform {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.75);
}
.transform-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.transform-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}
.stage-canvas {
  border: 1px solid var(--border);
  border-radius: 14px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.stage-upload::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.8px);
  background-size: 10px 10px;
  animation: fc-shimmer 3s ease-in-out infinite;
}
.stage-trace {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
}
.nodes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.node {
  transform-box: fill-box;
  transform-origin: center;
  animation: fc-node 2.4s ease-in-out infinite;
}
.stage-cap {
  margin-top: 14px;
  text-align: center;
}
.stage-cap-num {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text);
}
.stage-cap-desc {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}
.tf-arrow {
  color: var(--accent);
  font-size: 24px;
  text-align: center;
  animation: fc-pulse 1.8s infinite;
}
.tf-arrow-2 {
  animation-delay: 0.5s;
}

/* specimen faces */
.specimen {
  position: relative;
}
.specimen.script {
  font-family: Pacifico, cursive;
}
.specimen.grotesk {
  font-weight: 700;
  letter-spacing: -0.03em;
}
.specimen.mono {
  font-family: var(--mono);
  font-weight: 500;
}
.specimen.serif {
  font-family: "Instrument Serif", serif;
}
.stage .specimen.script {
  font-size: clamp(34px, 4vw, 52px);
}
.specimen.blur {
  color: #8a8b90;
  filter: blur(1px);
}
.stage-trace .specimen {
  color: var(--text);
}
.grow-recolor {
  animation: fc-grow 5s ease-in-out infinite, fc-recolor 10s linear infinite;
  transform-origin: center;
}

/* ------------------------------ trust strip ------------------------------ */
.trust-strip {
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 20px 40px;
  text-align: center;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--faint);
}

/* ------------------------------ sections ------------------------------ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 40px 40px;
}
.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 44px;
}
.section-title.narrow {
  max-width: 620px;
}
.section-title.tc {
  text-align: center;
}
.section-head-center {
  text-align: center;
  margin-bottom: 40px;
}
.section-head-center .section-title {
  margin-bottom: 12px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-2);
  margin: 0 auto;
  max-width: 520px;
}

/* cards */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
}
.card-warm {
  background: var(--warm-wash);
}
.card-num {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
}
.card-title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-title {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.card-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
/* how-it-works cards use tighter padding + smaller body per the spec */
#how .card {
  padding: 26px;
}
#how .card-body {
  font-size: 14.5px;
}

/* ------------------------------ showcase ------------------------------ */
.specimen-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}
.specimen-tile {
  aspect-ratio: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
}
.specimen-tile .specimen {
  font-size: 34px;
}
.specimen-tile .specimen.script {
  font-size: 38px;
}
.specimen-tile .specimen.mono {
  font-size: 30px;
}
.specimen-tile .specimen.serif {
  font-size: 42px;
}
.specimen-cap {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
}

/* ------------------------------ pricing ------------------------------ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}
.price-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card-featured {
  background: linear-gradient(160deg, #241009, #1a1b1e);
  border-color: var(--accent);
}
.price-badge {
  position: absolute;
  top: -11px;
  left: 30px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
}
.price-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
}
.price-name.accent {
  color: var(--accent);
}
.price-amount {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 10px 0;
}
.price-unit {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.price-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.price-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
  color: #c9cace;
  flex: 1;
}
.price-feats-bright {
  color: var(--text);
}
.price-feats li {
  position: relative;
  padding-left: 20px;
}
.price-feats li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
.price-card .btn-block {
  margin-top: 26px;
}

/* fairness callout */
.fairness {
  max-width: 820px;
  margin: 28px auto 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.fairness-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(240, 80, 60, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fairness-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: #c9cace;
}
.fairness-body b {
  color: var(--text);
}
.pricing-foot {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}
.accent-link {
  color: var(--accent);
  font-weight: 600;
}

/* ------------------------------ faq ------------------------------ */
.faq {
  max-width: 760px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-plus {
  color: var(--accent);
  transition: transform 0.2s ease;
  font-size: 22px;
  line-height: 1;
}
.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}
.faq-item p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 14px 0 0;
}

/* ------------------------------ final cta ------------------------------ */
.final-cta {
  background: var(--accent-grad);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
}
.final-cta-inner {
  position: relative;
}
.final-cta-title {
  font-size: clamp(30px, 3.4vw, 46px);
  letter-spacing: -0.03em;
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
}
.final-cta-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 28px;
}

/* ------------------------------ footer ------------------------------ */
.footer {
  border-top: 1px solid var(--divider);
  padding: 36px 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.brand-sm {
  font-size: 18px;
  color: var(--text);
}
.footer-domain {
  font-family: var(--mono);
}
.footer-spacer {
  flex: 1;
}
.footer-links {
  display: flex;
  gap: 22px;
}

/* ============================================================
   Keyframes (subtle; disabled under prefers-reduced-motion)
   ============================================================ */
@keyframes fc-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.9; }
}
@keyframes fc-node {
  0%, 100% { opacity: 0.25; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes fc-grow {
  0%, 100% { transform: scale(0.5); }
  50% { transform: scale(1); }
}
@keyframes fc-recolor {
  0% { color: #f0503c; }
  25% { color: #3f7be0; }
  50% { color: #35c07a; }
  75% { color: #c77dff; }
  100% { color: #f0503c; }
}
@keyframes fc-shimmer {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}

/* ============================================================
   Responsive — tablet + mobile reflows (per handoff)
   ============================================================ */

/* tablet */
@media (max-width: 980px) {
  .nav,
  .hero,
  .section,
  .footer {
    padding-left: 28px;
    padding-right: 28px;
  }
  .transform-wrap {
    padding-left: 28px;
    padding-right: 28px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* transformation: 5-col row → vertical stack, arrows point down */
  .transform-grid {
    grid-template-columns: 1fr;
  }
  .stage-canvas {
    aspect-ratio: 1.6;
  }
  .tf-arrow {
    transform: rotate(90deg);
  }
}

/* mobile */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .nav {
    justify-content: space-between;
  }
  .nav-cta .link-muted {
    display: none;
  }
  .section {
    padding-top: 56px;
  }
  .grid-3,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 44px;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
  }
  .final-cta {
    padding: 48px 28px;
  }
  .fairness {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  /* keep stage 3 legible when its animation (which sets scale/color) is off */
  .grow-recolor {
    transform: none;
    color: var(--text);
  }
}
