@import url('https://fonts.googleapis.com/css2?family=Caprasimo&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --ef-green: #174f2a;
  --ef-green-dark: #0b351b;
  --ef-green-soft: #edf5ee;
  --ef-green-pale: #f5f9f5;
  --ef-yellow: #f6b913;
  --ef-cream: #fbfae4;
  --ef-soft: #f6f8f3;
  --ef-white: #ffffff;
  --ef-text: #17211a;
  --ef-muted: #748077;
  --ef-line: rgba(23,79,42,.10);
  --ef-line-strong: rgba(23,79,42,.20);
  --shadow-soft: 0 14px 40px rgba(11,53,27,.055);
  --shadow: 0 24px 70px rgba(11,53,27,.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --topbar-h: 78px;
}

/* =========================================================
   GLOBAL / VIEWPORT LOCK
   ========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #eef2ed;
}

body {
  min-height: 100dvh;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--ef-text);
  background:
    radial-gradient(circle at 4% 20%, rgba(23,79,42,.045), transparent 17%),
    radial-gradient(circle at 96% 88%, rgba(246,185,19,.08), transparent 18%),
    #f7f9f6;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* =========================================================
   MAIN APP SHELL
   ========================================================= */

.ef-shell {
  width: min(1540px, calc(100vw - 20px));
  height: calc(100dvh - 20px);
  margin: 10px auto;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.90);
  border-radius: 28px;
  box-shadow: 0 22px 80px rgba(11,53,27,.065);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: var(--topbar-h) minmax(0,1fr);
}

/* =========================================================
   TOP BAR
   ========================================================= */

.ef-topbar {
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  padding: 0 clamp(24px, 3.6vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 20;
}

.ef-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ef-green-dark);
  min-width: 0;
}

.ef-logo-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.ef-logo-word {
  font-family: 'Caprasimo', Georgia, serif;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.04em;
}

.ef-top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ef-pitch-link {
  font-size: 11px;
  text-decoration: none;
  color: var(--ef-muted);
  font-weight: 600;
  white-space: nowrap;
}

.ef-pitch-link:hover {
  color: var(--ef-green);
}

.ef-progress {
  display: flex;
  align-items: center;
  gap: 11px;
}

