/* ==========================================================================
   KOMA BUSINESS · global "Start Now" paid-plan modal
   Markup is injected once by assets/js/start-modal.js. Every selector is
   namespaced under .koma-start-modal so nothing here reaches page styles.

   The backdrop and the dialog are siblings, never ancestor/descendant: an
   element with backdrop-filter (or opacity < 1) becomes the backdrop root
   for its descendants, which would stop the dialog's glass from sampling
   the page behind it.
   ========================================================================== */

.koma-start-modal {
  --ksm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ksm-green: #019b4e;
  --ksm-green-hover: #0bb862;
  --ksm-text: #f2f2f2;
  --ksm-muted: #9a9aa0;
  --ksm-pad: 44px;
  --ksm-gutter: 16px;

  position: fixed;
  inset: 0;
  z-index: 3000;
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.koma-start-modal[hidden] {
  display: none;
}

/* Page scroll lock (the viewport inherits body overflow, like .menu-open) */
body.koma-start-modal-open {
  overflow: hidden;
}

/* Backdrop
   ========================================================================== */

.koma-start-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 8, 0.5);
  -webkit-backdrop-filter: blur(6px) saturate(115%);
  backdrop-filter: blur(6px) saturate(115%);
  opacity: 0;
  transition: opacity 280ms var(--ksm-ease);
}

.koma-start-modal.is-open .koma-start-modal__backdrop {
  opacity: 1;
  transition-duration: 320ms;
}

/* Centering layer: clicks that land here (outside the dialog) close it */
.koma-start-modal__viewport {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    calc(12px + env(safe-area-inset-top, 0px))
    var(--ksm-gutter)
    calc(12px + env(safe-area-inset-bottom, 0px));
}

/* Dialog: dark translucent glass
   ========================================================================== */

.koma-start-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  color: var(--ksm-text);
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(1, 155, 78, 0.1), rgba(1, 155, 78, 0) 62%),
    linear-gradient(180deg, rgba(22, 34, 31, 0.4) 0%, rgba(8, 14, 13, 0.52) 100%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  backdrop-filter: blur(32px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 0 1px rgba(1, 155, 78, 0.05),
    0 30px 80px -12px rgba(0, 0, 0, 0.6),
    0 0 60px -20px rgba(1, 155, 78, 0.18);
  opacity: 0;
  transform: translateY(6px) scale(0.99);
  transition:
    opacity 260ms var(--ksm-ease),
    transform 300ms var(--ksm-ease);
}

.koma-start-modal.is-open .koma-start-modal__dialog {
  opacity: 1;
  transform: none;
  transition-duration: 440ms, 480ms;
}

.koma-start-modal__dialog:focus {
  outline: none;
}

/* Browsers without backdrop-filter get a denser surface instead of a
   see-through one that would hurt legibility. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .koma-start-modal__backdrop {
    background: rgba(3, 9, 8, 0.78);
  }

  .koma-start-modal__dialog {
    background:
      radial-gradient(120% 70% at 50% -10%, rgba(1, 155, 78, 0.11), rgba(1, 155, 78, 0) 62%),
      linear-gradient(180deg, rgba(18, 26, 24, 0.95) 0%, rgba(8, 12, 11, 0.97) 100%);
  }
}

/* Scrolls internally only when a short screen needs it; the close button
   sits outside this layer so it never scrolls away. */
.koma-start-modal__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: var(--ksm-pad);
}

.koma-start-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition:
    background-color 200ms var(--ksm-ease),
    color 200ms var(--ksm-ease),
    border-color 200ms var(--ksm-ease);
}

.koma-start-modal__close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  fill: none;
}

.koma-start-modal__title {
  margin: 0 0 32px;
  padding: 0 32px;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: center;
  color: #ffffff;
  text-wrap: balance;
}

/* Plan cards: darker glass layers inside the parent glass
   ========================================================================== */

.koma-start-modal__plans {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.koma-start-modal__card {
  position: relative;
  padding: 24px 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(1, 155, 78, 0.05), rgba(1, 155, 78, 0) 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.42) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 30px -18px rgba(0, 0, 0, 0.7);
}

