@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/onest-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/onest-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/onest-latin-400-normal.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;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/onest-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/onest-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/onest-latin-500-normal.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;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/onest-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/onest-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/onest-latin-700-normal.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;
}

:root {
  color-scheme: light;

  --cream: #fff9ef;
  --sand: #f5ecda;
  --sand-line: #eadfc9;
  --surface: #ffffff;
  --ink: #1b2b22;
  --muted: #4f5e54;
  --green: #1f6f4a;
  --green-deep: #185c3d;
  --green-tint: #e4f0e8;
  --amber: #e3a33b;
  --field-border: #7d8a80;
  --placeholder: #6b786f;
  --error: #b42318;
  --error-tint: #fdf0ee;

  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 20px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.375rem;
  margin: 0 0 16px;
}

h3 {
  font-size: 1.0625rem;
  margin: 0 0 4px;
}

p {
  margin: 0 0 12px;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.muted {
  color: var(--muted);
  margin: 0;
}

main,
footer {
  max-width: 560px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section {
  margin: 40px 0;
}

/* Hero */

.hero {
  padding-top: 24px;
}

.brand {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--green);
  margin: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lang-switch {
  display: flex;
  padding: 3px;
  border: 1.5px solid var(--sand-line);
  border-radius: 999px;
  background: var(--sand);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

.lang-switch > * {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
}

.lang-switch a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease, transform 160ms ease-out;
}

/* Extends the 38px pill to a 46px tap target without growing the control. */
.lang-switch a::after {
  content: "";
  position: absolute;
  inset: -4px -2px;
}

.lang-switch a:not([aria-current]):active {
  transform: scale(0.97);
}

.lang-switch a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.lang-switch [aria-current="page"] {
  background: var(--green);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .lang-switch a:not([aria-current]):hover {
    color: var(--green-deep);
    background: var(--surface);
  }
}

.journey {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 24px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
}

.stop {
  flex: none;
  padding: 7px 12px;
  border-radius: 999px;
}

.stop-from {
  background: var(--green);
  color: #fff;
}

.stop-to {
  background: var(--amber);
  color: var(--ink);
}

.road {
  flex: 1;
  min-width: 24px;
  border-top: 2px dashed var(--amber);
}

.lead {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 22ch;
}

.sub {
  margin: 14px 0 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.0625rem;
}

.jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 10px 18px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

/* Hooks: the reader's own questions as chat bubbles, answered by one reply */

.chat {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.chat li {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: var(--radius-l) var(--radius-l) var(--radius-l) 6px;
  background: var(--sand);
  line-height: 1.4;
}

.chat .reply {
  align-self: flex-end;
  margin-top: 4px;
  border-radius: var(--radius-l) var(--radius-l) 6px var(--radius-l);
  background: var(--green);
  color: #fff;
  font-weight: 500;
}

/* Route: the steps we help with, on the same dashed road */

.features {
  list-style: none;
  margin: 0;
  padding: 0 0 0 36px;
  position: relative;
}

.features::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  border-left: 2px dashed var(--amber);
}

.features::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
}

.features li {
  position: relative;
  padding: 0 0 24px;
}

.features li::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--green);
}

.features li:first-child::before {
  background: var(--green);
}

.features p {
  color: var(--muted);
  margin: 0;
}

.route .note {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--amber);
  background: var(--sand);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: 0.9375rem;
}

/* Price */

.price-block {
  padding: 20px;
  border: 1px solid var(--sand-line);
  border-radius: var(--radius-l);
}

.price-block h2 {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 4px;
}

.price {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 12px;
}

.price-block p:not(.price):not(.muted) {
  margin: 0 0 4px;
}

/* Form card */

.join {
  background: var(--surface);
  border-radius: var(--radius-l);
  padding: 24px 20px;
  box-shadow: 0 1px 0 var(--sand-line), 0 18px 40px -24px rgba(27, 43, 34, 0.28);
}

.join h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.join h2:has(+ .form-sub) {
  margin-bottom: 4px;
}

.form-sub {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 500;
  margin: 0 0 6px;
}

.field {
  margin: 0 0 18px;
}

