/* Vire Epassi purchase journey: /epassi and its result pages (success, cancel, reject).
   Standalone on purpose: the homepage stylesheet (marketing.css) and /free (free.css)
   are not loaded or changed here. Visual language follows the published WEB-2 homepage. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body.ep {
  --ground: #050807;
  --ground-2: #08120E;
  --mint: #64F9B4;
  --mint-2: #5BF4A4;
  --mint-ink: #04140C;
  --text: #F1F5F2;
  --copy: #CBD8D1;
  --muted: #A6B3AC;
  --rim: rgba(91, 244, 164, 0.32);
  --rim-soft: rgba(91, 244, 164, 0.16);
  --line: rgba(255, 255, 255, 0.09);
  --danger: #FCA5A5;
  --accent-grad: linear-gradient(175deg, #BCFFE5 0%, #64F9B4 45%, #22DDA2 100%);
  --display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(1rem, 4.5vw, 2.5rem);
  --wrap: 1360px;
  --nav-h: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h, 64px) + 12px); scrollbar-color: #2A3330 #050807; }
.ep * { box-sizing: border-box; }
.ep ::selection { background: var(--mint); color: var(--mint-ink); }
.ep img { display: block; max-width: 100%; }
.ep a { color: var(--mint); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.ep :focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.ep [tabindex="-1"]:focus { outline: none; }
.ep p { margin: 0; }
/* Long Finnish compounds must wrap rather than overflow when text is enlarged. */
.ep h1, .ep h2, .ep h3, .ep p, .ep li, .ep summary, .ep label, .ep legend, .ep strong, .ep small, .ep span { overflow-wrap: break-word; }
.ep h1, .ep h2 { hyphens: manual; }
.ep .paycard-text, .ep .paycard-text *, .ep .buy-pay span, .ep .pkg-name, .ep .pkg-name *, .ep .brand,
.ep .field label, .ep .faq summary { overflow-wrap: anywhere; min-width: 0; }
.ep strong { color: var(--text); font-weight: 650; }

.ep .wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.ep .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.ep .skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--mint); color: var(--mint-ink);
  padding: 0.6rem 1rem; border-radius: 10px; font-weight: 700;
}
.ep .skip:focus { top: 1rem; }

/* ── Type ─────────────────────────────────────────────────── */

.ep h1, .ep h2 {
  font-family: var(--display);
  font-weight: 850;
  font-stretch: 100%;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0;
}
.ep h3 {
  font-family: var(--display);
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}
.ep .line { display: block; }
.ep .accent {
  color: var(--mint);
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ep .eyebrow {
  color: #6AF1BA;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0.23em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.ep .lede { color: var(--copy); font-size: 1.05rem; line-height: 1.55; max-width: 34em; }

/* ── Nav ──────────────────────────────────────────────────── */

.ep .nav {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(5, 8, 7, 0.94), rgba(5, 8, 7, 0.76));
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ep .nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--nav-h); }
.ep .brand {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--text); text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.04em;
}
.ep .brand img { width: 36px; height: 36px; border-radius: 9px; }
.ep .nav-links { display: flex; gap: 4px; }
.ep .nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--copy); font-size: 0.9rem; text-decoration: none; border-radius: 10px;
}
.ep .nav-links a:hover { color: var(--text); }
@media (max-width: 399px) { .ep .nav-links a[href="#pro"] { display: none; } }

/* ── Hero ─────────────────────────────────────────────────── */

