/* EndFrame page additions.
 *
 * Deliberately small. This page reuses styles.css wholesale — same dark
 * surfaces, same Archivo Black + Inter pairing, same .btn/.nav/.pricing-card
 * components — so the two products read as siblings from the same shop rather
 * than two unrelated sites.
 *
 * The only real identity move: EndFrame re-points the --primary tokens at the
 * amber ALREADY IN styles.css (--warn: #f2b544), which is also the colour the
 * shipping EndFrame panel uses for its own in-progress state. Because every
 * component in styles.css reads --primary rather than a literal, re-pointing
 * these four tokens re-skins buttons, badges, cards and the nav in one place,
 * with no component overrides and no risk of the two palettes fighting.
 * Script Cutter keeps the purple; nothing here leaks back to index.html. */

body.endframe {
  --primary: #f2b544;
  --primary-2: #e0a24a;
  --primary-3: #ffd489;
  --primary-grad: linear-gradient(135deg, #f2b544, #e0a24a);
  --primary-soft: rgba(242, 181, 68, 0.14);
}

/* Amber is bright: the shared .btn-primary sets light text, which fails on it.
   Dark ink on amber is the readable pairing and matches the real panel. */
body.endframe .btn-primary { color: #1a1408; }

/* The nav's product switcher lives in styles.css, not here — both pages use it,
   and index.html does not load this file. */

/* ---- hero pipeline: one schedule row becoming one delivery file ---------- */

.ef-pipe {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ef-pipe-head {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
}
.ef-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: none; }

/* Stacked, not side by side. This panel sits in the hero's right-hand column,
   which is roughly 480px even on a wide screen — three columns inside it
   squeezed the schedule and the filename to the point of being fussy to read.
   Top to bottom also matches how the transformation is actually read: this
   row, then that file. */
.ef-pipe-body { display: grid; grid-template-columns: 1fr; }

.ef-side { padding: 20px; min-width: 0; }
.ef-side + .ef-side { border-top: 1px solid var(--line); }
.ef-side-label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 12px;
}

.ef-sched { width: 100%; border-collapse: collapse; font-size: 13px; }
.ef-sched th {
  text-align: left; font-weight: 400; color: var(--faint);
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0 10px 8px 0; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.ef-sched td {
  padding: 10px 10px 0 0; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ef-sched td.t { color: var(--text); white-space: normal; }

/* Points down, since the panel stacks. */
.ef-arrow { display: flex; align-items: center; justify-content: center; color: var(--faint); }
.ef-arrow svg { transform: rotate(90deg); }

.ef-file {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.8; word-break: break-all;
  color: var(--text);
  background: var(--primary-soft);
  border: 1px solid rgba(242, 181, 68, 0.3);
  border-radius: var(--r-sm);
  padding: 12px 13px;
  min-height: 4.2em;
}
.ef-file .slot { color: var(--primary-3); font-weight: 900; }

.ef-pipe-foot {
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.ef-pipe-foot svg { width: 14px; height: 14px; color: var(--keep); flex: none; }

/* ---- the two halves ------------------------------------------------------ */

.ef-halves { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .ef-halves { grid-template-columns: 1fr; } }

.ef-half {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column;
}
.ef-half-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
/* Adobe's own icon colours, used strictly as a factual "which app" indicator. */
.ef-host {
  width: 34px; height: 34px; border-radius: var(--r-sm); flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900;
}
.ef-host.ae { background: #393665; color: #cf96fd; }
.ef-host.pr { background: #00005b; color: #9999ff; }
.ef-half-app { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.ef-half h3 { font-family: 'Inter', sans-serif; font-weight: 900; font-size: 21px; margin-bottom: 8px; }
.ef-role { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }

.ef-half ul { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ef-half li { display: flex; gap: 11px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.ef-half li svg { width: 15px; height: 15px; color: var(--primary); flex: none; margin-top: 3px; }

.ef-half-foot {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.ef-amt { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ef-per { font-size: 13px; color: var(--faint); }

.ef-note {
  margin-top: 24px; padding: 16px 18px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  color: var(--muted); font-size: 14.5px; max-width: 640px;
}
.ef-note b { color: var(--text); font-weight: 900; }

/* ---- pricing: three plans, not styles.css's two -------------------------- */

.pricing-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .pricing-grid.three { grid-template-columns: 1fr; } }

.ef-plan-for { color: var(--faint); font-size: 13px; margin-top: -10px; margin-bottom: 14px; }
.ef-plan-amt { font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.ef-plan-amt span { font-size: 14px; font-weight: 400; color: var(--faint); }
.pricing-card .btn { width: 100%; margin-top: 20px; }

/* ---- steps --------------------------------------------------------------- */

.ef-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 860px) { .ef-steps { grid-template-columns: 1fr; } }
.ef-step-n {
  font-size: 11.5px; font-weight: 900; letter-spacing: 0.12em;
  color: var(--primary);
  padding-bottom: 10px; margin-bottom: 15px;
  border-bottom: 1px solid rgba(242, 181, 68, 0.3);
}
.ef-step h3 { font-family: 'Inter', sans-serif; font-weight: 900; font-size: 17px; margin-bottom: 9px; }
.ef-step p { color: var(--muted); font-size: 14px; }
.ef-step-app { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 12px; }

/* ---- honest requirements table ------------------------------------------ */

.ef-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .ef-facts { grid-template-columns: 1fr; } }
.ef-fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.ef-fact dt { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.ef-fact dd { margin: 0; color: var(--muted); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- trial band ---------------------------------------------------------
 * The trial is the real entry point now that everything is self-serve, so it
 * gets its own band rather than living only as a hero button. */
.ef-trial-box {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 40px;
  text-align: center;
}
.ef-trial-box .section-sub { margin-left: auto; margin-right: auto; }
.ef-trial-fine { margin-top: 16px; color: var(--faint); font-size: 13px; }

/* A Buy button with no checkout URL configured yet. Deliberately reads as
   unavailable rather than clickable — see the CHECKOUT block in endframe.html. */
.btn.is-unavailable {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--surface-3);
  color: var(--muted);
  border-color: var(--line);
}

/* ---- teams & broadcasters ------------------------------------------------
 * Two wide cards rather than two more columns in the pricing grid above.
 * An individual buys in a minute with a card; a facility goes through
 * procurement. Separating them stops the page implying those are the same
 * decision, and gives each enough room for the terms that actually matter. */
.ef-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .ef-tiers { grid-template-columns: 1fr; } }

.ef-tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  display: flex; flex-direction: column;
}
.ef-tier-name { font-family: 'Inter', sans-serif; font-weight: 900; font-size: 20px; }
.ef-tier-for { color: var(--faint); font-size: 13.5px; margin-top: 5px; }
.ef-tier-amt {
  font-size: 36px; font-weight: 900; font-variant-numeric: tabular-nums;
  margin: 18px 0 20px;
}
.ef-tier-amt span { font-size: 14px; font-weight: 400; color: var(--faint); }

.ef-tier ul { display: flex; flex-direction: column; gap: 11px; flex: 1; margin-bottom: 24px; }
.ef-tier li { display: flex; gap: 11px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.ef-tier li svg { width: 15px; height: 15px; color: var(--primary); flex: none; margin-top: 3px; }

.ef-tier .btn { width: 100%; }
.ef-tier-fine { margin-top: 12px; font-size: 12.5px; color: var(--faint); text-align: center; }