.koma-start-modal__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.koma-start-modal__name {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.koma-start-modal__price {
  margin: 0;
  flex: none;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #ffffff;
  white-space: nowrap;
}

.koma-start-modal__period {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ksm-muted);
}

.koma-start-modal__desc {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.1px;
  color: var(--ksm-muted);
}

.koma-start-modal__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  padding: 0 24px;
  border: 0;
  border-radius: 9999px;
  background: var(--ksm-green);
  color: #0a0a0a;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 6px 20px -10px rgba(1, 155, 78, 0.45);
  transition:
    transform 300ms var(--ksm-ease),
    filter 300ms var(--ksm-ease),
    box-shadow 300ms var(--ksm-ease),
    opacity 200ms var(--ksm-ease);
}

.koma-start-modal__cta:active {
  transform: translateY(0) scale(0.99);
}

.koma-start-modal__cta:focus-visible,
.koma-start-modal__close:focus-visible {
  outline: 2px solid #0aa859;
  outline-offset: 3px;
}

.koma-start-modal__cta[aria-busy="true"] {
  cursor: progress;
  opacity: 0.86;
  transform: none;
  filter: none;
}

.koma-start-modal__spinner {
  display: none;
  width: 14px;
  height: 14px;
  flex: none;
  border: 2px solid rgba(10, 10, 10, 0.25);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: koma-start-modal-spin 800ms linear infinite;
}

.koma-start-modal__cta[aria-busy="true"] .koma-start-modal__spinner {
  display: block;
}

@keyframes koma-start-modal-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Foundation stays available but visually secondary to Operator. */
.koma-start-modal__card:not(.is-primary) .koma-start-modal__cta {
  background: transparent;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.koma-start-modal__card:not(.is-primary) .koma-start-modal__spinner {
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
}

.koma-start-modal__free {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: var(--ksm-muted);
}

.koma-start-modal__free a {
  color: var(--ksm-muted);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.koma-start-modal__free a:hover,
.koma-start-modal__free a:focus-visible {
  color: #ffffff;
  text-decoration-color: currentColor;
}

/* Payment reassurance under each plan CTA */
.koma-start-modal__assure {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 10px 0 0;
  text-align: center;
}

.koma-start-modal__assure-terms {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.1px;
  color: rgba(255, 255, 255, 0.78);
}

.koma-start-modal__assure-secure {
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.1px;
  color: var(--ksm-muted);
  opacity: 0.8;
}

.koma-start-modal__error {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.1px;
  color: #ff8f8f;
  text-align: center;
}

.koma-start-modal__error:empty {
  display: none;
}

/* Email step
   ========================================================================== */

/* Anything toggled with the hidden attribute stays hidden, even when its
   class sets a display value (the CTA and login link are flex). */
.koma-start-modal [hidden] {
  display: none !important;
}

.koma-start-modal__back {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition:
    background-color 200ms var(--ksm-ease),
    color 200ms var(--ksm-ease),
    border-color 200ms var(--ksm-ease);
}

.koma-start-modal__back svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.koma-start-modal__eyebrow {
  margin: 4px 0 24px;
  padding: 0 40px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-align: center;
  color: #0aa859;
}

.koma-start-modal__form {
  margin-top: 18px;
}

.koma-start-modal__field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}

.koma-start-modal__input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-family: inherit;
  /* 16px keeps iOS Safari from zooming in on focus. */
  font-size: 16px;
  line-height: 1.4;
  transition:
    border-color 200ms var(--ksm-ease),
    box-shadow 200ms var(--ksm-ease);
}

.koma-start-modal__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.koma-start-modal__input:focus {
  outline: none;
  border-color: rgba(10, 168, 89, 0.85);
  box-shadow: 0 0 0 3px rgba(10, 168, 89, 0.22);
}

.koma-start-modal__input[readonly] {
  opacity: 0.75;
}