.field .muted {
  font-size: 0.9375rem;
  margin-top: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  display: block;
  width: 100%;
  min-height: 52px;
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-s);
  background: #fffcf6;
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  outline: none;
  border-color: var(--green);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(31, 111, 74, 0.18);
}

input[aria-invalid="true"],
input[aria-invalid="true"]:focus {
  border-color: var(--error);
}

input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.16);
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-top: 4px;
}

.consent input {
  width: 22px;
  height: 22px;
  margin: 0;
  flex: none;
  accent-color: var(--green);
}

#turnstile {
  margin: 18px 0;
  min-height: 65px;
}

button {
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button[type="submit"] {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--green);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  transition: transform 140ms var(--ease-out), background-color 150ms ease;
}

button[type="submit"]:active:not(:disabled) {
  transform: scale(0.98);
}

button:disabled {
  cursor: default;
  opacity: 0.6;
}

.status:empty {
  margin: 0;
}

.status:not(:empty) {
  margin: 14px 0 0;
  padding: 12px 14px 12px 42px;
  position: relative;
  color: var(--error);
  background: var(--error-tint);
  border-radius: var(--radius-s);
  font-size: 0.9375rem;
  font-weight: 500;
}

.status:not(:empty)::before {
  content: "!";
  position: absolute;
  left: 14px;
  top: 13px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* Success */

#thanks:not([hidden]) {
  animation: arrive 360ms var(--ease-out) both;
}

#thanks {
  scroll-margin-top: 40px;
}

#thanks h2 {
  color: var(--green);
  font-size: 1.375rem;
  margin-bottom: 4px;
}

#thanks > p {
  margin: 0;
}

#thanks h2:focus:not(:focus-visible) {
  outline: none;
}

#answers > .muted {
  font-size: 0.9375rem;
}

.question {
  min-width: 0;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px dashed var(--sand-line);
}

/* Floated so the legend sits inside the fieldset instead of on its border line */
.question legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.choices {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.choices label {
  position: relative;
  margin: 0;
  font-weight: 500;
}


.choices input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choices span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  height: 100%;
  padding: 8px 14px 8px 11px;
  border: 1.5px solid var(--field-border);
  /* Half the 40px min-height: a pill on one line, still rounded when a long label wraps */
  border-radius: 20px;
  text-wrap: balance;
  font-size: 0.9375rem;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.2;
  transition: transform 140ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.choices span::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--field-border);
  background: var(--amber);
  box-shadow: inset 0 0 0 7px var(--surface);
  transition: box-shadow 180ms var(--ease-out), border-color 150ms ease;
}

.choices input:active + span {
  transform: scale(0.97);
}

.choices input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.choices input:checked + span::before {
  border-color: #fff;
  box-shadow: inset 0 0 0 3px var(--surface);
}

.choices input:focus-visible + span {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.choices input:disabled {
  cursor: default;
}

/* Sticks to the bottom of the viewport (mobile) or of the scrolling card (desktop) so apply is never below the fold */
.answers-bar {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin: 18px -20px -24px;
  padding: 0 20px 20px;
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  background: var(--surface);
}

.answers-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 18px;
  background: linear-gradient(rgba(255, 255, 255, 0), var(--surface));
  pointer-events: none;
}

#answers button[type="submit"] {
  min-height: 52px;
  padding: 12px 20px;
}

/* Answers received */

.done {
  margin-top: 20px;
  padding: 22px 20px 20px;
  border-radius: var(--radius-m);
  background: var(--green-tint);
  animation: arrive 360ms var(--ease-out) both;
}

.done-mark {
  display: block;
  position: relative;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-tint), 0 0 0 5px var(--amber);
  animation: pop 420ms var(--ease-out) 80ms both;
}

.done-mark::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 11px;
  width: 9px;
  height: 17px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.done h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.done h3:focus:not(:focus-visible) {
  outline: none;
}

.done p {
  margin: 0;
  color: var(--muted);
}

.confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  button[type="submit"]:hover:not(:disabled) {
    background: var(--green-deep);
  }

  .choices input:hover:not(:disabled):not(:checked) + span {
    border-color: var(--green);
  }

  a:hover {
    text-decoration-thickness: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #thanks:not([hidden]),
  .done,
  .done-mark {
    animation: fade 200ms ease both;
  }

  button[type="submit"]:active:not(:disabled),
  .choices input:active + span {
    transform: none;
  }
}

/* How it works: a looping phone preview; app.js sets data-step 1-4 on .demo */

.demo h2 {
  margin-bottom: 10px;
}

.wip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: var(--sand);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}

.wip::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.demo-sub {
  color: var(--muted);
  margin: 0 0 24px;
}

.demo-body {
  display: grid;
  justify-items: center;
  gap: 28px;
}

.phone {
  width: 272px;
  padding: 10px;
  border-radius: 42px;
  background: var(--ink);
  box-shadow: 0 32px 56px -32px rgba(27, 43, 34, 0.55);
}

.phone-screen {
  position: relative;
  height: 480px;
  overflow: hidden;
  border-radius: 32px;
  background: #fffcf6;
  font-size: 12px;
  line-height: 1.35;
}

.phone-screen p {
  margin: 0;
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 76px;
  height: 20px;
  margin-left: -38px;
  border-radius: 999px;
  background: var(--ink);
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 16px 0;
}

.app-name {
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.app-progress {
  display: flex;
  gap: 4px;
}

.app-progress i {
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: var(--sand-line);
  transition: background-color 300ms ease;
}

.demo:not([data-step]) .app-progress i:first-child,
.demo[data-step="1"] .app-progress i:nth-child(-n + 1),
.demo[data-step="2"] .app-progress i:nth-child(-n + 2),
.demo[data-step="3"] .app-progress i:nth-child(-n + 3),
.demo[data-step="4"] .app-progress i {
  background: var(--green);
}

.scr {
  position: absolute;
  inset: 66px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 14px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.demo:not([data-step]) .scr-1,
.demo[data-step="1"] .scr-1,
.demo[data-step="2"] .scr-2,
.demo[data-step="3"] .scr-3,
.demo[data-step="4"] .scr-4 {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 0s;
  animation: scr-in 460ms var(--ease-out) both;
}

.demo[data-paused] * {
  animation-play-state: paused !important;
}

.m-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px !important;
}

.m-label {
  margin-top: 6px !important;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.m-input {
  padding: 8px 10px;
  border: 1.5px solid var(--sand-line);
  border-radius: 9px;
  background: var(--surface);
  font-weight: 500;
}

.m-type,
.m-exp {
  display: inline-block;
}

.m-levels {
  display: flex;
  gap: 6px;
}

.m-levels span {
  flex: 1;
  padding: 6px 0;
  border: 1.5px solid var(--sand-line);
  border-radius: 999px;
  background: var(--surface);
  text-align: center;
  font-weight: 500;
}

.m-levels .m-pick {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.m-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 11px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.m-btn-1 {
  margin-top: auto !important;
}

.m-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.m-filters span {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 500;
}

.m-src {
  margin: 2px 0 2px !important;
  color: var(--muted);
  font-size: 10.5px;
}

.m-job,
.m-picked {
  padding: 9px 11px;
  border: 1px solid var(--sand-line);
  border-radius: 11px;
  background: var(--surface);
}

.m-job-t {
  font-weight: 700;
  line-height: 1.25;
}

.m-job-e {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px !important;
}

.m-job-m {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px !important;
  font-size: 11px;
  font-weight: 500;
}

.m-tag {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--sand);
  font-size: 10.5px;
}

.m-job-1 {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green-tint);
}

.m-picked {
  background: var(--sand);
  border-color: transparent;
}

.scr-3 {
  gap: 10px;
}

.m-gen {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-weight: 500;
  opacity: 0;
}

.m-spin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--green-tint);
  border-top-color: var(--green);
}

.m-bar {
  width: 150px;
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--sand);
}

.m-bar i {
  display: block;
  height: 100%;
  background: var(--amber);
  transform-origin: left;
}

.m-docs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.m-check {
  grid-column: 1 / -1;
  font-weight: 700;
  font-size: 13px;
}

