/* ==========================================================================
   Homepage (/) — Pen redesign "Editorial V2 (Satoshi)". Loaded after
   editorial.css and feature-explorer.css, only on this page; every rule is
   scoped to .ed-home. Motion lives in public/assets/js/home-motion.js and only
   applies when that script adds .ed-motion (content is fully visible without
   JavaScript and with prefers-reduced-motion).
   Contrast: brand red is 3.4:1 on paper, so small red text from the design is
   set in ink, and white-on-red labels use 19px bold (WCAG "large text").
   ========================================================================== */

.ed-home ul { list-style: none; margin: 0; padding: 0; }
.ed-home { overflow-x: clip; }
.ed-home__red { color: var(--ed-red); }
.ed-home__section { padding-block: 140px; }
.ed-home__band { background: var(--ed-paper-2); padding-block: 140px; }
.ed-home__kicker { margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.ed-home__title-row { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: clamp(12px, 1.7vw, 28px); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.ed-home__hero { position: relative; padding-top: calc(var(--site-header-height, 76px) + 40px); }
.ed-home__hero > .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 414px); align-items: end; }
.ed-home__meta { grid-column: 1 / -1; margin: 0 0 28px; color: var(--ed-muted); }
.ed-home__h-line { font-size: clamp(60px, 12.2vw, 187px); line-height: 0.86; }
.ed-home__h-line--1, .ed-home__h-line--2 { grid-column: 1 / -1; }
.ed-home__h-line--2 { grid-row: 3; }
.ed-home__h-line--3 { grid-column: 1; grid-row: 4; }
.ed-home__badge { grid-column: 2; grid-row: 3; align-self: center; justify-self: end; position: relative; display: grid; place-items: center; width: 150px; height: 150px; margin: 0; padding: 0; border: 1px solid var(--ed-ink); border-radius: 50%; background: var(--ed-paper); color: var(--ed-red); cursor: pointer; }
.ed-home__badge-ring { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); pointer-events: none; }
.ed-home__badge-ring text { font-family: var(--ed-sans); font-size: 7.4px; font-weight: 700; letter-spacing: 2.2px; fill: var(--ed-ink); }
.ed-home__aside { grid-column: 2; grid-row: 4; align-self: end; margin: 0 0 0.6em 24px; font-size: clamp(19px, 2.08vw, 30px); font-weight: 500; line-height: 1.12; letter-spacing: -0.03em; }
.ed-home__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; }
.ed-home__primary { padding: 20px 32px; font-size: 19px; }
.ed .ed-home__secondary { padding: 20px 32px; border: 1px solid var(--ed-ink); font-size: 17px; font-weight: 500; }
.ed .ed-home__secondary:hover { background: var(--ed-ink); color: var(--ed-paper); }

/* Phone fan (Pen "Phone Fan"): every phone is the same size (250px wide at 1440, scaled
   below) on an even step, fanning out with a gentle rotation and arc. --i is the offset
   from the centre (wrapped, so the fan is a loop of every template); motion adds
   --ix/--iy/--io/--py/--tilt, and the drag controller (home-motion.js) moves --i and sets --fade.
   The CMS template images already include their own rounded phone frame, transparent
   margin and shadow, so the <img> gets no border, background, radius or box-shadow. */