.ep .hero {
  --photo-h: clamp(180px, calc(100vh - var(--nav-h) - 318px), 560px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 40px;
  background: radial-gradient(ellipse 90% 50% at 70% 100%, #0F2F2166, transparent 70%), var(--ground);
}
@supports (height: 100svh) {
  .ep .hero { --photo-h: clamp(180px, calc(100svh - var(--nav-h) - 318px), 560px); }
}
.ep .hero-photo {
  position: absolute; z-index: -1; top: 0; left: 0; right: 0;
  height: calc(var(--photo-h) + 40px);
  -webkit-mask-image: linear-gradient(#000 40%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
  mask-image: linear-gradient(#000 40%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
}
.ep .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 8%; }
/* Darkens the lower photo where the headline overlaps it on phones. */
.ep .hero-photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 30%, rgba(5, 8, 7, 0.55) 55%, rgba(5, 8, 7, 0.9) 78%, #050807 100%);
}
.ep .hero-stage { position: relative; z-index: 1; }
.ep .hero-copy { padding-top: max(110px, calc(var(--photo-h) - 64px)); }
.ep .hero h1 { font-size: clamp(2.1rem, 10.2vw, 3.9rem); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.ep .hero .eyebrow { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8); }
.ep .hero .lede { margin-top: 12px; font-size: 1rem; }

.ep .paycard {
  display: flex; align-items: center; gap: 14px;
  width: 100%; max-width: 420px; min-height: 64px;
  margin-top: 18px; padding: 10px 16px 10px 14px;
  background: #fff; color: #121614;
  border-radius: 16px; text-decoration: none;
  box-shadow: 0 22px 44px -22px #000, 0 0 0 1px rgba(255, 255, 255, 0.4);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.ep .paycard:hover { transform: translateY(-2px); box-shadow: 0 26px 50px -22px #000, 0 0 0 1px #fff; }
.ep .paycard:focus-visible { outline-offset: 4px; }
.ep .paycard-logo { flex: none; display: flex; align-items: center; padding-right: 14px; border-right: 1px solid #DADFDC; min-height: 40px; }
.ep .paycard-logo img { width: 84px; height: auto; }
.ep .paycard-text { display: grid; gap: 1px; flex: 1; min-width: 0; line-height: 1.25; }
.ep .paycard-text strong { color: #121614; font-family: var(--display); font-size: 1.05rem; font-weight: 750; letter-spacing: -0.01em; }
.ep .paycard-text small { color: #44514B; font-size: 0.82rem; font-weight: 550; }
.ep .paycard-arrow { flex: none; width: 22px; height: 22px; color: #121614; }
@media (max-width: 359px) {
  .ep .paycard { gap: 10px; padding: 8px 12px 8px 12px; }
  .ep .paycard-logo { padding-right: 10px; }
  .ep .paycard-logo img { width: 66px; }
  .ep .paycard-text strong { font-size: 0.96rem; }
  .ep .paycard-text small { font-size: 0.78rem; }
}

.ep .hero-how {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px;
  color: var(--copy); font-size: 0.92rem; text-decoration: underline; text-decoration-color: var(--rim);
}
.ep .hero-how:hover { color: var(--text); }

/* ── Purchase studio ─────────────────────────────────────── */

.ep .buy {
  position: relative;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--rim);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 80% 40% at 100% 0%, #17664440, transparent 70%),
    linear-gradient(165deg, #0D231A, #070D0B 62%);
  box-shadow: 0 40px 80px -40px #000, inset 0 1px 0 #B6FFCE1A;
}
.ep .buy-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.ep .buy-head h2 { font-size: 1.6rem; letter-spacing: -0.03em; }
.ep .buy-pay {
  display: flex; align-items: center; gap: 12px; min-height: 48px;
  padding: 8px 14px; border-radius: 12px; background: #fff; color: #2E3833;
  font-size: 0.86rem; font-weight: 650; line-height: 1.25;
}
.ep .buy-pay img { order: -1; width: 74px; height: auto; padding-right: 12px; border-right: 1px solid #DADFDC; box-sizing: content-box; }

.ep .packages { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ep .ep-package { position: relative; }
.ep .ep-package input {
  position: absolute; left: 18px; top: 50%; width: 1px; height: 1px;
  margin: 0; opacity: 0; pointer-events: none;
}
.ep .ep-package label {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  min-height: 64px; padding: 10px 18px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.ep .ep-package:hover label { border-color: rgba(91, 244, 164, 0.45); background: rgba(91, 244, 164, 0.05); }
.ep .pkg-mark {
  position: relative; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #6F8279; transition: border-color 0.2s, background-color 0.2s;
}
.ep .pkg-name { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; row-gap: 0; }
.ep .ep-pkg-duration { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.15; }
.ep .pkg-month { color: var(--muted); font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.ep .ep-pkg-price {
  font-family: var(--display); font-weight: 850; font-size: 1.6rem; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap;
}
.ep .ep-package input:checked + label {
  border-color: var(--mint);
  background: linear-gradient(110deg, rgba(91, 244, 164, 0.16), rgba(91, 244, 164, 0.04));
  box-shadow: inset 0 0 0 1px var(--mint), 0 14px 30px -18px rgba(0, 0, 0, 0.8);
}
.ep .ep-package input:checked + label .pkg-mark { border-color: var(--mint); background: var(--mint); }
.ep .ep-package input:checked + label .pkg-mark::after {
  content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid var(--mint-ink); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg);
}
.ep .ep-package input:checked + label .pkg-month { color: var(--copy); }
.ep .ep-package input:focus-visible + label { outline: 2px solid var(--mint); outline-offset: 3px; }
.ep .ep-package input:disabled + label { opacity: 0.55; cursor: default; }

.ep .field { display: grid; gap: 7px; margin-top: 18px; }
.ep .field label { font-size: 0.9rem; font-weight: 650; }
.ep .field input {
  width: 100%; min-height: 54px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 14px;
  background: #0A1210; color: var(--text);
  font: inherit; font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ep .field input::placeholder { color: #75857D; }
.ep .field input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(91, 244, 164, 0.22); }
.ep .field input:disabled { opacity: 0.6; }
.ep .helper { color: var(--muted); font-size: 0.84rem; line-height: 1.45; }

.ep .summary {
  margin-top: 16px; padding-left: 16px; position: relative;
  color: var(--copy); font-size: 0.9rem; line-height: 1.45; font-variant-numeric: tabular-nums;
}
.ep .summary[hidden] { display: none; }
.ep .summary::before {
  content: ''; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
}
.ep .summary strong { font-weight: 750; }

.ep .submit {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 56px; margin-top: 14px; padding: 0 20px;
  border: 0; border-radius: 14px;
  background: linear-gradient(180deg, #86FFC6, #3FE39B);
  color: var(--mint-ink);
  font-family: var(--display); font-size: 1.08rem; font-weight: 800; letter-spacing: -0.005em;
  cursor: pointer;
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, filter 0.2s;
}
.ep .submit:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.04); }
.ep .submit:disabled {
  cursor: not-allowed;
  background: #14221C; color: #8EA69A;
  box-shadow: inset 0 0 0 1px rgba(91, 244, 164, 0.18);
}
.ep .submit.loading { cursor: progress; background: linear-gradient(180deg, #5CC995, #36B47C); color: var(--mint-ink); }

.ep .cta-hint { margin-top: 10px; color: var(--muted); font-size: 0.85rem; text-align: center; }
.ep .error { display: none; }
.ep .error.visible {
  display: block; margin-top: 12px; padding: 12px 14px;
  border: 1px solid rgba(252, 165, 165, 0.4); border-radius: 12px;
  background: rgba(252, 165, 165, 0.08); color: var(--danger); font-size: 0.9rem;
}

.ep .buy-facts {
  display: grid; gap: 8px; margin: 18px 0 0; padding: 16px 0 0;
  list-style: none; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.86rem; line-height: 1.4;
}
.ep .buy-facts li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.ep .buy-facts li::before {
  content: ''; width: 9px; height: 5px; margin: 5px 0 0 3px;
  border: solid var(--mint); border-width: 0 0 2px 2px; transform: rotate(-45deg);
}

/* ── Vire Pro product chapter ────────────────────────────── */

.ep .pro {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 0 0 64px;
  border-top: 1px solid var(--rim-soft);
  background: linear-gradient(180deg, #07110D, var(--ground) 40%);
}
.ep .pro-photo {
  position: relative; display: block; height: 340px; z-index: -1;
  -webkit-mask-image: linear-gradient(#000 45%, transparent 100%);
  mask-image: linear-gradient(#000 45%, transparent 100%);
}
.ep .pro-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 18%; }
.ep .pro-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: -96px; }
.ep .pro h2 { font-size: clamp(2.05rem, 9.4vw, 4.4rem); }
.ep .pro .lede { margin-top: 18px; }
.ep .modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.ep .modes li {
  padding: 7px 14px; border: 1px solid var(--rim); border-radius: 999px;
  color: var(--copy); font-size: 0.85rem; font-weight: 600; background: rgba(91, 244, 164, 0.05);
}

.ep .features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ep .features li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 18px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
}
.ep .features p { margin-top: 5px; color: var(--copy); font-size: 0.95rem; line-height: 1.5; }
.ep .icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  color: var(--mint); background: rgba(91, 244, 164, 0.08); border: 1px solid var(--rim-soft);
}
.ep .icon svg { width: 22px; height: 22px; }

.ep .pro-devices { position: relative; height: 610px; margin: 8px 0 0; }
.ep .device {
  position: absolute; width: min(62%, 270px); padding: 7px;
  border: 1px solid #6BAE8E; border-radius: 34px;
  background: linear-gradient(125deg, #739A8A, #101916 7%, #030705 70%, #54715F);
  box-shadow: 0 35px 70px -25px #000, 0 0 50px -10px #41ED9B3A;
}
.ep .device img { width: 100%; height: auto; border-radius: 27px; }
.ep .device-back { left: 3%; top: 0; width: min(54%, 236px); transform: rotate(-6deg); }
.ep .device-front { right: 0; top: 64px; width: min(64%, 280px); transform: rotate(4deg); z-index: 2; }
.ep .device-window { display: contents; }
/* Phones: the "Miksi tämä paino" sheet leads. The front screen becomes a card: a CSS window onto
   the same unmodified capture, showing its bottom sheet (y 1090-2400 of 1080x2400), laid over the
   lower part of Home. Tablet and desktop keep the whole phone. Pixels are never edited. */
@media (max-width: 599px) {
  .ep .pro-devices { height: auto; }
  .ep .device-back { position: relative; display: block; left: 0; width: 60%; margin: 0 0 -62% 4%; }
  .ep .device-window {
    display: flex; flex-direction: column; justify-content: flex-end; position: relative; z-index: 2;
    width: 88%; margin-left: auto; aspect-ratio: 1080 / 1310; overflow: hidden;
    border: 1px solid #6BAE8E; border-radius: 22px; transform: rotate(2deg);
    box-shadow: 0 30px 60px -20px #000, 0 0 44px -10px #41ED9B4D;
  }
  .ep .device-window .device-front { position: relative; flex: none; right: auto; top: auto; width: 100%;
    padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; }
  .ep .device-window .device-front img { border-radius: 0; }
}
.ep .pro-devices figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  color: var(--muted); font-size: 0.78rem; text-align: center;
}
@media (max-width: 599px) {
  /* In flow below the card, so wrapped or enlarged text never slides under it. */
  .ep .pro-devices figcaption { position: static; margin-top: 30px; }
}

/* ── Journey ─────────────────────────────────────────────── */

.ep .journey {
  position: relative; padding: 64px 0;
  border-top: 1px solid var(--rim-soft);
  background: radial-gradient(ellipse 70% 50% at 15% 0%, #0F2F2155, transparent 70%), var(--ground);
}
.ep .journey h2 { font-size: clamp(2rem, 8.6vw, 3.8rem); }
.ep .phases { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 36px; }
.ep .phase-label {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px;
  color: var(--muted); font-size: 0.85rem;
}
.ep .phase-label span {
  padding: 4px 10px; border-radius: 999px; background: var(--mint); color: var(--mint-ink);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.ep .phase + .phase .phase-label span { background: transparent; color: var(--mint); box-shadow: inset 0 0 0 1px var(--mint); }
.ep .steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ep .steps li {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 6px;
  padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.025);
}
.ep .steps li > :not(.step-no) { grid-column: 2; }
.ep .step-no {
  grid-row: 1 / span 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--rim); color: var(--mint);
  font-family: var(--display); font-weight: 800; font-size: 1.1rem;
}
.ep .steps p { color: var(--copy); font-size: 0.95rem; }
/* Official badges, sized exactly as on the WEB-2 homepage: the Finnish Google Play PNG
   carries transparent padding, so it is cropped to the same visual height. */
.ep .stores { --badge-height: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 10px; }
.ep a.store-badge { display: block; flex: none; position: relative; height: var(--badge-height); min-height: 40px; border-radius: 6px; }
.ep .store-badge img { width: auto; max-width: none; height: var(--badge-height); }
.ep .store-badge.google-play { width: calc(var(--badge-height) * 3.37); overflow: hidden; }
.ep .store-badge.google-play img { position: absolute; height: calc(var(--badge-height) * 1.302083); top: calc(var(--badge-height) * -0.151042); left: 0; }

/* ── FAQ ─────────────────────────────────────────────────── */

.ep .faq { padding: 64px 0; border-top: 1px solid var(--rim-soft); }
.ep .faq h2 { font-size: clamp(2rem, 8vw, 3.2rem); margin-bottom: 24px; }
.ep .faq details { border-bottom: 1px solid var(--line); }
.ep .faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em;
}
.ep .faq summary::-webkit-details-marker { display: none; }
.ep .faq summary::after {
  content: ''; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border: solid var(--mint); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s var(--ease-out);
}
.ep .faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.ep .faq details p { padding: 0 0 18px; color: var(--copy); max-width: 40em; }

/* ── Closing ─────────────────────────────────────────────── */

.ep .closing {
  position: relative; isolation: isolate; overflow: hidden;
  border-top: 1px solid var(--rim);
  background: radial-gradient(ellipse at 70% 30%, #134A2F7A, transparent 66%), linear-gradient(130deg, #091B12, #050807 65%);
}
.ep .closing-photo {
  position: relative; display: block; height: 300px; z-index: -1;
  -webkit-mask-image: linear-gradient(#000 40%, transparent 100%);
  mask-image: linear-gradient(#000 40%, transparent 100%);
}
.ep .closing-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.ep .closing-stage { position: relative; margin-top: -70px; padding-bottom: 64px; }
.ep .closing h2 { font-size: clamp(2rem, 9vw, 4rem); }
.ep .closing .lede { margin-top: 16px; }
.ep .cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; margin-top: 24px; padding: 0 28px;
  border-radius: 14px; background: linear-gradient(180deg, #86FFC6, #3FE39B); color: var(--mint-ink);
  font-family: var(--display); font-weight: 800; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.ep .cta:hover { filter: brightness(1.05); }

/* ── Footer ──────────────────────────────────────────────── */

.ep .foot { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #040605; color: var(--muted); font-size: 0.88rem; }
.ep .foot .wrap { display: grid; gap: 10px; }
.ep .foot .brand { font-size: 1.3rem; margin-bottom: 4px; }
.ep .foot .brand img { width: 32px; height: 32px; border-radius: 8px; }
.ep .foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; }
.ep .foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--copy); text-decoration: none; }
.ep .foot nav a:hover { color: var(--text); text-decoration: underline; }
.ep .trademarks { margin-top: 8px; color: #75857D; font-size: 0.76rem; }

/* ── Result pages: success, cancel, reject ───────────────── */

.ep .result {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 0 0 56px;
  background: radial-gradient(ellipse 80% 50% at 80% 0%, #134A2F66, transparent 70%), var(--ground);
}
.ep .result-photo {
  position: relative; display: block; height: 240px; z-index: -1;
  -webkit-mask-image: linear-gradient(#000 35%, transparent 100%);
  mask-image: linear-gradient(#000 35%, transparent 100%);
}
.ep .result-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.ep .result-stage { position: relative; margin-top: -84px; }
.ep .result-stage.result-plain { margin-top: 0; padding-top: 56px; }
.ep .result:has(.result-plain) { min-height: 60vh; }
.ep .result-mark {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%;
  background: var(--mint); color: var(--mint-ink);
}
.ep .result-mark svg { width: 28px; height: 28px; }
.ep .result-mark.neutral { background: #16221D; color: var(--copy); box-shadow: inset 0 0 0 1px var(--rim); }
.ep .result h1 { font-size: clamp(2.2rem, 10vw, 4.2rem); }
.ep .result .lede { margin-top: 14px; }
.ep .result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.ep .result-actions .cta { margin-top: 0; }
.ep .text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--copy); }

.ep .next { margin-top: 40px; }
.ep .next h2 { font-size: 1.6rem; letter-spacing: -0.03em; margin-bottom: 16px; }
.ep .help {
  margin-top: 28px; padding: 20px; border: 1px solid var(--rim-soft); border-radius: 18px;
  background: rgba(91, 244, 164, 0.04);
}
.ep .help h2 { font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.ep .help p { color: var(--copy); font-size: 0.95rem; }
.ep .help p + p { margin-top: 8px; }
.ep .revisit { margin-top: 24px; color: var(--muted); font-size: 0.88rem; }

/* ── Larger screens ──────────────────────────────────────── */

@media (min-width: 600px) {
  .ep .buy { padding: 24px; }
  .ep .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep .pro-devices { height: 700px; }
  .ep .device-back { left: 8%; }
  .ep .device-front { right: 8%; }
}

@media (min-width: 768px) {
  .ep .hero .lede { font-size: 1.1rem; }
  .ep .buy { max-width: 560px; }
  .ep .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .ep .faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
  .ep .faq-grid h2 { position: sticky; top: calc(var(--nav-h) + 24px); }
  .ep .result-photo { height: 320px; }
  .ep .help { max-width: 720px; }
  .ep .next .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ep .next .steps li { grid-template-columns: 1fr; }
  .ep .next .steps li > :not(.step-no) { grid-column: 1; }
  .ep .next .steps .step-no { grid-row: auto; margin-bottom: 8px; }
}

@media (min-width: 1024px) {
  .ep .nav-links { gap: 12px; }
  .ep .hero {
    min-height: clamp(700px, calc(100vh - var(--nav-h)), 900px);
    padding-bottom: 0;
    display: flex; align-items: stretch;
  }
  .ep .hero-photo {
    top: 0; bottom: 0; right: auto; width: 62%; height: auto;
    -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 100%), linear-gradient(#000 70%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, #000 70%, transparent 100%), linear-gradient(#000 70%, transparent 100%);
    mask-composite: intersect;
  }
  .ep .hero-photo img { object-position: 60% 14%; }
  .ep .hero-photo::after { display: none; }
  .ep .hero::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(5, 8, 7, 0.82) 0%, rgba(5, 8, 7, 0.35) 30%, transparent 52%),
                linear-gradient(0deg, rgba(5, 8, 7, 0.97) 0%, rgba(5, 8, 7, 0.86) 26%, rgba(5, 8, 7, 0.3) 52%, transparent 64%);
  }
  .ep .hero-stage {
    display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; align-items: center;
    padding-top: 40px; padding-bottom: 48px;
  }
  .ep .hero-copy { align-self: end; padding: 0 0 8px; max-width: 820px; }
  .ep .hero h1 { font-size: clamp(3.1rem, 4.5vw, 4.6rem); }
  .ep .hero .lede { font-size: 1.2rem; margin-top: 20px; }
  .ep .paycard { display: none; }
  .ep .hero-how { margin-top: 18px; }
  .ep .buy { margin-top: 0; max-width: none; padding: 26px; background:
    radial-gradient(ellipse 80% 40% at 100% 0%, #17664440, transparent 70%),
    linear-gradient(165deg, rgba(13, 35, 26, 0.94), rgba(7, 13, 11, 0.96) 62%);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

  .ep .pro { padding: 0; }
  .ep .pro-photo {
    position: absolute; top: 0; right: 0; bottom: 0; width: 50%; height: auto;
    -webkit-mask-image: linear-gradient(270deg, #000 55%, transparent 100%), linear-gradient(#000 75%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(270deg, #000 55%, transparent 100%), linear-gradient(#000 75%, transparent 100%);
    mask-composite: intersect;
    opacity: 0.55;
  }
  .ep .pro-photo img { object-position: 45% 20%; }
  .ep .pro-stage {
    margin-top: 0; padding: 104px var(--gutter);
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); column-gap: 64px; row-gap: 40px;
  }
  .ep .pro-copy { grid-column: 1; }
  .ep .features { grid-column: 1; }
  .ep .pro-devices { grid-column: 2; grid-row: 1 / span 2; align-self: center; height: 820px; }
  .ep .device-back { width: min(52%, 260px); left: 2%; top: 24px; }
  .ep .device-front { width: min(62%, 300px); right: 2%; top: 136px; }

  .ep .journey { padding: 104px 0; }
  .ep .phases { gap: 28px; }
  .ep .phase .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep .steps li { grid-template-columns: 1fr; align-content: start; padding: 22px; }
  .ep .steps li > :not(.step-no) { grid-column: 1; }
  .ep .step-no { grid-row: auto; margin-bottom: 10px; }

  .ep .faq { padding: 104px 0; }

  .ep .closing-photo {
    position: absolute; top: 0; right: 0; bottom: 0; width: 46%; height: auto;
    -webkit-mask-image: linear-gradient(270deg, #000 50%, transparent 100%);
    mask-image: linear-gradient(270deg, #000 50%, transparent 100%);
  }
  .ep .closing-stage { margin-top: 0; padding: 120px var(--gutter); }
  .ep .closing-stage > * { max-width: 52%; }

  .ep .result { min-height: calc(100vh - var(--nav-h) - 160px); padding-bottom: 80px; }
  .ep .result-photo {
    position: absolute; top: 0; right: 0; bottom: 0; width: 46%; height: auto;
    -webkit-mask-image: linear-gradient(270deg, #000 45%, transparent 100%), linear-gradient(#000 70%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(270deg, #000 45%, transparent 100%), linear-gradient(#000 70%, transparent 100%);
    mask-composite: intersect;
    opacity: 0.8;
  }
  .ep .result-stage { margin-top: 0; padding-top: 88px; max-width: calc(var(--wrap)); }
  .ep .result-stage > * { max-width: 760px; }
  .ep .next .steps { max-width: 980px; }
}

/* ── Motion ──────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .ep .hero-photo img { animation: ep-settle 1.4s var(--ease-out) both; }
  .ep .buy { animation: ep-rise 0.8s 0.1s var(--ease-out) both; }
  @keyframes ep-settle { from { transform: scale(1.045); } to { transform: none; } }
  @keyframes ep-rise { from { transform: translateY(14px); opacity: 0.001; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ep *, .ep *::before, .ep *::after { transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  .ep .ep-package label, .ep .buy, .ep .device, .ep .steps li, .ep .features li { border: 1px solid CanvasText; }
  .ep .ep-package input:checked + label { outline: 3px solid Highlight; }
  .ep .accent { -webkit-text-fill-color: currentColor; background: none; }
}
