/* Viroan Developers page — bespoke section layouts.
 *
 * Theme tokens come from tokens.css. This file only adds page-local
 * rules. Each section commits to its own composition so the page
 * reads as a real document, not a stack of identical card grids.
 */

.dev-page { background: var(--bg-0); }

/* ─── Shared section padding & heads ───────────────── */
.dev-hero, .dev-integration, .dev-mon, .dev-royalty,
.dev-marketing, .dev-analytics, .dev-loyalty, .dev-cta-section {
  padding: 96px 40px;
}
.dev-hero-inner, .dev-integration-inner, .dev-mon-inner, .dev-royalty-inner,
.dev-marketing-inner, .dev-analytics-inner, .dev-loyalty-inner, .dev-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .dev-hero, .dev-integration, .dev-mon, .dev-royalty,
  .dev-marketing, .dev-analytics, .dev-loyalty, .dev-cta-section {
    padding: 64px 20px;
  }
}

.dev-integration-head, .dev-mon-head, .dev-royalty-head,
.dev-marketing-head, .dev-analytics-head, .dev-loyalty-head {
  max-width: 820px;
  margin: 0 auto 56px;
  text-align: center;
}
.dev-integration-head h2, .dev-mon-head h2, .dev-royalty-head h2,
.dev-marketing-head h2, .dev-analytics-head h2, .dev-loyalty-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--fg-0);
  margin: 14px 0 14px;
}
.dev-integration-head p, .dev-mon-head p, .dev-royalty-head p,
.dev-marketing-head p, .dev-analytics-head p, .dev-loyalty-head p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0;
}

/* ═══════════════════════════════════════════════════ */
/* 1. HERO — vertical: copy on top, full-width terminal */
/*    underneath, stamps strip at the bottom            */
/* ═══════════════════════════════════════════════════ */
.dev-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.dev-hero-inner { position: relative; z-index: 1; }

.dev-hero-top {
  max-width: 920px;
  margin: 0 0 48px;
}
.dev-hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--fg-0);
  margin: 18px 0 26px;
}
.dev-hero-h1 .accent { color: var(--accent); }
.dev-hero-h1-tail {
  display: block;
  color: var(--fg-2);
  font-size: 0.55em;
  letter-spacing: -0.01em;
  margin-top: 14px;
  line-height: 1.15;
}
.dev-hero-sub {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--fg-1);
  margin: 0;
  max-width: 760px;
}

/* Full-width terminal block */
.dev-hero-term {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-1);
  overflow: hidden;
  margin: 0 0 40px;
}
.dev-hero-term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2, var(--bg-0));
}
.dev-hero-term-bar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--fg-3); opacity: 0.6;
}
.dev-hero-term-bar .dot.red    { background: #c84a4a; opacity: 0.85; }
.dev-hero-term-bar .dot.yellow { background: #d6a849; opacity: 0.85; }
.dev-hero-term-bar .dot.green  { background: var(--accent); opacity: 0.95; }
.dev-hero-term-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
}
.dev-hero-term-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.dev-hero-term-body {
  padding: 24px 26px 22px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--fg-1);
}
.dev-hero-term-line {
  display: flex; gap: 10px;
  margin-bottom: 14px;
}
.dev-hero-term-line .prompt { color: var(--accent); }
.dev-hero-term-line .cmd    { color: var(--fg-0); }

.dev-hero-term-step {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
  overflow: hidden;
}
.dev-hero-term-step .arr {
  color: var(--fg-3);
  font-size: 12px;
  flex-shrink: 0;
}
.dev-hero-term-step .lbl {
  color: var(--fg-1);
  flex-shrink: 0;
}
.dev-hero-term-step .dots {
  color: var(--fg-3);
  opacity: 0.45;
  flex: 1;
  overflow: hidden;
  text-overflow: clip;
  min-width: 0;
}
.dev-hero-term-step .ok {
  color: var(--accent);
  flex-shrink: 0;
}
.dev-hero-term-step.is-live .arr { color: var(--accent); }
.dev-hero-term-step.is-live .lbl { color: var(--fg-0); font-weight: 600; }

.dev-hero-term-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 22px 0 4px;
  padding: 18px 0 6px;
  border-top: 1px dashed var(--accent-line);
}
.dev-hero-term-meta > div { display: flex; flex-direction: column; gap: 4px; }
.dev-hero-term-meta .k {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--fg-3); text-transform: uppercase;
}
.dev-hero-term-meta .v {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-0);
  letter-spacing: 0.02em;
}
.dev-hero-term-meta .meta-aux { color: var(--fg-3); }

