/* ================================================================
   CV2Folio by Novion - application stylesheet
   Brand: paper + charcoal + a single teal accent.
   ================================================================ */

/* ─── Novion tokens (mirrored from brand-kit/code/tokens.css) ── */
:root {
  --primary:     17 17 17;
  --primary-50:  250 250 250;
  --primary-100: 244 244 245;
  --primary-200: 228 228 231;
  --primary-300: 161 161 170;
  --primary-400: 113 113 122;
  --primary-700: 39 39 42;
  --primary-800: 24 24 27;
  --primary-900: 9 9 11;

  --accent:     20 184 166;
  --accent-50:  240 253 250;
  --accent-100: 204 251 241;
  --accent-200: 153 246 228;
  --accent-700: 15 118 110;
  --accent-800: 17 94 89;

  --paper: 250 250 247;

  --ease-soft: cubic-bezier(.2, .65, .25, 1);
  --ease-out:  cubic-bezier(.22, .68, 0, 1.02);

  --shadow-card: 0 1px 2px rgb(0 0 0 / .04), 0 18px 48px -28px rgb(var(--primary) / .14);
  --shadow-lift: 0 2px 4px rgb(0 0 0 / .05), 0 24px 60px -28px rgb(var(--primary) / .22);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  color: rgb(var(--primary));
  background: rgb(var(--paper));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; list-style: none; }

/* ─── Paper grain overlay ───────────────────────────────── */
.novion-paper-grain { position: relative; }
.novion-paper-grain::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
  z-index: 1000;
  opacity: .35;
  mix-blend-mode: multiply;
}

/* ─── Dot grid hero background ──────────────────────────── */
.novion-dot-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgb(var(--primary) / .07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(60% 60% at 50% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, black, transparent 75%);
}

/* ─── Radiating dot + brand pulse ───────────────────────── */
@keyframes brand-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.92); }
}
.brand-dot { animation: brand-pulse 2.8s ease-in-out infinite; transform-origin: center; }

@keyframes ring-out {
  0%   { transform: scale(.6); opacity: .8; }
  100% { transform: scale(2.4); opacity: 0; }
}
.novion-dot {
  position: relative; display: inline-block;
  width: 6px; height: 6px; border-radius: 999px;
  background: rgb(var(--accent));
  flex-shrink: 0;
}
.novion-dot::after {
  content: ''; position: absolute; inset: -2px;
  border-radius: 999px; background: rgb(var(--accent));
  animation: ring-out 2s ease-out infinite;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

::selection { background: rgb(var(--accent-100)); color: rgb(var(--primary-800)); }
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: rgb(var(--paper)); }
::-webkit-scrollbar-thumb { background: rgb(var(--primary-200)); border-radius: 3px; }

/* ================================================================
   BRAND HEADER
   ================================================================ */
.brand-header {
  position: sticky; top: 0; z-index: 30;
  background: rgb(var(--paper) / .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(var(--primary-100));
}
.brand-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand-lockup { display: flex; align-items: center; gap: 10px; transition: opacity .2s var(--ease-soft); }
.brand-lockup:hover { opacity: .85; }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.brand-wordmark { line-height: 1; }
.brand-wordmark-row {
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.025em;
  margin-bottom: 3px;
}
.brand-wordmark-row .wm-a { color: rgb(var(--primary)); }
.brand-wordmark-row .wm-b { color: rgb(var(--primary-700)); }
.brand-by {
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgb(var(--primary-300));
  line-height: 1;
}
.brand-header-actions { display: flex; align-items: center; gap: 10px; }

.brand-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid rgb(var(--primary-100));
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgb(var(--primary-400));
  box-shadow: 0 1px 2px rgb(0 0 0 / .04);
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.005em;
  transition: transform .18s var(--ease-out), box-shadow .2s var(--ease-soft),
              background-color .2s var(--ease-soft), color .2s var(--ease-soft),
              border-color .2s var(--ease-soft);
  border: 1px solid transparent;
  background: #fff;
  color: rgb(var(--primary));
  border-color: rgb(var(--primary-200));
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { border-color: rgb(var(--primary-300)); box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-ghost { background: transparent; border-color: transparent; color: rgb(var(--primary-400)); }
.btn-ghost:hover { background: rgb(var(--primary-50)); color: rgb(var(--primary)); border-color: transparent; box-shadow: none; }

.btn-primary {
  background: rgb(var(--primary));
  color: rgb(var(--paper));
  border-color: rgb(var(--primary));
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / .14) 50%, transparent 65%);
  background-size: 200% 100%;
  animation: shimmer 4.5s linear infinite;
  pointer-events: none;
}
.btn-primary:hover { background: rgb(var(--primary-700)); border-color: rgb(var(--primary-700)); box-shadow: 0 10px 24px -10px rgb(var(--primary) / .35); }

.btn-accent { background: rgb(var(--accent)); color: #fff; border-color: rgb(var(--accent)); }
.btn-accent:hover { background: rgb(var(--accent-700)); border-color: rgb(var(--accent-700)); }

.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-xl { padding: 17px 28px; font-size: 16px; }

.btn-magnetic { will-change: transform; }

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* ================================================================
   SECTION DIVIDER (subtle hairline with the brand dot)
   ================================================================ */
.section-divider {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 0 24px;
  color: rgb(var(--primary-300));
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1; max-width: 240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(var(--primary-200)), transparent);
}

/* ================================================================
   LAYOUT
   ================================================================ */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ================================================================
   LANDING - Hero
   ================================================================ */