/* Honeypot: present for bots, never seen or reached by people. */
.koma-start-modal__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.koma-start-modal__notice {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.koma-start-modal__notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.koma-start-modal__notice p + p {
  margin-top: 4px;
}

.koma-start-modal__notice .koma-start-modal__notice-lead {
  margin-bottom: 6px;
  font-weight: 600;
  color: #ffffff;
}

.koma-start-modal__login {
  text-decoration: none;
}

.koma-start-modal__alt {
  margin: 14px 0 0;
  text-align: center;
}

.koma-start-modal__text-button {
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--ksm-muted);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.koma-start-modal__text-button:hover,
.koma-start-modal__text-button:focus-visible {
  color: #ffffff;
  text-decoration-color: currentColor;
}

.koma-start-modal__back:focus-visible,
.koma-start-modal__text-button:focus-visible {
  outline: 2px solid #0aa859;
  outline-offset: 3px;
}

/* Guided funnel (general "Start now")
   Same dialog, a little wider. Every screen sits in one centred content
   column; long text stays left-aligned inside it where that reads better.
   ========================================================================== */

.koma-start-modal--funnel .koma-start-modal__dialog {
  max-width: 760px;
}

/* One content column for every funnel screen, including the email step. */
.koma-start-modal--funnel .koma-start-modal__body > .koma-start-modal__step {
  max-width: 580px;
  margin: 0 auto;
}

.kf-screen {
  text-align: center;
  transition:
    opacity 300ms var(--ksm-ease),
    transform 360ms var(--ksm-ease);
}

.kf-screen.is-entering {
  opacity: 0;
  transform: translateY(8px);
  transition: none;
}

.kf-screen.is-entering-back {
  opacity: 0;
  transform: translateY(-8px);
  transition: none;
}

.kf-eyebrow {
  margin: 4px 0 12px;
  padding: 0;
  text-transform: uppercase;
}

.kf-title {
  margin: 0 0 12px;
  padding: 0;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  color: #ffffff;
  text-wrap: balance;
}

.kf-title:focus {
  outline: none;
}

.kf-text {
  margin: 0 auto;
  max-width: 460px;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  color: var(--ksm-muted);
  text-wrap: pretty;
}

.kf-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.kf-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 18px 20px 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(1, 155, 78, 0.05), rgba(1, 155, 78, 0) 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.42) 100%);
  color: var(--ksm-text);
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 300ms var(--ksm-ease),
    transform 300ms var(--ksm-ease),
    box-shadow 300ms var(--ksm-ease);
}

.kf-option__chev {
  width: 16px;
  height: 16px;
  flex: none;
  fill: var(--ksm-muted);
  transition:
    transform 300ms var(--ksm-ease),
    fill 300ms var(--ksm-ease);
}

.kf-option.is-selected {
  border-color: rgba(1, 155, 78, 0.65);
  box-shadow: 0 0 0 1px rgba(1, 155, 78, 0.25), 0 10px 30px -18px rgba(1, 155, 78, 0.4);
}

.kf-option.is-selected .kf-option__chev {
  fill: #0aa859;
}

.kf-option:focus-visible {
  outline: 2px solid #0aa859;
  outline-offset: 3px;
}

.kf-option:active {
  transform: scale(0.995);
}

/* Reveal: the message and one button, with room to breathe. */
.kf-screen--reveal {
  padding: 40px 0 16px;
}

.kf-screen--reveal .kf-title {
  font-size: 36px;
}

.kf-check {
  max-width: 280px;
  margin: 32px auto 0;
}

/* Operator: label, name and price centred; benefits in the card. */
.kf-price {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #ffffff;
}

/* What the membership opens: the platform, then a muted line, then its
   address in green. Centred under the price on the funnel's Operator screen;
   left-aligned under the name and price on the email step. */
.koma-start-modal__access-lead {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: #ffffff;
  text-wrap: balance;
}

.koma-start-modal__access-text {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ksm-muted);
  text-wrap: pretty;
}

.koma-start-modal__access-host {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #0aa859;
}

.kf-access {
  max-width: 440px;
  margin: 18px auto 0;
}

.koma-start-modal__access--email {
  margin-top: 12px;
}

.koma-start-modal__access--email .koma-start-modal__access-lead {
  font-size: 15.5px;
}

.koma-start-modal__access--email .koma-start-modal__access-text {
  font-size: 14px;
}