.ef-progress-track {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ef-progress-dot {
  width: 10px;
  height: 10px;
  border: 2px solid #dfe7e0;
  border-radius: 50%;
  background: #fff;
  transition: .25s ease;
}

.ef-progress-dot.done {
  background: #73b787;
  border-color: #73b787;
}

.ef-progress-dot.active {
  width: 16px;
  height: 16px;
  background: var(--ef-green);
  border-color: var(--ef-green);
}

.ef-progress-count {
  font-size: 10px;
  font-weight: 700;
  color: var(--ef-muted);
  min-width: 34px;
  white-space: nowrap;
}

/* =========================================================
   STAGE / SCREEN SYSTEM
   ========================================================= */

.ef-stage {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.ef-screen {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: clamp(16px, 2.3vh, 24px) clamp(24px, 4vw, 64px) clamp(18px, 2.6vh, 26px);
  align-items: center;
  justify-content: center;
}

.ef-screen.active {
  display: flex;
  animation: efIn .38s cubic-bezier(.2,.75,.2,1) both;
}

@keyframes efIn {
  from {
    opacity: 0;
    transform: translateY(7px) scale(.997);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ef-screen-inner {
  width: min(1220px, 100%);
  height: 100%;
  min-height: 0;
  margin: auto;
  position: relative;
}

.ef-center {
  text-align: center;
}

.ef-kicker {
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 9px;
  color: var(--ef-green);
  font-weight: 700;
  margin-bottom: 9px;
}

.ef-title {
  margin: 0;
  font-family: 'Caprasimo', Georgia, serif;
  color: var(--ef-green-dark);
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: .96;
  letter-spacing: -.04em;
  font-weight: 400;
}

.ef-title .yellow {
  color: var(--ef-yellow);
}

.ef-subtitle {
  margin: 12px auto 0;
  max-width: 620px;
  color: var(--ef-muted);
  font-size: clamp(13px, 1.15vw, 17px);
  line-height: 1.45;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.ef-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.ef-btn {
  min-width: 174px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    border-color .18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
}

.ef-btn:hover {
  transform: translateY(-1px);
}

.ef-btn-primary {
  background: var(--ef-green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(23,79,42,.16);
}

.ef-btn-primary:hover {
  background: var(--ef-green-dark);
}

.ef-btn-yellow {
  background: var(--ef-yellow);
  color: var(--ef-green-dark);
  box-shadow: 0 10px 24px rgba(246,185,19,.18);
}

.ef-btn-ghost {
  background: #fff;
  color: var(--ef-green-dark);
  border: 1px solid var(--ef-line-strong);
}

.ef-btn-small {
  min-width: 0;
  padding: 10px 16px;
  font-size: 11px;
}

.ef-arrow {
  font-size: 18px;
  line-height: 1;
}

/* =========================================================
   SCREEN 1 — INTRO
   ========================================================= */

.ef-screen[data-screen="1"] .ef-screen-inner {
  display: grid;
  grid-template-rows: auto auto minmax(0,1fr) auto;
  align-content: center;
}

.ef-intro-showcase {
  margin: clamp(18px, 2.8vh, 28px) auto 0;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  max-width: 1000px;
  width: 100%;
  min-height: 0;
}

.ef-product-card {
  border: 1px solid var(--ef-line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 13px;
  box-shadow: var(--shadow-soft);
  min-height: 0;
}

.ef-product-visual {
  height: clamp(128px, 18vh, 168px);
  border-radius: 15px;
  background: linear-gradient(145deg,#f8faf6,#edf3ec);
  position: relative;
  overflow: hidden;
}

.ef-product-visual::after {
  content: "";
  position: absolute;
  inset: auto -18px -36px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(246,185,19,.10);
}

.ef-browser {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 17px;
  bottom: 17px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dfe8e0;
  overflow: hidden;
}

.ef-browser-bar {
  height: 21px;
  border-bottom: 1px solid #edf1ed;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 8px;
}

.ef-browser-bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d7dfd8;
}

.ef-browser-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100% - 21px);
}

.ef-browser-copy {
  padding: 14px 10px;
}

.ef-mini-line {
  display: block;
  height: 6px;
  border-radius: 8px;
  background: #dfe8e0;
  margin: 6px 0;
}

.ef-mini-line.dark {
  background: var(--ef-green);
  width: 68%;
  height: 9px;
}

.ef-mini-line.short {
  width: 52%;
}

.ef-browser-image {
  margin: 8px;
  border-radius: 10px;
  background: linear-gradient(145deg,rgba(23,79,42,.18),rgba(246,185,19,.22));
}

.ef-phone-pair {
  position: absolute;
  inset: 14px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 11px;
}

.ef-phone {
  width: clamp(62px, 5.4vw, 78px);
  height: clamp(116px, 15.5vh, 142px);
  background: #111827;
  border-radius: 19px;
  padding: 4px;
  box-shadow: 0 11px 20px rgba(0,0,0,.12);
}

.ef-phone:nth-child(2) {
  transform: translateY(-8px);
}

.ef-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  padding: 12px 7px;
}

.ef-phone-screen .ef-mini-line:first-child {
  background: var(--ef-green);
  height: 8px;
  width: 60%;
}

.ef-dashboard-mini {
  position: absolute;
  inset: 14px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: 34px 1fr;
  border: 1px solid #e1e8e2;
  overflow: hidden;
}

.ef-dashboard-rail {
  background: var(--ef-green);
}

.ef-dashboard-body {
  padding: 12px;
}

.ef-dashboard-body .ef-chart {
  height: 44px;
  margin-top: 11px;
  border-radius: 9px;
  background: linear-gradient(180deg,rgba(23,79,42,.10),rgba(23,79,42,.02));
  position: relative;
}

.ef-dashboard-body .ef-chart::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  height: 2px;
  background: linear-gradient(90deg,transparent,var(--ef-green),var(--ef-yellow));
  transform: skewY(-8deg);
}

.ef-product-label {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
}

.ef-iconbox {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #edf5ee;
  display: grid;
  place-items: center;
  color: var(--ef-green);
}

/* =========================================================
   SCREEN 2 — THEME CAROUSEL
   ========================================================= */

.ef-screen[data-screen="2"] .ef-screen-inner {
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  gap: 8px;
}

.ef-theme-head {
  text-align: center;
  margin-bottom: 0;
}

.ef-carousel-wrap {
  position: relative;
  height: 100%;
  min-height: 0;
  max-height: 430px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.ef-theme-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(580px, 55vw);
  transform: translate(-50%,-50%) scale(.78);
  opacity: .42;
  filter: saturate(.76);
  transition:
    transform .40s cubic-bezier(.2,.75,.2,1),
    opacity .32s ease,
    filter .32s ease;
  pointer-events: none;
}

.ef-theme-card.prev {
  transform: translate(-112%,-50%) scale(.76) rotate(-1.5deg);
}

.ef-theme-card.next {
  transform: translate(12%,-50%) scale(.76) rotate(1.5deg);
}

.ef-theme-card.current {
  transform: translate(-50%,-50%) scale(1);
  opacity: 1;
  filter: none;
  z-index: 4;
  pointer-events: auto;
}

.ef-preview-frame {
  background: #fff;
  border-radius: 20px;
  padding: 8px;
  border: 1px solid rgba(23,79,42,.10);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ef-preview-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 12 / 7;
  object-fit: cover;
  border-radius: 14px;
}

.ef-theme-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 9px;
  padding: 0 6px;
}

.ef-theme-name {
  font-family: 'Caprasimo',Georgia,serif;
  font-size: 20px;
  color: var(--ef-green-dark);
}

.ef-theme-type {
  font-size: 10px;
  color: var(--ef-muted);
  font-weight: 600;
}

.ef-theme-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f4f7f3;
  color: var(--ef-green);
}

.ef-selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f7f2;
  border: 1px solid var(--ef-line);
  border-radius: 999px;
  padding: 7px 12px;
  margin-bottom: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--ef-green);
}