@property --hy { syntax: '<length>'; inherits: false; initial-value: 0px; }
.ed-home__fan { --w: min(250px, 17.4vw); position: relative; z-index: 1; height: calc(var(--w) * 2.2); margin-top: 56px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ed-home__fan-phone {
    --a: max(var(--i), calc(var(--i) * -1));
    position: absolute; left: 50%; top: calc(var(--a) * var(--a) * var(--w) * 0.05 + var(--w) * 0.08);
    display: block; width: var(--w);
    z-index: calc(10 - var(--a));
    transform: translateX(calc(-50% + var(--i) * var(--w) * 0.79 + var(--ix, 0px))) translateY(calc(var(--iy, 0px) + var(--py, 0px) + var(--hy))) rotate(calc(var(--i) * 3.8deg + var(--tilt, 0deg)));
    opacity: calc(var(--io, 1) * var(--fade, 1));
    transition: --hy .35s var(--ed-ease);
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
}
.ed-home__fan-phone img { display: block; width: 100%; height: auto; pointer-events: none; }
a.ed-home__fan-phone:hover, a.ed-home__fan-phone:focus-visible { --hy: -14px; }
.ed-home__fan-phone:focus-visible { outline: 2px solid var(--ed-ink); outline-offset: 4px; border-radius: 12%; }
/* More phones on wider screens: 11 from 1600px, 9 on desktop, 7 on tablet, 5 on phones. */
.ed-home__fan-phone:is([data-a="5"], [data-a="6"], [data-a="7"], [data-a="8"]) { display: none; }
@media (min-width: 1600px) { .ed-home__fan-phone[data-a="5"] { display: block; } }
@media (max-width: 1199px) { .ed-home__fan-phone[data-a="4"] { display: none; } }
/* Draggable (JS): every phone can slide in; the controller fades the ones past the edge. */
.ed-home__fan.is-draggable { cursor: grab; }
.ed-home__fan.is-draggable .ed-home__fan-phone { display: block; }
.ed-home__fan.is-dragging { cursor: grabbing; }
.ed-home__fan.is-dragging .ed-home__fan-phone { --hy: 0px; cursor: grabbing; }
.ed-home__fan-nav { position: absolute; z-index: 200; top: calc(var(--w) * 0.62); display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--ed-ink); color: var(--ed-paper); cursor: pointer; transition: transform .25s var(--ed-ease), background-color .2s var(--ed-ease); }
.ed-home__fan-nav:hover { background: #2A2A2E; transform: scale(1.06); }
.ed-home__fan-nav--prev { left: max(24px, calc(50% - var(--w) * 3.4)); }
.ed-home__fan-nav--next { right: max(24px, calc(50% - var(--w) * 3.4)); }

/* Ticker tapes cover the bottom of the fan. */
/* Clip sideways only: the rotated tapes rise above the container at the screen edges and must not be cut off. */
.ed-home__tapes { position: relative; z-index: 2; height: 240px; margin-top: -150px; overflow-x: clip; overflow-y: visible; pointer-events: none; }
.ed-home__tape { position: absolute; left: -10%; width: 120%; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.ed-home__tape--back { top: 30px; height: 112px; background: var(--ed-ink); color: var(--ed-paper); rotate: 3deg; font-size: clamp(24px, 3.06vw, 44px); font-weight: 500; letter-spacing: -0.03em; }
.ed-home__tape--front { top: 90px; height: 104px; background: var(--ed-red); color: #fff; rotate: -2.5deg; font-family: var(--ed-display-text); font-weight: 700; font-size: clamp(32px, 3.9vw, 56px); text-transform: uppercase; }
.ed-home__track { display: inline-flex; flex-shrink: 0; animation: ed-home-marquee 60s linear infinite; }
.ed-home__track > span { padding-right: 0.6em; }
.ed-home__diamond { display: inline-block; width: 0.3em; height: 0.3em; margin: 0 0.55em; background: currentColor; transform: rotate(45deg) translateY(-0.12em); vertical-align: middle; }
.ed-home__tape--front .ed-home__track { animation-duration: 38s; animation-direction: reverse; }
@keyframes ed-home-marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ── Manifesto ───────────────────────────────────────────────────────────── */
.ed-home__manifesto { padding-block: 200px 140px; }
.ed-home__statement-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: end; margin: 96px 0; }
.ed-home__statement-1 { grid-column: 1 / -1; font-size: clamp(52px, 12.2vw, 176px); }
.ed-home__statement-2 { grid-column: 1; grid-row: 2; font-size: clamp(48px, 9.6vw, 150px); }
.ed-home__statement-side { grid-column: 2; grid-row: 2; margin: 0 0 0.8em 24px; color: var(--ed-muted); font-size: 18px; line-height: 1.55; }
.ed-home__pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.ed-home__pillar { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; border-top: 1.5px solid var(--ed-ink); }
.ed-home__pillar-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ed-home__pillar-label { font-size: 22px; font-weight: 500; }
.ed-home__pillar-title { font-size: clamp(64px, 6.67vw, 96px); line-height: 0.9; }
.ed-home__pillar-desc { flex: 1; margin: 0; color: var(--ed-muted); font-size: 17px; line-height: 1.55; }
.ed .ed-home__pillar-link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding-top: 8px; font-size: 16px; font-weight: 700; }
.ed-home__pillar-link svg, .ed-home__show-link svg { transition: transform .25s var(--ed-ease); }
.ed-home__pillar-link:hover svg, .ed-home__show-link:hover svg { transform: translate(3px, -3px); }
.ed-home__pillar-link:hover span, .ed-home__show-link:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* ── Works with (integrations-item markup) ───────────────────────────────── */
.ed-home__works { padding-bottom: 120px; }
.ed-home__works-label { display: flex; align-items: center; gap: 24px; color: var(--ed-muted); }
.ed-home__works-label h2 { margin: 0; flex-shrink: 0; }
.ed-home__rule { flex: 1; height: 1px; background: var(--ed-line); }
.ed-home__logos { display: grid; grid-template-columns: repeat(10, auto); justify-content: space-between; align-items: center; gap: 28px 24px; margin-top: 36px; }
.ed-home .integration-item { display: inline-flex; align-items: center; }
.ed-home .integration-dot { display: none; }
.ed-home .integration-link { display: flex; align-items: center; opacity: 0.6; transition: opacity .2s var(--ed-ease); }
.ed-home .integration-link:hover { opacity: 1; }
.ed-home .integration-logo { display: block; width: auto; max-height: 30px; object-fit: contain; filter: brightness(0); }
.ed-home .integration-logo--invert { filter: grayscale(1); }

/* ── Features (restyles feature-explorer.css; its JS hooks are unchanged) ── */
.ed-home .ed-home__features { background: var(--ed-paper-2); padding-block: 120px 140px; }
.ed-home__features-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin: 64px 0 80px; }
.ed-home__features-title { margin: 0; }
.ed-home__features-title .ed-display, .ed-home__features-title .ed-contrast { font-size: clamp(48px, 8.2vw, 118px); line-height: 0.9; }
.ed-home__features-title .ed-contrast { letter-spacing: -0.0625em; }
.ed-home__features-intro { margin: 0; max-width: 340px; color: var(--ed-muted); font-size: 17px; line-height: 1.55; }
.ed-home .bk-feature-heading-row { display: none; }
.ed-home .bk-feature-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 560px); justify-content: space-between; gap: 64px; align-items: start; padding-top: 0; }
.ed-home .bk-feature-menu { border-top: 1px solid var(--ed-line); }
.ed-home .bk-feature-item { position: relative; display: flex; flex-direction: row; justify-content: flex-start; align-items: center; min-height: 0; gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--ed-line); transition: padding .6s var(--ed-ease), border-color .6s var(--ed-ease); }
.ed-home .bk-feature-item { flex-wrap: wrap; row-gap: 6px; }
.ed-home .bk-feature-item h3 { flex: 1 0 auto; max-width: 100%; margin: 0; }
.ed-home .bk-feature-choice { display: flex; align-items: center; gap: 28px; width: 100%; padding: 0 !important; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ed-home .bk-feature-index { flex-shrink: 0; width: 18px; font-family: var(--ed-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--ed-muted); transition: color .4s var(--ed-ease); }
.ed-home .bk-feature-name { font-family: var(--ed-display-text); font-weight: 700; font-size: 34px; line-height: 0.95; text-transform: uppercase; color: rgba(12, 12, 14, 0.6); transition: font-size .6s var(--ed-ease), color .4s var(--ed-ease); }
.ed-home .bk-feature-mark { position: absolute; right: 0; top: 50%; translate: -10px -50%; transform: none !important; opacity: 0 !important; color: var(--ed-red); font-size: 0; transition: opacity .4s var(--ed-ease), translate .4s var(--ed-ease); }
.ed-home .bk-feature-panel { flex-shrink: 0; max-width: 46%; margin-left: auto; margin-right: 36px; padding: 0 !important; text-align: right; animation: none; }
.ed-home .bk-feature-panel[hidden] { display: block; }
.ed-home .bk-feature-panel p { max-width: none; margin: 0; opacity: 1; color: var(--ed-muted); font-size: 15px; line-height: 1.35; transition: font-size .6s var(--ed-ease), color .4s var(--ed-ease); }
.ed-home .bk-feature-item.is-current { padding-block: 28px; border-bottom: 1.5px solid var(--ed-ink); }
.ed-home .bk-feature-item.is-current .bk-feature-index { color: var(--ed-ink); }
.ed-home .bk-feature-item.is-current .bk-feature-name { font-size: clamp(40px, 4.44vw, 64px); color: var(--ed-ink); }
.ed-home .bk-feature-item.is-current .bk-feature-panel p { font-size: clamp(17px, 1.67vw, 24px); font-weight: 500; color: var(--ed-ink); }
.ed-home .bk-feature-item.is-current .bk-feature-mark { opacity: 1 !important; translate: 0 -50%; }
.ed-home .bk-feature-choice:hover .bk-feature-name { color: var(--ed-ink); }
.ed-home .bk-feature-choice:focus-visible { outline: 2px solid var(--ed-ink); outline-offset: 6px; }
.ed-home .bk-feature-studio { height: min(693px, calc(100svh - 120px)); min-height: 520px; }
.ed-home .bk-feature-device { height: calc(100% - 80px); aspect-ratio: 299 / 613; filter: drop-shadow(0 40px 50px rgba(12, 12, 14, 0.25)); }
.ed-home .bk-widget-phone { border: 10px solid var(--ed-ink); border-radius: 44px; background: var(--ed-ink); box-shadow: none; }
.ed-home .bk-continuous-phone .bk-widget-viewport { inset: 0; border-radius: 34px; background: #111; }
.ed-home .bk-widget-speaker, .ed-home .bk-widget-home { display: none; }
.ed-home__callout { position: absolute; z-index: 4; right: 0; top: 50%; display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 100px; background: var(--ed-red); color: #fff; font-size: 19px; font-weight: 700; white-space: nowrap; box-shadow: 0 16px 30px -12px rgba(249, 44, 77, 0.6); transition: translate .6s var(--ed-ease); }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.ed-home__pricing-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin: 72px 0; }
.ed-home__pricing-title { margin: 0; }
.ed-home__pricing-title .ed-display, .ed-home__pricing-title .ed-contrast { font-size: clamp(52px, 8.9vw, 128px); line-height: 0.9; }
.ed-home__pricing-title .ed-contrast { letter-spacing: -0.0625em; }
.ed-home__toggle { display: inline-flex; flex-shrink: 0; padding: 5px; border: 1px solid var(--ed-ink); border-radius: 100px; }
.ed-home__toggle button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 0; border-radius: 100px; background: transparent; color: var(--ed-ink); font-family: var(--ed-sans); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .25s var(--ed-ease), color .25s var(--ed-ease); }
.ed-home__toggle button.is-active { background: var(--ed-ink); color: var(--ed-paper); font-weight: 700; }
.ed-home__save { font-size: 12px; letter-spacing: 0.04em; }
.ed-home__plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1.5px solid var(--ed-ink); }
.ed-home__plan { display: flex; flex-direction: column; gap: 28px; padding: 36px 28px 32px; border-right: 1px solid var(--ed-line); min-width: 0; }
.ed-home__plan:last-child { border-right: 0; }
.ed-home__plan.is-featured { background: #fff; border: 2px solid var(--ed-red); margin-block: -1.5px; }
.ed-home__plan-name { display: flex; flex-direction: column; gap: 6px; }
.ed-home__plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ed-home__plan-title { margin: 0; font-family: var(--ed-display-text); font-weight: 700; font-size: clamp(32px, 2.7vw, 44px); line-height: 0.95; text-transform: uppercase; }
.ed-home__popular { padding: 6px 12px; border-radius: 100px; background: var(--ed-red); color: var(--ed-ink); font-size: 11px; line-height: 1; white-space: nowrap; }
.ed-home__plan-kicker { margin: 0; color: #4F4F4F; font-size: 20px; font-weight: 500; line-height: 1.25; }
.ed-home__price { display: flex; align-items: flex-end; gap: 6px; margin: 0; min-height: 58px; }
.ed-home__amount { font-family: var(--ed-display-text); font-weight: 700; font-size: 64px; line-height: 0.9; }
.ed-home__plan.is-featured .ed-home__amount { color: var(--ed-red); }
.ed-home__price .price-period { padding-bottom: 6px; color: var(--ed-muted); font-size: 14px; }
.ed-home__price--talk .ed-home__amount { font-size: clamp(36px, 3.2vw, 52px); }
.ed-home__plan-features { display: flex; flex-direction: column; gap: 12px; flex: 1; padding-top: 24px; border-top: 1px solid var(--ed-line); }
.ed-home__plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.3; }
.ed-home__plan-features svg { flex-shrink: 0; margin-top: 1px; }
.ed-home__plan.is-featured .ed-home__plan-features svg { color: var(--ed-red); }
.ed .ed-home__plan-btn { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; padding: 14px 20px; border: 1px solid var(--ed-ink); border-radius: 100px; font-size: 19px; font-weight: 700; line-height: 1.2; transition: background-color .25s var(--ed-ease), color .25s var(--ed-ease), scale .25s var(--ed-ease); }
.ed .ed-home__plan-btn:hover { background: var(--ed-ink); color: var(--ed-paper); }
.ed .ed-home__plan-btn--red { background: var(--ed-red); border-color: var(--ed-red); color: #fff; }
.ed .ed-home__plan-btn--red:hover { background: #E5203F; border-color: #E5203F; color: #fff; }

/* ── Reviews ─────────────────────────────────────────────────────────────── */
.ed-home__quotes { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; margin: 56px 0 96px; }
.ed-home__quote-mark { font-weight: 700; font-size: clamp(120px, 18vw, 260px); line-height: 0.8; height: 0.62em; color: var(--ed-red); }
.ed-home__quote-body { display: flex; flex-direction: column; gap: 40px; padding-top: 24px; }
.ed-home__slide { margin: 0; }
.ed-home__slide[hidden] { display: none; }
.ed-home__quote { margin: 0 0 40px; font-size: clamp(28px, 4.44vw, 64px); font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; }
.ed-home__who { display: flex; align-items: center; gap: 16px; }
.ed-home__who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--ed-paper); }
.ed-home__who-text { display: flex; flex-direction: column; gap: 4px; }
.ed-home__who-name { font-family: var(--ed-display-text); font-weight: 700; font-size: 22px; line-height: 1; text-transform: uppercase; }
a.ed-home__who-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.ed-home__who-role { color: var(--ed-muted); font-size: 11px; }
.ed-home__quote-nav { display: flex; align-items: center; gap: 12px; align-self: flex-end; margin-top: -88px; }
.ed-home__quote-nav .ed-mono { margin-right: 12px; font-size: 13px; }
.ed-home__arrow { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 1px solid var(--ed-ink); border-radius: 50%; background: transparent; color: var(--ed-ink); cursor: pointer; transition: background-color .25s var(--ed-ease), color .25s var(--ed-ease), scale .25s var(--ed-ease); }
.ed-home__arrow:hover { scale: 1.06; }
.ed-home__arrow--ink { background: var(--ed-ink); color: var(--ed-paper); }

/* ── Showcase ────────────────────────────────────────────────────────────── */
.ed-home__show-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.ed-home__show-title { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 20px; margin: 0; }
.ed-home__show-title .ed-display, .ed-home__show-title .ed-contrast { font-size: clamp(52px, 6.67vw, 96px); line-height: 0.9; }
.ed-home__show-title .ed-contrast { letter-spacing: -0.0625em; }
.ed .ed-home__show-link { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 12px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.ed-home__strip { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; padding-inline: max(var(--bk-edge, 24px), calc((100% - var(--bk-max, 1440px)) / 2)); }
.ed-home__strip::-webkit-scrollbar { display: none; }
.ed-home__strip.is-dragging { cursor: grabbing; user-select: none; }
.ed-home__strip:focus-visible { outline: 2px solid var(--ed-ink); outline-offset: -2px; }
.ed-home__strip-list { display: flex; gap: 24px; width: max-content; padding-bottom: 8px; }
.ed-home__show { width: 264px; flex-shrink: 0; }
.ed-home__show-card { display: flex; flex-direction: column; gap: 16px; }
/* Same CMS template images as the fan: they carry their own phone frame, so no extra border, radius, background or box-shadow here. */
.ed-home__show-page { display: block; aspect-ratio: 264 / 559; transition: scale .9s var(--ed-ease); }
.ed-home__show-page img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: top; pointer-events: none; }
.ed-home__show-card:hover .ed-home__show-page { scale: 1.02; }
.ed-home__show-name { font-family: var(--ed-display-text); font-weight: 700; font-size: 22px; text-transform: uppercase; }
.ed-home__progress { display: flex; align-items: center; gap: 24px; margin-top: 40px; color: var(--ed-muted); }
.ed-home__progress-track { position: relative; flex: 1; height: 2px; background: var(--ed-line); overflow: hidden; }
.ed-home__progress-thumb { position: absolute; left: 0; top: 0; width: 28%; height: 100%; background: var(--ed-ink); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.ed-home__faq { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 96px; margin-top: 72px; align-items: start; }
.ed-home__faq-side { display: flex; flex-direction: column; gap: 48px; }
.ed-home__faq-title { margin: 0; }
.ed-home__faq-title .ed-display, .ed-home__faq-title .ed-contrast { font-size: clamp(56px, 6.67vw, 96px); line-height: 0.9; }
.ed-home__faq-title .ed-contrast { letter-spacing: -0.06em; }
.ed-home__card { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px; border-radius: 4px; background: var(--ed-paper-2); }
.ed-home__card-kicker { color: var(--ed-muted); font-size: 11px; }
.ed-home__card-title { margin: 0; font-size: clamp(28px, 2.5vw, 36px); font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; }
.ed-home__card-body { margin: 0; color: var(--ed-muted); font-size: 15px; line-height: 1.55; }
.ed-home__card-btn { padding: 14px 24px; font-size: 19px; }
.ed-home__accordion { border-top: 1.5px solid var(--ed-ink); }
.ed-home__faq-item { border-bottom: 1px solid var(--ed-line); }
.ed-home__q { margin: 0; }
.ed-home__q button { display: grid; grid-template-columns: 24px minmax(0, 1fr) 44px; align-items: center; gap: 28px; width: 100%; padding: 32px 0; border: 0; background: none; color: var(--ed-ink); font-family: var(--ed-sans); text-align: left; cursor: pointer; }
.ed-home__q-num { color: var(--ed-muted); }
.ed-home__q button[aria-expanded="true"] .ed-home__q-num { color: var(--ed-ink); }
.ed-home__q-text { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; transition: translate .25s var(--ed-ease); }
.ed-home__q button:hover .ed-home__q-text { translate: 8px 0; }
.ed-home__q-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ed-line); border-radius: 50%; transition: background-color .3s var(--ed-ease), color .3s var(--ed-ease); }
.ed-home__q-toggle svg { transition: rotate .45s var(--ed-ease); }
.ed-home__q button[aria-expanded="true"] .ed-home__q-toggle { background: var(--ed-ink); border-color: var(--ed-ink); color: var(--ed-paper); }
.ed-home__q button[aria-expanded="true"] .ed-home__q-toggle svg { rotate: 135deg; }
.ed-home__a { padding: 0 72px 32px 52px; }
.ed-home__a p { margin: 0; color: var(--ed-muted); font-size: 17px; line-height: 1.6; }

/* ── Final CTA: three-line head sized so each line sets on one row ─────── */
.ed-home .ed-final__head .ed-display,
.ed-home .ed-final__head .ed-contrast { font-size: clamp(44px, 8.2vw, 118px); }

/* ── Motion states (only with .ed-motion, set by home-motion.js) ─────────── */
.ed-motion .m-line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.ed-motion .m-inner { display: inline-block; translate: 0 110%; transition: translate 1s var(--ed-ease); transition-delay: var(--d, 0ms); }
.ed-motion .m-in .m-inner, .ed-motion .m-in.m-inner { translate: 0 0; }
.ed-motion [data-m="fade"] { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ed-ease), translate .9s var(--ed-ease); transition-delay: var(--d, 0ms); }
.ed-motion [data-m="fade"].m-in { opacity: 1; translate: 0 0; }
.ed-motion .ed-home__badge-ring { animation: ed-home-spin 14s linear infinite; }
.ed-motion .ed-home__badge:hover .ed-home__badge-ring { animation-duration: 4s; }
.ed-motion .ed-home__badge-arrow { animation: ed-home-nudge 1.8s var(--ed-ease) infinite; }
@keyframes ed-home-spin { to { rotate: 360deg; } }
@keyframes ed-home-nudge { 0%, 100% { translate: 0 -3px; } 50% { translate: 0 5px; } }
.ed-motion .bk-footer__wordmark .m-line { display: inline-block; }

