  :root {
    --raspberry: #f0146e;
    --raspberry-dark: #cf0d5d;
    --amethyst: #a445b2;
    --gunmetal: #20212c;
    --grey: #f4f4f4;
    --muted: #5b5d6b;
    --ok: #12b76a;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; }
  html { overflow-x: clip; }
  body {
    min-height: 100vh;
    background: #fff;
    color: var(--gunmetal);
    font: 400 17px/1.6 "Open Sans", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }
  h1, h2, .btn, .brand, .eyebrow { font-family: Outfit, system-ui, sans-serif; }

  .top { display: flex; align-items: center; justify-content: space-between; max-width: 1240px; margin: 0 auto; padding: 24px 24px 0; }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; color: var(--gunmetal); text-decoration: none; }
  .brand img { width: 34px; height: 34px; }
  .top a.link { color: var(--muted); text-decoration: none; font-size: 15px; }
  .top a.link:hover { color: var(--raspberry); }

  .hero { position: relative; max-width: 1240px; margin: 0 auto; padding: 56px 24px 80px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
  .hero::before {
    content: ""; position: absolute; z-index: -1; right: -20%; top: -10%; width: 80%; height: 120%;
    background: radial-gradient(closest-side, rgb(240 20 110 / 0.16), transparent 70%), radial-gradient(closest-side at 70% 70%, rgb(164 69 178 / 0.16), transparent 70%);
    filter: blur(20px);
  }
  .eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px 6px 8px; border-radius: 999px; background: #fde7f0; color: var(--raspberry-dark); font-weight: 600; font-size: 14px; }
  .eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--raspberry); box-shadow: 0 0 0 0 rgb(240 20 110 / 0.5); animation: pulse 2s infinite; }
  @keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(240 20 110 / 0); } 100% { box-shadow: 0 0 0 0 rgb(240 20 110 / 0); } }
  h1 { margin: 0 0 18px; font-size: clamp(38px, 5vw, 60px); line-height: 1.04; font-weight: 700; letter-spacing: -0.02em; }
  h1 em { font-style: normal; background: linear-gradient(90deg, var(--raspberry), var(--amethyst)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .lede { margin: 0 0 32px; max-width: 34em; color: var(--muted); font-size: 19px; }

  /* Card holding the form, then the progress */
  .card { position: relative; max-width: 520px; padding: 8px; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 40px rgb(32 33 44 / 0.12); }
  form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  form .btn, form .wide, form .human { grid-column: 1 / -1; }
  .field { position: relative; min-width: 0; }
  .field.is-invalid input { border-color: #d92d20; background: #fff; }
  .field input {
    width: 100%; height: 56px; padding: 22px 16px 6px; border: 1.5px solid transparent; border-radius: 14px;
    background: var(--grey); color: var(--gunmetal); font: inherit; font-size: 16px; outline: none; transition: border-color 0.15s, background 0.15s;
  }
  .field input:focus { border-color: var(--raspberry); background: #fff; }
  .field label { position: absolute; left: 17px; top: 17px; color: var(--muted); font-size: 16px; pointer-events: none; transition: all 0.15s ease; }
  .field input:focus + label, .field input:not(:placeholder-shown) + label { top: 8px; font-size: 12px; font-weight: 600; }
  .hp { display: none !important; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 24px; border: 0; border-radius: 14px;
    background: var(--raspberry); color: #fff; font-size: 17px; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s; box-shadow: 0 6px 18px rgb(240 20 110 / 0.35);
  }
  .btn:hover { background: var(--raspberry-dark); transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }
  .btn:focus-visible { outline: 3px solid rgb(240 20 110 / 0.35); outline-offset: 2px; }
  .btn svg { transition: transform 0.2s; }
  .btn:hover svg { transform: translateX(3px); }
  /* Cloudflare's check sits above the button; reserve its height so nothing jumps. */
  .human { min-height: 65px; }
  .error { margin: 10px 8px 4px; color: #b42318; font-size: 14px; }
  .error:empty { display: none; }
  .fine { margin: 14px 4px 0; max-width: 520px; color: var(--muted); font-size: 14px; }
  .fine a { color: inherit; }
  .ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--gunmetal); font-size: 15px; font-weight: 600; }
  .ticks li { display: flex; align-items: center; gap: 8px; }
  .ticks svg { color: var(--ok); flex: none; }

  /* Progress */
  .progress { display: none; padding: 22px 22px 18px; }
  .card.is-launching form, .card.is-launching + .fine { display: none; }
  .card.is-launching .progress { display: block; animation: fade 0.3s ease; }
  @keyframes fade { from { opacity: 0; transform: translateY(4px); } }
  .progress h2 { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
  .progress p.sub { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
  .bar { height: 6px; border-radius: 999px; background: var(--grey); overflow: hidden; margin-bottom: 18px; }
  .bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--raspberry), var(--amethyst)); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .steps li { display: flex; align-items: center; gap: 12px; color: #a0a2ad; font-size: 15px; transition: color 0.2s; }
  .steps .ic { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #e2e3e8; transition: all 0.2s; }
  .steps li.active { color: var(--gunmetal); font-weight: 600; }
  .steps li.active .ic { border-color: var(--raspberry); border-right-color: transparent; animation: spin 0.8s linear infinite; }
  .steps li.done { color: var(--gunmetal); }
  .steps li.done .ic { border-color: var(--ok); background: var(--ok); }
  .steps li.done .ic::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
  @keyframes spin { to { transform: rotate(360deg); } }
  .card.is-ready .progress h2 { color: var(--ok); }
  .retry { margin-top: 14px; }

  /* Visual */
  .visual { position: relative; perspective: 1600px; }
  .browser {
    position: relative; border-radius: 14px; overflow: hidden; background: #fff;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.06), 0 30px 80px rgb(32 33 44 / 0.25);
    transform: rotateY(-8deg) rotateX(3deg); transform-origin: left center; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .visual:hover .browser { transform: rotateY(-2deg) rotateX(1deg); }
  @keyframes float { 50% { translate: 0 -8px; } }
  .chrome { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: #f1f1f3; border-bottom: 1px solid #e6e6ea; }
  .chrome i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
  .chrome i:nth-child(2) { background: #febc2e; } .chrome i:nth-child(3) { background: #28c840; }
  .chrome .url { flex: 1; margin: 0 40px 0 18px; height: 24px; border-radius: 7px; background: #fff; color: #8a8c97; font-size: 12.5px; line-height: 24px; text-align: center; font-family: system-ui, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .browser img { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 838; object-fit: cover; object-position: top; }
  .badge {
    position: absolute; left: -28px; bottom: 36px; display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; border-radius: 16px;
    background: #fff; box-shadow: 0 16px 40px rgb(32 33 44 / 0.18); font-size: 14px; animation: float 7s ease-in-out -3.5s infinite;
  }
  .badge b { display: block; font-family: Outfit, sans-serif; font-size: 16px; }
  .badge span { color: var(--muted); }
  .badge .dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--raspberry), var(--amethyst)); color: #fff; }

  .foot { max-width: 1240px; margin: 0 auto; padding: 0 24px 40px; color: var(--muted); font-size: 14px; }

  @media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 40px; }
    .browser { transform: none; animation: none; }
    .badge { left: 12px; bottom: -20px; }
    .chrome .url { margin-right: 0; }
  }
  @media (max-width: 520px) {
    form { grid-template-columns: 1fr; }
    .btn { width: 100%; }
    .top a.link { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }

  /* Demo picker: thumbnail cards, two per row. */
  .picker { max-width: 520px; margin: 0 0 16px; padding: 0; border: 0; }
  .picker[hidden] { display: none; }
  .picker legend { margin-bottom: 10px; padding: 0; color: var(--gunmetal); font: 600 15px/1.3 Outfit, system-ui, sans-serif; }
  .picker__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .picker__option {
    position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 12px 8px 8px;
    border: 2px solid #e2e3e8; border-radius: 14px; background: #fff; cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, transform 0.15s;
  }
  .picker__option:hover { border-color: #b9bac6; transform: translateY(-1px); }
  .picker__option input { position: absolute; opacity: 0; pointer-events: none; }
  .picker__thumb { flex: none; width: 64px; height: 44px; border-radius: 8px; background: var(--grey) center top / cover no-repeat; box-shadow: inset 0 0 0 1px rgb(32 33 44 / 0.08); filter: saturate(0.7); opacity: 0.85; transition: filter 0.15s, opacity 0.15s; }
  .picker__text { display: flex; flex-direction: column; min-width: 0; }
  .picker__kind { font: 600 15px/1.25 Outfit, system-ui, sans-serif; color: var(--gunmetal); }
  .picker__name { overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
  .picker__tick { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--raspberry); color: #fff; box-shadow: 0 2px 6px rgb(240 20 110 / 0.4); opacity: 0; transform: scale(0.6); transition: opacity 0.15s, transform 0.15s; }
  .picker__option:has(input:checked) { border-color: var(--raspberry); background: #fff5f9; box-shadow: 0 6px 18px rgb(240 20 110 / 0.16); }
  .picker__option:has(input:checked) .picker__thumb { filter: none; opacity: 1; }
  .picker__option:has(input:checked) .picker__tick { opacity: 1; transform: scale(1); }
  .picker__option:has(input:focus-visible) { outline: 3px solid rgb(240 20 110 / 0.35); outline-offset: 2px; }
  @media (max-width: 400px) { .picker__thumb { display: none; } }

  /* Swipeable screenshots: one slide per demo. */
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .shots::-webkit-scrollbar { display: none; }
  .shots img { flex: 0 0 100%; scroll-snap-align: start; }
  .shots__arrow {
    position: absolute; top: calc(50% + 20px); transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px;
    padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.94); color: var(--gunmetal);
    box-shadow: 0 4px 14px rgb(32 33 44 / 0.2); cursor: pointer; transition: transform 0.15s, background 0.15s;
  }
  .shots__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
  .shots__arrow:focus-visible { outline: 3px solid rgb(240 20 110 / 0.45); outline-offset: 2px; }
  .shots__arrow--prev { left: 12px; }
  .shots__arrow--next { right: 12px; }
  .shots__arrow[hidden] { display: none; }
  .shots__dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
  .shots__dots[hidden] { display: none; }
  .shots__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: #d4d5dc; cursor: pointer; transition: width 0.2s, background 0.2s; }
  .shots__dots button[aria-current="true"] { width: 26px; background: var(--raspberry); }
  .hero:has(.card.is-launching) .picker { display: none; }
  .shots__arrow svg { display: block; }
  .top a.link[hidden] { display: none; }