.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 50% -10%, rgb(var(--accent) / .08), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgb(var(--primary) / .04), transparent 70%);
}
.hero-glow-1, .hero-glow-2 {
  position: absolute; pointer-events: none; z-index: 0;
  filter: blur(80px); opacity: .55;
}
.hero-glow-1 {
  top: -120px; right: -60px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgb(var(--accent) / .32), transparent 60%);
}
.hero-glow-2 {
  bottom: -100px; left: -120px; width: 580px; height: 580px;
  background: radial-gradient(circle, rgb(var(--primary) / .09), transparent 60%);
}
/* Radial accent rays behind the portfolio card */
.hero-rays {
  position: absolute;
  z-index: 0; pointer-events: none;
  right: -10%; top: 50%;
  width: 700px; height: 700px;
  transform: translateY(-40%);
  background:
    conic-gradient(from 210deg at 50% 50%,
      rgb(var(--accent) / .12) 0deg,
      transparent 50deg,
      rgb(var(--accent) / .12) 90deg,
      transparent 140deg,
      rgb(var(--accent) / .10) 180deg,
      transparent 220deg);
  filter: blur(20px);
  mask-image: radial-gradient(circle at center, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 65%);
  opacity: .9;
}
@media (max-width: 760px) { .hero-rays { display: none; } }
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
}
.hero-inner { position: relative; z-index: 1; text-align: left; }
@media (max-width: 960px) { .hero-inner { text-align: center; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff;
  border: 1px solid rgb(var(--primary-100));
  border-radius: 999px;
  padding: 7px 14px 7px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgb(var(--primary-700));
  margin-bottom: 28px;
  box-shadow: 0 1px 2px rgb(0 0 0 / .04);
}
.hero-eyebrow .eyebrow-by {
  color: rgb(var(--primary-300));
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-left: 4px;
}

.hero-headline {
  font-weight: 900;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: rgb(var(--primary));
  max-width: 620px;
  margin: 0;
}
@media (max-width: 960px) { .hero-headline { margin: 0 auto; } }
.hero-headline .accent-italic {
  display: inline-block;
  position: relative;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: rgb(var(--accent-700));
  letter-spacing: -0.02em;
}
.hero-headline .accent-italic::after {
  content: "";
  position: absolute;
  left: 4%; right: 4%; bottom: -.04em;
  height: .12em;
  background: linear-gradient(90deg, transparent, rgb(var(--accent) / .35), transparent);
  border-radius: 999px;
  pointer-events: none;
}
.hero-sub {
  max-width: 540px;
  margin: 20px 0 0;
  font-size: 16.5px;
  color: rgb(var(--primary-400));
  line-height: 1.55;
}
@media (max-width: 960px) { .hero-sub { margin: 18px auto 0; } }
.hero-cta {
  display: flex; gap: 12px; align-items: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
@media (max-width: 960px) { .hero-cta { justify-content: center; } }
.hero-trust {
  display: inline-flex; align-items: center; gap: 16px;
  margin-top: 22px;
  font-size: 12.5px;
  color: rgb(var(--primary-400));
  flex-wrap: wrap;
}
.hero-eyebrow { margin-bottom: 20px; }
.hero-trust > span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .sep { width: 3px; height: 3px; border-radius: 50%; background: rgb(var(--primary-200)); }

/* ─── Hero composition: legacy (kept for fallback) ─── */
.hero-stage { display: none; }
@media (max-width: 760px) { .hero-stage { min-height: auto; padding: 0; margin-top: 36px; } }

.hero-arc {
  position: absolute;
  left: 50%; top: 38%;
  transform: translate(-50%, -50%);
  width: 78%; height: 60%;
  pointer-events: none;
  z-index: 0;
  opacity: .85;
}
.hero-arc svg { width: 100%; height: 100%; overflow: visible; }
.hero-arc path {
  stroke: rgb(var(--accent));
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 6 6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgb(var(--accent) / .25));
}

/* Floating chips (around the cards) */
.hero-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid rgb(var(--primary-100));
  border-radius: 999px;
  padding: 8px 14px 8px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgb(var(--primary-700));
  box-shadow: 0 8px 24px -10px rgb(var(--primary) / .18);
  z-index: 5;
  animation: float-y 7s ease-in-out infinite;
  white-space: nowrap;
}
.hero-chip .mono {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: rgb(var(--primary-400));
}
.hero-chip-1 { top: -8px; left: 6%; animation-delay: -2s; }
.hero-chip-2 { top: 18%; right: 4%; animation-delay: -4s; }
.hero-chip-3 { bottom: 6%; left: 10%; animation-delay: -1s; }
.hero-chip-4 { bottom: -4%; right: 12%; animation-delay: -3s; }
@media (max-width: 760px) {
  .hero-chip { display: none; }
}

/* The two stacked cards */
.hero-deck {
  position: relative;
  z-index: 2;
  min-height: 460px;
}
@media (max-width: 960px) { .hero-deck { min-height: 420px; } }
@media (max-width: 760px) { .hero-deck { min-height: auto; display: grid; grid-template-columns: 1fr; gap: 16px; } }

.hero-card {
  position: absolute;
  background: #fff;
  border: 1px solid rgb(var(--primary-100));
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 40px 80px -30px rgb(var(--primary) / .35);
  width: 86%; max-width: 380px;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-soft);
}

.hero-card-cv {
  top: 0; left: 0;
  transform: rotate(-5deg);
  z-index: 1;
}
.hero-card-cv:hover { transform: rotate(-3deg) translateY(-4px); }
.hero-card-portfolio {
  bottom: 0; right: 0;
  transform: rotate(3deg);
  z-index: 2;
  border: 2px solid rgb(var(--accent));
  box-shadow:
    0 1px 2px rgb(0 0 0 / .04),
    0 0 0 6px rgb(var(--accent) / .12),
    0 40px 90px -28px rgb(var(--accent) / .55);
}
.hero-card-portfolio:hover { transform: rotate(1.5deg) translateY(-4px); }
@media (max-width: 760px) {
  .hero-card { position: relative; width: 100%; max-width: 100%; }
}
@media (max-width: 760px) {
  .hero-card-cv, .hero-card-portfolio { transform: none !important; max-width: 100%; }
}

.hero-card-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: rgb(var(--primary-50));
  border-bottom: 1px solid rgb(var(--primary-100));
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  color: rgb(var(--primary-400));
  letter-spacing: .04em;
}
.hero-card-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--primary-200)); }
.hero-card-bar .label { margin-left: 6px; }
.hero-card-portfolio .hero-card-bar { background: rgb(var(--accent-50)); border-bottom-color: rgb(var(--accent-200)); }
.hero-card-portfolio .hero-card-bar .label { color: rgb(var(--accent-700)); }

.hero-card-body { padding: 20px 22px 22px; }

.cv-h2 {
  font-family: "Geist Mono", monospace;
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgb(var(--primary-300));
  margin-bottom: 5px;
}
.cv-name {
  font-weight: 700; font-size: 16px; letter-spacing: -.01em;
  color: rgb(var(--primary));
}
.cv-role { font-size: 11.5px; color: rgb(var(--primary-400)); margin-top: 2px; }
.cv-line { height: 6px; border-radius: 3px; background: rgb(var(--primary-100)); }
.cv-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }

