/* Automagic landing page. Tokens from the Automagic design system. */
:root {
  --surface: #f9f9f9;
  --ink: #15233f;
  --ink-muted: #344564;
  --amber: #f4ad42;
  --on-amber: #15233f;
  --navy: #15233f;
  --navy-soft: #344564;
  --off-white: #f9f9f9;
  --muted-on-dark: #c3cbdb;
  --border: #34456433;
  --border-on-dark: #f9f9f933;
  --font: "Manrope", "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 80px;
  --max: 1440px;

  /* The depth of the "m" in the logo: amber at the top, burnt amber at the bottom.
     Stops are the logo's own gradient tokens (gradient-light, -mid, -deep, -dark). */
  --grad-m: linear-gradient(180deg, #f4ad42 0%, #e89f37 34%, #d88c26 68%, #c97a12 100%);
  /* The button version of the fall (design system: #f0a83e, #de932c, #c97a12). Labels on it are navy (on-amber), never off-white. */
  --grad-fill: linear-gradient(180deg, #f0a83e 0%, #de932c 48%, #c97a12 100%);
  /* The m's round heads, lit from the top corner. */
  --grad-head: radial-gradient(circle at 34% 28%, #ffd27e 0%, #e89f37 36%, #d0821c 74%, #c97a12 100%);
  --lift: inset 0 1px 0 #f9f9f947, inset 0 -2px 0 #15233f38, 0 8px 18px -8px #c97a12a6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--ink-muted); }
:focus-visible { outline: 2px solid var(--navy-soft); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font-size: 15px; line-height: 22px; font-weight: 700; color: var(--ink-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 60px; padding: 0 32px; border-radius: 9999px;
  font-family: inherit; font-size: 18px; font-weight: 700; text-decoration: none;
  border: 0; cursor: pointer;
}
.btn-primary { background: var(--grad-fill); color: var(--on-amber); box-shadow: var(--lift); transition: filter .15s ease, transform .15s ease; }
.btn-primary:hover { color: var(--on-amber); filter: brightness(1.07); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); filter: brightness(.97); }
.btn-dark { background: var(--navy); color: var(--off-white); }
.btn-dark:hover { background: #23324f; color: var(--off-white); }
.btn-outline {
  height: 44px; padding: 0 22px; font-size: 14px;
  border: 1.5px solid var(--navy-soft); background: transparent; color: var(--ink);
}
.btn-outline:hover { background: var(--grad-fill); border-color: transparent; color: var(--on-amber); box-shadow: var(--lift); }
.btn svg { flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.site-header .wrap { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; height: 44px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 15px; font-weight: 600; text-decoration: none; padding-block: 6px; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 800; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 8px; }
/* Section anchors land below the sticky header */
[id] { scroll-margin-top: 104px; }

/* Hero */
.hero .wrap {
  padding-block: 80px 104px;
  display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 72px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-kicker { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink-muted); }
.hero h1 { margin-top: 28px; font-size: 64px; line-height: 70px; font-weight: 800; letter-spacing: -1.5px; }
.hero-sub { margin-top: 22px; font-size: 26px; line-height: 38px; font-weight: 600; }
.mark { background: var(--grad-fill); color: var(--on-amber); padding: 2px 14px 4px; border-radius: 12px; box-shadow: var(--lift); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-body { margin-top: 28px; max-width: 600px; font-size: 19px; line-height: 32px; color: var(--ink-muted); }
.hero-cta { margin-top: 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-cta span { font-size: 15px; font-weight: 500; color: var(--ink-muted); }

/* The digital worker. A poster shows first; the live 3D canvas fades in over it once loaded. */
.worker-stage { position: relative; height: 560px; display: flex; flex-direction: column; align-items: center; scroll-margin-top: 96px; }
.worker-view { position: relative; width: 100%; flex: 1 1 auto; min-height: 0; }
.worker-poster, .worker-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.worker-poster { object-fit: contain; transition: opacity .4s ease; }
.worker-canvas { opacity: 0; transition: opacity .4s ease; cursor: pointer; }
.worker-stage.is-live .worker-canvas { opacity: 1; }
.worker-stage.is-live .worker-poster { opacity: 0; }
.worker-btn {
  flex: none; margin-top: 12px; height: 44px; padding: 0 20px; border: 0; border-radius: 9999px;
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; white-space: nowrap;
  background: var(--navy); color: var(--off-white);
  font-family: inherit; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 22px -12px #15233fb3; transition: transform .15s ease, background-color .15s ease;
}
.worker-btn:hover { background: #23324f; transform: translateY(-1px); }
.worker-btn .sep { color: var(--muted-on-dark); }
.worker-btn .act { font-weight: 700; text-decoration: underline; text-decoration-color: #f4ad42; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.worker-btn[aria-expanded="true"] .act { text-decoration: none; }

/* The ID card. With scripts on, it opens over the worker, growing out of his badge. */
.worker-stage.has-js .id-card {
  position: absolute; z-index: 3; top: 118px; left: 0; right: 0; margin-inline: auto;
  opacity: 0; transform: rotate(-2deg) scale(.1);
  transition: transform .42s cubic-bezier(.2, .9, .3, 1.12), opacity .22s ease;
  box-shadow: 0 30px 60px -24px #15233fa6;
}
.worker-stage.has-js .id-card.is-open { opacity: 1; transform: rotate(-2deg) scale(1); }
.id-close {
  position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; cursor: pointer;
  border: 1px solid var(--border-on-dark); background: transparent; color: var(--off-white);
}
.id-close:hover { background: #f9f9f91a; }
.worker-stage:not(.has-js) { height: auto; }
.worker-stage:not(.has-js) .worker-view { height: 500px; flex: none; }
.worker-stage:not(.has-js) .worker-btn, .worker-stage:not(.has-js) .id-close { display: none; }
.worker-stage:not(.has-js) .id-card { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) {
  .worker-stage.has-js .id-card, .worker-poster, .worker-canvas, .worker-btn { transition: none; }
}
.id-card {
  position: relative; width: 420px; max-width: 100%;
  padding: 44px 32px 28px; border-radius: 24px;
  background: var(--navy); color: var(--off-white);
  box-shadow: 0 8px 24px -8px #15233f29; transform: rotate(-2deg);
}
.id-card::before {
  content: ""; position: absolute; top: 18px; left: 50%; width: 56px; height: 8px; margin-left: -28px;
  border-radius: 9999px; background: var(--surface);
}
.id-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.4px; }
.id-top .label { color: var(--muted-on-dark); }
.status { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--grad-head); box-shadow: 0 0 0 3px #f4ad4233; flex: none; }
.id-who { margin-top: 26px; display: flex; align-items: center; gap: 16px; }
.id-tile { flex: none; width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(180deg, #ffd27e 0%, #f4ad42 45%, #e89f37 100%); box-shadow: inset 0 1px 0 #f9f9f959, inset 0 -2px 0 #c97a1240; display: flex; align-items: center; justify-content: center; }
.id-tile img { width: 38px; height: auto; }
.id-name { font-size: 22px; line-height: 28px; font-weight: 700; }
.id-num { margin-top: 4px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--muted-on-dark); }
.id-card dl { margin: 26px 0 0; }
.id-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--border-on-dark); font-size: 14px; line-height: 22px; }
.id-card dl div:last-child { padding-bottom: 0; }
.id-card dt { color: var(--muted-on-dark); }
.id-card dd { margin: 0; font-weight: 600; }
.id-card dd.accent { color: var(--amber); }

/* Clients carousel */
.clients { border-top: 1px solid var(--border); }
.clients .wrap { padding-block: 72px 80px; }
.clients-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.clients-head h2 { font-size: 16px; line-height: 24px; font-weight: 700; }
.clients-head p { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.marquee {
  margin-top: 32px; overflow: hidden; display: flex;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { flex: none; display: flex; align-items: center; animation: marquee 80s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-item { flex: none; height: 136px; padding: 0 44px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.logo-item img { height: var(--h); width: auto; max-width: none; }
.logo-item span { font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -0.2px; white-space: nowrap; color: var(--ink); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; flex: 1 1 auto; flex-wrap: wrap; justify-content: center; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* Why band */
.why { background: var(--navy); color: var(--off-white); }
.why .wrap { padding-block: 112px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; align-items: center; }
.why .eyebrow { color: var(--amber); }
.why h2 { margin-top: 20px; font-size: 44px; line-height: 54px; font-weight: 800; letter-spacing: -0.5px; }
.why-point { margin-top: 28px; font-size: 24px; line-height: 34px; font-weight: 700; color: var(--amber); }
.why-body { margin-top: 14px; max-width: 520px; font-size: 18px; line-height: 30px; color: var(--muted-on-dark); }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 24px; }
.compare th, .compare td { text-align: start; }
.compare thead th { padding: 0 20px 16px; vertical-align: bottom; font-size: 13px; font-weight: 600; color: var(--muted-on-dark); }
.compare thead th:first-child { width: 34%; padding-inline: 0; }
.compare thead th.us { padding: 16px 20px; background: linear-gradient(180deg, #e89f37 0%, #d0821c 100%); color: var(--on-amber); border-radius: 16px 16px 0 0; font-size: 14px; font-weight: 800; box-shadow: inset 0 1px 0 #f9f9f940; }
.compare tbody th, .compare tbody td { padding: 18px 20px; border-top: 1px solid var(--border-on-dark); vertical-align: top; }
.compare tbody th { padding-inline: 0; font-weight: 600; }
.compare tbody td { color: var(--muted-on-dark); }
.compare tbody td.us { background: #f4ad4224; color: var(--off-white); font-weight: 700; }
.compare tbody tr:last-child td.us { border-radius: 0 0 16px 16px; }

/* Process */
.process .wrap { padding-block: 120px 112px; }
.process-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.process h2 { margin-top: 16px; max-width: 640px; font-size: 44px; line-height: 52px; font-weight: 800; letter-spacing: -0.5px; }
.text-link { font-size: 16px; line-height: 24px; font-weight: 700; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; white-space: nowrap; }
.steps { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; align-items: flex-start; }
.step-head { align-self: stretch; display: flex; align-items: center; gap: 16px; }
.step-head::after { content: ""; flex: 1; border-top: 1px solid #34456455; }
.step:last-child .step-head::after { border-top-style: dashed; }
.num { flex: none; width: 56px; height: 56px; border-radius: 9999px; background: var(--grad-head); color: var(--on-amber); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; box-shadow: inset 0 -3px 6px #15233f40, 0 6px 14px -6px #c97a12a6; }
.step h3 { margin-top: 28px; font-size: 24px; line-height: 32px; font-weight: 700; }
.step p { margin-top: 10px; max-width: 340px; font-size: 17px; line-height: 28px; color: var(--ink-muted); }
.chip { margin-top: 20px; display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border: 1px solid var(--navy-soft); border-radius: 9999px; font-size: 12px; font-weight: 600; letter-spacing: 0.4px; }

/* About: the company's story, with the founder on the m's gradient. His head rises above the panel. */
.about .wrap { padding-bottom: 112px; display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 80px; align-items: center; }
.about-photo { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.about-frame { position: relative; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.about-backdrop {
  position: absolute; inset: 64px 0 0 0; border-radius: 32px; background: var(--grad-m);
  box-shadow: inset 0 1px 0 #f9f9f947, 0 30px 60px -36px #c97a12b3;
}
.about-frame img { position: relative; width: 100%; height: auto; border-radius: 0 0 32px 32px; }
.about-founder { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: 15px; line-height: 22px; }
.about-founder strong { font-size: 18px; font-weight: 800; }
.about-founder span { color: var(--ink-muted); }
.about-founder a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.about-copy h2 { margin-top: 16px; max-width: 680px; font-size: 44px; line-height: 52px; font-weight: 800; letter-spacing: -0.5px; }
.about-copy > p:not(.eyebrow) { margin-top: 18px; max-width: 660px; font-size: 18px; line-height: 30px; color: var(--ink-muted); }
.beliefs { list-style: none; margin: 28px 0 0; padding: 0; max-width: 660px; display: grid; gap: 10px; }
.beliefs li { padding: 14px 18px; border-radius: 16px; background: #f4ad421f; border: 1px solid #f4ad4266; font-size: 16px; line-height: 26px; color: var(--ink-muted); }
.beliefs strong { color: var(--ink); font-weight: 800; }

/* CTA */
.cta .wrap { padding-bottom: 112px; }
.cta-card { background: linear-gradient(180deg, #ffd786 0%, #f4ad42 58%, #f0a83e 100%); box-shadow: inset 0 1px 0 #f9f9f959, 0 30px 60px -36px #c97a12b3; color: var(--on-amber); border-radius: 32px; padding: 72px; display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 72px; align-items: center; }
.cta-card .eyebrow { color: var(--on-amber); }
.cta-card h2 { margin-top: 20px; font-size: 48px; line-height: 56px; font-weight: 800; letter-spacing: -0.5px; }
.cta-body { margin-top: 24px; max-width: 540px; font-size: 19px; line-height: 32px; }
.terms { margin-top: 40px; max-width: 540px; padding-top: 24px; border-top: 1px solid #15233f40; display: flex; align-items: flex-start; gap: 12px; }
.terms svg { flex: none; margin-top: 1px; }
.terms p { font-size: 15px; line-height: 24px; font-weight: 500; }
.lead-form { background: var(--surface); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 20px; color: var(--ink); }
.lead-form .form-title { font-size: 20px; line-height: 28px; font-weight: 700; }
.lead-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 600; }
.lead-form .optional { font-weight: 400; color: var(--ink-muted); }
.lead-form input, .lead-form textarea {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1.5px solid var(--navy-soft); border-radius: 8px; background: var(--surface);
  font-family: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
}
.lead-form input[type="tel"] { text-align: right; }
.lead-form textarea { height: 96px; padding: 12px 16px; line-height: 24px; resize: vertical; }
.lead-form .btn { height: 56px; font-size: 17px; width: 100%; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); }
.site-footer .wrap { padding-block: 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer .logo img { height: 28px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.footer-nav a, .copyright { font-size: 14px; font-weight: 500; color: var(--ink-muted); text-decoration: none; }
.copyright { font-size: 13px; }
.site-footer .footer-top { padding-block: 40px 28px; }
.site-footer .footer-bottom { padding-block: 20px 32px; border-top: 1px solid var(--border); }
.social { display: flex; gap: 8px; }
.social a { width: 44px; height: 44px; border-radius: 9999px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.social a:hover { border-color: var(--navy-soft); background: #3445640d; color: var(--ink); }
.contact, .legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.contact a, .legal a { font-size: 14px; font-weight: 500; color: var(--ink-muted); text-decoration: none; }
.contact a:hover, .legal a:hover { color: var(--ink); text-decoration: underline; }
.form-alt { text-align: center; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.form-alt a { font-weight: 700; color: var(--ink); }

/* Floating WhatsApp button, bottom-left in RTL */
.wa-float {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 20;
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 18px; border-radius: 9999px;
  background: var(--grad-fill); color: var(--on-amber); text-decoration: none;
  font-size: 16px; font-weight: 700;
  box-shadow: inset 0 1px 0 #f9f9f947, inset 0 -2px 0 #15233f38, 0 10px 24px -8px #15233f80;
}
.wa-float:hover { color: var(--on-amber); filter: brightness(1.07); }
.wa-float svg { color: var(--on-amber); }

/* Team page: the company's story, then the people */
.team-story .wrap { max-width: 860px; padding-block: 72px 24px; }
.team-story h1 { margin-top: 16px; font-size: 48px; line-height: 56px; font-weight: 800; letter-spacing: -0.5px; }
.team .wrap { padding-block: 56px 88px; }
.team h2 { margin-top: 16px; font-size: 36px; line-height: 44px; font-weight: 800; letter-spacing: -0.4px; }
.team-grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.member { display: flex; flex-direction: column; align-items: flex-start; }
.member img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 24px; box-shadow: 0 18px 40px -24px #15233f66; }
.member h3 { margin-top: 18px; font-size: 22px; line-height: 30px; font-weight: 800; }
.member .role { margin-top: 2px; font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.member a { margin-top: 10px; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.team-cta .wrap { padding-bottom: 104px; }
.team-cta-card { padding: 48px; border-radius: 32px; background: linear-gradient(180deg, #ffd786 0%, #f4ad42 58%, #f0a83e 100%); box-shadow: inset 0 1px 0 #f9f9f959, 0 30px 60px -36px #c97a12b3; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.team-cta-card h2 { font-size: 36px; line-height: 44px; font-weight: 800; letter-spacing: -0.4px; }
.team-cta-card p { max-width: 560px; font-size: 18px; line-height: 30px; }
.team-cta-card .btn { margin-top: 10px; }

/* Text pages (accessibility statement) */
.doc .wrap { max-width: 820px; padding-block: 72px 96px; }
.doc h1 { margin-top: 12px; font-size: 44px; line-height: 52px; font-weight: 800; letter-spacing: -0.5px; }
.doc .lead { margin-top: 18px; font-size: 19px; line-height: 32px; color: var(--ink-muted); }
.doc h2 { margin-top: 44px; font-size: 24px; line-height: 32px; font-weight: 800; }
.doc p:not(.eyebrow):not(.lead):not(.updated) { margin-top: 14px; font-size: 17px; line-height: 29px; color: var(--ink-muted); }
.doc ul { margin: 14px 0 0; padding-inline-start: 22px; display: grid; gap: 8px; font-size: 17px; line-height: 28px; color: var(--ink-muted); }
.contact-card { margin: 20px 0 0; padding: 8px 22px; border-radius: 20px; background: #f4ad421f; border: 1px solid #f4ad4266; }
.contact-card div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 16px; }
.contact-card div:first-child { border-top: 0; }
.contact-card dt { color: var(--ink-muted); }
.contact-card dd { margin: 0; font-weight: 700; }
.doc p.updated { margin-top: 36px; font-size: 14px; color: var(--ink-muted); }
.doc h3 { margin-top: 22px; font-size: 18px; line-height: 26px; font-weight: 700; }
.doc .updated-top { margin-top: 10px; font-size: 15px; color: var(--ink-muted); }
.doc p strong { color: var(--ink); }
.doc a { color: var(--ink); font-weight: 600; }
.legal h2 { padding-top: 28px; border-top: 1px solid var(--border); }

/* Newsletter */
.nl .wrap { max-width: 640px; padding-block: 80px 104px; }
.nl-card { text-align: center; }
.nl-card h1 { margin-top: 12px; font-size: 44px; line-height: 52px; font-weight: 800; letter-spacing: -0.5px; }
.nl-card .lead { margin: 16px auto 0; max-width: 480px; font-size: 19px; line-height: 32px; color: var(--ink-muted); }
.nl-card .lead-form { margin-top: 32px; text-align: start; border: 1px solid var(--border); box-shadow: 0 8px 24px -8px #15233f29; }
.nl-done .social { margin-top: 28px; justify-content: center; }
.form-error { padding: 12px 16px; border-radius: 12px; background: #f4ad421f; border: 1px solid #c97a12; font-size: 15px; font-weight: 600; text-align: center; }
.field-error { margin-top: -10px; font-size: 14px; font-weight: 600; color: var(--ink); }
[hidden] { display: none !important; }

/* Links page (links.automagic.co.il): one narrow column, the founder on the m's gradient */
.lk { padding: 40px 20px 32px; }
.lk-col { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; align-items: stretch; }
.lk-logo { align-self: center; }
.lk-logo img { height: 26px; width: auto; }
.lk-head { margin-top: 36px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.lk-avatar { width: 136px; height: 136px; border-radius: 9999px; overflow: hidden; background: var(--grad-m); box-shadow: inset 0 1px 0 #f9f9f947, 0 18px 40px -20px #c97a12b3; }
.lk-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; transform: scale(1.12) translateY(8px); }
.lk-head h1 { margin-top: 20px; font-size: 34px; line-height: 42px; font-weight: 800; letter-spacing: -0.4px; }
.lk-head p { margin-top: 8px; max-width: 400px; font-size: 17px; line-height: 27px; color: var(--ink-muted); }
.lk-social { margin-top: 22px; display: flex; justify-content: center; gap: 12px; }
.lk-social a { width: 52px; height: 52px; border-radius: 9999px; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--ink); box-shadow: 0 6px 18px -12px #15233f40; transition: transform .15s ease, border-color .15s ease; }
.lk-social a:hover { color: var(--ink); border-color: var(--amber); transform: translateY(-1px); }
.lk-mail { margin-top: 12px; text-align: center; font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.lk-mail span { font-weight: 600; color: var(--ink); user-select: all; }
.lk-nl { margin-top: 28px; padding: 28px 24px 24px; border-radius: 24px; background: var(--navy); color: var(--off-white); text-align: center; }
.lk-nl .eyebrow { color: var(--amber); }
.lk-nl h2 { margin-top: 8px; font-size: 26px; line-height: 34px; font-weight: 800; letter-spacing: -0.3px; }
.lk-nl-sub { margin: 8px auto 0; max-width: 400px; font-size: 16px; line-height: 26px; color: var(--muted-on-dark); }
.lk-nl .lead-form { margin-top: 22px; padding: 20px; gap: 14px; text-align: start; border-radius: 18px; }
.lk-nl .lead-form .btn { height: 54px; }
.lk-nl h2:focus { outline: none; }
.lk-list { margin-top: 24px; display: grid; gap: 12px; }
.lk-link {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; min-height: 72px;
  border: 1px solid var(--border); border-radius: 18px; background: #fff; text-decoration: none; color: var(--ink);
  box-shadow: 0 6px 18px -12px #15233f40; transition: transform .15s ease, border-color .15s ease;
}
.lk-link:hover { color: var(--ink); border-color: var(--amber); transform: translateY(-1px); }
.lk-ico { flex: none; width: 44px; height: 44px; border-radius: 9999px; background: #f4ad4229; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.lk-ico img { width: 24px; height: auto; }
.lk-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lk-txt strong { font-size: 17px; line-height: 24px; font-weight: 700; }
.lk-txt span { font-size: 14px; line-height: 20px; color: var(--ink-muted); overflow-wrap: anywhere; }
.lk-foot { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.lk-foot a, .lk-foot span { font-size: 13px; font-weight: 500; color: var(--ink-muted); text-decoration: none; }
.lk-foot a:hover { color: var(--ink); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .lk-link, .lk-social a { transition: none; } }

/* Thank-you page */
.thanks { min-height: calc(100vh - 88px - 110px); display: flex; align-items: center; }
.thanks .wrap { padding-block: 96px; max-width: 760px; }
.thanks h1 { margin-top: 16px; font-size: 48px; line-height: 56px; font-weight: 800; letter-spacing: -0.5px; }
.thanks p.lead { margin-top: 20px; font-size: 19px; line-height: 32px; color: var(--ink-muted); }
.thanks .btn { margin-top: 36px; }

/* Tablet */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .team-grid { gap: 20px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .worker-stage { width: 100%; max-width: 480px; margin-inline: auto; height: 540px; }
  .why .wrap { grid-template-columns: 1fr; gap: 48px; }
  .about .wrap { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 400px; width: 100%; margin-inline: auto; }
  .cta-card { grid-template-columns: 1fr; gap: 40px; padding: 56px; }
}

/* Narrow screens: the menu moves to a second row you can swipe sideways, so every page keeps it */
@media (max-width: 960px) {
  .site-header .wrap { height: auto; padding-top: 12px; flex-wrap: wrap; row-gap: 2px; }
  [id] { scroll-margin-top: 128px; }
  .nav {
    order: 3; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter); height: 44px; gap: 22px; overflow-x: auto; white-space: nowrap;
    scrollbar-width: none; border-top: 1px solid var(--border);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 14px; flex: none; }
}
@media (max-width: 440px) {
  .nav { gap: 15px; }
  .nav a { font-size: 13.5px; }
}

/* Phone */
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .logo img { height: 26px; }

  .hero .wrap { padding-block: 36px 56px; gap: 40px; }
  .hero-kicker { font-size: 14px; line-height: 22px; }
  .hero h1 { margin-top: 18px; font-size: 40px; line-height: 46px; letter-spacing: -1px; }
  .hero h1 br { display: none; }
  .hero-sub { margin-top: 16px; font-size: 20px; line-height: 32px; }
  .mark { padding: 2px 10px; border-radius: 8px; }
  .hero-body { margin-top: 20px; font-size: 17px; line-height: 28px; }
  .hero-cta { margin-top: 28px; width: 100%; flex-direction: column; gap: 12px; }
  .hero-cta .btn { width: 100%; height: 56px; font-size: 17px; }
  .worker-stage { height: 470px; }
  .worker-stage.has-js .id-card { top: 84px; }
  .worker-stage { scroll-margin-top: 80px; }
  .id-card { width: 100%; padding: 40px 24px 24px; transform: rotate(-1.5deg); }
  .id-tile { width: 56px; height: 56px; }
  .id-name { font-size: 20px; line-height: 26px; }

  .clients .wrap { padding-block: 48px 52px; }
  .clients-head { flex-direction: column; gap: 4px; }
  .clients-head p { font-size: 14px; }
  .marquee { margin-top: 24px; }
  .marquee-track { animation-duration: 60s; }
  .logo-item { height: 96px; padding: 0 26px; gap: 8px; }
  .logo-item img { height: var(--hm); }
  .logo-item span { font-size: 16px; line-height: 22px; }

  .why .wrap { padding-block: 64px; gap: 40px; }
  .why h2 { margin-top: 16px; font-size: 30px; line-height: 38px; letter-spacing: -0.3px; }
  .why-point { margin-top: 20px; font-size: 20px; line-height: 28px; }
  .why-body { margin-top: 12px; font-size: 16px; line-height: 27px; }
  .compare { font-size: 14px; line-height: 20px; }
  .compare thead th { padding: 0 10px 12px; font-size: 12px; }
  .compare thead th:first-child { width: 32%; }
  .compare thead th.us { padding: 12px; font-size: 13px; border-radius: 12px 12px 0 0; }
  .compare tbody th, .compare tbody td { padding: 14px 10px; }
  .compare tbody td.us { padding-inline: 12px; }
  .compare tbody tr:last-child td.us { border-radius: 0 0 12px 12px; }

  .process .wrap { padding-block: 64px; }
  .process-head { display: block; }
  .about .wrap { padding-bottom: 64px; gap: 32px; }
  .about-photo { max-width: 320px; }
  .about-backdrop { inset: 48px 0 0 0; border-radius: 24px; }
  .about-frame img { border-radius: 0 0 24px 24px; }
  .about-copy h2 { margin-top: 12px; font-size: 30px; line-height: 38px; letter-spacing: -0.3px; }
  .about-copy > p:not(.eyebrow) { font-size: 16px; line-height: 27px; }
  .beliefs li { padding: 12px 16px; font-size: 15px; line-height: 24px; }
  .process-head .text-link { display: none; }
  .process h2 { margin-top: 12px; font-size: 30px; line-height: 38px; letter-spacing: -0.3px; }
  .steps { margin-top: 40px; grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; align-items: start; justify-items: start; }
  .step > :not(.step-head) { grid-column: 2; }
  .step-head { grid-row: 1 / span 3; align-self: stretch; flex-direction: column; gap: 8px; }
  .step-head::after { border-top: 0; border-inline-start: 1px solid #34456455; width: 0; }
  .step:last-child .step-head::after { display: none; }
  .num { width: 48px; height: 48px; font-size: 19px; }
  .step h3 { margin-top: 8px; font-size: 21px; line-height: 28px; }
  .step p { margin-top: 8px; font-size: 16px; line-height: 26px; }
  .chip { margin-top: 14px; margin-bottom: 36px; }
  .step:last-child .chip { margin-bottom: 0; }

  .cta .wrap { padding-inline: 16px; padding-bottom: 56px; }
  .cta-card { border-radius: 24px; padding: 32px 20px 24px; gap: 28px; }
  .cta-card .eyebrow { font-size: 14px; }
  .cta-card h2 { margin-top: 14px; font-size: 32px; line-height: 40px; letter-spacing: -0.3px; }
  .cta-body { margin-top: 16px; font-size: 17px; line-height: 28px; }
  .terms { margin-top: 24px; padding-top: 20px; }
  .terms p { font-size: 14px; line-height: 22px; }
  .lead-form { border-radius: 20px; padding: 20px; gap: 16px; }
  .lead-form .form-title { font-size: 18px; line-height: 26px; }

  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  .site-footer .footer-top { padding-block: 32px 24px; }
  .site-footer .footer-bottom { padding-block: 20px 96px; }
  .wa-float { bottom: 16px; inset-inline-end: 16px; width: 56px; padding: 0; justify-content: center; }
  .wa-float span { display: none; }
  .site-footer .logo img { height: 26px; }
  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }

  .thanks h1 { font-size: 32px; line-height: 40px; }
  .team-story .wrap { padding-block: 40px 8px; }
  .team-story h1 { margin-top: 12px; font-size: 32px; line-height: 40px; }
  .team .wrap { padding-block: 40px 56px; }
  .team h2, .team-cta-card h2 { font-size: 26px; line-height: 34px; }
  .team-grid { grid-template-columns: 1fr; gap: 32px; max-width: 360px; }
  .team-cta .wrap { padding-inline: 16px; padding-bottom: 56px; }
  .team-cta-card { padding: 28px 20px; border-radius: 24px; }
  .team-cta-card p { font-size: 16px; line-height: 27px; }
  .team-cta-card .btn { width: 100%; }
  .doc .wrap { padding-block: 48px 64px; }
  .doc h1, .nl-card h1 { font-size: 32px; line-height: 40px; }
  .doc h2 { margin-top: 32px; font-size: 21px; line-height: 28px; }
  .nl .wrap { padding-block: 48px 72px; }
  .nl-card .lead { font-size: 17px; line-height: 28px; }
}
