  :root {
    --blue: #223EFE;
    --blue-dark: #1630d6;
    --blue-soft: #eef1ff;
    --ink: #0e111a;
    --body: #454a5c;
    --line: #e4e7f0;
    --bg: #ffffff;
    --bg-alt: #f6f7fb;
    --radius: 16px;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; display: block; }
  a { color: var(--blue); }
  h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
  h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; }
  h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
  h3 { font-size: 1.3rem; font-weight: 700; }
  p { margin: 0; }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
  section { padding: 88px 0; }
  .alt { background: var(--bg-alt); }
  .eyebrow {
    display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
  }
  .lead { font-size: 1.2rem; max-width: 620px; }
  .section-head { max-width: 680px; margin-bottom: 48px; }
  .section-head p { margin-top: 14px; }

  /* Buttons */
  .btn {
    display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 600;
    font-size: 1rem; text-decoration: none; border: 2px solid var(--blue);
    background: var(--blue); color: #fff; transition: background .15s, transform .15s;
  }
  .btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }
  .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
  .btn.ghost:hover { border-color: var(--ink); background: transparent; }

  /* Header */
  header {
    position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  }
  .nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
  .nav .logo img { height: 34px; width: auto; }
  .nav nav { display: flex; align-items: center; gap: 30px; }
  .nav nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; }
  .nav nav a:hover { color: var(--blue); }
  .nav nav a.btn { color: #fff; padding: 10px 20px; }

  /* Hero */
  .hero { padding: 80px 0 72px; }
  .hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
  .hero h1 span { color: var(--blue); }
  .hero .lead { margin-top: 22px; }
  .hero .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
  .hero .note { margin-top: 20px; font-size: 0.95rem; }

  /* Preview image slots: drop a picture at the src path and it appears.
     Until then the labelled placeholder shows. */
  .shot {
    position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(14,17,26,.28);
    background:
      linear-gradient(135deg, rgba(34,62,254,.10), rgba(34,62,254,.02)),
      repeating-linear-gradient(45deg, #f1f3fa 0 14px, #f8f9fd 14px 28px);
    display: grid; place-items: center;
  }
  .shot::before {
    content: attr(data-label); font-size: 0.9rem; font-weight: 600; color: #7d84a0;
    background: #fff; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  }
  .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
  .shot.tall { aspect-ratio: 4 / 3; box-shadow: none; }
  .wide .shot.tall { aspect-ratio: 3 / 2; }

  /* Features */
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  }
  .card .icon {
    width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue);
    display: grid; place-items: center; margin-bottom: 20px;
  }
  .card .icon svg { width: 24px; height: 24px; }
  .card p { margin-top: 10px; font-size: 1.02rem; }

  .all-head { margin: 56px 0 24px; font-size: 1.5rem; }
  .all { gap: 32px 24px; }
  .all h4 { margin: 0 0 10px; font-size: 0.82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
  .all ul { list-style: none; margin: 0; padding: 0; }
  .all li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--ink); font-size: 1.02rem; }
  .all li::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 2px; background: var(--blue); border-radius: 2px; }

  /* Steps */
  .steps { counter-reset: step; }
  .step { position: relative; padding-top: 62px; }
  .step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%;
    background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center;
  }
  .step p { margin-top: 10px; font-size: 1.02rem; }

  /* Gallery */
  .gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px 24px; }
  .gallery figure { margin: 0; grid-column: span 2; }
  .gallery figure.wide { grid-column: span 3; }
  .gallery figcaption span { display: block; font-weight: 400; color: var(--body); margin-top: 4px; }
  .gallery figcaption { margin-top: 14px; font-weight: 600; color: var(--ink); font-size: 1rem; }

  /* Pricing */
  .pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 920px; align-items: stretch; }
  .plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; }
  .plan.featured { border: 2px solid var(--blue); box-shadow: 0 24px 60px -30px rgba(34,62,254,.5); }
  .plan .tag {
    align-self: flex-start; font-size: 0.78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    background: var(--blue-soft); color: var(--blue); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
  }
  .plan .price { margin-top: 18px; color: var(--ink); font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
  .plan .price small { font-size: 1rem; font-weight: 500; color: var(--body); letter-spacing: 0; }
  .plan .then { margin-top: 8px; font-weight: 600; color: var(--ink); }
  .plan ul { list-style: none; padding: 0; margin: 24px 0 30px; flex: 1; }
  .plan li { padding-left: 30px; position: relative; margin-bottom: 10px; font-size: 1.02rem; }
  .plan li::before {
    content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23223EFE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  }
  .plan .btn { text-align: center; }

  /* Origin */
  .origin { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .origin p { margin-top: 16px; }

  /* FAQ */
  .faq { max-width: 760px; }
  .faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
  .faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; color: var(--blue); font-size: 1.5rem; line-height: 1; }
  .faq details[open] summary::after { content: "–"; }
  .faq details p { margin-top: 12px; }

  /* CTA */
  .cta { background: var(--ink); color: #c5c9d8; text-align: center; border-radius: 28px; padding: 72px 32px; }
  .cta h2 { color: #fff; }
  .cta p { margin: 16px auto 30px; max-width: 560px; }
  .form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 640px; margin: 0 auto; text-align: left; }
  .form .full { grid-column: 1 / -1; }
  .form label { display: block; font-size: 0.95rem; font-weight: 600; color: #fff; }
  .form label span { font-weight: 400; color: #8f95aa; }
  .form input, .form textarea {
    display: block; width: 100%; margin-top: 6px; padding: 13px 14px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff;
    font: inherit; font-size: 1rem;
  }
  .form input::placeholder, .form textarea::placeholder { color: #7c8299; }
  .form input:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
  .form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
  .form-foot { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
  .form button.btn { cursor: pointer; font-family: inherit; }
  .form button[disabled] { opacity: .6; cursor: default; }
  .cta .form-status { margin: 0; min-height: 1.5em; font-weight: 500; }
  .form-status.ok { color: #7ee2a8; }
  .form-status.err { color: #ffb4a8; }
  @media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
  .cta .btn.ghost { color: #fff; border-color: rgba(255,255,255,.3); }
  .cta .btn.ghost:hover { border-color: #fff; }
  .cta .email { margin-top: 18px; font-size: 0.98rem; }
  .cta .email a { color: #fff; }

  footer { padding: 40px 0; font-size: 0.95rem; }
  footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
  footer img { height: 26px; width: auto; }

  @media (max-width: 880px) {
    section { padding: 64px 0; }
    .hero { padding: 48px 0 56px; }
    .hero-grid, .origin, .grid-3, .pricing { grid-template-columns: 1fr; }
    .gallery figure, .gallery figure.wide { grid-column: span 6; }
    .hero-grid, .origin { gap: 36px; }
    .nav nav a:not(.btn) { display: none; }
    .nav .logo img { height: 28px; }
    .cta { padding: 52px 22px; }
  }

  /* ---------- Pricing card extra ---------- */
  .plan-alt { margin-top: 16px; text-align: center; font-size: 0.98rem; }

  /* ---------- Account, login and admin pages ---------- */
  body.app { background: var(--bg-alt); min-height: 100vh; display: flex; flex-direction: column; }
  body.app > header { background: #fff; }
  body.app footer { margin-top: auto; }
  .app-main { width: 100%; padding-top: 40px; padding-bottom: 64px; flex: 1; }
  .app-main h1 { font-size: 2rem; margin-bottom: 24px; }
  .app-main h2 { font-size: 1.3rem; margin-bottom: 14px; }
  .app-nav form.inline { display: inline; margin: 0; }
  .app-nav a, .app-nav button { white-space: nowrap; }
  button.link { background: none; border: 0; padding: 0; font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink); cursor: pointer; }
  button.link:hover { color: var(--blue); }

  .card.narrow { max-width: 460px; margin: 24px auto; }
  .card.narrow.wide { max-width: 720px; }
  .app-main .card { margin-bottom: 24px; }
  .card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
  .card-head h1, .card-head h2 { margin: 0; }
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .muted { color: #6b7187; }
  .small { font-size: 0.94rem; }
  .card .muted + .f, .card h1 + .f { margin-top: 20px; }
  .card.narrow .small { margin-top: 20px; }

  .f { display: grid; gap: 16px; }
  .f label { display: block; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
  .f label span { font-weight: 400; color: #6b7187; }
  .f input[type=text], .f input[type=email], .f input[type=password], .f textarea, .f select {
    display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 10px;
    border: 1px solid #cfd4e3; background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
  }
  .f textarea { resize: vertical; }
  .f input:focus, .f textarea:focus, .f select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
  .f button.btn { cursor: pointer; font-family: inherit; justify-self: start; }
  .f .actions { display: flex; gap: 12px; flex-wrap: wrap; }
  .f.row { grid-template-columns: minmax(180px, 260px) auto; align-items: end; justify-content: start; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .btn.small { padding: 9px 18px; font-size: 0.95rem; }

  .alert { border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-size: 1rem; border: 1px solid; }
  .alert ul { margin: 0; padding-left: 20px; }
  .alert-success { background: #eaf8f0; border-color: #b5e3c8; color: #14613a; }
  .alert-error { background: #fdeeee; border-color: #f3c1c1; color: #8f1d1d; }
  .alert-info { background: var(--blue-soft); border-color: #cdd5ff; color: #1a2fa8; }

  .table { width: 100%; border-collapse: collapse; font-size: 1rem; }
  .table th { text-align: left; font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; color: #6b7187; padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
  .table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
  .table tr:last-child td { border-bottom: 0; }
  .table a { font-weight: 600; text-decoration: none; }
  .table a:hover { text-decoration: underline; }
  .app-main .card:has(.table) { overflow-x: auto; }

  .badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; background: #eceef5; color: #454a5c; white-space: nowrap; }
  .badge-open { background: #fff1d6; color: #8a5a00; }
  .badge-answered { background: var(--blue-soft); color: var(--blue); }
  .badge-closed { background: #eceef5; color: #6b7187; }
  .badge-plan-active, .badge-plan-trialing { background: #eaf8f0; color: #14613a; }
  .badge-plan-past_due, .badge-plan-unpaid { background: #fdeeee; color: #8f1d1d; }
  .plan-status { margin-bottom: 12px; }
  .card .btn { margin-top: 16px; }
  .card-head .btn, .f .btn { margin-top: 0; }

  .details { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0; }
  .details dt { color: #6b7187; }
  .details dd { margin: 0; color: var(--ink); word-break: break-word; }

  .tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
  .tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
  .tabs a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
  .tabs a span { opacity: .65; margin-left: 4px; }

  .app-main section { padding: 0; }
  .app-main section.card { padding: 30px; }
  .thread { display: grid; gap: 14px; margin-bottom: 24px; }
  .msg { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; width: 100%; max-width: 760px; }
  .msg-staff { border-color: #cdd5ff; background: #f7f8ff; margin-left: auto; }
  .msg header { position: static; background: none; border: 0; backdrop-filter: none; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; color: var(--ink); }
  .msg time { color: #6b7187; font-size: 0.9rem; }
  .msg-body { color: var(--ink); overflow-wrap: anywhere; }

  @media (max-width: 880px) {
    .grid-2 { grid-template-columns: 1fr; }
    .app-nav a:not(.btn) { display: inline !important; }
    .app-nav { gap: 16px !important; }
    .app-nav a.btn { display: none; }
    .f.row { grid-template-columns: 1fr; }
  }

  /* ---------- Service agreement page ---------- */
  .legal { max-width: 820px; margin: 0 auto 24px; padding: 44px !important; }
  .legal h1 { margin-bottom: 8px; }
  .legal h2 { margin: 36px 0 12px; font-size: 1.4rem; }
  .legal h3 { margin: 24px 0 8px; font-size: 1.08rem; }
  .legal p { margin: 0 0 12px; }
  .legal ul { margin: 0 0 12px; padding-left: 22px; }
  .legal li { margin-bottom: 6px; }
  .legal .table-scroll { overflow-x: auto; margin-bottom: 16px; }
  footer .wrap a { color: var(--body); }

  /* ---------- Admin: add client ---------- */
  .f.cols { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; }
  input.copy { display: block; width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid #cdd5ff; background: #fff; font: inherit; font-size: 0.92rem; color: var(--ink); }
  button.link.blue { color: var(--blue); font-size: 0.94rem; white-space: nowrap; }
  form.inline { display: inline; margin: 0; }
  @media (max-width: 880px) { .f.cols { grid-template-columns: 1fr; } .legal { padding: 26px !important; } }

  /* ---------- Purchase flow ---------- */
  .plan .btn.plan-second { margin-top: 10px; }
  .next { padding-left: 22px; margin: 0 0 20px; }
  .next li { margin-bottom: 10px; }
  .card.narrow.wide h2 { margin-top: 24px; }
  .card.narrow.wide > p { margin-bottom: 8px; }

  .cta .form-note { margin: 0; font-size: 0.9rem; color: #8f95aa; max-width: none; }
  .cta .form-note a { color: #c5c9d8; }

  /* ---------- Launch offer ---------- */
  .offer-bar { display: block; background: var(--blue); color: #fff; text-align: center; padding: 10px 16px; font-size: 0.98rem; text-decoration: none; }
  .offer-bar span { text-decoration: underline; white-space: nowrap; margin-left: 6px; }
  .offer-tag { margin: 14px 0 -8px; font-size: 0.9rem; font-weight: 700; color: var(--blue); }
  .plan .price s { font-size: 1.3rem; font-weight: 500; color: #9aa0b5; letter-spacing: 0; margin-left: 4px; }

  .offer-pill { display: inline-block; margin-bottom: 18px; padding: 7px 16px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 0.92rem; font-weight: 600; text-decoration: none; }
  .offer-pill:hover { background: var(--blue-dark); }
  .hero .offer-note { color: var(--ink); font-size: 1.05rem; }
  .hero .offer-note s { color: #9aa0b5; }

  .card-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
  .card.demo .details dd { white-space: normal; }

  /* ---------- Two plans ---------- */
  .plan .fine { font-size: 0.9rem; color: #6b7187; margin: -14px 0 24px; }
  .plan-alt.left { text-align: left; max-width: 920px; }