.koma-start-modal__access--email .koma-start-modal__access-host {
  margin-top: 8px;
  font-size: 12.5px;
}

/* The funnel's Operator screen has just shown it. */
.koma-start-modal--funnel .koma-start-modal__access--email {
  display: none;
}

.koma-start-modal__access[hidden] {
  display: none;
}

.kf-offer {
  margin-top: 26px;
  text-align: left;
}

/* Why Operator fits the chosen path, above its benefits. */
.kf-line {
  margin: 0 0 14px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ksm-text);
  text-wrap: pretty;
}

.kf-benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kf-benefits li {
  position: relative;
  padding-left: 28px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ksm-text);
}

.kf-benefits li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 3px;
  width: 12px;
  height: 7px;
  border-left: 2px solid #0aa859;
  border-bottom: 2px solid #0aa859;
  transform: rotate(-45deg);
}

.kf-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ksm-muted);
}

.kf-charge {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

.kf-charge + .koma-start-modal__cta {
  margin-top: 14px;
}

/* Quiet text links out of the funnel (to the plans, and from Operator to
   the Business Insight Emails benefit): the "Or start free" link's style,
   with room to sit apart from the choices or the offer above. */
.kf-screen .kf-aside {
  margin: 32px 0 4px;
  font-size: 14.5px;
}

.kf-screen--operator .kf-aside {
  margin-top: 24px;
}

/* "Ready to move?" (from the floating "I'm ready to move"), both wordings:
   the plan popup's width; the Operator screen's eyebrow and heading; a
   short, readable lead; then one plan card with the name and price at
   reading size and the platform line in white. */
.kr {
  padding: 4px 0 0;
  text-align: center;
}

.kr .kr-eyebrow {
  margin: 4px 0 14px;
}

.kr .kf-title {
  margin-bottom: 14px;
}

.kr-text {
  max-width: 470px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
  text-wrap: balance;
}

.kr-offer {
  margin-top: 30px;
  text-align: left;
}

.kr-offer .koma-start-modal__name,
.kr-offer .koma-start-modal__price {
  font-size: 22px;
}

.kr-lead {
  margin-top: 8px;
  font-size: 16px;
}

.kr-lead + .koma-start-modal__cta {
  margin-top: 22px;
}

.kr .kf-aside {
  margin: 22px 0 0;
}

/* Email step in the funnel: its own heading in place of the eyebrow.
   (The plan popup keeps the eyebrow and never shows this heading.) */
.kf-email-title {
  display: none;
}

.koma-start-modal--funnel .kf-email-title {
  display: block;
  margin: 4px 0 24px;
}

.koma-start-modal--funnel [data-step="email"] > .koma-start-modal__eyebrow {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .kf-option:hover {
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
  }

  .kf-option:hover .kf-option__chev {
    fill: #ffffff;
    transform: translateX(2px);
  }

  .kf-option.is-selected:hover {
    border-color: rgba(1, 155, 78, 0.8);
  }

  .koma-start-modal__back:hover,
  .koma-start-modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
  }

  .koma-start-modal__cta:not([aria-busy="true"]):hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 10px 30px -10px rgba(1, 155, 78, 0.55);
  }

  .koma-start-modal__card:not(.is-primary) .koma-start-modal__cta:not([aria-busy="true"]):hover {
    filter: none;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
  }
}

/* Mobile: tuned separately, not a scaled-down desktop
   ========================================================================== */

