/* Workari public pages: landing, signup, terms, privacy.
   Loaded after workari-theme.css, whose tokens (paper, ink, hairlines, the
   orange signal, Archivo + JetBrains Mono, 2px corners) every rule here uses.
   Shared pieces only: frame, type, buttons, nav, footer, scroll reveal.
   Page-specific styles stay in each template. */

:root {
  --lp-max: 1200px;
  --lp-gutter: 32px;
  --lp-nav-h: 60px;
  --lp-ease: cubic-bezier(.2, .7, .2, 1);
  --lp-dark: #111110;
  --lp-dark-2: #1B1A18;
  --lp-dark-line: rgba(247, 246, 242, .12);
  --lp-dark-ink: #F7F6F2;
  --lp-dark-ink-3: #A9A69E;
  /* Teal accent (Jake, 2026-10-06): the live dots and the Orchestration diagram. Orange stays the product's warning colour. */
  --lp-teal: #0A6C8E;
  --lp-teal-bright: #3BB3D6;
  /* The footer's US flag (Old Glory red and blue). */
  --lp-flag-red: #B22234;
  --lp-flag-blue: #3C3B6E;
  --lp-flag-white: #FFFFFF;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--lp-nav-h) + 8px); }
body.lp {
  margin: 0;
  background: var(--wk-bg);
  color: var(--wk-ink);
  font-family: var(--wk-font-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
.lp a { text-decoration: none; }
:where(.lp) :where(h1, h2, h3, p) { margin: 0; }
:where(.lp) :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.lp-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lp-mono { font-family: var(--wk-font-mono); }

/* ── Frame: a centred column with hairline rails, sections stacked on hairlines ── */
.lp-wrap { max-width: var(--lp-max); margin: 0 auto; padding: 0 var(--lp-gutter); }
.lp-rails { max-width: var(--lp-max); margin: 0 auto; border-left: 1px solid var(--wk-line-2); border-right: 1px solid var(--wk-line-2); }
.lp-section { position: relative; border-top: 1px solid var(--wk-line); padding: 112px 0; }
.lp-section::before, .lp-section::after {
  /* Small crosshairs where the section hairline meets the rails. */
  content: ""; position: absolute; top: -5px; width: 9px; height: 9px;
  background:
    linear-gradient(var(--wk-ink-4), var(--wk-ink-4)) center / 1px 9px no-repeat,
    linear-gradient(var(--wk-ink-4), var(--wk-ink-4)) center / 9px 1px no-repeat;
}
.lp-section::before { left: -5px; }
.lp-section::after { right: -5px; }
.lp-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--wk-font-mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; color: var(--wk-ink-3);
}
.lp-label .lp-idx { color: var(--wk-ink-5); }
.lp-h2 {
  font-family: var(--wk-font-display); font-weight: 600;
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -.022em;
  color: var(--wk-ink); max-width: 760px; margin-top: 18px;
}
.lp-lead { font-size: 18px; line-height: 1.6; color: var(--wk-ink-3); max-width: 620px; margin-top: 20px; }
.lp-head { margin-bottom: 56px; }

/* ── Buttons ── */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border-radius: var(--wk-radius);
  background: var(--wk-ink); color: var(--wk-bg) !important; border: 1px solid var(--wk-ink);
  font: 500 15px/1 var(--wk-font-sans); cursor: pointer; white-space: nowrap;
  transition: background .2s, transform .2s var(--lp-ease);
}
.lp-btn:hover { background: #000; }
.lp-btn:active { transform: translateY(1px); }
.lp-btn .lp-arrow { transition: transform .25s var(--lp-ease); }
.lp-btn:hover .lp-arrow { transform: translateX(3px); }
.lp-btn-ghost { background: transparent; color: var(--wk-ink) !important; border-color: var(--wk-line); }
.lp-btn-ghost:hover { background: var(--wk-line-3); }
.lp-btn:focus-visible, .lp-navlink:focus-visible, .lp-menu a:focus-visible, .lp-chip:focus-visible, .lp-faq summary:focus-visible, .lp-seg button:focus-visible, .lp-demo-ctl button:focus-visible { outline: none; box-shadow: var(--wk-focus); }
.lp-fine { font-family: var(--wk-font-mono); font-size: 12px; color: var(--wk-ink-4); letter-spacing: .02em; }

/* ── Nav ── */
.lp-nav {
  position: sticky; top: 0; z-index: 50; height: var(--lp-nav-h);
  background: rgba(247, 246, 242, .82); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.lp-nav.is-scrolled { border-bottom-color: var(--wk-line); }
.lp-nav-in { max-width: var(--lp-max); height: 100%; margin: 0 auto; padding: 0 var(--lp-gutter); display: flex; align-items: center; gap: 28px; }
.lp-brand { display: inline-flex; align-items: center; gap: 4px; color: var(--wk-ink); font-weight: 600; font-size: 18px; letter-spacing: -.02em; min-height: 44px; }
.lp-brand img { width: 34px; height: 34px; object-fit: cover; margin-left: -6px; }
.lp-navlinks { display: flex; align-items: center; gap: 4px; }
.lp-navlink {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border-radius: var(--wk-radius);
  color: var(--wk-ink-3); font-size: 14px; font-weight: 500; background: none; border: 0; cursor: pointer; font-family: inherit;
}
.lp-navlink:hover, .lp-navlink[aria-expanded="true"] { color: var(--wk-ink); background: var(--wk-line-3); }
.lp-navlink .fa-chevron-down { font-size: 9px; transition: transform .2s; }
.lp-navlink[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
.lp-nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lp-nav-right .lp-btn { min-height: 36px; padding: 0 14px; font-size: 14px; }

/* Product menu: same look as the app's dropdowns (surface, hairline, pop shadow). */
.lp-dd { position: relative; }
.lp-menu {
  position: absolute; top: calc(100% + 10px); left: -8px; width: 520px;
  background: var(--wk-surface); border: 1px solid var(--wk-line); border-radius: var(--wk-radius); box-shadow: var(--wk-shadow-pop);
  padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .16s, transform .16s var(--lp-ease), visibility 0s .16s;
}
.lp-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .16s var(--lp-ease); }
.lp-menu-head { grid-column: 1 / -1; padding: 6px 10px 8px; font-family: var(--wk-font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--wk-ink-4); }
.lp-menu a { display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; padding: 10px; border-radius: var(--wk-radius); color: var(--wk-ink); }
.lp-menu a:hover { background: var(--wk-line-3); }
.lp-menu a i { grid-row: 1 / 3; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--wk-line); border-radius: var(--wk-radius); font-size: 12px; color: var(--wk-ink-3); background: var(--wk-bg); }
.lp-menu b { font-size: 14px; font-weight: 600; }
.lp-menu span { font-size: 12.5px; color: var(--wk-ink-3); line-height: 1.4; }

.lp-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--lp-teal); position: relative; }
.lp-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--lp-teal); opacity: 0; animation: lp-pulse 2.4s var(--lp-ease) infinite; }
@keyframes lp-pulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.lp-h1 {
  font-family: var(--wk-font-display); font-weight: 600;
  font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -.032em; color: var(--wk-ink);
  margin-top: 28px !important;
}
/* ── Footer ── */
.lp-foot { border-top: 1px solid var(--wk-line); padding: 40px 0 48px; }
.lp-foot-in { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.lp-foot p { color: var(--wk-ink-3); font-size: 14px; margin-top: 8px !important; }
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.lp-foot nav a { color: var(--wk-ink-3); font-size: 14px; min-height: 32px; display: inline-flex; align-items: center; }
.lp-foot nav a:hover { color: var(--wk-ink); }
/* The copyright line and "Made in America". The row keeps the old copyright
   line's 8px gap and height: the sign-in page fits a 900px window exactly
   (e2e test_responsive). */
.lp-foot-base { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-top: 8px; }
.lp-foot-base p { margin-top: 0 !important; }
.lp-foot .lp-made { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; }
.lp-flag { flex: none; display: block; width: 19px; height: 10px; box-shadow: 0 0 0 1px var(--wk-line-2); }
.lp-flag-white { fill: var(--lp-flag-white); }
.lp-flag-red { fill: var(--lp-flag-red); }
.lp-flag-blue { fill: var(--lp-flag-blue); }
.lp-flag-stars { fill: none; stroke: var(--lp-flag-white); stroke-width: .32; stroke-linecap: round; stroke-dasharray: 0 1.267; }

/* ── Scroll reveal (only when scripts run, so nothing is hidden without them) ── */
.lp-js .lp-reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--lp-ease), transform .8s var(--lp-ease); }
.lp-js .lp-reveal.is-in { opacity: 1; transform: none; }
.lp-js .lp-reveal[data-delay="1"] { transition-delay: .08s; }
.lp-js .lp-reveal[data-delay="2"] { transition-delay: .16s; }
.lp-js .lp-reveal[data-delay="3"] { transition-delay: .24s; }
.lp-js .lp-hero .lp-reveal { transform: translateY(10px); }