.ef-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ef-yellow);
}

.ef-carousel-actions {
  margin-top: 8px;
}

/* =========================================================
   SCREEN 3 — APP PREVIEW
   ========================================================= */

.ef-app-layout {
  display: grid;
  grid-template-columns: .68fr 1.32fr;
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  height: 100%;
  min-height: 0;
}

.ef-app-copy {
  min-width: 0;
}

.ef-app-copy .ef-title {
  font-size: clamp(46px, 5.6vw, 78px);
}

.ef-app-preview {
  height: 100%;
  max-height: 610px;
  min-height: 0;
  border-radius: 28px;
  background: linear-gradient(145deg,#f8faf7,#ffffff);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ef-line);
}

.ef-app-preview::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(246,185,19,.10);
  right: -58px;
  top: -72px;
}

.ef-app-preview img {
  width: 100%;
  height: 100%;
  max-width: 800px;
  max-height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* =========================================================
   SCREEN 4 — TRIAL / FORM
   ========================================================= */

.ef-screen[data-screen="4"] .ef-screen-inner {
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  gap: clamp(10px, 1.5vh, 16px);
}

.ef-screen[data-screen="4"] .ef-center[style] {
  margin-bottom: 0 !important;
}

.ef-signup-layout {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 22px;
  align-items: stretch;
  max-width: 1040px;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: auto;
}

.ef-package-card,
.ef-form-card {
  border-radius: 26px;
  border: 1px solid var(--ef-line);
  background: #fff;
  padding: clamp(18px, 2.2vw, 28px);
  box-shadow: var(--shadow-soft);
  min-height: 0;
  overflow: hidden;
}

.ef-package-card {
  display: flex;
  flex-direction: column;
}

.ef-package-title {
  font-family: 'Caprasimo',Georgia,serif;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--ef-green-dark);
  margin-bottom: 14px;
}

.ef-package-items {
  display: grid;
  gap: 0;
  flex: 1;
}

.ef-package-item {
  min-height: 0;
  height: 33.333%;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #edf1ed;
}

.ef-package-item:last-child {
  border-bottom: 0;
}

.ef-package-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #eff7f0;
  color: var(--ef-green);
  font-size: 17px;
}

.ef-package-item strong {
  font-size: 13px;
}

.ef-form-card {
  display: flex;
  flex-direction: column;
}

.ef-form-card > div:first-child {
  margin-bottom: 14px !important;
  flex-wrap: nowrap !important;
}

.ef-trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eaf5ec;
  color: var(--ef-green-dark);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 10px;
  white-space: nowrap;
}

.ef-form-title {
  font-family: 'Caprasimo',Georgia,serif;
  font-size: clamp(24px, 2.7vw, 31px);
  color: var(--ef-green-dark);
  margin: 0;
}

.ef-form {
  display: grid;
  gap: 10px;
  grid-template-rows: repeat(4, 48px) auto 14px 48px;
  min-height: 0;
}

.ef-field input {
  width: 100%;
  height: 48px;
  border: 1px solid #dfe7e0;
  border-radius: 14px;
  padding: 0 16px;
  outline: none;
  color: var(--ef-text);
  background: #fff;
  transition: .2s ease;
  font-size: 13px;
}

