/* ============================================================
   ESCAPE VELOCITY — ev-* component layer
   ------------------------------------------------------------
   Reusable building blocks for landing/offer pages that originate
   as Claude Design prototypes. Ported from the design-tool bundle
   (styles.css + the sub-page-template section of concepts.css),
   adapted from artboard isolation to normal document flow.

   Tokens come from the brand submodule (/styles/tokens.css via
   styles/base.css). Never redefine token values here — only
   reference var(--…). See website/CLAUDE.md § Integrating Claude
   Design prototypes.

   Page-UNIQUE styling (one-off section layouts) stays in the
   page's own <style> block, not here.
   ============================================================ */

/* ---- Page wrapper (normal flow; the prototype's artboard reset is dropped) ---- */
.ev-page {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--fg-1);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.ev-page a { color: var(--color-terracotta); text-decoration: none; transition: color .2s; }
.ev-page a:hover { color: var(--color-terracotta-hover); }
/* Brand-engine buttons carry their own colour. Shield .btn-primary from the
   generic .ev-page a / a:hover link colour above — otherwise on hover the label
   turns terracotta-on-terracotta (same as the hover background) and the button
   reads as one solid orange block with no text. (.ev-btn defends itself with
   !important; the brand .btn-primary does not, so we do it here.) */
.ev-page .btn-primary, .ev-page .btn-primary:hover { color: #fff; }
.ev-page p { color: var(--fg-2); font-size: 15px; line-height: 1.7; }

/* ============================================================
   COMMON ATOMS
   ============================================================ */
.ev-container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--padding-desktop); }

.ev-eyebrow {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--color-terracotta);
}

.ev-h1 {
  font-family: var(--font-headline); font-weight: 700;
  font-size: clamp(40px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -0.015em;
}
.ev-h2 {
  font-family: var(--font-headline); font-weight: 700;
  font-size: 36px; line-height: 1.15; letter-spacing: -0.01em; color: var(--fg-1);
}
.ev-h3 {
  font-family: var(--font-headline); font-weight: 600;
  font-size: 20px; line-height: 1.3; color: var(--fg-1);
}

.ev-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: var(--color-terracotta); color: #fff !important;
  border-radius: var(--radius-button);
  font-family: var(--font-ui); font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: background .2s;
}
.ev-btn:hover { background: var(--color-terracotta-hover); color: #fff !important; }
.ev-btn.ghost {
  background: transparent; color: var(--color-terracotta) !important;
  border: 1px solid var(--color-terracotta);
}
.ev-btn.ghost:hover { background: rgba(212,120,74,.08); color: var(--color-terracotta) !important; }
.ev-btn.dark-ghost {
  background: transparent; color: var(--color-light) !important;
  border: 1px solid rgba(255,255,255,.2);
}
.ev-btn.dark-ghost:hover { background: rgba(255,255,255,.06); color: var(--color-light) !important; }
.ev-btn.sm { padding: 10px 18px; font-size: 14px; }
.ev-btn.lg { padding: 16px 34px; font-size: 16px; }

.ev-tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: var(--radius-badge);
  background: var(--tag-geht-bg); color: var(--color-terracotta);
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
}
.ev-tag.gray { background: rgba(255,255,255,.06); color: var(--color-muted); }

.ev-rule { height: 1px; background: var(--border-divider); width: 100%; }
.ev-accent-rule { height: 2px; background: var(--color-terracotta); width: 56px; }

.ev-photo-well {
  border-radius: var(--radius-card); overflow: hidden;
  border: 1px solid rgba(212,120,74,.18); background: #2A2826;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px;
}

/* ============================================================
   QUOTE / TESTIMONIAL
   ============================================================ */
.ev-quote {
  background: rgba(212,120,74,.06);
  border-left: 3px solid var(--color-terracotta);
  padding: 22px 26px; border-radius: 0 8px 8px 0;
}
.ev-quote p {
  font-family: var(--font-headline); font-size: 17px; font-weight: 500; font-style: italic;
  color: var(--fg-1); line-height: 1.5; margin: 0 0 12px;
}
.ev-quote .attr {
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  color: var(--fg-3); font-style: normal;
}
.ev-quote.on-dark p { color: var(--color-light); }
.ev-quote.on-dark .attr { color: var(--color-muted); }

/* ============================================================
   CARDS
   ============================================================ */
.ev-card {
  background: var(--bg-card); border-radius: var(--radius-card);
  padding: 28px; border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card); transition: all .2s;
  display: flex; flex-direction: column;
}
.ev-card:hover {
  border-color: var(--color-terracotta);
  transform: translateY(-2px); box-shadow: var(--shadow-card-hover);
}
.ev-card.dark { background: var(--color-black); border-color: rgba(212,120,74,.3); color: var(--color-light); }
.ev-card.dark h3, .ev-card.dark h4 { color: var(--color-light); }
.ev-card.dark p { color: var(--color-muted); }
.ev-card h3 { margin-bottom: 8px; }

/* ============================================================
   FOUNDER BLOCK
   ============================================================ */