/* Form fields on public pages: the app's ink controls, 16px type so iOS
   does not zoom, 44px tall. */
.lp-field { margin-bottom: 18px; }
.lp-field label { display: block; margin-bottom: 6px; font-family: var(--wk-font-mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--wk-ink-3); }
.lp-input, .lp-field input[type="text"], .lp-field input[type="email"], .lp-field input[type="password"], .lp-field input[type="date"], .lp-field select {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px;
  font: 400 16px/1.4 var(--wk-font-sans); color: var(--wk-ink);
  background: var(--wk-surface); border: 1px solid var(--wk-line); border-radius: var(--wk-radius);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.lp-field input::placeholder { color: var(--wk-ink-5); }
.lp-field input:hover, .lp-field select:hover { border-color: var(--wk-ink-5); }
.lp-field input:focus, .lp-field select:focus { border-color: var(--wk-ink); box-shadow: var(--wk-focus); }
.lp-field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%235C5A55' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.lp-hint { margin-top: 6px !important; font-size: 13px; color: var(--wk-ink-4); line-height: 1.45; }
.lp-err { margin-top: 6px !important; font-size: 13px; color: var(--wk-danger); }
.lp-alert { margin-bottom: 20px; padding: 12px 14px; border-radius: var(--wk-radius); background: var(--wk-danger-wash); color: var(--wk-danger); font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  :root { --lp-gutter: 24px; }
  .lp-navlinks { display: none; }
}
/* Phones: one breakpoint below 576px, 16px gutters, 44px targets (item 26). */
@media (max-width: 575.98px) {
  :root { --lp-gutter: 16px; --lp-nav-h: 56px; }
  .lp-rails { border: 0; }
  .lp-nav-in { gap: 8px; }
  .lp-nav-right { gap: 4px; }
  .lp-nav-right .lp-navlink, .lp-nav-right .lp-btn { min-height: 44px; }
  .lp-nav-right .lp-btn { padding: 0 10px; }
  .lp-nav-right .lp-navlink { padding: 0 8px; }
  .lp-brand { font-size: 16px; }
  .lp-brand img { width: 28px; height: 28px; }
  .lp-foot nav a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-js .lp-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .lp-pulse::after { animation: none !important; }
}

/* Signed-in nav: an account menu (avatar + first name) and the dashboard
   button, in place of Log in and the trial button. */
.lp-acct-btn { gap: 8px; padding: 0 8px 0 4px; }
.lp-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--wk-ink); color: var(--wk-bg); display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; flex: none; }
.lp-acct-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--wk-ink); }
.lp-menu.lp-acct-menu { left: auto; right: 0; width: 260px; grid-template-columns: 1fr; }
.lp-acct-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--wk-line-2); margin-bottom: 4px; }
.lp-acct-head b { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.lp-acct-head span { display: block; font-size: 12.5px; color: var(--wk-ink-3); margin-top: 2px; overflow-wrap: anywhere; }
.lp-menu.lp-acct-menu a, .lp-menu.lp-acct-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 8px 10px;
  border: 0; border-radius: var(--wk-radius); background: none; cursor: pointer; text-align: left;
  font: 400 14px/1.3 var(--wk-font-sans); color: var(--wk-ink);
}
.lp-menu.lp-acct-menu a:hover, .lp-menu.lp-acct-menu button:hover, .lp-menu.lp-acct-menu a:focus-visible, .lp-menu.lp-acct-menu button:focus-visible { background: var(--wk-line-3); outline: none; }
.lp-menu.lp-acct-menu i { grid-row: auto; height: auto; border: 0; background: none; display: inline-block; width: 16px; text-align: center; font-size: 13px; color: var(--wk-ink-4); }
.lp-menu.lp-acct-menu form { margin: 0; }
.lp-menu-sep { height: 1px; background: var(--wk-line-2); margin: 4px 0; }
@media (max-width: 575.98px) {
  .lp-acct-name, .lp-acct-btn .fa-chevron-down { display: none; }
  .lp-acct-btn { padding: 0 6px; }
  .lp-menu.lp-acct-menu a, .lp-menu.lp-acct-menu button { min-height: 44px; }
  .lp-menu.lp-acct-menu { position: fixed; top: calc(var(--lp-nav-h) + 4px); left: var(--lp-gutter); right: var(--lp-gutter); width: auto; }
}