.ef-field input:focus {
  border-color: #8fbaa0;
  box-shadow: 0 0 0 4px rgba(23,79,42,.05);
}

.ef-agree {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 10px;
  line-height: 1.35;
  color: var(--ef-muted);
  margin: 1px 0 0;
}

.ef-agree input {
  margin-top: 1px;
  accent-color: var(--ef-green);
  flex: 0 0 auto;
}

.ef-agree a {
  color: var(--ef-green);
  font-weight: 700;
}

.ef-form .ef-btn {
  width: 100%;
  height: 48px;
  padding-top: 0;
  padding-bottom: 0;
}

.ef-form-status {
  min-height: 14px;
  color: #a33;
  font-size: 10px;
  line-height: 1.2;
}

/* =========================================================
   SCREEN 5 — SUCCESS
   ========================================================= */

.ef-screen[data-screen="5"] .ef-screen-inner {
  display: grid;
  place-items: center;
}

.ef-success-panel {
  width: min(900px, 100%);
  max-height: 100%;
  margin: auto;
  text-align: center;
  border-radius: 32px;
  border: 1px solid var(--ef-line);
  background: #fff;
  padding: clamp(26px, 4.2vh, 44px) clamp(24px, 4vw, 50px);
  box-shadow: var(--shadow);
}

.ef-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  background: #eaf5ec;
  color: var(--ef-green);
  font-size: 32px;
  font-weight: 700;
}

.ef-success-panel .ef-kicker {
  margin-bottom: 8px;
}

.ef-success-panel .ef-title {
  font-size: clamp(44px, 5vw, 68px);
}

.ef-success-sub {
  margin: 11px auto 0;
  color: var(--ef-muted);
  font-size: 12px;
}

.ef-ready-actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}

.ef-ready-link {
  min-height: 84px;
  border-radius: 18px;
  border: 1px solid var(--ef-line);
  background: #fbfcfa;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  transition: .18s ease;
  text-align: left;
}

.ef-ready-link:hover {
  transform: translateY(-2px);
  background: #f5f9f5;
}

.ef-ready-link strong {
  font-size: 12px;
}

.ef-ready-link span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf5ee;
  color: var(--ef-green);
  font-size: 17px;
  flex: 0 0 auto;
}

/* =========================================================
   AGREEMENT MODAL
   ========================================================= */

.ef-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  background: rgba(10,25,15,.38);
  backdrop-filter: blur(8px);
  padding: 20px;
}

.ef-modal.open {
  display: grid;
}

.ef-modal-card {
  width: min(940px,100%);
  height: min(720px,88dvh);
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 35px 110px rgba(0,0,0,.22);
  display: grid;
  grid-template-rows: 58px 1fr;
}

.ef-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid #edf1ed;
}

.ef-modal-head strong {
  font-family: 'Caprasimo',Georgia,serif;
  font-size: 18px;
  color: var(--ef-green-dark);
}

.ef-modal-close {
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f4f1;
  cursor: pointer;
  font-size: 18px;
  color: var(--ef-green-dark);
}

.ef-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   SHORT DESKTOPS / LAPTOPS
   ========================================================= */