.m-doc {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 210px;
  padding: 10px 9px 9px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--sand-line), 0 10px 18px -12px rgba(27, 43, 34, 0.35);
  font-size: 9.5px;
  line-height: 1.3;
}

.m-doc-h {
  margin-bottom: 4px !important;
  color: var(--green);
  font-size: 11.5px;
  font-weight: 700;
}

.m-doc-l {
  font-weight: 500;
}

.m-lines {
  display: grid;
  gap: 5px;
  margin: 6px 0 10px;
}

.m-lines i {
  height: 4px;
  border-radius: 2px;
  background: var(--sand-line);
}

.m-lines i:nth-child(2) {
  width: 80%;
}

.m-lines i:nth-child(3) {
  width: 60%;
}

.m-edit {
  margin-top: auto;
  padding: 5px 0;
  border: 1.5px solid var(--green);
  border-radius: 7px;
  color: var(--green);
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
}

.m-dl {
  position: relative;
  width: 12px;
  height: 13px;
  border-bottom: 2px solid #fff;
}

.m-dl::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  width: 2px;
  height: 8px;
  background: #fff;
}

.m-dl::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 5px;
  height: 5px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.m-files {
  color: var(--muted);
  font-size: 10.5px;
  text-align: center;
}

.m-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.m-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.m-list li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.5px solid var(--field-border);
  background: var(--surface);
}

.m-list .m-done::before {
  border-color: var(--green);
  background: var(--green);
}

.m-list .m-done::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.m-apply {
  margin-top: auto;
  padding: 9px 11px;
  border-left: 3px solid var(--amber);
  border-radius: 0 9px 9px 0;
  background: var(--sand);
  font-size: 11px;
}

.m-apply-t {
  font-size: 12px;
  font-weight: 700;
}

.tap {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(31, 111, 74, 0.22);
  border: 2px solid rgba(31, 111, 74, 0.55);
  opacity: 0;
  pointer-events: none;
}

.tap-1 {
  bottom: 18px;
  left: 50%;
  margin-left: -18px;
}

.tap-2 {
  top: 134px;
  right: 40px;
}

.tap-4 {
  top: 34px;
  left: 50%;
  margin-left: -18px;
}

/* Per-step choreography; resting styles above are each screen's end state */

.demo[data-step="1"] .m-type {
  animation: type 900ms steps(24, end) 250ms both;
}

.demo[data-step="1"] .m-pick {
  animation: pick 260ms var(--ease-out) 1250ms both;
}

.demo[data-step="1"] .m-exp {
  animation: rise 360ms var(--ease-out) 1650ms both;
}

.demo[data-step="1"] .m-btn-1 {
  animation: press 300ms ease 2450ms;
}

.demo[data-step="1"] .tap-1 {
  animation: tap 650ms var(--ease-out) 2300ms both;
}

.demo[data-step="2"] .m-job {
  animation: rise 420ms var(--ease-out) both;
}

.demo[data-step="2"] .m-job-1 {
  animation: rise 420ms var(--ease-out) 150ms both, choose 3400ms linear both;
}

.demo[data-step="2"] .m-job-2 {
  animation-delay: 230ms;
}

.demo[data-step="2"] .m-job-3 {
  animation-delay: 310ms;
}

.demo[data-step="2"] .tap-2 {
  animation: tap 650ms var(--ease-out) 2200ms both;
}

.demo[data-step="3"] .m-gen {
  animation: gen 3600ms linear both;
}

.demo[data-step="3"] .m-spin {
  animation: spin 700ms linear infinite;
}

.demo[data-step="3"] .m-bar i {
  animation: bar 1500ms cubic-bezier(0.65, 0, 0.35, 1) 100ms both;
}

.demo[data-step="3"] .m-check {
  animation: rise 360ms var(--ease-out) 1750ms both;
}

.demo[data-step="3"] .m-doc-1 {
  animation: rise 460ms var(--ease-out) 1800ms both;
}

.demo[data-step="3"] .m-doc-2 {
  animation: rise 460ms var(--ease-out) 1880ms both;
}