.po-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 9.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .18em;
  color: rgb(var(--accent-700));
  margin-bottom: 8px;
}
.po-headline {
  font-weight: 900;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: rgb(var(--primary));
}
.po-headline em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400;
  color: rgb(var(--accent-700));
}
.po-typed::after {
  content: "▍";
  color: rgb(var(--accent));
  margin-left: 2px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
.po-meta {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  color: rgb(var(--primary-400));
  margin-top: 6px;
}
.po-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.po-line { height: 6px; border-radius: 3px; background: rgb(var(--primary-100)); }
.po-line.w-90 { width: 90%; } .po-line.w-80 { width: 80%; }
.po-line.w-70 { width: 70%; } .po-line.w-60 { width: 60%; }

.cv-line.w-90 { width: 90%; } .cv-line.w-80 { width: 80%; }
.cv-line.w-70 { width: 70%; } .cv-line.w-60 { width: 60%; }
.cv-line.w-50 { width: 50%; } .cv-line.w-40 { width: 40%; }

/* ================================================================
   HERO SHOWCASE - realistic portfolio mockup w/ fanned alternates
   ================================================================ */
.hero-showcase {
  position: relative;
  width: 100%;
  min-height: 560px;
  perspective: 1400px;
}
@media (max-width: 960px) {
  .hero-showcase { min-height: auto; padding-top: 8px; }
}

/* Floating chips */
.showcase-source,
.showcase-badge {
  position: absolute;
  z-index: 6;
  background: #fff;
  border: 1px solid rgb(var(--primary-100));
  border-radius: 14px;
  box-shadow: 0 12px 32px -14px rgb(var(--primary) / .28);
  font-size: 12px;
  color: rgb(var(--primary-700));
}
.showcase-source {
  top: -22px; left: -28px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 12px;
  animation: float-y 7s ease-in-out infinite;
}
.showcase-source .pdf-icon {
  width: 22px; height: 22px;
  color: rgb(var(--primary-400));
}
.showcase-source .source-text { display: flex; flex-direction: column; line-height: 1.15; }
.showcase-source .source-label {
  font-family: "Geist Mono", monospace;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgb(var(--primary-300));
}
.showcase-source .source-file {
  font-family: "Geist Mono", monospace;
  font-size: 11.5px;
  color: rgb(var(--primary));
  font-weight: 500;
}
.showcase-badge {
  top: -18px; right: -24px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  animation: float-y 8s ease-in-out infinite;
  animation-delay: -2s;
}
.showcase-badge strong { color: rgb(var(--primary)); font-weight: 700; }

.showcase-styles {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid rgb(var(--primary-100));
  border-radius: 999px;
  box-shadow: 0 10px 28px -12px rgb(var(--primary) / .22);
}
.showcase-styles .style-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgb(var(--primary-200));
  transition: all .35s var(--ease-out);
}
.showcase-styles .style-dot.active {
  background: rgb(var(--accent));
  box-shadow: 0 0 0 4px rgb(var(--accent) / .2);
  transform: scale(1.15);
}
.showcase-styles .styles-label {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgb(var(--primary-400));
  margin-left: 4px;
}

/* Background fanned cards */
.showcase-bg-card {
  position: absolute;
  width: 78%;
  max-width: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 24px 60px -28px rgb(var(--primary) / .35);
  z-index: 1;
  opacity: .92;
}
.bg-card-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px;
}
.bg-card-bar .dot { width: 7px; height: 7px; border-radius: 50%; }
.bg-card-body { padding: 14px 18px 20px; }