@media (max-height: 820px) and (min-width: 981px) {
  :root {
    --topbar-h: 68px;
  }

  .ef-shell {
    height: calc(100dvh - 12px);
    margin: 6px auto;
  }

  .ef-logo-mark {
    width: 34px;
    height: 34px;
  }

  .ef-logo-word {
    font-size: 27px;
  }

  .ef-screen {
    padding-top: 12px;
    padding-bottom: 14px;
  }

  .ef-title {
    font-size: clamp(38px, 4.7vw, 62px);
  }

  .ef-intro-showcase {
    margin-top: 14px;
  }

  .ef-product-visual {
    height: 118px;
  }

  .ef-carousel-wrap {
    max-height: 350px;
  }

  .ef-theme-card {
    width: min(520px, 52vw);
  }

  .ef-app-preview {
    max-height: 500px;
  }

  .ef-form {
    grid-template-rows: repeat(4, 43px) auto 12px 44px;
    gap: 7px;
  }

  .ef-field input {
    height: 43px;
  }

  .ef-form .ef-btn {
    height: 44px;
  }

  .ef-package-card,
  .ef-form-card {
    padding: 18px 22px;
  }

  .ef-success-panel {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {
  :root {
    --topbar-h: 68px;
  }

  .ef-shell {
    width: 100vw;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .ef-topbar {
    padding: 0 18px;
  }

  .ef-logo-word {
    font-size: 25px;
  }

  .ef-logo-mark {
    width: 32px;
    height: 32px;
  }

  .ef-pitch-link {
    display: none;
  }

  .ef-screen {
    padding: 12px 16px 16px;
  }

  .ef-title {
    font-size: clamp(34px, 7vw, 54px);
  }

  .ef-subtitle {
    font-size: 13px;
  }

  .ef-intro-showcase {
    gap: 10px;
  }

  .ef-product-card {
    padding: 10px;
  }

  .ef-product-visual {
    height: 118px;
  }

  .ef-carousel-wrap {
    max-height: 370px;
  }

  .ef-theme-card {
    width: min(610px, 68vw);
  }

  .ef-theme-card.prev {
    transform: translate(-103%,-50%) scale(.72);
  }

  .ef-theme-card.next {
    transform: translate(3%,-50%) scale(.72);
  }

  .ef-app-layout {
    grid-template-columns: .72fr 1.28fr;
    gap: 18px;
  }

  .ef-app-preview {
    max-height: 500px;
  }

  .ef-signup-layout {
    gap: 14px;
  }

  .ef-package-card,
  .ef-form-card {
    padding: 18px;
  }

  .ef-ready-actions {
    gap: 9px;
  }
}

/* =========================================================
   MOBILE — STILL ONE-SCREEN, NO PAGE SCROLL
   ========================================================= */

@media (max-width: 680px) {
  :root {
    --topbar-h: 58px;
  }

  .ef-topbar {
    padding: 0 12px;
  }

  .ef-logo {
    gap: 8px;
  }

  .ef-logo-word {
    font-size: 20px;
  }

  .ef-logo-mark {
    width: 27px;
    height: 27px;
  }

  .ef-progress {
    gap: 8px;
  }

  .ef-progress-track {
    gap: 4px;
  }

  .ef-progress-dot {
    width: 7px;
    height: 7px;
    border-width: 1px;
  }

  .ef-progress-dot.active {
    width: 11px;
    height: 11px;
  }

  .ef-progress-count {
    font-size: 9px;
    min-width: 28px;
  }

  .ef-screen {
    padding: 8px 12px 10px;
  }

  .ef-kicker {
    font-size: 8px;
    margin-bottom: 5px;
  }

  .ef-title {
    font-size: clamp(30px, 10vw, 42px);
  }

  .ef-subtitle {
    margin-top: 7px;
    font-size: 11px;
  }

  .ef-btn-row {
    margin-top: 10px;
    gap: 8px;
  }

  .ef-btn {
    min-width: 128px;
    padding: 10px 15px;
    font-size: 10px;
  }

  /* Screen 1 */
  .ef-intro-showcase {
    margin-top: 10px;
    grid-template-columns: repeat(3,1fr);
    gap: 6px;
  }

  .ef-product-card {
    border-radius: 15px;
    padding: 6px;
  }

  .ef-product-visual {
    height: clamp(88px, 15vh, 112px);
    border-radius: 11px;
  }

  .ef-product-label {
    margin-top: 6px;
    gap: 5px;
    font-size: 9px;
  }

  .ef-iconbox {
    width: 24px;
    height: 24px;
    border-radius: 8px;
  }

  .ef-browser {
    left: 7px;
    right: 7px;
    top: 9px;
    bottom: 9px;
  }

  .ef-phone-pair {
    inset: 8px;
    gap: 5px;
  }

  .ef-phone {
    width: 39px;
    height: 78px;
    border-radius: 12px;
  }

  .ef-dashboard-mini {
    inset: 8px;
    grid-template-columns: 20px 1fr;
  }

  /* Screen 2 */
  .ef-screen[data-screen="2"] .ef-screen-inner {
    gap: 3px;
  }

  .ef-carousel-wrap {
    max-height: none;
    height: 100%;
    min-height: 0;
  }

  .ef-theme-card {
    width: 76vw;
  }

  .ef-theme-card.prev {
    transform: translate(-92%,-50%) scale(.62);
  }

  .ef-theme-card.next {
    transform: translate(-8%,-50%) scale(.62);
  }

  .ef-theme-name {
    font-size: 14px;
  }

  .ef-theme-type,
  .ef-theme-pill {
    display: none;
  }

  .ef-theme-meta {
    justify-content: center;
    margin-top: 5px;
  }

  .ef-selected-chip {
    padding: 5px 8px;
    font-size: 8px;
  }

  .ef-carousel-actions {
    margin-top: 5px;
  }

  /* Screen 3 */
  .ef-app-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0,1fr);
    gap: 8px;
    text-align: center;
  }

  .ef-app-copy {
    display: grid;
    justify-items: center;
  }

  .ef-app-copy .ef-title {
    font-size: clamp(30px, 10vw, 42px);
  }

  .ef-app-copy .ef-btn-row {
    justify-content: center !important;
  }

  .ef-app-preview {
    max-height: none;
    width: 100%;
    border-radius: 18px;
  }

  .ef-app-preview img {
    max-width: 100%;
  }

  /* Screen 4 */
  .ef-screen[data-screen="4"] .ef-screen-inner {
    gap: 6px;
  }

  .ef-signup-layout {
    grid-template-columns: 1fr;
    height: 100%;
  }

  .ef-package-card {
    display: none;
  }

  .ef-form-card {
    height: 100%;
    border-radius: 20px;
    padding: 14px;
  }

  .ef-form-card > div:first-child {
    margin-bottom: 8px !important;
  }

  .ef-form-title {
    font-size: 22px;
  }

  .ef-trial-badge {
    font-size: 8px;
    padding: 6px 8px;
  }

  .ef-form {
    grid-template-rows: repeat(4, 42px) auto 10px 42px;
    gap: 6px;
  }

  .ef-field input {
    height: 42px;
    border-radius: 11px;
    padding: 0 12px;
    font-size: 11px;
  }

  .ef-agree {
    font-size: 8px;
  }

  .ef-form .ef-btn {
    height: 42px;
  }

  .ef-form-status {
    min-height: 10px;
    font-size: 8px;
  }

  /* Screen 5 */
  .ef-success-panel {
    width: 100%;
    padding: 20px 12px;
    border-radius: 22px;
  }

  .ef-success-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 8px;
    font-size: 25px;
  }

  .ef-success-panel .ef-title {
    font-size: clamp(32px, 10vw, 44px);
  }

  .ef-success-sub {
    margin-top: 7px;
    font-size: 9px;
  }

  .ef-ready-actions {
    margin-top: 15px;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .ef-ready-link {
    min-height: 52px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .ef-ready-link strong {
    font-size: 10px;
  }

  .ef-ready-link span {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .ef-modal {
    padding: 10px;
  }

  .ef-modal-card {
    height: 92dvh;
    border-radius: 18px;
    grid-template-rows: 50px 1fr;
  }

  .ef-modal-head {
    padding: 0 14px;
  }

  .ef-modal-head strong {
    font-size: 15px;
  }
}

/* =========================================================
   VERY SHORT MOBILE SCREENS
   ========================================================= */

@media (max-width: 680px) and (max-height: 700px) {
  .ef-title {
    font-size: 28px;
  }

  .ef-product-visual {
    height: 76px;
  }

  .ef-product-label {
    font-size: 8px;
  }

  .ef-carousel-wrap {
    max-height: 300px;
  }

  .ef-theme-card {
    width: 70vw;
  }

  .ef-app-preview {
    max-height: 310px;
  }

  .ef-form-card {
    padding: 10px 12px;
  }

  .ef-form {
    grid-template-rows: repeat(4, 37px) auto 8px 38px;
    gap: 5px;
  }

  .ef-field input {
    height: 37px;
  }

  .ef-form .ef-btn {
    height: 38px;
  }
}

/* =========================================================
   SCREEN 1 BALANCE FIX
   Keeps the intro full and spacious without creating scroll.
   ========================================================= */

.ef-screen[data-screen="1"] .ef-screen-inner {
  display: grid;
  grid-template-rows:
    auto
    auto
    auto
    minmax(0, 1fr)
    auto;
  align-content: stretch;
  align-items: center;
  justify-items: center;
  width: min(1180px, 100%);
  height: 100%;
  min-height: 0;
}

.ef-screen[data-screen="1"] .ef-kicker {
  margin: clamp(10px, 2vh, 24px) 0 10px;
  align-self: end;
}

.ef-screen[data-screen="1"] .ef-title {
  align-self: center;
}

.ef-screen[data-screen="1"] .ef-subtitle {
  margin-top: 12px;
  margin-bottom: 0;
  align-self: start;
}

.ef-screen[data-screen="1"] .ef-intro-showcase {
  width: 100%;
  max-width: 1080px;
  height: clamp(250px, 35vh, 330px);
  min-height: 0;
  margin: 0 auto;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.ef-screen[data-screen="1"] .ef-product-card {
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 14px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
}

.ef-screen[data-screen="1"] .ef-product-visual {
  width: 100%;
  height: auto;
  min-height: 0;
  border-radius: 16px;
}

.ef-screen[data-screen="1"] .ef-product-label {
  margin-top: 0;
  min-height: 38px;
}

.ef-screen[data-screen="1"] > .ef-screen-inner > .ef-btn-row {
  margin: 8px 0 clamp(8px, 1.6vh, 18px);
  align-self: start;
}

/* Keep internal mockups proportional after the visual area becomes flexible. */
.ef-screen[data-screen="1"] .ef-browser {
  inset: 18px;
}

.ef-screen[data-screen="1"] .ef-phone-pair {
  inset: 14px;
}

.ef-screen[data-screen="1"] .ef-dashboard-mini {
  inset: 16px;
}

/* Standard laptop heights */
@media (max-height: 900px) and (min-width: 981px) {
  .ef-screen[data-screen="1"] .ef-kicker {
    margin-top: 6px;
    margin-bottom: 7px;
  }

  .ef-screen[data-screen="1"] .ef-title {
    font-size: clamp(42px, 4.5vw, 64px);
  }

  .ef-screen[data-screen="1"] .ef-subtitle {
    margin-top: 8px;
  }

  .ef-screen[data-screen="1"] .ef-intro-showcase {
    height: clamp(235px, 34vh, 290px);
    max-width: 1040px;
    gap: 16px;
  }

  .ef-screen[data-screen="1"] .ef-product-card {
    padding: 12px;
  }

  .ef-screen[data-screen="1"] > .ef-screen-inner > .ef-btn-row {
    margin-top: 5px;
    margin-bottom: 4px;
  }
}

/* Very short laptop windows */
@media (max-height: 760px) and (min-width: 981px) {
  .ef-screen[data-screen="1"] .ef-kicker {
    margin-top: 0;
  }

  .ef-screen[data-screen="1"] .ef-title {
    font-size: clamp(38px, 4.1vw, 56px);
  }

  .ef-screen[data-screen="1"] .ef-intro-showcase {
    height: clamp(205px, 31vh, 245px);
  }

  .ef-screen[data-screen="1"] .ef-product-label {
    min-height: 32px;
  }

  .ef-screen[data-screen="1"] .ef-iconbox {
    width: 28px;
    height: 28px;
  }
}

/* Tablet: preserve the same balanced first screen. */
@media (max-width: 980px) {
  .ef-screen[data-screen="1"] .ef-intro-showcase {
    max-width: 900px;
    height: clamp(220px, 33vh, 285px);
    gap: 10px;
  }

  .ef-screen[data-screen="1"] .ef-product-card {
    padding: 10px;
  }
}

/* Mobile: keep three simple product cards, but make them compact. */
@media (max-width: 680px) {
  .ef-screen[data-screen="1"] .ef-kicker {
    margin-top: 2px;
    margin-bottom: 4px;
  }

  .ef-screen[data-screen="1"] .ef-subtitle {
    margin-top: 5px;
  }

  .ef-screen[data-screen="1"] .ef-intro-showcase {
    height: clamp(145px, 28vh, 205px);
    gap: 6px;
  }

  .ef-screen[data-screen="1"] .ef-product-card {
    padding: 6px;
    gap: 4px;
  }

  .ef-screen[data-screen="1"] .ef-product-label {
    min-height: 25px;
    font-size: 8px;
  }

  .ef-screen[data-screen="1"] .ef-browser {
    inset: 7px;
  }

  .ef-screen[data-screen="1"] .ef-phone-pair {
    inset: 6px;
  }

  .ef-screen[data-screen="1"] .ef-dashboard-mini {
    inset: 7px;
  }

  .ef-screen[data-screen="1"] > .ef-screen-inner > .ef-btn-row {
    margin: 4px 0 2px;
  }
}


/* =========================================================
   REAL THEME PREVIEW ASSETS
   ========================================================= */
.ef-preview-frame {
  background: #f6f7f3;
}

.ef-preview-frame img {
  object-position: center top;
  background: #f6f7f3;
}

.ef-app-preview {
  background: #fafaf7;
}

.ef-app-preview img {
  object-fit: contain;
  object-position: center;
}

/* Theme intake V1 additions */
.ef-field select{width:100%;padding:14px 16px;border:1px solid rgba(23,79,42,.15);border-radius:12px;background:#fff;color:#344439;font:inherit;font-size:13px;min-height:48px}
.ef-hp{position:absolute!important;left:-9999px!important;height:0!important;overflow:hidden!important}
.ef-form button[disabled]{opacity:.55;cursor:wait}
.ef-success-sub{line-height:1.8}


/* =========================================================
   BIZ V1.1 — REFERRAL SELECT / SIX-FIELD FORM FIX
   Previous grid reserved four input rows, then just 14px for
   the sixth select. Later items could overlap its click area.
   Keep the whole form accessible and scrollable on short screens.
   ========================================================= */
.ef-screen[data-screen="4"] .ef-form-card {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.ef-screen[data-screen="4"] .ef-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
  min-height: max-content;
}
.ef-screen[data-screen="4"] .ef-field {
  display: block;
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
}
.ef-screen[data-screen="4"] .ef-field input,
.ef-screen[data-screen="4"] .ef-field select {
  display: block;
  width: 100%;
  min-height: 48px;
  height: 48px;
}
.ef-screen[data-screen="4"] .ef-field select {
  appearance: auto;
  -webkit-appearance: menulist;
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 1;
  padding: 0 16px;
}
.ef-screen[data-screen="4"] .ef-field select:focus-visible {
  outline: 2px solid var(--ef-green);
  outline-offset: 2px;
}
.ef-screen[data-screen="4"] .ef-agree,
.ef-screen[data-screen="4"] .ef-form-status,
.ef-screen[data-screen="4"] .ef-form button[type="submit"] {
  flex: 0 0 auto;
}
@media (max-width: 680px) {
  .ef-screen[data-screen="4"] .ef-form { gap: 7px; }
  .ef-screen[data-screen="4"] .ef-field input,
  .ef-screen[data-screen="4"] .ef-field select { height: 42px; min-height: 42px; }
  .ef-screen[data-screen="4"] .ef-field select { font-size: 11px; padding: 0 12px; }
}
@media (max-width: 680px) and (max-height: 700px) {
  .ef-screen[data-screen="4"] .ef-form { gap: 5px; }
  .ef-screen[data-screen="4"] .ef-field input,
  .ef-screen[data-screen="4"] .ef-field select { height: 37px; min-height: 37px; }
}

/* Application Received / Step 1: final receipt message */
.ef-receipt-next{margin:20px auto 0;max-width:700px;border:1px solid #dce9dd;background:#f4f8f3;border-radius:17px;padding:18px 22px;text-align:left;display:flex;flex-direction:column;gap:9px;color:#234c34;font-size:12px;line-height:1.6}
.ef-receipt-next strong{font-weight:800}
.ef-receipt-next small{font-size:11px;color:#63736a;line-height:1.55}
.ef-success-sub{overflow-wrap:anywhere}
/* Receipt can grow taller than a short browser viewport without clipping the buttons. */
.ef-screen[data-screen="5"]{overflow-y:auto;align-items:flex-start}
.ef-screen[data-screen="5"] .ef-screen-inner{display:flex;align-items:center;justify-content:center;height:auto;min-height:100%}
.ef-screen[data-screen="5"] .ef-success-panel{max-height:none}
@media (max-width:680px){.ef-receipt-next{margin:14px 0 0;padding:14px 15px}.ef-success-panel{padding-bottom:22px}}

/* =========================================================
   EATFREE BUSINESS — LIVE PREVIEWS (SCREEN 2 ONLY)
   Keep original wizard controls and responsive heights intact.
   ========================================================= */
.ef-screen[data-screen="2"] .ef-carousel-actions .ef-live-previews {
  border: 1px solid var(--ef-yellow);
  background: #fff9e5;
  color: var(--ef-green-dark);
  white-space: nowrap;
}
.ef-screen[data-screen="2"] .ef-carousel-actions .ef-live-previews:hover {
  background: var(--ef-yellow);
}
.ef-screen[data-screen="2"] .ef-carousel-actions .ef-live-previews:focus-visible {
  outline: 2px solid var(--ef-green);
  outline-offset: 3px;
}
@media (max-width: 680px) {
  .ef-screen[data-screen="2"] .ef-carousel-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
  }
  .ef-screen[data-screen="2"] .ef-carousel-actions .ef-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 5px;
    gap: 4px;
    font-size: clamp(8px, 2.45vw, 10px);
    white-space: nowrap;
  }
}