.demo[data-step="3"] .m-doc-2 .m-edit {
  animation: press 300ms ease 2900ms;
}

.demo[data-step="4"] .m-btn-4 {
  animation: press 300ms ease 550ms;
}

.demo[data-step="4"] .tap-4 {
  animation: tap 650ms var(--ease-out) 400ms both;
}

.demo[data-step="4"] .m-files {
  animation: rise 320ms var(--ease-out) 900ms both;
}

.demo[data-step="4"] .m-done::before,
.demo[data-step="4"] .m-done::after {
  animation: tick 260ms var(--ease-out) both;
}

.demo[data-step="4"] .m-done:nth-child(1)::before,
.demo[data-step="4"] .m-done:nth-child(1)::after {
  animation-delay: 1250ms;
}

.demo[data-step="4"] .m-done:nth-child(2)::before,
.demo[data-step="4"] .m-done:nth-child(2)::after {
  animation-delay: 1500ms;
}

.demo[data-step="4"] .m-done:nth-child(3)::before,
.demo[data-step="4"] .m-done:nth-child(3)::after {
  animation-delay: 1750ms;
}

.demo[data-step="4"] .m-done:nth-child(4)::before,
.demo[data-step="4"] .m-done:nth-child(4)::after {
  animation-delay: 2000ms;
}

.demo[data-step="4"] .m-apply {
  animation: rise 420ms var(--ease-out) 2400ms both;
}