@media (max-width: 600px) {
  .koma-start-modal {
    --ksm-pad: 20px;
    --ksm-gutter: 12px;
  }

  .koma-start-modal__dialog {
    border-radius: 22px;
  }

  .koma-start-modal__body {
    padding: 26px 18px 18px;
  }

  .koma-start-modal__close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
  }

  .koma-start-modal__back {
    top: 10px;
    left: 10px;
    width: 44px;
    height: 44px;
  }

  .kf-title {
    padding: 0 40px;
    font-size: 26px;
    line-height: 1.18;
  }

  .kf-screen[data-kf-screen="situation"] .kf-title {
    margin-top: 6px;
  }

  .kf-screen .kf-aside {
    margin-top: 26px;
  }

  .kf-screen--operator .kf-aside {
    margin-top: 20px;
  }

  .kr .kr-eyebrow {
    margin: 8px 0 12px;
  }

  .kr .kf-title {
    font-size: 28px;
  }

  .kr-text {
    font-size: 15.5px;
  }

  .kr-offer {
    margin-top: 24px;
  }

  .kr-offer .koma-start-modal__name,
  .kr-offer .koma-start-modal__price {
    font-size: 20px;
  }

  .kr-lead {
    font-size: 15px;
  }

  .kr .kf-aside {
    margin-top: 18px;
  }

  .kr-lead + .koma-start-modal__cta {
    margin-top: 18px;
  }

  .kf-eyebrow {
    padding: 0 40px;
  }

  .kf-text {
    font-size: 15px;
  }

  .kf-options {
    gap: 10px;
    margin-top: 22px;
  }

  .kf-option {
    min-height: 60px;
    padding: 15px 16px 15px 18px;
    font-size: 16px;
  }

  .kf-screen--reveal {
    padding: 28px 0 8px;
  }

  .kf-screen--reveal .kf-title {
    font-size: 28px;
  }

  .kf-check {
    max-width: none;
    margin-top: 26px;
  }

  .kf-price {
    font-size: 22px;
  }

  .kf-offer {
    margin-top: 22px;
  }

  .kf-access {
    margin-top: 14px;
  }

  .koma-start-modal__access-lead {
    font-size: 16px;
  }

  .koma-start-modal__access-text {
    font-size: 14px;
  }

  .kf-line {
    font-size: 15px;
  }

  .kf-benefits li {
    font-size: 15px;
  }

  .koma-start-modal--funnel .kf-email-title {
    margin: 10px 0 20px;
    padding: 0 40px;
  }

  .koma-start-modal__eyebrow {
    margin: 10px 0 20px;
    padding: 0 48px;
    font-size: 12px;
  }

  .koma-start-modal__form {
    margin-top: 14px;
  }

  .koma-start-modal__title {
    margin-bottom: 24px;
    padding: 0 40px;
    font-size: 32px;
    line-height: 1.12;
  }

  .koma-start-modal__plans {
    gap: 12px;
  }

  .koma-start-modal__card {
    padding: 18px 18px 18px;
    border-radius: 16px;
  }

  .koma-start-modal__name {
    font-size: 19px;
  }

  .koma-start-modal__price {
    font-size: 18px;
  }

  .koma-start-modal__period {
    font-size: 13px;
  }

  .koma-start-modal__desc {
    margin-top: 4px;
    font-size: 14.5px;
    line-height: 1.5;
  }

  .koma-start-modal__cta {
    min-height: 46px;
    margin-top: 14px;
  }

  .koma-start-modal__assure {
    margin-top: 8px;
  }

  .koma-start-modal__assure-terms {
    font-size: 12.5px;
  }

  .koma-start-modal__assure-secure {
    font-size: 11px;
  }

  .koma-start-modal__free {
    margin-top: 14px;
    font-size: 13.5px;
  }
}

/* Phones: more of the screen for the dialog, and a compact Operator offer
   ==========================================================================
   The dialog takes nearly the whole visible height (dvh follows Safari's
   toolbars as they show and hide; the safe areas keep it clear of the notch
   and the home indicator). The rest only touches the funnel's Operator
   screen: tighter vertical rhythm, the same copy and readable sizes, and
   the charge line + Join button kept in reach when the screen is too short
   for the whole offer. */