.showcase-bg-editorial {
  left: -56px; top: 120px;
  width: 200px;
  transform: rotate(-9deg);
  background: #F5EFE3;
  border: 1px solid #E6DDC9;
}
.showcase-bg-editorial .bg-card-bar { background: #EFE7D4; }
.showcase-bg-editorial .bg-card-bar .dot { background: #C8BC9D; }
.edit-eyebrow {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 12px;
  color: #8A7D5A;
  margin-bottom: 4px;
}
.edit-name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 24px;
  line-height: 1;
  color: #2A2014;
  margin-bottom: 10px;
}
.edit-quote {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 12.5px;
  line-height: 1.45;
  color: #4A3F2A;
}
.edit-drop {
  font-size: 28px;
  float: left;
  line-height: .9;
  padding-right: 4px;
  color: rgb(var(--accent-700));
}

.showcase-bg-terminal {
  right: -52px; bottom: 80px;
  width: 220px;
  transform: rotate(7deg);
  background: #0E1612;
  border: 1px solid #1F2A24;
}
.showcase-bg-terminal .bg-card-bar { background: #131C18; border-bottom: 1px solid #1F2A24; }
.showcase-bg-terminal .bg-card-bar .dot { background: #2A3A32; }
.term-line {
  font-family: "Geist Mono", monospace;
  font-size: 11.5px;
  line-height: 1.65;
  color: #D9E5DF;
}
.term-prompt { color: rgb(var(--accent)); margin-right: 8px; }
.term-out { color: #8FB3A4; }
.term-blink {
  display: inline-block; width: 7px; height: 12px;
  background: rgb(var(--accent));
  margin-left: 4px;
  vertical-align: -1px;
  animation: blink 1.05s steps(1) infinite;
}

/* Foreground featured card */
.showcase-card {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgb(var(--primary-100));
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgb(0 0 0 / .04),
    0 8px 20px -8px rgb(var(--primary) / .12),
    0 50px 100px -30px rgb(var(--primary) / .45);
  transform: rotateY(-2deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-soft);
}
.showcase-card:hover { transform: rotateY(0deg) rotateX(0deg) translateY(-4px); }

.showcase-card-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: rgb(var(--primary-50));
  border-bottom: 1px solid rgb(var(--primary-100));
}
.showcase-card-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--primary-200)); }
.showcase-card-bar .dot:nth-child(1) { background: #F1B8B8; }
.showcase-card-bar .dot:nth-child(2) { background: #F1DDB8; }
.showcase-card-bar .dot:nth-child(3) { background: #BDE4CE; }
.showcase-url {
  margin-left: 10px;
  flex: 1;
  background: #fff;
  border: 1px solid rgb(var(--primary-100));
  border-radius: 8px;
  padding: 6px 12px;
  font-family: "Geist Mono", monospace;
  font-size: 11.5px;
  color: rgb(var(--primary-400));
  display: flex; align-items: center; gap: 6px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.showcase-url .lock { font-size: 10px; }
.showcase-url strong { color: rgb(var(--primary)); font-weight: 600; }

.showcase-card-body {
  padding: 28px 28px 24px;
  background:
    radial-gradient(60% 50% at 90% 10%, rgb(var(--accent) / .07), transparent 70%),
    #fff;
}

.showcase-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em;
  color: rgb(var(--accent-700));
  margin-bottom: 12px;
}

.showcase-name {
  font-weight: 900;
  font-size: clamp(34px, 3.8vw, 46px);
  line-height: .96;
  letter-spacing: -.04em;
  color: rgb(var(--primary));
  margin: 0;
}

.showcase-tagline {
  margin: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.4;
  color: rgb(var(--primary-700));
}
.showcase-tagline em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: rgb(var(--accent-700));
  font-size: 1.08em;
}

.showcase-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 18px;
}
.sc-chip {
  font-size: 10.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgb(var(--primary-50));
  border: 1px solid rgb(var(--primary-100));
  color: rgb(var(--primary-700));
}
.sc-chip:last-child {
  background: rgb(var(--accent) / .12);
  border-color: rgb(var(--accent-200));
  color: rgb(var(--accent-700));
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto auto;
  gap: 8px;
  margin-top: 18px;
}
.sc-tile {
  position: relative;
  padding: 14px 14px 14px;
  border-radius: 12px;
  border: 1px solid rgb(var(--primary-100));
  display: flex; flex-direction: column; gap: 8px;
  min-height: 76px;
  transition: transform .25s var(--ease-out);
  overflow: hidden;
}
.sc-tile:hover { transform: translateY(-2px); }
.sc-tile-tag {
  font-family: "Geist Mono", monospace;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgb(var(--primary-400));
}
.sc-tile-title {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -.01em;
  color: rgb(var(--primary));
  line-height: 1.2;
}
.sc-tile-1 {
  grid-row: 1 / 3;
  background: linear-gradient(160deg, rgb(var(--accent) / .16), rgb(var(--accent) / .04));
  border-color: rgb(var(--accent-200));
  justify-content: space-between;
}
.sc-tile-1::after {
  content: "";
  position: absolute;
  right: -30px; bottom: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--accent) / .35), transparent 70%);
  pointer-events: none;
}
.sc-tile-1 .sc-tile-tag { color: rgb(var(--accent-700)); }
.sc-tile-1 .sc-tile-title { font-size: 16px; }
.sc-tile-1 .sc-tile-meta {
  font-family: "Geist Mono", monospace;
  font-size: 9.5px;
  color: rgb(var(--accent-700));
  letter-spacing: .12em;
  text-transform: uppercase;
  z-index: 1;
}
.sc-tile-2 { background: #FAFAF7; }
.sc-tile-3 { background: rgb(var(--primary)); border-color: rgb(var(--primary)); }
.sc-tile-3 .sc-tile-tag { color: rgb(var(--primary-300)); }
.sc-tile-3 .sc-tile-title { color: #FAFAF7; }

.showcase-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgb(var(--primary-100));
}
.sc-foot-meta {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  color: rgb(var(--primary-400));
  text-transform: uppercase; letter-spacing: .14em;
}
.sc-foot-cta {
  font-weight: 600; font-size: 13px;
  color: rgb(var(--accent-700));
}

/* Mobile tuning for showcase */
@media (max-width: 960px) {
  .hero-showcase { margin: 0 auto; max-width: 520px; }
}
@media (max-width: 640px) {
  .showcase-bg-card { display: none; }
  .showcase-source { left: 4px; top: -4px; }
  .showcase-badge { right: 4px; top: 14px; }
  .showcase-card { transform: none; max-width: 100%; }
  .showcase-card:hover { transform: translateY(-2px); }
  .showcase-card-body { padding: 22px 20px 20px; }
  .showcase-name { font-size: 32px; }
  .showcase-tagline { font-size: 14.5px; }
  .showcase-styles { bottom: -16px; }
  .showcase-grid { min-height: 120px; }
  .sc-tile-1 .sc-tile-title { font-size: 14.5px; }
}

/* ================================================================
   STATS STRIP - dark contrast band
   ================================================================ */
.stats-band {
  margin: 0 24px;
  background: rgb(var(--primary));
  color: rgb(var(--paper));
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgb(var(--primary) / .5);
}
.stats-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / .045) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(80% 80% at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, black, transparent 80%);
  pointer-events: none;
}
.stats-band::after {
  content: "";
  position: absolute; top: -120px; right: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgb(var(--accent) / .25), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.stats-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  z-index: 1;
}
@media (max-width: 820px) { .stats-strip { grid-template-columns: 1fr 1fr; } }

.stat {
  padding: 40px 24px;
  text-align: center;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute; left: 0; top: 24%; bottom: 24%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgb(var(--paper) / .12), transparent);
}
@media (max-width: 820px) {
  .stat:nth-child(3)::before { content: none; }
}
.stat-num {
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -.04em;
  line-height: 1;
  color: rgb(var(--paper));
  display: inline-flex; align-items: baseline; gap: 5px;
}
.stat-num em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400;
  color: rgb(var(--accent));
}
.stat-num .unit {
  font-family: "Geist Mono", monospace;
  font-size: 14px; font-weight: 500;
  color: rgb(var(--accent));
  letter-spacing: 0;
}
.stat-label {
  margin-top: 12px;
  font-size: 11px;
  text-transform: uppercase; letter-spacing: .2em;
  color: rgb(var(--paper) / .55);
  font-weight: 500;
}

/* Legacy hero-preview kept hidden if still referenced */
.hero-preview { display: none; }
.hero-preview-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid rgb(var(--primary-100));
  background: rgb(var(--primary-50));
}
.hero-preview-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--primary-200)); }
.hero-preview-bar .url {
  margin-left: auto;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  color: rgb(var(--primary-400));
  background: #fff;
  border: 1px solid rgb(var(--primary-100));
  border-radius: 999px;
  padding: 4px 12px;
}
.hero-preview-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 320px;
}
.hpb-input, .hpb-output { padding: 28px; }
.hpb-input {
  background: rgb(var(--primary-50));
  border-right: 1px solid rgb(var(--primary-100));
  display: flex; flex-direction: column; gap: 10px;
}
.hpb-input .label {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: rgb(var(--primary-300)); margin-bottom: 4px;
}
.hpb-line { height: 9px; border-radius: 3px; background: rgb(var(--primary-200)); }
.hpb-line.w-90 { width: 90%; } .hpb-line.w-70 { width: 70%; }
.hpb-line.w-60 { width: 60%; } .hpb-line.w-80 { width: 80%; }
.hpb-line.w-45 { width: 45%; }

.hpb-output {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff;
}
.hpb-output .hpo-eyebrow {
  font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .18em;
  color: rgb(var(--accent-700));
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.hpb-output .hpo-headline {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: rgb(var(--primary));
}
.hpb-output .hpo-headline em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400;
  color: rgb(var(--accent-700));
}
.hpb-output .hpo-meta {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: rgb(var(--primary-400));
  margin-top: 2px;
}
.hpb-output .hpo-line { height: 8px; border-radius: 3px; background: rgb(var(--primary-100)); }
.hpb-output .hpo-line.w-90 { width: 90%; } .hpb-output .hpo-line.w-70 { width: 70%; }
.hpb-output .hpo-line.w-80 { width: 80%; } .hpb-output .hpo-line.w-60 { width: 60%; }