/* Flash messages on public pages: full-width bands under the nav, the
   app's notice colours. */
.lp-flash { display: flex; align-items: flex-start; gap: 12px; padding: 12px var(--lp-gutter); border-bottom: 1px solid var(--wk-line); font-size: 14.5px; line-height: 1.5; background: var(--wk-neutral-wash); color: var(--wk-ink); transition: opacity .3s; }
.lp-flash.is-success { background: var(--wk-ok-wash); color: #1F3D25; }
.lp-flash.is-warning { background: var(--wk-warn-wash); color: #5A3F08; }
.lp-flash.is-error { background: var(--wk-danger-wash); color: var(--wk-danger); }
.lp-flash-text { flex: 1; max-width: var(--lp-max); }
.lp-flash-close { flex: none; width: 28px; height: 28px; margin: -3px -6px -3px 0; border: 0; background: none; color: inherit; opacity: .6; font-size: 20px; line-height: 1; cursor: pointer; border-radius: var(--wk-radius); }
.lp-flash-close:hover, .lp-flash-close:focus-visible { opacity: 1; outline: none; box-shadow: var(--wk-focus); }
@media (max-width: 575.98px) { .lp-flash-close { width: 44px; height: 44px; margin: -12px -12px -12px 0; } }

/* Notices inside a form card (info, warning). */
.lp-note { margin-bottom: 18px; padding: 12px 14px; border-radius: var(--wk-radius); background: var(--wk-neutral-wash); color: var(--wk-ink-2); font-size: 14px; line-height: 1.5; }
.lp-note.is-warning { background: var(--wk-warn-wash); color: #5A3F08; }

/* Textareas and the optional-field marker. */
.lp-field textarea { display: block; width: 100%; min-height: 120px; padding: 10px 12px; resize: vertical; font: 400 16px/1.5 var(--wk-font-sans); color: var(--wk-ink); background: var(--wk-surface); border: 1px solid var(--wk-line); border-radius: var(--wk-radius); outline: none; transition: border-color .15s, box-shadow .15s; }
.lp-field textarea::placeholder { color: var(--wk-ink-5); }
.lp-field textarea:hover { border-color: var(--wk-ink-5); }
.lp-field textarea:focus { border-color: var(--wk-ink); box-shadow: var(--wk-focus); }
.lp-field label .lp-opt { text-transform: none; letter-spacing: 0; font-family: var(--wk-font-sans); font-size: 13px; font-weight: 400; color: var(--wk-ink-4); margin-left: 4px; }

/* Centred card pages (sign-in, the request form and its results). */
/* The footer sits at the bottom of the window however tall it is, and
   straight after the card when the window is shorter than the page. */
body.lp-fill { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.lp-fill > main { flex: 1 0 auto; width: 100%; }
.lp-card-page { position: relative; display: flex; align-items: flex-start; justify-content: center; padding: 48px var(--lp-gutter) 64px; }
.lp-card-page .lp-hero-grid { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(var(--wk-line) 1px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%); mask-image: linear-gradient(to bottom, #000 0%, transparent 70%); }
.lp-card { position: relative; width: 100%; max-width: 460px; background: var(--wk-surface); border: 1px solid var(--wk-line); border-radius: var(--wk-radius); padding: 36px; box-shadow: 0 1px 0 var(--wk-line-3), 0 30px 60px -36px rgba(17,17,16,.22); }
.lp-card.is-wide { max-width: 580px; }
.lp-card .lp-h1 { font-size: clamp(28px, 3vw, 36px); margin-top: 14px !important; }
.lp-card-sub { margin-top: 10px !important; font-size: 15.5px; color: var(--wk-ink-3); line-height: 1.55; }
.lp-card-body { margin-top: 28px; }
.lp-card .lp-btn { width: 100%; min-height: 48px; margin-top: 6px; }
.lp-card .lp-btn:disabled { opacity: .6; cursor: not-allowed; }
.lp-card-foot { margin-top: 24px !important; padding-top: 18px; border-top: 1px solid var(--wk-line); font-size: 14.5px; color: var(--wk-ink-3); text-align: center; }
.lp-card-foot a, .lp-card-link { color: var(--wk-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--wk-ink-5); text-underline-offset: 3px; }
.lp-card-foot a:hover, .lp-card-link:hover { text-decoration-color: currentColor; }
/* A card's quiet second action under its main button ("Back to sign in",
   "Not now"); works on a link or a button. */
.lp-card-alt { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 10px; padding: 0; border: 0; background: none; font: inherit; font-size: 14.5px; color: var(--wk-ink-3) !important; cursor: pointer; }
.lp-card-alt:hover { color: var(--wk-ink) !important; }
.lp-card-alt:focus-visible { outline: none; box-shadow: var(--wk-focus); }
@media (max-width: 575.98px) {
  .lp-card-page { padding: 24px var(--lp-gutter) 56px; }
  .lp-card { padding: 24px 20px; box-shadow: none; }
}

/* The styled dropdown (static/js/wk-select.js) puts a button over the
   hidden select; inside a public form field it looks like the select did. */
.lp-field .wk-select-btn {
  min-height: 44px; padding: 10px 36px 10px 12px;
  font: 400 16px/1.4 var(--wk-font-sans); color: var(--wk-ink);
  background: var(--wk-surface) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%235C5A55' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--wk-line); border-radius: var(--wk-radius); outline: none;
}
.lp-field .wk-select-btn:hover { border-color: var(--wk-ink-5); }
.lp-field .wk-select-btn:focus-visible, .lp-field .wk-select-btn[aria-expanded="true"] { border-color: var(--wk-ink); box-shadow: var(--wk-focus); }