/* ── Breakpoints ─────────────────────────────────────────────────────────── */
@media (max-width: 1279px) {
    .ed-home__logos { grid-template-columns: repeat(5, auto); justify-content: space-around; row-gap: 32px; }
    .ed-home__plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ed-home__plan:nth-child(2) { border-right: 0; }
    .ed-home__plan:nth-child(-n+2) { border-bottom: 1px solid var(--ed-line); }
    .ed-home__plan.is-featured { margin: 0; }
    .ed-home__plan-title { font-size: 44px; }
    .ed-home .bk-feature-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; }
}
/* Below 1280px the hero aside and manifesto side copy move under the headlines. */
@media (max-width: 1279px) {
    .ed-home__hero > .container { grid-template-columns: minmax(0, 1fr) auto; }
    .ed-home__h-line--3 { grid-column: 1 / -1; }
    .ed-home__aside { grid-column: 1 / -1; grid-row: 5; margin: 28px 0 0; max-width: 560px; }
    .ed-home__statement-wrap { grid-template-columns: minmax(0, 1fr); margin: 64px 0; }
    .ed-home__statement-2 { grid-column: 1 / -1; }
    .ed-home__statement-side { grid-column: 1; grid-row: 3; margin: 28px 0 0; max-width: 560px; }
}
@media (max-width: 1023px) {
    .ed-home__hero > .container { grid-template-columns: minmax(0, 1fr); }
    .ed-home__badge { display: none; }
    .ed-home__pillars { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .ed-home__features-head, .ed-home__pricing-head, .ed-home__show-head { flex-direction: column; align-items: flex-start; }
    .ed-home__faq { grid-template-columns: minmax(0, 1fr); gap: 56px; }
    .ed-home__card { max-width: 560px; }
    .ed-home__quote-nav { margin-top: 0; align-self: flex-start; }
}
/* Mobile-only elements (hidden on larger screens). */
.ed-home__feature-now, .ed-home__plans-pager, .ed-home__hint-swipe { display: none; }

/* ── Phones (Pen "BookedKit — Home Mobile (390)") ────────────────────────── */
@media (max-width: 760px) {
    .ed-home__section, .ed-home__band, .ed-home .ed-home__features { padding-block: 64px; }
    .ed-home__band { padding-bottom: 56px; }
    .ed-home .ed-label-row { font-size: 11px; padding-bottom: 12px; }

    /* Hero: headline sized so "OPPORTUNITY" fills the line, full-width CTAs. */
    .ed-home__hero { padding-top: calc(var(--site-header-height, 64px) + 28px); }
    .ed-home__meta { margin-bottom: 20px; font-size: 11px; }
    .ed-home__h-line { font-size: 18.6vw; line-height: 0.86; }
    .ed-home__aside { margin-top: 20px; font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; }
    .ed-home__actions { flex-direction: column; gap: 10px; margin-top: 24px; }
    .ed-home__actions .ed-pill { flex: none; width: 100%; }
    .ed-home__primary { padding: 18px 24px; }
    .ed .ed-home__secondary { padding: 15px 24px; }

    /* Phone fan: 5 large phones fanned like a hand of cards; tapes cross their bottom edge. */
    .ed-home__fan { --w: 38.5vw; height: calc(var(--w) * 2.3); margin-top: 24px; }
    .ed-home__fan-phone {
        top: calc(var(--a) * var(--w) * 0.15 + var(--a) * var(--a) * var(--w) * 0.066 + var(--w) * 0.08);
        transform: translateX(calc(-50% + var(--i) * var(--w) * 0.667 + var(--ix, 0px))) translateY(calc(var(--iy, 0px) + var(--py, 0px))) rotate(calc(var(--i) * 7deg + var(--tilt, 0deg)));
    }
    .ed-home__fan-phone[data-a="3"] { display: none; }
    .ed-home__fan-nav { width: 40px; height: 40px; top: calc(var(--w) * 0.9); }
    .ed-home__fan-nav--prev { left: 12px; }
    .ed-home__fan-nav--next { right: 12px; }
    /* Fixed overlap: the fan's clipped bottom edge always runs under the black tape (16-76px, +/-3deg),
       whatever the fan height (it scales with the viewport). */
    .ed-home__tapes { height: 150px; margin-top: -50px; }
    .ed-home__tape--back { top: 16px; height: 60px; font-size: 22px; }
    .ed-home__tape--front { top: 60px; height: 58px; font-size: 30px; }

    /* Manifesto: compact statement and one-row pillars. */
    .ed-home__manifesto { padding-block: 72px 64px; }
    .ed-home__statement-wrap { margin: 28px 0; }
    .ed-home__statement-1 { font-size: 13.3vw; line-height: 0.9; }
    .ed-home__statement-2 { font-size: 14.4vw; line-height: 1; letter-spacing: -0.06em; }
    .ed-home__statement-side { margin-top: 20px; font-size: 16px; }
    .ed-home__pillars { display: block; border-top: 1.5px solid var(--ed-ink); }
    .ed-home__pillar { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: end; column-gap: 12px; row-gap: 10px; padding: 20px 0 22px; border-top: 0; border-bottom: 1px solid var(--ed-line); }
    .ed-home__pillar-top { display: contents; }
    .ed-home__pillar-top .ed-mono { grid-column: 1; grid-row: 1; padding-bottom: 4px; color: var(--ed-ink); }
    .ed-home__pillar-title { grid-column: 2; grid-row: 1; font-size: 44px; }
    .ed-home__pillar-label { grid-column: 3; grid-row: 1; justify-self: end; padding-bottom: 4px; font-size: 14px; color: var(--ed-muted); }
    .ed-home__pillar-desc { grid-column: 1 / -1; font-size: 15px; line-height: 1.5; }
    .ed .ed-home__pillar-link { grid-column: 1 / -1; padding-top: 0; font-size: 15px; }

    /* Works with: one swipeable row of logos. */
    .ed-home__works { padding-bottom: 64px; }
    .ed-home__works-label { gap: 12px; }
    .ed-home__rule { display: none; }
    .ed-home__logos { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 32px; margin: 20px calc(var(--bk-edge, 20px) * -1) 0; padding-inline: var(--bk-edge, 20px); overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
    .ed-home__logos::-webkit-scrollbar { display: none; }
    .ed-home .integration-item { flex-shrink: 0; }
    .ed-home .integration-logo { max-height: 22px; }

    /* Features: phone preview, "now showing" caption, then the nine blocks as tap chips. */
    .ed-home__features-head { margin: 20px 0 28px; gap: 20px; }
    .ed-home__features-title .ed-display, .ed-home__features-title .ed-contrast { font-size: 12vw; }
    .ed-home__features-intro { font-size: 16px; }
    .ed-home .bk-feature-layout { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
    .ed-home .bk-feature-studio { order: 0; position: relative; top: auto; display: flex; justify-content: center; width: 100%; height: 470px; min-height: 0; margin: 0; background: transparent; box-shadow: none; z-index: auto; }
    .ed-home .bk-feature-device { height: 452px; }
    .ed-home .bk-widget-phone { border-width: 8px; border-radius: 36px; }
    .ed-home .bk-continuous-phone .bk-widget-viewport { border-radius: 28px; }
    .ed-home__callout { display: inline-flex; top: auto; bottom: 120px; right: 4px; padding: 12px 18px; font-size: 19px; translate: none !important; }
    .ed-home__callout-desc { display: none; }
    .ed-home__feature-now { order: 1; display: flex; flex-direction: column; align-self: stretch; width: 100%; gap: 8px; margin-top: 8px; }
    .ed-home__feature-now-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1.5px solid var(--ed-ink); }
    /* Fixed-height line; home-motion.js shrinks long (e.g. Spanish) names to fit, so switching blocks never shifts the layout. */
    .ed-home__feature-now-name { display: flex; align-items: flex-end; height: 38px; min-width: 0; font-family: var(--ed-display-text); font-weight: 700; font-size: 40px; line-height: 0.95; text-transform: uppercase; white-space: nowrap; }
    .ed-home__feature-now-top { gap: 12px; }
    .ed-home__feature-now-top .ed-mono { flex-shrink: 0; white-space: nowrap; }
    .ed-home__feature-now-desc { margin: 0; font-size: 17px; font-weight: 500; }
    .ed-home .bk-feature-menu { order: 2; display: flex; flex-wrap: wrap; gap: 8px 6px; margin-top: 28px; padding: 0; border-top: 0; }
    .ed-home .bk-feature-item { display: contents; }
    .ed-home .bk-feature-item h3 { display: contents; }
    .ed-home .bk-feature-panel { display: none !important; }
    .ed-home .bk-feature-choice { display: inline-flex; width: auto; min-height: 40px; padding: 9px 12px !important; border: 1px solid var(--ed-line); border-radius: 100px; gap: 0; }
    .ed-home .bk-feature-index, .ed-home .bk-feature-mark { display: none; }
    .ed-home .bk-feature-name, .ed-home .bk-feature-item.is-current .bk-feature-name { font-family: var(--ed-sans); font-size: 14px; font-weight: 500; line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--ed-ink); }
    .ed-home .bk-feature-choice[aria-pressed="true"] { background: var(--ed-ink); border-color: var(--ed-ink); }
    .ed-home .bk-feature-choice[aria-pressed="true"] .bk-feature-name { color: var(--ed-paper); font-weight: 700; }

    /* Pricing: swipeable carousel of equal-height cards with a pager. */
    .ed-home__pricing-head { flex-direction: column; align-items: flex-start; gap: 22px; margin: 20px 0 28px; }
    .ed-home__pricing-title .ed-display, .ed-home__pricing-title .ed-contrast { font-size: 13.3vw; }
    .ed-home__plans { display: flex; gap: 12px; margin-inline: calc(var(--bk-edge, 20px) * -1); padding-inline: var(--bk-edge, 20px); scroll-padding-inline: var(--bk-edge, 20px); border: 0; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
    .ed-home__plans::-webkit-scrollbar { display: none; }
    .ed-home__plan, .ed-home__plan:nth-child(-n+2), .ed-home__plan:last-child { flex: 0 0 min(300px, 80vw); gap: 22px; margin: 0; padding: 28px 24px 24px; border: 0; border-radius: 4px; background: var(--ed-paper-2); scroll-snap-align: start; }
    .ed-home__plan.is-featured { padding-inline: 24px; border: 2px solid var(--ed-red); background: #fff; }
    .ed .ed-home__plan-title { font-size: 38px; }
    .ed-home__plan-kicker { font-size: 17px; }
    .ed-home__amount { font-size: 56px; }
    .ed-home__plan-features { gap: 10px; padding-top: 18px; }
    .ed .ed-home__plan-btn { min-height: 52px; margin-top: 0; font-size: 17px; }
    .ed-home__plans-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; color: var(--ed-muted); }
    .ed-home__dots { display: flex; gap: 6px; }
    .ed-home__dots > span { width: 8px; height: 4px; border-radius: 2px; background: rgba(12, 12, 14, 0.2); transition: width .3s var(--ed-ease), background-color .3s var(--ed-ease); }
    .ed-home__dots > span.is-active { width: 24px; background: var(--ed-ink); }

    /* Reviews: smaller quote; arrows share the row with the artist. */
    .ed-home__quotes { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 20px 0 48px; }
    .ed-home__quote-mark { height: 52px; font-size: 110px; line-height: 0.75; }
    .ed-home__quote-body { gap: 0; padding-top: 12px; }
    .ed-home__quote { margin: 0 0 20px; font-size: 28px; line-height: 1.1; letter-spacing: -0.03em; }
    .ed-home__who { padding: 16px 160px 0 0; border-top: 1px solid var(--ed-line); }
    .ed-home__who img { width: 40px; height: 40px; }
    .ed-home__who-name { font-size: 20px; }
    .ed-home__quote-nav { align-self: flex-end; gap: 8px; margin-top: -44px; }
    .ed-home__quote-nav .ed-mono { margin-right: 2px; font-size: 11px; }
    .ed-home__arrow { width: 44px; height: 44px; }

    /* Showcase */
    .ed-home__show-head { margin-bottom: 28px; gap: 12px; }
    .ed-home__show-title { flex-direction: column; align-items: flex-start; }
    .ed-home__show-title .ed-display { font-size: 13.3vw; }
    .ed-home__show-title .ed-contrast { font-size: 11.8vw; }
    .ed .ed-home__show-link { padding-bottom: 0; font-size: 15px; }
    .ed-home__strip-list { gap: 14px; }
    .ed-home__show { width: 170px; }
    .ed-home__show-card { gap: 10px; }
    .ed-home__show-name { font-size: 18px; }
    .ed-home__progress { margin-top: 24px; }

    /* FAQ: title, accordion, then the contact card. */
    .ed-home__faq { display: flex; flex-direction: column; gap: 28px; margin-top: 20px; }
    .ed-home__faq-side { display: contents; }
    .ed-home__faq-title { order: 0; }
    .ed-home__faq-title .ed-display, .ed-home__faq-title .ed-contrast { font-size: 14.4vw; }
    .ed-home__accordion { order: 1; }
    .ed-home__card { order: 2; gap: 16px; padding: 24px; }
    .ed-home__card-title { font-size: 28px; }
    .ed-home__card-btn { padding: 14px 22px; font-size: 19px; } /* 19px bold: white on brand red meets AA */
    .ed-home .ed-home__faq-item { padding: 0; } /* main.css adds padding-bottom to every .faq-item */
    .ed-home__q button { grid-template-columns: 22px minmax(0, 1fr) 36px; gap: 14px; padding: 18px 0; }
    .ed-home__q-num { grid-column: auto; }
    .ed-home__q-text { font-size: 18px; line-height: 1.25; }
    .ed-home__q-toggle { width: 36px; height: 36px; }
    .ed-home__a { padding: 0 50px 18px 36px; }
    .ed-home__a p { font-size: 15px; }

    /* Final CTA */
    .ed-home .ed-final { padding-block: 64px; }
    .ed-home .ed-final__head { margin: 28px 0; }
    .ed-home .ed-final__head .ed-display, .ed-home .ed-final__head .ed-contrast { font-size: 12.8vw; }
    .ed-home .ed-final__body { font-size: 17px; }
    .ed-home .ed-final__row { gap: 28px; }
    .ed-home .ed-final__btn { width: 100%; justify-content: center; padding: 19px 24px; font-size: 19px; }
}
@media (hover: none) {
    .ed-home__hint-drag { display: none; }
    .ed-home__hint-swipe { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
    .ed-home__track, .ed-motion .ed-home__badge-ring, .ed-motion .ed-home__badge-arrow { animation: none !important; }
}
