/* Shared by the product pages. Same palette and type as the home page. */
html, body { margin: 0; }
body {
  background: #ffffff;
  color: #0c0c0d;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.top { display: flex; align-items: center; justify-content: space-between; padding: 24px 32px; }
.home { display: inline-flex; flex-direction: column; align-items: center; color: #0c0c0d; text-decoration: none; }
.home svg { height: 12px; width: auto; fill: currentColor; }
.home span { margin-top: 3px; font: 500 20px/1 "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.02em; }
.tabs { display: flex; gap: 32px; }
.tabs a { color: #3a3a3c; font-size: 15px; font-weight: 500; text-decoration: none; padding: 6px 0; }
.tabs a:hover, .tabs a[aria-current="page"] { color: #0c0c0d; }
.tabs a[aria-current="page"] { box-shadow: inset 0 -1.5px 0 #0c0c0d; }
.tabs a:focus-visible, .step:focus-visible, .home:focus-visible { outline: 2px solid #0c0c0d; outline-offset: 4px; border-radius: 2px; }

.product { max-width: 1240px; margin: 0 auto; padding: clamp(48px, 9vh, 112px) 32px 96px; }
.product-head { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2vw, 28px); }
.product-head h1 { margin: 0; font-weight: 600; font-size: clamp(2.75rem, 6.4vw, 6rem); line-height: 1; letter-spacing: -0.045em; }
.step { flex: 0 0 auto; display: grid; place-items: center; width: clamp(44px, 4.4vw, 64px); height: clamp(44px, 4.4vw, 64px); border-radius: 50%; border: 1.5px solid #0c0c0d; color: #0c0c0d; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.step:hover { background: #0c0c0d; color: #ffffff; }
.step svg { width: 42%; height: auto; }
.product-head { position: relative; }
.pitch { position: absolute; left: calc((100% - 100vw) / 2 + 32px); top: 50%; transform: translateY(-50%); max-width: 430px; }
.pitch p { margin: 0; font-family: "Indie Flower", "Comic Neue", cursive; font-weight: 400; letter-spacing: 0.01em; }
.pitch-lead { font-size: 1.6rem; line-height: 1.25; color: #0c0c0d; }
.pitch-body { margin-top: 12px !important; font-size: 1.3rem; line-height: 1.35; color: #3a3a3c; }
.pitch-em { position: relative; white-space: nowrap; -webkit-text-stroke: 0.7px currentColor; }
.pitch-ul { position: absolute; left: -2px; right: -2px; bottom: -7px; width: calc(100% + 4px); height: 10px; overflow: visible; }
.pitch-ul path { fill: none; stroke: #0c0c0d; stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wd { white-space: nowrap; }
.writing .ch { display: inline-block; clip-path: inset(0 100% 0 0); animation: pen 0.16s ease-out forwards; }
.writing .pitch-ul path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.5s ease-out forwards; animation-delay: var(--ul-delay, 0ms); }
@keyframes pen { to { clip-path: inset(0 -10% 0 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 1680px) {
  .product-head { flex-wrap: wrap; }
  .pitch { position: static; transform: none; flex: 0 0 100%; max-width: 46ch; margin: 0 auto 40px; text-align: center; order: -1; }
}
.product-sub { margin: 18px auto 0; max-width: 46ch; text-align: center; color: #3a3a3c; font-size: 1.1rem; line-height: 1.55; }

.flow-wrap { margin-top: clamp(48px, 8vh, 96px); overflow-x: auto; }
.flow { display: block; width: 100%; min-width: 880px; height: auto; }
.flow text { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; }
.flow .box { fill: #ffffff; stroke: #0c0c0d; stroke-width: 1.5; }
.flow .box-dark { fill: #0c0c0d; stroke: #0c0c0d; stroke-width: 1.5; }
.flow .wire { fill: none; stroke: #0c0c0d; stroke-width: 1.5; }
.flow .port { fill: #ffffff; stroke: #0c0c0d; stroke-width: 1.5; }
.flow .kicker { font-size: 12px; font-weight: 500; fill: #86868b; letter-spacing: 0.06em; }
.flow .title { font-size: 17px; font-weight: 600; fill: #0c0c0d; letter-spacing: -0.01em; }
.flow .box-dark + .kicker { fill: #a1a1a6; }
.flow .on-dark { fill: #ffffff; }
.flow .edge { font-size: 12.5px; font-weight: 500; fill: #3a3a3c; }
.flow .edge-bg { fill: #ffffff; }

@media (max-width: 640px) {
  .top { padding: 16px; }
  .tabs { gap: 20px; }
  .tabs a { font-size: 14px; }
  .product { padding: 40px 16px 64px; }
}

/* Sponsors, bottom right of every page (same as the home page) */
.powered { position: fixed; right: 32px; bottom: 28px; display: flex; align-items: center; gap: 20px; color: #86868b; font-size: 16px; font-weight: 500; }
.powered img { height: 44px; width: auto; display: block; }
@media (max-width: 640px) { .powered { right: 16px; bottom: 16px; gap: 14px; font-size: 14px; } .powered img { height: 32px; } .product { padding-bottom: 112px; } }

/* SaaS: simple app windows, same black-and-white line style as the automation diagram */
.apps { display: block; width: 100%; max-width: 1120px; min-width: 880px; height: auto; margin: 0 auto; }
.apps text { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; }
.apps .win { fill: #ffffff; stroke: #0c0c0d; stroke-width: 1.5; }
.apps .win-bar, .apps .axis { fill: none; stroke: #0c0c0d; stroke-width: 1.5; }
.apps .dot { fill: none; stroke: #0c0c0d; stroke-width: 1.2; }
.apps .win-title { font-size: 14px; font-weight: 600; fill: #0c0c0d; }
.apps .chk { fill: #ffffff; stroke: #0c0c0d; stroke-width: 1.5; }
.apps .chk-on, .apps .ink, .apps .col, .apps .btn-ink, .apps .avatar { fill: #0c0c0d; }
.apps .tick { fill: none; stroke: #ffffff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.apps .bar { fill: #e2e2e5; }
.apps .bar-done { fill: #c7c7cc; }
.apps .tile, .apps .btn-line { fill: #ffffff; stroke: #0c0c0d; stroke-width: 1.2; }
.apps .btn-t { font-size: 14px; font-weight: 600; fill: #0c0c0d; }
.apps .on-dark { fill: #ffffff; }

/* Software: systems already built, plus an open card for the next idea */
.systems { list-style: none; margin: clamp(48px, 8vh, 96px) auto 0; padding: 0; max-width: 1180px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.sys { border: 1.5px solid #0c0c0d; border-radius: 12px; padding: 24px 22px 26px; background: #ffffff; }
.sys-icon { width: 32px; height: 32px; color: #0c0c0d; display: block; }
.sys h2 { margin: 22px 0 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.sys p { margin: 8px 0 0; font-size: 0.95rem; line-height: 1.5; color: #3a3a3c; }
.sys-idea { border-style: dashed; border-color: #a1a1a6; background: #fafafa; padding: 0; }
.sys-idea a { display: block; height: 100%; box-sizing: border-box; padding: 24px 22px 26px; color: inherit; text-decoration: none; border-radius: 12px; }
.sys-idea a:hover { background: #f1f1f3; }
.sys-idea a:focus-visible { outline: 2px solid #0c0c0d; outline-offset: 3px; }
.sys-idea .sys-icon { color: #6e6e73; }
@media (max-width: 1100px) { .systems { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .systems { grid-template-columns: 1fr; } }

/* Agents: diagram is narrower than the automation one, keep it at a matching scale */
.flow-agents { max-width: 860px; min-width: 640px; margin: 0 auto; }
.built-on { display: flex; justify-content: center; gap: 12px; margin: 40px 0 0; }
.built-on span { border: 1.5px solid #0c0c0d; border-radius: 999px; padding: 7px 18px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
/* a long heading needs the note above it sooner */
@media (max-width: 2100px) {
  .wide-head .product-head { flex-wrap: wrap; }
  .wide-head .pitch { position: static; transform: none; flex: 0 0 100%; max-width: 46ch; margin: 0 auto 40px; text-align: center; order: -1; }
}
@media (max-width: 480px) { .top { gap: 16px; } .tabs { gap: 14px; } .tabs a { font-size: 13px; } .home span { font-size: 17px; } }

/* Careers */
.roles { max-width: 880px; margin: clamp(48px, 8vh, 96px) auto 0; }
.roles-count { margin: 0 0 14px; font-size: 13px; font-weight: 500; color: #86868b; letter-spacing: 0.06em; text-transform: uppercase; }
.role { display: flex; align-items: center; gap: 24px; border: 1.5px solid #0c0c0d; border-radius: 12px; padding: 26px 28px; }
.role-main { flex: 1; min-width: 0; }
.role h2 { margin: 10px 0 0; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.role-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.role-tags span { font-size: 12.5px; font-weight: 500; color: #3a3a3c; border: 1px solid #c7c7cc; border-radius: 999px; padding: 4px 11px; }
.role-tags .tag-live { color: #ffffff; background: #0c0c0d; border-color: #0c0c0d; }
.apply { flex: 0 0 auto; background: #0c0c0d; color: #ffffff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 28px; border-radius: 999px; }
.apply:hover { background: #2a2a2d; }
.apply:focus-visible { outline: 2px solid #0c0c0d; outline-offset: 3px; }
@media (max-width: 560px) { .role { flex-direction: column; align-items: flex-start; } .apply { align-self: stretch; text-align: center; } }

.role { position: relative; }
.role:hover { background: #fafafa; }
.role-link { color: inherit; text-decoration: none; }
.role-link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.role-link:focus-visible { outline: none; }
.role:has(.role-link:focus-visible) { outline: 2px solid #0c0c0d; outline-offset: 3px; }
.role-more { margin: 6px 0 0; font-size: 14px; color: #6e6e73; }
.role .apply { position: relative; z-index: 1; }

/* Job description */
.job { max-width: 760px; margin: 0 auto; padding: clamp(32px, 6vh, 72px) 32px 140px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: #3a3a3c; text-decoration: none; font-size: 15px; font-weight: 500; }
.back svg { width: 18px; height: 18px; }
.back:hover { color: #0c0c0d; }
.back:focus-visible { outline: 2px solid #0c0c0d; outline-offset: 4px; border-radius: 2px; }
.job-head { margin-top: 36px; padding-bottom: 32px; border-bottom: 1px solid #e2e2e5; }
.job-head h1 { margin: 14px 0 24px; font-weight: 600; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.045em; }
.job .apply { display: inline-block; }
.job-body section { margin-top: 36px; }
.job-body h2 { margin: 0 0 12px; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.job-body p, .job-body li { font-size: 1.05rem; line-height: 1.65; color: #3a3a3c; }
.job-body p { margin: 0; }
.job-body ul { margin: 0; padding-left: 1.2em; }
.job-body li { margin: 4px 0; }
.job-body p + .apply { margin-top: 22px; }
@media (max-width: 640px) { .job { padding: 24px 16px 120px; } }

/* Application form + inbox */
[hidden] { display: none !important; }
.job-lede { margin: -10px 0 0; color: #6e6e73; font-size: 1rem; }
.apply-form, .pin { margin-top: 32px; display: grid; gap: 20px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.f { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: #0c0c0d; }
.f input, .f textarea, .f select { font: inherit; font-weight: 400; font-size: 1rem; color: #0c0c0d; border: 1.5px solid #c7c7cc; border-radius: 10px; padding: 12px 14px; background: #ffffff; width: 100%; box-sizing: border-box; }
.f textarea { resize: vertical; line-height: 1.5; }
.f select { appearance: none; background: #ffffff url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%230c0c0d%27 stroke-width=%272%27 stroke-linecap=%27round%27%3E%3Cpath d=%27M6 9l6 6 6-6%27/%3E%3C/svg%3E") no-repeat right 14px center / 16px; padding-right: 40px; }
.f input:focus, .f textarea:focus, .f select:focus { outline: none; border-color: #0c0c0d; box-shadow: 0 0 0 3px rgba(12, 12, 13, 0.08); }
.f.file input { padding: 10px; }
.f .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #0c0c0d; margin-left: 6px; vertical-align: middle; position: relative; top: -1px; }
.f.file { grid-template-columns: 1fr; }
.hint { font-weight: 400; color: #86868b; font-size: 13px; margin-top: -4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; color: #b42318; font-size: 15px; }
.apply-form .apply, .pin .apply { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.apply:disabled { opacity: 0.6; cursor: default; }
.sent { margin-top: 40px; }
.sent h2 { margin: 0; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; }
.sent p { margin: 10px 0 24px; color: #3a3a3c; font-size: 1.05rem; line-height: 1.6; }
.sent:focus { outline: none; }
.inbox .pin { max-width: 320px; }
.app { border: 1.5px solid #0c0c0d; border-radius: 12px; padding: 22px 24px; margin-top: 20px; }
.app-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.app h2 { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.app-top span { font-size: 13px; color: #86868b; }
.app-contact { margin: 6px 0 0; font-size: 14px; color: #3a3a3c; overflow-wrap: anywhere; }
.app-contact a { color: inherit; }
.app h3 { margin: 18px 0 4px; font-size: 13px; font-weight: 600; color: #86868b; text-transform: uppercase; letter-spacing: 0.05em; }
.app p { white-space: pre-wrap; }
.dl { margin-top: 18px; font: inherit; font-size: 14px; font-weight: 600; background: #ffffff; color: #0c0c0d; border: 1.5px solid #0c0c0d; border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.dl:hover { background: #0c0c0d; color: #ffffff; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
/* on phones, long pages (job, form, inbox) end with the sponsors line instead of floating it over the fields */
@media (max-width: 640px) { body:has(.job) .powered { position: static; justify-content: flex-end; padding: 0 16px 24px; } body:has(.job) .job { padding-bottom: 40px; } }