.dev-hero-term-cursor {
  display: flex; gap: 10px;
  margin-top: 16px;
  font-family: var(--font-mono);
}
.dev-hero-term-cursor .prompt { color: var(--accent); }
.dev-hero-term-cursor .caret {
  color: var(--fg-1);
  animation: dev-caret-blink 1.1s steps(2) infinite;
}
@keyframes dev-caret-blink {
  to { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dev-hero-term-cursor .caret { animation: none; }
}

@media (max-width: 700px) {
  .dev-hero-term-body { padding: 18px 16px 16px; font-size: 11.5px; line-height: 1.8; }
  .dev-hero-term-step .lbl { white-space: nowrap; }
  .dev-hero-term-step .dots { display: none; }
  .dev-hero-term-step .ok { margin-left: auto; }
  .dev-hero-term-meta { grid-template-columns: 1fr; gap: 12px; }
  .dev-hero-term-title { font-size: 10.5px; }
  .dev-hero-term-status { font-size: 9.5px; }
}

.dev-hero-stamps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.dev-hero-stamps > div { display: flex; flex-direction: column; gap: 6px; }
.dev-hero-stamps .k {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--fg-3); text-transform: uppercase;
}
.dev-hero-stamps .v {
  font-family: var(--font-mono); font-size: 14px;
  color: var(--accent); letter-spacing: 0.04em;
}
@media (max-width: 700px) {
  .dev-hero-stamps { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════ */
/* 2. INTEGRATION — code window + language pane         */
/* ═══════════════════════════════════════════════════ */
.dev-integration { background: var(--bg-1); }
.dev-integration-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 1000px) {
  .dev-integration-split { grid-template-columns: 1fr; }
}

.dev-code-frame {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-0);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.dev-code-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2, var(--bg-1));
}
.dev-code-bar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--fg-3); opacity: 0.6;
}
.dev-code-bar .dot.red    { background: #c84a4a; opacity: 0.85; }
.dev-code-bar .dot.yellow { background: #d6a849; opacity: 0.85; }
.dev-code-bar .dot.green  { background: var(--accent); opacity: 0.95; }
.dev-code-file {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-1);
  letter-spacing: 0.02em;
}
.dev-code-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding: 2px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 3px;
}
.dev-code-body {
  padding: 22px 0 22px;
  flex: 1;
}
.dev-code-list {
  list-style: none;
  margin: 0; padding: 0;
}
.dev-code-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 1px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
}
.dev-code-list li:hover { background: var(--accent-soft); }
.dev-code-ln {
  color: var(--fg-3);
  font-size: 11px;
  letter-spacing: 0.12em;
  user-select: none;
  min-width: 22px;
}
.dev-code-list code {
  font-family: var(--font-mono);
  color: var(--fg-1);
  white-space: pre;
}
.dev-code-manifest {
  border-top: 1px solid var(--line);
  padding: 16px 22px 20px;
  background: var(--bg-1);
}
.dev-code-manifest-h {
  display: flex; gap: 10px; align-items: baseline;
  margin-bottom: 6px;
}
.dev-code-manifest-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}
.dev-code-manifest-name {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-1);
  letter-spacing: 0.04em;
}
.dev-code-manifest p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--fg-2);
}

.dev-lang-pane {
  display: flex; flex-direction: column;
}
.dev-lang-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--fg-0);
  margin: 0 0 8px;
}
.dev-lang-note {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0 0 22px;
}
.dev-lang-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 0;
}
.dev-lang-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.dev-lang-row:last-child { border-bottom: 0; }
.dev-lang-k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.dev-lang-v {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-2);
}
.dev-lang-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .dev-lang-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }
  .dev-lang-badge { justify-self: start; }
}

/* ═══════════════════════════════════════════════════ */
/* 3. MONETIZATION — three model cards                  */
/* ═══════════════════════════════════════════════════ */
.dev-mon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) {
  .dev-mon-grid { grid-template-columns: 1fr; }
}
.dev-mon-card {
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-1);
  display: flex; flex-direction: column; gap: 14px;
}
.dev-mon-card[data-model="0"] { border-top: 2px solid var(--fg-3); }
.dev-mon-card[data-model="1"] { border-top: 2px solid var(--accent); }
.dev-mon-card[data-model="2"] { border-top: 2px solid var(--fg-3); }
.dev-mon-n {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.dev-mon-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg-0);
  margin: 0;
}
.dev-mon-d {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}
.dev-mon-prosCons {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.dev-mon-prosCons-h {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 6px;
}
.dev-mon-cons .dev-mon-prosCons-h { color: var(--fg-3); }
.dev-mon-prosCons ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 6px;
}
.dev-mon-prosCons li {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fg-2);
  padding-left: 0;
}