@media (max-width: 760px) {
  .hero-preview-body { grid-template-columns: 1fr; }
  .hpb-input { border-right: 0; border-bottom: 1px solid rgb(var(--primary-100)); }
}

/* ================================================================
   SECTION primitives
   ================================================================ */
section.block { padding: 96px 0; position: relative; }
section.block.tinted {
  background: linear-gradient(180deg, rgb(var(--primary-50) / .6), transparent);
  border-top: 1px solid rgb(var(--primary-100));
  border-bottom: 1px solid rgb(var(--primary-100));
}
section.block.dotted {
  background:
    radial-gradient(rgb(var(--primary) / .04) 1px, transparent 1px) 0 0 / 24px 24px,
    rgb(var(--primary-50) / .35);
  border-top: 1px solid rgb(var(--primary-100));
  border-bottom: 1px solid rgb(var(--primary-100));
}
@media (max-width: 720px) { section.block { padding: 72px 0; } }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Geist Mono", monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgb(var(--primary-400));
  margin-bottom: 14px;
}
.section-title {
  font-weight: 900;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: rgb(var(--primary));
  max-width: 720px;
}
.section-title em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400;
  color: rgb(var(--accent-700));
  letter-spacing: -0.02em;
}
.section-sub {
  max-width: 580px;
  margin-top: 14px;
  font-size: 16px;
  color: rgb(var(--primary-400));
}
.section-head { text-align: center; margin: 0 auto 56px; display: flex; flex-direction: column; align-items: center; }
.section-head .section-title, .section-head .section-sub { margin-left: auto; margin-right: auto; }

/* ================================================================
   STEPS
   ================================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 820px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card {
  position: relative;
  background: #fff;
  border: 1px solid rgb(var(--primary-100));
  border-radius: var(--radius-lg);
  padding: 36px 28px 30px;
  box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-soft);
  overflow: hidden;
}
.step-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgb(var(--accent)) 0%, rgb(var(--accent) / 0) 60%);
}
.step-card::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -80px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgb(var(--accent) / .08), transparent 65%);
  pointer-events: none;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.step-card:hover::before { background: linear-gradient(90deg, rgb(var(--accent)) 0%, rgb(var(--accent) / .4) 100%); }

.step-num {
  font-family: "Geist Mono", monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgb(var(--primary-300));
  position: absolute;
  top: 22px; right: 22px;
}

.step-icon-tile {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgb(var(--accent-50)), #fff);
  border: 1px solid rgb(var(--accent-200));
  color: rgb(var(--accent-700));
  margin-bottom: 18px;
}
.step-icon-tile.neutral {
  background: linear-gradient(180deg, #fff, rgb(var(--primary-50)));
  border-color: rgb(var(--primary-100));
  color: rgb(var(--primary-700));
}
.step-icon-tile svg { width: 22px; height: 22px; }

.step-title {
  font-size: 18px; font-weight: 700; letter-spacing: -.015em;
  color: rgb(var(--primary));
  margin-bottom: 8px;
}
.step-desc { font-size: 14.5px; color: rgb(var(--primary-400)); line-height: 1.55; }

/* ================================================================
   ARCHETYPES SHOWCASE
   ================================================================ */
.archetypes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .archetypes-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .archetypes-grid { grid-template-columns: 1fr; } }

.arche-card {
  background: #fff;
  border: 1px solid rgb(var(--primary-100));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-soft);
}
.arche-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.arche-preview {
  aspect-ratio: 4 / 3.4;
  border-bottom: 1px solid rgb(var(--primary-100));
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.arche-preview-storytelling {
  background:
    radial-gradient(120% 80% at 0% 0%, rgb(var(--accent) / .12), transparent 50%),
    linear-gradient(155deg, rgb(var(--accent-50)) 0%, #fff 60%);
}
.arche-preview-editorial {
  background:
    linear-gradient(180deg, #FBF8F2 0%, #F4EFE3 100%);
  border-bottom: 1px solid #EAE0CB;
}
.arche-preview-editorial::after {
  content: "";
  position: absolute; left: 24px; right: 24px; top: 88px;
  height: 1px; background: #C4B79A;
}
.arche-preview-terminal {
  background:
    radial-gradient(120% 80% at 100% 100%, rgb(var(--accent) / .14), transparent 50%),
    linear-gradient(165deg, #0B0F14 0%, #15191F 100%);
  color: #F2F2F2;
  border-bottom: 1px solid #0a0d11;
}
.arche-preview-terminal::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / .025) 1px, transparent 1px);
  background-size: 100% 22px;
  pointer-events: none;
}
.arche-preview-neo {
  background: #FFE3D2; position: relative;
  border-bottom: 2px solid #111;
}
.arche-preview-neo::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgb(0 0 0 / .12) 1px, transparent 1px);
  background-size: 14px 14px;
}

.arche-tag {
  position: absolute; top: 14px; right: 14px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .04em;
  background: rgb(255 255 255 / .85);
  border: 1px solid rgb(var(--primary-100));
  color: rgb(var(--primary-400));
  border-radius: 999px;
  padding: 3px 9px;
  z-index: 2;
}
.arche-preview-terminal .arche-tag { background: rgb(255 255 255 / .08); color: rgb(255 255 255 / .6); border-color: rgb(255 255 255 / .12); }
.arche-preview-neo .arche-tag { background: #fff; }

.arche-prev-name {
  font-weight: 900; font-size: 22px; letter-spacing: -.025em;
  color: rgb(var(--primary));
  position: relative; z-index: 1;
}
.arche-prev-name em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400;
  color: rgb(var(--accent-700));
}
.arche-prev-role {
  font-size: 12px; color: rgb(var(--primary-400));
  margin-top: 4px;
  text-transform: uppercase; letter-spacing: .14em;
  position: relative; z-index: 1;
}
.arche-prev-quote {
  margin-top: 14px; font-size: 13px; line-height: 1.5; color: rgb(var(--primary-700));
  position: relative; z-index: 1;
  max-width: 240px;
}