@keyframes scr-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes type {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes pick {
  from {
    border-color: var(--sand-line);
    background-color: var(--surface);
    color: var(--ink);
    transform: scale(0.94);
  }
}

@keyframes press {
  50% {
    transform: scale(0.95);
  }
}

@keyframes tap {
  0% {
    opacity: 0;
    transform: scale(1.4);
  }
  35% {
    opacity: 1;
    transform: scale(1);
  }
  60% {
    opacity: 1;
    transform: scale(0.85);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes choose {
  0%,
  68% {
    border-color: var(--sand-line);
    box-shadow: 0 0 0 0 var(--green-tint);
  }
  74%,
  100% {
    border-color: var(--green);
    box-shadow: 0 0 0 2px var(--green-tint);
  }
}

@keyframes gen {
  0% {
    opacity: 0;
  }
  6%,
  42% {
    opacity: 1;
  }
  47%,
  100% {
    opacity: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes bar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes tick {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

/* Step list doubles as the screen-reader description */

.demo-steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  width: 100%;
}

.demo-steps li {
  counter-increment: step;
  position: relative;
  min-height: 32px;
  padding-left: 46px;
  color: var(--muted);
  transition: color 200ms ease;
}

.demo-steps strong {
  color: var(--ink);
}

.demo-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: var(--cream);
  color: var(--green);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 26px;
  text-align: center;
  transition: background-color 200ms ease, color 200ms ease;
}

.demo-steps li::after {
  content: "";
  position: absolute;
  left: 46px;
  right: 0;
  bottom: -9px;
  height: 2px;
  border-radius: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
}

.demo[data-step="1"] .demo-steps li:nth-child(1),
.demo[data-step="2"] .demo-steps li:nth-child(2),
.demo[data-step="3"] .demo-steps li:nth-child(3),
.demo[data-step="4"] .demo-steps li:nth-child(4) {
  color: var(--ink);
}

.demo[data-step="1"] .demo-steps li:nth-child(1)::before,
.demo[data-step="2"] .demo-steps li:nth-child(2)::before,
.demo[data-step="3"] .demo-steps li:nth-child(3)::before,
.demo[data-step="4"] .demo-steps li:nth-child(4)::before {
  background: var(--green);
  color: #fff;
}

.demo[data-step="1"] .demo-steps li:nth-child(1)::after {
  animation: bar 3200ms linear both;
}

.demo[data-step="2"] .demo-steps li:nth-child(2)::after {
  animation: bar 3400ms linear both;
}

.demo[data-step="3"] .demo-steps li:nth-child(3)::after,
.demo[data-step="4"] .demo-steps li:nth-child(4)::after {
  animation: bar 3600ms linear both;
}

/* Samples: real-text paper previews; the dialog shows a clone of the same paper */

.sample-grid {
  display: grid;
  gap: 20px;
}

.sample {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: var(--radius-l);
  background: var(--sand);
}

.sample h3 {
  margin-bottom: 12px;
}

.paper-crop {
  position: relative;
  height: 330px;
  overflow: hidden;
  border-radius: 6px;
  cursor: zoom-in;
}

.paper-crop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(rgba(245, 236, 218, 0), var(--sand) 92%);
}

.paper {
  padding: 20px 18px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 0 var(--sand-line), 0 12px 28px -18px rgba(27, 43, 34, 0.35);
  color: #222;
  font-size: 11.5px;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.paper p {
  margin: 0 0 0.9em;
}

.paper h3 {
  margin: 1.4em 0 0.6em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #d9d3c6;
  color: var(--green-deep);
  font-size: 1.05em;
  letter-spacing: 0;
}

.cv-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cv-initials {
  flex: none;
  width: 3.6em;
  height: 3.6em;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 1.05em;
  line-height: 3.6em;
  text-align: center;
}

.cv-name {
  margin: 0 !important;
  font-size: 1.6em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cv-role {
  margin: 0 !important;
  color: var(--muted);
}

.cv-rows {
  display: grid;
  grid-template-columns: minmax(6.5em, 32%) 1fr;
  gap: 0.35em 0.9em;
  margin: 0;
}

.cv-rows dt {
  color: #5c5c5c;
  hyphens: auto;
}

.cv-rows dd {
  margin: 0;
  min-width: 0;
}

.cv-rows ul {
  margin: 0.25em 0 0.4em;
  padding-left: 1.1em;
}

.cv-rows li {
  margin: 0 0 0.15em;
}

.paper-sign {
  margin: 1.8em 0 0 !important;
}

.paper-sign span,
.ltr-sign {
  display: block;
  margin-top: 1.4em;
  font-weight: 500;
}

.ltr-from {
  text-align: right;
  color: #5c5c5c;
  font-size: 0.92em;
}

.ltr-to {
  margin: 1.6em 0 1.6em !important;
}

.ltr-date {
  text-align: right;
}

.ltr-subject {
  margin: 1.6em 0 1.4em !important;
  font-weight: 700;
}

.ltr-close {
  margin-top: 1.4em !important;
}

.ltr-attach {
  margin-top: 1.8em !important;
  color: #5c5c5c;
  font-size: 0.92em;
}

.sample-line {
  margin: 12px 0 14px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.sample-open {
  align-self: flex-start;
  margin-top: auto;
  min-height: 44px;
  padding: 10px 18px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  background: var(--surface);
  color: var(--green-deep);
  font-weight: 700;
  transition: transform 140ms var(--ease-out), background-color 150ms ease;
}

.sample-open:active {
  transform: scale(0.97);
}

/* Document dialog */

.doc-dialog {
  width: calc(100% - 16px);
  max-width: 720px;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-l);
  background: var(--sand);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}

.doc-dialog[open] {
  animation: dialog-in 220ms var(--ease-out) both;
}

.doc-dialog::backdrop {
  background: rgba(27, 43, 34, 0.55);
}

.doc-dialog-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 18px;
  background: var(--sand);
  border-bottom: 1px solid var(--sand-line);
}

.doc-dialog-bar h2 {
  margin: 0;
  font-size: 1.0625rem;
}

.doc-close {
  flex: none;
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  transition: transform 140ms var(--ease-out), background-color 150ms ease;
}

.doc-close:active {
  transform: scale(0.97);
}

.doc-dialog-body {
  padding: 16px 12px 24px;
}

.doc-dialog .paper {
  font-size: 13px;
  padding: 28px 22px;
}

html:has(.doc-dialog[open]) {
  overflow: hidden;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .sample-open:hover {
    background: var(--green-tint);
  }

  .doc-close:hover {
    background: var(--green-deep);
  }
}

@media (min-width: 640px) {
  .demo-body {
    grid-template-columns: 272px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    column-gap: 36px;
  }

  .sample-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Two cards side by side are too narrow for the tabular layout, so the preview is a scaled-down page. */
  .paper-crop .paper {
    width: 360px;
    zoom: 0.616;
  }

  .doc-dialog-body {
    padding: 24px 28px 32px;
  }

  .doc-dialog .paper {
    padding: 44px 48px;
  }
}

/* Reduced motion: the four screens sit side by side as still frames */

@media (prefers-reduced-motion: reduce) {
  .demo * {
    animation: none !important;
  }

  .demo-body {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .phone {
    width: 100%;
    max-width: 344px;
    padding: 0;
    background: none;
    box-shadow: none;
  }

  .phone-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    height: auto;
    overflow: visible;
    border-radius: 0;
    background: none;
    counter-reset: frame;
  }

  .phone-screen::before,
  .app-bar,
  .tap {
    display: none;
  }

  .scr,
  .demo .scr {
    position: relative;
    inset: auto;
    width: 252px;
    height: 440px;
    padding-top: 16px;
    zoom: 0.65;
    opacity: 1;
    visibility: visible;
    border: 3px solid var(--ink);
    border-radius: 26px;
    background: #fffcf6;
    counter-increment: frame;
  }

  .scr::before {
    content: counter(frame);
    position: absolute;
    top: -14px;
    left: -14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 34px;
    text-align: center;
  }

  .m-gen {
    display: none;
  }

  .demo-steps li::after {
    display: none;
  }

  .doc-dialog[open] {
    animation: fade 150ms ease both;
  }

  .sample-open:active,
  .doc-close:active {
    transform: none;
  }
}

/* Footer */

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 20px;
  padding-bottom: 40px;
  border-top: 1px dashed var(--sand-line);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Privacy and Impressum */

.doc {
  max-width: 680px;
  padding-top: 32px;
}

.doc + footer {
  max-width: 680px;
}

.doc h1 {
  font-size: 1.875rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.doc h1::after {
  content: "";
  display: block;
  width: 72px;
  margin-top: 16px;
  border-top: 2px dashed var(--amber);
}

.doc h2 {
  font-size: 1.125rem;
  margin: 32px 0 8px;
}

.doc ul {
  padding-left: 22px;
  margin: 0 0 12px;
}

.doc li {
  margin: 0 0 6px;
}

.doc li::marker {
  color: var(--green);
}

.banner {
  background: var(--error);
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  text-align: center;
}

/* Desktop: content on the left, the form card stays in view on the right */

@media (min-width: 960px) {
  :root {
    --gutter: 40px;
  }

  main {
    max-width: 1160px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
    column-gap: 80px;
    align-items: start;
  }

  footer {
    max-width: 1160px;
  }

  main > * {
    grid-column: 1;
  }

  .hero {
    padding-top: 48px;
  }

  .journey {
    margin: 56px 0 32px;
    font-size: 0.9375rem;
  }

  .lead {
    font-size: 2.5rem;
    line-height: 1.15;
    max-width: 23ch;
  }

  .sub {
    font-size: 1.1875rem;
  }

  /* The form card is already beside the hero on desktop. */
  .jump {
    display: none;
  }

  .paper-crop .paper {
    zoom: 0.69;
  }

  .chat {
    max-width: 520px;
  }

  .route .note {
    max-width: 52ch;
  }

  section {
    margin: 56px 0 0;
  }

  .route h2 {
    margin-bottom: 24px;
  }

  .features li {
    max-width: 52ch;
  }

  .price-block {
    max-width: 440px;
  }

  .join {
    grid-column: 2;
    grid-row: 1 / span 6;
    position: sticky;
    top: 32px;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scroll-padding-bottom: 96px;
    margin: 48px 0 0;
    padding: 28px 24px 24px;
  }

  .choices-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* The card's padding-bottom would otherwise inset the sticky edge and lift the bar over the content */
  .answers-bar {
    bottom: -24px;
    margin: 18px -24px -24px;
    padding: 0 24px 24px;
  }

  .doc {
    display: block;
    padding-top: 56px;
  }

  .doc h1 {
    font-size: 2.25rem;
  }
}