/* ═══════════════════════════════════════════════════ */
/* 4. ROYALTY — slider                                  */
/* ═══════════════════════════════════════════════════ */
.dev-royalty { background: var(--bg-1); }
.dev-royalty-slider {
  max-width: 920px;
  margin: 0 auto 56px;
}
.dev-royalty-track {
  position: relative;
  height: 10px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 64px 28px 24px;
}
.dev-royalty-fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-soft) 0%, var(--accent) 100%);
  opacity: 0.85;
}
.dev-royalty-tick {
  position: absolute;
  top: 22px;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--fg-2);
}
.dev-royalty-tick.is-min  { left: 0;       transform: translateX(-50%); color: var(--fg-3); }
.dev-royalty-tick.is-max  { right: 0;      transform: translateX(50%);  color: var(--accent); }
.dev-royalty-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.dev-royalty-handle-dot {
  width: 28px; height: 28px;
  background: var(--bg-0);
  border: 3px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--accent-soft);
}
.dev-royalty-handle-label {
  position: absolute;
  top: -38px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--accent);
  padding: 4px 10px;
  background: var(--bg-0);
  border: 1px solid var(--accent-line);
  border-radius: 4px;
}
.dev-royalty-hint {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  margin: 36px 0 0;
}
.dev-royalty-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .dev-royalty-benefits { grid-template-columns: 1fr; gap: 20px; }
}
.dev-royalty-benefit {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.dev-royalty-benefit-n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  min-width: 38px;
  padding-top: 4px;
}
.dev-royalty-benefit h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-0);
  margin: 0 0 8px;
}
.dev-royalty-benefit p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}

/* ═══════════════════════════════════════════════════ */
/* 5. MARKETING — 4-card grid with SVG icons            */
/* ═══════════════════════════════════════════════════ */
.dev-marketing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 700px) {
  .dev-marketing-grid { grid-template-columns: 1fr; }
}
.dev-marketing-card {
  padding: 26px 26px 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-1);
  display: flex; flex-direction: column; gap: 12px;
}
.dev-marketing-card-top {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.dev-marketing-card-n {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--fg-3);
}
.dev-marketing-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--fg-0);
  margin: 0;
}
.dev-marketing-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}

/* ═══════════════════════════════════════════════════ */
/* 6. ANALYTICS — KPI strip                             */
/* ═══════════════════════════════════════════════════ */
.dev-analytics { background: var(--bg-1); }
.dev-analytics-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-0);
  overflow: hidden;
}
@media (max-width: 1000px) {
  .dev-analytics-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .dev-analytics-strip { grid-template-columns: repeat(2, 1fr); }
}
.dev-analytics-tile {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.dev-analytics-tile:last-child { border-right: 0; }
@media (max-width: 1000px) {
  .dev-analytics-tile { border-right: 1px solid var(--line); }
  .dev-analytics-tile:nth-child(3n) { border-right: 0; }
  .dev-analytics-tile:nth-last-child(-n+3) { border-bottom: 0; }
}
@media (max-width: 600px) {
  .dev-analytics-tile:nth-child(3n) { border-right: 1px solid var(--line); }
  .dev-analytics-tile:nth-child(2n) { border-right: 0; }
  .dev-analytics-tile:nth-last-child(-n+2) { border-bottom: 0; }
}
.dev-analytics-tile .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.dev-analytics-tile .v {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.dev-analytics-export {
  margin: 24px auto 0;
  max-width: 920px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--fg-3);
}

/* ═══════════════════════════════════════════════════ */
/* 7. LOYALTY — tier table                              */
/* ═══════════════════════════════════════════════════ */
.dev-loyalty-table {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-1);
  overflow: hidden;
}
.dev-loyalty-thead {
  display: grid;
  grid-template-columns: 100px 110px 110px 110px 1fr;
  gap: 16px;
  padding: 16px 24px;
  background: var(--bg-2, var(--bg-0));
  border-bottom: 1px solid var(--line);
}
.dev-loyalty-th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.dev-loyalty-row {
  display: grid;
  grid-template-columns: 100px 110px 110px 110px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.dev-loyalty-row:last-child { border-bottom: 0; }
.dev-loyalty-row[data-tier="3"] { background: var(--accent-soft); }
.dev-loyalty-y {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--fg-0);
}
.dev-loyalty-pct {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.dev-loyalty-pct.platform { color: var(--fg-3); }
.dev-loyalty-pct.author   { color: var(--accent); }
.dev-loyalty-pct.client   { color: var(--fg-1); }
.dev-loyalty-note {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-2);
}
@media (max-width: 900px) {
  .dev-loyalty-thead { display: none; }
  .dev-loyalty-row {
    grid-template-columns: 1fr 1fr;
    gap: 6px 18px;
    padding: 20px 22px;
    row-gap: 12px;
  }
  .dev-loyalty-cell {
    display: flex; flex-direction: column;
    gap: 4px;
  }
  .dev-loyalty-cell::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.18em;
    color: var(--fg-3);
    text-transform: uppercase;
  }
  .dev-loyalty-cell.col-0 { grid-column: 1 / -1; }
  .dev-loyalty-cell.col-4 { grid-column: 1 / -1; }
  .dev-loyalty-cell.col-4::before { display: none; }
  .dev-loyalty-y { font-size: 26px; }
}
.dev-loyalty-foot {
  margin: 28px auto 0;
  max-width: 900px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--fg-3);
}