@media (max-width: 600px) {
  .koma-start-modal__viewport {
    padding:
      calc(8px + env(safe-area-inset-top, 0px))
      var(--ksm-gutter)
      calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .koma-start-modal__dialog {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }

  /* Eyebrow on the same row as the back and close buttons */
  .kf-screen--operator .kf-eyebrow {
    margin: 0 0 6px;
  }

  .kf-screen--operator .kf-title {
    margin-bottom: 2px;
  }

  .kf-screen--operator .kf-access {
    margin-top: 10px;
  }

  .kf-screen--operator .koma-start-modal__access-lead {
    line-height: 1.4;
  }

  .kf-screen--operator .koma-start-modal__access-text {
    margin-top: 3px;
    font-size: 13.5px;
    line-height: 1.5;
  }

  .kf-screen--operator .koma-start-modal__access-host {
    margin-top: 5px;
    font-size: 12.5px;
  }

  .kf-screen--operator .kf-offer {
    margin-top: 16px;
    padding: 16px 16px 14px;
  }

  .kf-screen--operator .kf-line {
    margin-bottom: 10px;
    line-height: 1.45;
  }

  .kf-screen--operator .kf-benefits {
    gap: 7px;
  }

  .kf-screen--operator .kf-benefits li {
    line-height: 1.45;
  }

  .kf-screen--operator .kf-note {
    margin-top: 10px;
    font-size: 12.5px;
  }

  /* Charge line + Join button. Sticky at the bottom of the dialog's
     scrolling body; inert whenever they already fit on screen. The side
     margins let the backing span the card's full inner width. */
  .kf-action {
    position: sticky;
    bottom: 0;
    z-index: 1;
    margin: 0 -16px;
    padding: 12px 16px 0;
  }

  .kf-screen--operator .kf-charge {
    margin: 0;
    padding-top: 12px;
    font-size: 14.5px;
  }

  .kf-screen--operator .kf-charge + .koma-start-modal__cta {
    margin-top: 10px;
  }

  /* Floating over the offer: a dark backing that fades in at the top, so
     the text scrolling underneath never shows through. */
  .kf-action.is-stuck {
    background: rgba(8, 13, 12, 0.96);
  }

  .kf-action.is-stuck::before,
  .kf-action.is-stuck::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
  }

  .kf-action.is-stuck::before {
    bottom: 100%;
    height: 20px;
    background: linear-gradient(180deg, rgba(8, 13, 12, 0), rgba(8, 13, 12, 0.96));
  }

  /* ...and down to the dialog's edge, below the button. */
  .kf-action.is-stuck::after {
    top: 100%;
    height: 40px;
    background: rgba(8, 13, 12, 0.96);
  }

  .kf-action.is-stuck .kf-charge {
    border-top-color: transparent;
  }

  .kf-screen--operator .koma-start-modal__assure {
    margin-top: 10px;
  }

  .kf-screen--operator .kf-aside {
    margin: 14px 0 0;
  }
}

/* Short phones (e.g. 375×667): tighten vertical rhythm a little more */
@media (max-width: 600px) and (max-height: 700px) {
  .koma-start-modal__body {
    padding-top: 22px;
  }

  .koma-start-modal__title {
    margin-bottom: 20px;
    font-size: 30px;
  }
}

/* Reduced motion: appear/disappear without movement
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .koma-start-modal__backdrop,
  .koma-start-modal__dialog,
  .koma-start-modal.is-open .koma-start-modal__backdrop,
  .koma-start-modal.is-open .koma-start-modal__dialog {
    transform: none;
    transition: none;
  }

  .koma-start-modal__cta,
  .koma-start-modal__close,
  .koma-start-modal__back,
  .koma-start-modal__input {
    transition: none;
  }

  .kf-screen,
  .kf-option,
  .kf-option__chev {
    transition: none;
  }

  .kf-option:hover,
  .kf-option:active,
  .kf-option:hover .kf-option__chev {
    transform: none;
  }

  .koma-start-modal__cta:not([aria-busy="true"]):hover,
  .koma-start-modal__cta:active {
    transform: none;
  }

  .koma-start-modal__spinner {
    animation: none;
    border-color: rgba(10, 10, 10, 0.45);
  }
}

/* Regional prices
   ==========================================================================
   Pages with prices start with html.koma-pricing-pending; start-modal.js
   removes it once this visitor's prices are filled in (or after a short
   timeout, keeping the USD fallback). The animation is a failsafe that shows
   the fallback even if the script never runs. */

.koma-pricing-pending [data-koma-amount],
.koma-pricing-pending [data-koma-terms] {
  visibility: hidden;
  animation: koma-pricing-failsafe 0s linear 3.5s forwards;
}

@keyframes koma-pricing-failsafe {
  to {
    visibility: visible;
  }
}