.ev-founder { background: var(--color-black); color: var(--color-light); padding: 80px 0; }
.ev-founder-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 var(--padding-desktop);
  display: grid; grid-template-columns: 280px 1fr; gap: 60px; align-items: start;
}
.ev-photo-well.founder-photo { width: 280px; height: 340px; }
.ev-founder h2 {
  color: var(--color-light); margin: 8px 0 6px;
  font-family: var(--font-headline); font-size: 32px; font-weight: 700; line-height: 1.15;
}
.ev-founder .role {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  color: var(--color-terracotta); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px;
}
.ev-founder p { color: var(--color-muted); font-size: 16px; line-height: 1.75; margin-bottom: 14px; }
.ev-founder p strong { color: var(--color-light); }

/* ============================================================
   SUB-PAGE TEMPLATES (hero, sections, qual list, cohorts, faq)
   ============================================================ */
.sub-hero {
  padding: 96px 0 60px; background: var(--color-cream);
  border-bottom: 1px solid var(--border-divider);
}
.sub-hero .ev-eyebrow { margin-bottom: 14px; }
.sub-hero h1 {
  font-family: var(--font-headline); font-weight: 700;
  font-size: clamp(36px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.015em;
  max-width: 820px; margin-bottom: 18px; color: var(--fg-1);
}
.sub-hero .sub { font-size: 18px; line-height: 1.7; color: var(--fg-2); max-width: 620px; margin-bottom: 28px; }
.sub-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sub-hero-meta {
  display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--border-divider);
}
.sub-hero-meta .item .k {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--color-subtle); margin-bottom: 2px;
}
.sub-hero-meta .item .v { font-family: var(--font-headline); font-size: 17px; font-weight: 600; color: var(--fg-1); }
.sub-hero-meta .item .v.price-big { color: var(--color-terracotta); font-size: 22px; }

.sub-section { padding: 64px 0; }
.sub-section.dark { background: var(--color-black); color: var(--color-light); }
.sub-section .ev-eyebrow { margin-bottom: 14px; }
.sub-section h2 { margin-bottom: 16px; max-width: 720px; }
.sub-section.dark h2 { color: var(--color-light); }
.sub-section .lede { font-size: 17px; max-width: 680px; margin-bottom: 28px; color: var(--fg-2); line-height: 1.7; }
.sub-section.dark .lede { color: var(--color-muted); }

.qual-list { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.qual-list .col h3 { font-family: var(--font-headline); font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.qual-list ul { list-style: none; padding: 0; margin: 0; }
.qual-list li { font-size: 15px; line-height: 1.6; padding: 8px 0 8px 28px; position: relative; }
.qual-list li.ok::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 12px; height: 2px; background: var(--color-terracotta);
}
.qual-list li.no::before {
  content: "\00d7"; position: absolute; left: 0; top: 4px;
  color: var(--color-subtle); font-weight: 600; font-size: 18px;
}

.cohort-card {
  background: var(--bg-card); border: 1px solid var(--border-divider);
  border-radius: var(--radius-card); padding: 22px;
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: center;
}
.cohort-card + .cohort-card { margin-top: 12px; }
.cohort-card.next { border-color: var(--color-terracotta); background: linear-gradient(180deg,#fff,#FCF8F5); }
.cohort-card .date { font-family: var(--font-headline); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.cohort-card .label {
  font-family: var(--font-ui); font-size: 12px; color: var(--color-subtle);
  text-transform: uppercase; letter-spacing: 1.5px;
}
.cohort-card .spots { font-size: 13px; color: var(--fg-2); }
.cohort-card .spots strong { color: var(--color-text); }

.faq-row { padding: 22px 0; border-bottom: 1px solid var(--border-divider); }
.faq-row h4 {
  font-family: var(--font-headline); font-size: 17px; font-weight: 700;
  margin-bottom: 8px; padding-right: 36px; position: relative;
}
.faq-row h4::after { content: "+"; position: absolute; right: 0; top: -2px; color: var(--color-terracotta); font-weight: 400; font-size: 22px; }
.faq-row p { font-size: 14px; color: var(--fg-2); line-height: 1.7; margin: 0; }

/* ============================================================
   RESPONSIVE — real media queries (the prototype's JS .mobile
   class is not used on the production site).
   ============================================================ */
@media (max-width: 820px) {
  .ev-container { padding: 0 var(--padding-tablet); }
  .ev-h1 { font-size: 36px; }
  .ev-h2 { font-size: 26px; }
  .ev-founder { padding: 56px 0; }
  .ev-founder-inner { grid-template-columns: 1fr; padding: 0 var(--padding-tablet); gap: 28px; }
  .ev-photo-well.founder-photo { width: 100%; max-width: 280px; height: 320px; }
  .sub-hero { padding: 72px 0 48px; }
  .sub-section { padding: 48px 0; }
  .qual-list { grid-template-columns: 1fr; gap: 16px; }
  .cohort-card { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .cohort-card .ev-btn { justify-content: center; }
}