.arche-preview-editorial .arche-prev-name {
  font-family: Georgia, "Iowan Old Style", serif; font-weight: 700;
}
.arche-preview-editorial .arche-prev-quote { font-family: Georgia, serif; font-size: 14px; line-height: 1.5; }
.arche-preview-editorial .arche-prev-role { color: #8a7a55; }

.arche-preview-terminal .arche-prev-name,
.arche-preview-terminal .arche-prev-role,
.arche-preview-terminal .arche-prev-quote {
  font-family: "Geist Mono", "JetBrains Mono", monospace; color: #F2F2F2;
}
.arche-preview-terminal .arche-prev-role { color: #14B8A6; text-transform: none; letter-spacing: 0; }
.arche-preview-terminal .arche-prev-name::before { content: "$ "; color: #14B8A6; }
.arche-preview-terminal .arche-prev-quote { color: #B9C0C8; font-size: 12.5px; }

.arche-preview-neo .arche-prev-name {
  font-weight: 900; font-size: 28px;
  text-transform: uppercase; letter-spacing: -.02em; color: #111;
}
.arche-preview-neo .arche-prev-quote { color: #1a1a1a; font-weight: 500; }
.arche-preview-neo .arche-prev-role { color: #6b3a1f; }
.arche-preview-neo .neo-sticker {
  position: absolute;
  bottom: 18px; right: 18px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #111; color: #FFE3D2;
  display: grid; place-items: center;
  font-family: "Geist Mono", monospace;
  font-size: 9.5px; font-weight: 700;
  text-align: center; line-height: 1.1;
  border: 2px solid #111;
  box-shadow: 4px 4px 0 #111;
  animation: neo-spin 12s linear infinite;
}
@keyframes neo-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* Editorial drop-cap */
.arche-preview-editorial .editorial-dropcap {
  font-family: Georgia, serif;
  font-size: 64px; font-weight: 700;
  color: #2a2418;
  line-height: 1;
  float: left;
  padding: 6px 10px 0 0;
}

/* Terminal blinking cursor */
.arche-preview-terminal .term-cursor {
  display: inline-block;
  width: 8px; height: 13px;
  background: #14B8A6;
  margin-left: 4px;
  vertical-align: -2px;
  animation: blink 1.05s steps(1) infinite;
}

.arche-info { padding: 20px 22px 22px; }
.arche-name { font-weight: 700; font-size: 16px; letter-spacing: -.015em; color: rgb(var(--primary)); }
.arche-desc { margin-top: 6px; font-size: 14px; color: rgb(var(--primary-400)); line-height: 1.5; }

/* ================================================================
   PRICING
   ================================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; } }

.price-card {
  background: #fff;
  border: 1px solid rgb(var(--primary-100));
  border-radius: var(--radius-lg);
  padding: 30px 28px 28px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-soft);
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.price-card.featured {
  border-color: rgb(var(--accent));
  background:
    radial-gradient(120% 70% at 0% 0%, rgb(var(--accent) / .14), transparent 60%),
    linear-gradient(180deg, rgb(var(--accent-50)), #fff 45%);
  box-shadow:
    0 1px 2px rgb(0 0 0 / .04),
    0 0 0 4px rgb(var(--accent) / .08),
    0 30px 60px -24px rgb(var(--accent) / .45);
  transform: translateY(-8px);
}
.price-card.featured:hover { transform: translateY(-12px); }
.price-card.featured .price-amount { color: rgb(var(--primary)); }
.price-card.featured .price-name { color: rgb(var(--accent-700)); }
.price-popular-pill {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: rgb(var(--accent));
  color: #042421;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  padding: 6px 14px; border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 14px -4px rgb(var(--accent) / .55);
}
@media (max-width: 900px) {
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-3px); }
}

.price-name {
  font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .18em;
  color: rgb(var(--primary-400));
}
.price-amount {
  font-weight: 900;
  font-size: 44px; letter-spacing: -.035em;
  color: rgb(var(--primary));
  margin-top: 8px;
  line-height: 1;
  display: flex; align-items: baseline; gap: 8px;
}
.price-amount .per {
  font-family: "Geist Mono", monospace;
  font-size: 12px; font-weight: 500;
  color: rgb(var(--primary-300));
  letter-spacing: 0;
  text-transform: none;
}
.price-unit { font-size: 13.5px; color: rgb(var(--primary-400)); margin-top: 8px; }
.price-features {
  margin-top: 22px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; color: rgb(var(--primary-700));
  flex: 1;
}
.price-features li { display: flex; gap: 10px; align-items: flex-start; }
.price-features li::before {
  content: ""; flex-shrink: 0; margin-top: 7px;
  width: 5px; height: 5px; border-radius: 50%;
  background: rgb(var(--accent));
}
.price-card .btn { margin-top: 24px; }

.pricing-note {
  text-align: center;
  margin-top: 26px;
  font-size: 13.5px;
  color: rgb(var(--primary-400));
}
.pricing-note strong { color: rgb(var(--primary)); font-weight: 700; }

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
  margin: 32px 24px 56px;
  background: rgb(var(--primary));
  color: rgb(var(--paper));
  border-radius: var(--radius-xl);
  padding: 64px 32px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / .055) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(60% 60% at 50% 50%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, black, transparent 75%);
  pointer-events: none;
}
.cta-banner-inner { position: relative; max-width: 720px; margin: 0 auto; }
.cta-banner h2 {
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.cta-banner h2 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400;
  color: rgb(var(--accent));
}
.cta-banner p { color: rgb(var(--paper) / .65); margin-top: 14px; font-size: 16px; }
.cta-banner .btn-primary {
  margin-top: 28px;
  background: rgb(var(--accent));
  border-color: rgb(var(--accent));
  color: #042421;
}
.cta-banner .btn-primary:hover {
  background: rgb(var(--accent-700)); border-color: rgb(var(--accent-700)); color: #fff;
}

/* ================================================================
   FOOTER
   ================================================================ */
footer.site-footer {
  border-top: 1px solid rgb(var(--primary-100));
  padding: 32px 0 48px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 13px;
  color: rgb(var(--primary-400));
}
.footer-inner .left { display: inline-flex; align-items: center; gap: 10px; }
.footer-inner .right { display: inline-flex; align-items: center; gap: 16px; }

/* ================================================================
   MODALS (auth + plans)
   ================================================================ */
.modal-overlay, .auth-overlay {
  position: fixed; inset: 0;
  background: rgb(17 17 17 / .42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open, .auth-overlay.open { display: flex; }
.modal, .auth-modal {
  background: rgb(var(--paper));
  border: 1px solid rgb(var(--primary-100));
  border-radius: var(--radius-xl);
  max-width: 440px; width: 100%;
  box-shadow: 0 24px 80px -20px rgb(0 0 0 / .35);
  overflow: hidden;
  animation: modalIn .25s var(--ease-out);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.modal-header, .auth-modal-header {
  padding: 22px 26px 0;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.modal-title {
  font-size: 22px; font-weight: 900;
  letter-spacing: -.03em;
  color: rgb(var(--primary));
  line-height: 1.15;
}
.modal-title em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400;
  color: rgb(var(--accent-700));
}
.modal-close {
  width: 32px; height: 32px;
  border-radius: 999px;
  display: grid; place-items: center;
  color: rgb(var(--primary-400));
  transition: background .15s var(--ease-soft);
  font-size: 16px;
}
.modal-close:hover { background: rgb(var(--primary-100)); color: rgb(var(--primary)); }
.modal-sub {
  padding: 8px 26px 0;
  font-size: 13.5px; color: rgb(var(--primary-400));
}
.modal-body, .auth-modal-body { padding: 18px 26px 26px; }

.form-group { margin-bottom: 14px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em;
  color: rgb(var(--primary-400));
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgb(var(--primary-200));
  border-radius: 12px;
  font-size: 14.5px;
  color: rgb(var(--primary));
  transition: border-color .15s var(--ease-soft), box-shadow .15s var(--ease-soft);
}
.form-input:focus {
  outline: none;
  border-color: rgb(var(--accent));
  box-shadow: 0 0 0 3px rgb(var(--accent) / .15);
}
.form-error { font-size: 13px; color: #b91c1c; min-height: 18px; margin: 2px 0 6px; }
.form-submit { width: 100%; margin-top: 6px; }
.form-switch {
  margin-top: 16px;
  text-align: center;
  font-size: 13.5px; color: rgb(var(--primary-400));
}
.form-switch a {
  color: rgb(var(--accent-700)); font-weight: 500; cursor: pointer;
  border-bottom: 1px solid rgb(var(--accent-200));
}
.form-switch a:hover { border-bottom-color: rgb(var(--accent-700)); }

.modal-trust {
  margin-top: 18px;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  font-size: 11.5px; color: rgb(var(--primary-300));
  text-transform: uppercase; letter-spacing: .14em;
}
.modal-trust .sep { width: 3px; height: 3px; border-radius: 50%; background: rgb(var(--primary-200)); }

/* ================================================================
   TOASTS
   ================================================================ */
.toast-container {
  position: fixed; top: 18px; right: 18px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 200;
}
.toast {
  background: #fff;
  border: 1px solid rgb(var(--primary-100));
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: rgb(var(--primary));
  box-shadow: 0 12px 32px -12px rgb(0 0 0 / .25);
  max-width: 320px;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .25s var(--ease-out);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.toast::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: rgb(var(--primary-300)); flex-shrink: 0;
}
.toast-success::before { background: rgb(var(--accent)); }
.toast-error::before   { background: #ef4444; }

/* ================================================================
   DASHBOARD
   ================================================================ */
.dash-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 88px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.dash-top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.dash-greeting { display: flex; flex-direction: column; gap: 6px; }
.dash-greeting h1 {
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.dash-greeting h1 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400;
  color: rgb(var(--accent-700));
}
.dash-greeting p { color: rgb(var(--primary-400)); font-size: 15px; }

.credits-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid rgb(var(--primary-100));
  border-radius: 999px;
  padding: 6px 6px 6px 14px;
  font-size: 12.5px;
  color: rgb(var(--primary-700));
  cursor: pointer;
  transition: border-color .15s var(--ease-soft), box-shadow .15s var(--ease-soft);
}
.credits-pill:hover { border-color: rgb(var(--accent-200)); box-shadow: 0 0 0 3px rgb(var(--accent) / .08); }
.credits-pill strong { font-weight: 700; color: rgb(var(--primary)); font-family: "Geist Mono", monospace; }
.credits-pill .plus {
  background: rgb(var(--accent));
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
  line-height: 1;
}

/* Card sections */
.card-section {
  background: #fff;
  border: 1px solid rgb(var(--primary-100));
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.card-section h2 {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.025em;
  margin-bottom: 6px;
}
.card-section h2 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400;
  color: rgb(var(--accent-700));
}
.card-section .card-sub { color: rgb(var(--primary-400)); font-size: 14px; }

.drop-zone {
  margin-top: 22px;
  position: relative;
  border: 1.5px dashed rgb(var(--primary-200));
  border-radius: var(--radius-lg);
  padding: 44px 24px;
  text-align: center;
  background: rgb(var(--primary-50));
  transition: border-color .2s var(--ease-soft), background-color .2s var(--ease-soft);
  cursor: pointer;
}
.drop-zone:hover { border-color: rgb(var(--accent)); background: rgb(var(--accent-50)); }
.drop-zone.drag-over { border-color: rgb(var(--accent)); background: rgb(var(--accent-50)); }
.drop-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-tile {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, rgb(var(--primary-50)));
  border: 1px solid rgb(var(--primary-100));
  display: grid; place-items: center;
  color: rgb(var(--primary-700));
}
.drop-tile svg { width: 26px; height: 26px; }
.drop-text { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.drop-sub { font-size: 13px; color: rgb(var(--primary-400)); margin-top: 6px; }
.drop-file-name {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid rgb(var(--accent-200));
  color: rgb(var(--accent-800));
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 999px;
  font-family: "Geist Mono", monospace;
}
.drop-file-name:empty { display: none; }

.archetype-section { margin-top: 28px; }
.archetype-section h3 {
  font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .18em;
  color: rgb(var(--primary-400));
  margin-bottom: 14px;
}
.archetype-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 820px) { .archetype-grid { grid-template-columns: 1fr 1fr; } }

.archetype-card {
  background: #fff;
  border: 1px solid rgb(var(--primary-100));
  border-radius: var(--radius-md);
  padding: 18px 16px;
  cursor: pointer;
  transition: border-color .15s var(--ease-soft), transform .15s var(--ease-soft), box-shadow .15s var(--ease-soft);
  position: relative;
}
.archetype-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.archetype-card.selected {
  border-color: rgb(var(--accent));
  box-shadow: 0 0 0 3px rgb(var(--accent) / .12);
  background: rgb(var(--accent-50));
}
.archetype-card.selected::after {
  content: "";
  position: absolute; top: 12px; right: 12px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgb(var(--accent));
  box-shadow: inset 0 0 0 3px rgb(var(--accent-50));
}
.arche-card-name { font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.arche-card-desc { margin-top: 4px; font-size: 12.5px; color: rgb(var(--primary-400)); line-height: 1.45; }

.generate-row {
  margin-top: 28px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.loading-state {
  display: none;
  align-items: center; gap: 10px;
  font-size: 13.5px;
  color: rgb(var(--primary-400));
}
.loading-state.active { display: inline-flex; }
.loader-dots { display: inline-flex; gap: 4px; }
.loader-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgb(var(--accent));
  animation: dotPulse 1.2s ease-in-out infinite both;
}
.loader-dot:nth-child(2) { animation-delay: .15s; }
.loader-dot:nth-child(3) { animation-delay: .3s; }
@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(.6); opacity: .4; }
  40%           { transform: scale(1);  opacity: 1; }
}

/* Portfolio list */
.portfolios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 820px) { .portfolios-grid { grid-template-columns: 1fr; } }

.portfolio-card {
  background: #fff;
  border: 1px solid rgb(var(--primary-100));
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-soft);
}
.portfolio-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.portfolio-card-header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.portfolio-card-name {
  font-weight: 700; font-size: 16px; letter-spacing: -.015em;
  color: rgb(var(--primary)); line-height: 1.25;
}
.portfolio-card-meta {
  font-family: "Geist Mono", monospace;
  font-size: 11.5px;
  color: rgb(var(--primary-300));
}
.portfolio-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgb(var(--primary-100));
  background: rgb(var(--primary-50));
  color: rgb(var(--primary-700));
  white-space: nowrap;
}
.badge-yellow { background: #FFF8DD; border-color: #F8E69A; color: #6B5500; }
.badge-blue   { background: rgb(var(--accent-50)); border-color: rgb(var(--accent-200)); color: rgb(var(--accent-700)); }
.badge-plum   { background: #1a1a1f; border-color: #2a2a31; color: #c9c9d4; }
.badge-terra  { background: #FFE3D2; border-color: #F1B98F; color: #6b3a1f; }

.portfolio-empty {
  grid-column: 1 / -1;
  border: 1px dashed rgb(var(--primary-200));
  border-radius: var(--radius-lg);
  padding: 56px 24px 52px;
  text-align: center;
  color: rgb(var(--primary-400));
  font-size: 14px;
  background:
    radial-gradient(40% 60% at 50% 0%, rgb(var(--accent) / .05), transparent 70%),
    rgb(var(--primary-50));
  position: relative;
}
.portfolio-empty::before {
  content: "";
  display: block;
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #fff, rgb(var(--accent-50))),
    rgb(var(--accent-50));
  border: 1px solid rgb(var(--accent-200));
  box-shadow: 0 6px 18px -6px rgb(var(--accent) / .35);
  position: relative;
}
.portfolio-empty::after {
  content: "";
  position: absolute;
  top: 56px; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgb(var(--accent));
  box-shadow:
    0 0 0 0 rgb(var(--accent) / .5);
  animation: emptyPulse 2s ease-out infinite;
}
@keyframes emptyPulse {
  0%   { box-shadow: 0 0 0 0 rgb(var(--accent) / .5); }
  100% { box-shadow: 0 0 0 24px rgb(var(--accent) / 0); }
}
.portfolio-empty p { font-weight: 500; color: rgb(var(--primary-700)); font-size: 14.5px; }
.portfolio-empty p + p { font-size: 13px; color: rgb(var(--primary-400)); margin-top: 4px; font-weight: 400; }

/* Plans grid (inside modal) */
.plans-grid { display: flex; flex-direction: column; gap: 10px; }
.plan-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgb(var(--primary-100));
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color .15s var(--ease-soft), background-color .15s var(--ease-soft), transform .15s var(--ease-soft);
}
.plan-card:hover { border-color: rgb(var(--accent-200)); background: rgb(var(--accent-50)); transform: translateY(-1px); }
.plan-card .plan-left  { display: flex; flex-direction: column; gap: 2px; }
.plan-card .plan-name  { font-weight: 700; font-size: 14.5px; }
.plan-card .plan-credits { font-size: 12.5px; color: rgb(var(--primary-400)); }
.plan-card .plan-price {
  font-weight: 900; font-size: 18px; letter-spacing: -.02em;
  color: rgb(var(--primary)); font-family: "Geist", sans-serif;
}

/* ================================================================
   MOBILE TUNING
   ================================================================ */
@media (max-width: 760px) {
  .brand-header-inner { padding: 12px 16px; gap: 10px; }
  .brand-pill, .brand-header-actions .btn-ghost { display: none; }
  .brand-header-actions { gap: 6px; }
  .brand-header-actions .btn { padding: 7px 12px; font-size: 12.5px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .brand-wordmark-row { font-size: 14px; }
  .brand-by { font-size: 9px; }

  .container { padding: 0 18px; }
  .hero { padding: 56px 0 72px; }
  .hero-headline { font-size: clamp(34px, 10vw, 52px); letter-spacing: -.036em; }
  .hero-sub { font-size: 15.5px; margin-top: 20px; }
  .hero-cta { margin-top: 28px; gap: 10px; }
  .hero-cta .btn { width: 100%; max-width: 320px; }
  .hero-trust { gap: 10px; font-size: 12px; margin-top: 22px; }
  .hero-eyebrow { font-size: 11.5px; margin-bottom: 22px; }

  /* hero-stage/hero-card legacy rules removed - showcase has its own mobile tuning */

  .stats-band { margin: 0 16px; border-radius: 24px; }
  .stat { padding: 28px 16px; }
  .stat-num { font-size: clamp(34px, 9vw, 48px); }
  .stat-label { font-size: 10px; letter-spacing: .16em; margin-top: 8px; }

  .section-title { font-size: clamp(28px, 7.5vw, 38px); }
  .section-sub { font-size: 14.5px; }
  .section-head { margin-bottom: 36px; }

  .step-card { padding: 28px 22px 24px; }
  .step-title { font-size: 17px; }
  .step-desc { font-size: 14px; }

  .arche-preview { padding: 22px; }
  .arche-prev-name { font-size: 22px; }
  .arche-preview-neo .arche-prev-name { font-size: 24px; }
  .arche-preview-neo .neo-sticker { width: 48px; height: 48px; font-size: 8.5px; bottom: 14px; right: 14px; }

  .pricing-grid { gap: 14px; }
  .price-card { padding: 28px 24px 26px; }
  .price-amount { font-size: 40px; }

  .cta-banner { margin: 24px 16px 40px; padding: 48px 24px; border-radius: 24px; }
  .cta-banner h2 { font-size: clamp(28px, 7.5vw, 40px); }

  footer.site-footer { padding: 28px 0 36px; }
  .footer-inner { font-size: 12.5px; gap: 12px; justify-content: center; text-align: center; }
  .footer-inner .right { gap: 12px; }

  .dash-main { padding: 32px 16px 64px; gap: 22px; }
  .card-section { padding: 22px; border-radius: 22px; }
  .drop-zone { padding: 36px 18px; }
  .drop-text { font-size: 15px; }
  .archetype-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .archetype-card { padding: 14px 14px; }
  .portfolio-card { padding: 18px; }
  .portfolio-card-actions .btn { flex: 1; }
}

@media (max-width: 420px) {
  .hero-headline { font-size: 34px; }
  .po-headline { font-size: 20px; }
  .cv-name { font-size: 14px; }
  .stat-label { font-size: 9.5px; }
  .archetype-grid { grid-template-columns: 1fr; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