/* ═══════════════════════════════════════════════════ */
/* 8. CTA                                               */
/* ═══════════════════════════════════════════════════ */
.dev-cta-section { background: var(--bg-1); border-top: 1px solid var(--line); }
.dev-cta-inner {
  max-width: 740px;
  text-align: center;
}
.dev-cta-inner h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--fg-0);
  margin: 0 0 18px;
}
.dev-cta-inner p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0 0 32px;
}
.dev-cta-btn {
  font-size: 14px;
  padding: 14px 28px;
}

/* ═══════════════════════════════════════════════════ */
/* Developer Contact Modal — uses .ea-overlay / .ea-modal */
/* / .ea-close base. Adds .dev-modal extensions for the   */
/* email-template layout (wider, structured fields).      */
/* ═══════════════════════════════════════════════════ */
.ea-modal.dev-modal {
  max-width: 640px;
  padding: 40px 36px 28px;
}
@media (max-width: 700px) {
  .ea-modal.dev-modal { padding: 28px 22px 22px; }
}

.dev-modal-head { margin-bottom: 28px; padding-right: 36px; }
.dev-modal-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--fg-0);
  margin: 0 0 10px;
}
.dev-modal-sub {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}

.dev-modal-fields {
  display: flex; flex-direction: column;
  gap: 18px;
  margin-bottom: 22px;
}
.dev-modal-field { display: flex; flex-direction: column; gap: 8px; }
.dev-modal-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.dev-modal-input {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.dev-modal-value {
  flex: 1;
  font-size: 14px;
  color: var(--fg-0);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.dev-modal-value.mono { color: var(--accent); }
.dev-modal-mini {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.dev-modal-mini:hover { border-color: var(--accent); color: var(--accent); }

.dev-modal-textarea {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--fg-1);
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: pre;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  tab-size: 2;
  box-sizing: border-box;
}
.dev-modal-textarea:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.dev-modal-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 8px 0 18px;
}
.dev-modal-actions .btn { flex: 1 1 200px; justify-content: center; }

.dev-modal-foot {
  font-size: 12px;
  line-height: 1.6;
  color: var(--fg-3);
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ── Intake row at the top of the contact modal ──
   The new name + email capture step that feeds the parallel Google
   Form submission. Sits above the templated email block. Two columns
   on desktop, single column on mobile. */
.dev-modal-intake {
  margin: 0 0 24px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}
.dev-modal-intake-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .dev-modal-intake-row { grid-template-columns: 1fr; }
}
.dev-modal-textinput {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--fg-0);
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.dev-modal-textinput::placeholder { color: var(--fg-3); }
.dev-modal-textinput:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.dev-modal-intake-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--fg-3);
}

/* Prior-submission banner — appears in DeveloperContactModal and
   CopytraderContactModal when this device has previously submitted
   the same application track. Soft signal, with a discreet "submit
   again anyway" link that clears the flag. Sits above the modal
   head so it reads before the form fields. */
.dev-modal-prior {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px 16px;
  margin: 0 0 22px;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: var(--accent-soft);
}
.dev-modal-prior-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-0);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}
.dev-modal-prior-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-1);
}
.dev-modal-prior-copy strong {
  color: var(--fg-0);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.dev-modal-prior-link {
  align-self: flex-start;
  margin-top: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
}
.dev-modal-prior-link:hover { text-decoration: underline; }
