/* Marketing site and signup. Platform branding only -- no tenant is resolved
 * on these pages, so nothing here reads a customer's colours. */

:root {
  --brand-primary: #145f78;
  --brand-dark: #0b3545;
  --brand-accent: #22a585;
  --brand-wash: #edf8f5;
  --ink: #132630;
  --ink-soft: #58707c;
  --line: #dbe7e9;
  --surface: #ffffff;
  --surface-soft: #f4f8f8;
  --shadow-sm: 0 8px 24px rgba(15, 49, 61, .08);
  --shadow-lg: 0 28px 70px rgba(7, 41, 53, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-primary); }
img, svg { display: block; }

.wrap { width: min(100% - 2.5rem, 1120px); margin-inline: auto; }

.site-head {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 231, 233, .85);
  background: rgba(255, 255, 255, .95);
}
.site-head .wrap { display: flex; min-height: 76px; align-items: center; gap: 1.5rem; }
.logo { display: inline-flex; flex: 0 0 auto; align-items: center; text-decoration: none; }
.logo img { width: auto; height: 30px; }
.site-head nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.site-head nav > a:not(.btn) {
  color: #294854;
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
}
.site-head nav > a:not(.btn):hover { color: var(--brand-primary); }

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .94rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: #bdced2; box-shadow: var(--shadow-sm); }
.btn.primary { border-color: var(--brand-primary); background: var(--brand-primary); color: #fff; }
.btn.primary:hover { border-color: #0d4d63; background: #0d4d63; }
.btn.secondary { border-color: #cadadd; background: rgba(255, 255, 255, .72); }
.btn.light { border-color: #fff; background: #fff; color: var(--brand-dark); }
.btn.light:hover { background: #f1fbf8; }
.btn.block { width: 100%; }
.btn:focus-visible,
.site-head a:focus-visible,
.site-foot a:focus-visible,
.text-link:focus-visible {
  outline: 3px solid rgba(34, 165, 133, .35);
  outline-offset: 3px;
}
.nav-cta { min-height: 44px; padding: .62rem 1.15rem; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 5rem;
  background:
    radial-gradient(circle at 88% 0%, rgba(60, 190, 158, .17), transparent 31rem),
    linear-gradient(145deg, #f6fbfa 0%, #edf5f7 52%, #f8fbfb 100%);
}
.hero::before {
  position: absolute;
  top: -12rem;
  left: -14rem;
  width: 32rem;
  height: 32rem;
  border: 1px solid rgba(20, 95, 120, .08);
  border-radius: 50%;
  content: "";
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr); align-items: center; gap: clamp(3rem, 7vw, 6.5rem); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--brand-primary);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero .eyebrow { display: flex; align-items: center; gap: .55rem; }
.hero .eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 0 0 5px rgba(34, 165, 133, .12);
}
.hero h1 {
  max-width: 10ch;
  margin: 0 0 1.4rem;
  font-size: clamp(3.2rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .98;
}
.hero p.lede { max-width: 55ch; margin: 0 0 1.8rem; color: var(--ink-soft); font-size: 1.12rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-actions .btn { min-width: 136px; }
.hero-note { display: flex; align-items: center; gap: .45rem; margin: 1.1rem 0 0; color: #567078; font-size: .82rem; }
.hero-note span { color: var(--brand-accent); font-weight: 900; }

.journey-shell { position: relative; padding: 1.2rem; }
.journey-glow {
  position: absolute;
  inset: 6% -3% -2% 8%;
  border-radius: 32px;
  background: linear-gradient(145deg, var(--brand-primary), #0f4052);
  box-shadow: var(--shadow-lg);
  transform: rotate(3deg);
}
.journey-card {
  position: relative;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-lg);
}
.journey-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-kicker { display: block; margin-bottom: .18rem; color: var(--ink-soft); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.journey-card h2 { margin: 0; font-size: 1.45rem; line-height: 1.2; }
.status-pill { padding: .35rem .7rem; border-radius: 999px; background: #e2f7ed; color: #147052; font-size: .72rem; font-weight: 800; }
.unit-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 1rem 0 1.3rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .8rem; }
.journey-list { position: relative; display: grid; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.journey-list::before { position: absolute; top: 1.15rem; bottom: 1.2rem; left: 1rem; width: 2px; background: #d6e6e3; content: ""; }
.journey-list li { position: relative; display: grid; grid-template-columns: 2rem 1fr; align-items: center; gap: .85rem; min-height: 4.1rem; }
.journey-icon { position: relative; z-index: 1; display: grid; width: 2rem; height: 2rem; place-items: center; border: 4px solid #fff; border-radius: 50%; background: var(--brand-accent); color: #fff; font-size: .68rem; font-weight: 900; box-shadow: 0 0 0 1px #cae4dd; }
.is-current .journey-icon { background: var(--brand-primary); }
.journey-list strong, .journey-list small { display: block; }
.journey-list strong { font-size: .88rem; }
.journey-list small { margin-top: .1rem; color: var(--ink-soft); font-size: .75rem; }

.trust-strip { border-block: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { padding: 1.45rem 1.5rem; border-left: 1px solid var(--line); }
.trust-grid > div:last-child { border-right: 1px solid var(--line); }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { margin-bottom: .18rem; color: var(--brand-dark); font-size: .85rem; }
.trust-grid span { color: var(--ink-soft); font-size: .75rem; }

.benefits { padding: 6rem 0; }
.section-heading { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.035em; line-height: 1.08; }
.section-heading > p:last-child { max-width: 55ch; margin: 1rem auto 0; color: var(--ink-soft); }
.benefit-scroll-cue { display: none; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.features:focus-visible { outline: 3px solid rgba(34, 165, 133, .35); outline-offset: 4px; }
.feature { padding: 1.7rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-3px); border-color: #c1d9d8; box-shadow: var(--shadow-sm); }
.feature-icon { display: grid; width: 42px; height: 42px; margin-bottom: 1.15rem; place-items: center; border-radius: 11px; background: var(--brand-wash); color: var(--brand-primary); }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 .45rem; font-size: 1rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.65; }

.closing-section { padding: 0 0 6rem; }
.closing-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3rem;
  overflow: hidden;
  padding: 3.2rem;
  border-radius: 24px;
  background: var(--brand-dark);
  color: #fff;
}
.closing-card::after { position: absolute; right: -8rem; bottom: -10rem; width: 23rem; height: 23rem; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; content: ""; }
.closing-card > * { position: relative; z-index: 1; }
.closing-card .eyebrow { color: #64d6b8; }
.closing-card h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.035em; line-height: 1.1; }
.closing-card p:last-child { max-width: 55ch; margin: .8rem 0 0; color: #bed0d5; }
.closing-actions { display: flex; align-items: center; gap: 1.2rem; }
.text-link { color: #fff; font-size: .9rem; font-weight: 750; text-underline-offset: 4px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; padding: 1rem 0 3rem; }
.plan { display: flex; flex-direction: column; padding: 1.4rem; border: 1px solid var(--line); border-radius: 12px; }
.plan.featured { border-color: var(--brand-accent); box-shadow: 0 0 0 1px var(--brand-accent); }
.plan h3 { margin: 0 0 .25rem; }
.plan .price { margin: .5rem 0; font-size: 1.8rem; font-weight: 700; }
.plan .price small { color: var(--ink-soft); font-size: .85rem; font-weight: 400; }
.plan ul { margin: 1rem 0; padding: 0; color: var(--ink-soft); font-size: .9rem; list-style: none; }
.plan li { position: relative; padding: .25rem 0 .25rem 1.2rem; }
.plan li::before { position: absolute; left: 0; color: var(--brand-accent); font-weight: 700; content: "✓"; }
.plan > .btn { margin-top: auto; }

.panel { max-width: 460px; margin: 3rem auto; padding: 2rem; border: 1px solid var(--line); border-radius: 12px; }
.panel.wide { max-width: 620px; }
.panel h1 { margin-bottom: .35rem; font-size: 1.5rem; }
.panel .lede { margin-bottom: 1.5rem; color: var(--ink-soft); font-size: .93rem; }

.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .3rem; color: var(--ink-soft); font-size: .8rem; font-weight: 600; }
.field input, .field select { width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); font: inherit; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand-accent); box-shadow: 0 0 0 3px rgba(44,125,160,.16); }
.field .help { margin-top: .25rem; color: var(--ink-soft); font-size: .78rem; }
.field .errors { margin-top: .25rem; color: #b3261e; font-size: .8rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.addr-preview { margin-top: .3rem; color: var(--ink-soft); font-size: .82rem; }
.addr-preview strong { color: var(--brand-primary); }
.addr-ok { color: #1e7a45; }
.addr-bad { color: #b3261e; }
.form-errors { margin-bottom: 1rem; padding: .7rem .9rem; border: 1px solid #f0c7c4; border-radius: 7px; background: #fbeceb; color: #7e1b15; font-size: .88rem; }

.site-foot { padding: 2rem 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .82rem; }
.foot-inner { display: flex; align-items: center; }
.foot-inner p { margin: 0; }
.foot-inner strong { color: var(--ink); }

.notice { max-width: 520px; margin: 5rem auto; padding: 0 1.25rem; text-align: center; }
.notice h1 { font-size: 1.6rem; }
.notice p { color: var(--ink-soft); }

/* Show/hide on password fields. Same control as the workspace; see
   static/js/password.js for why it exists. */
.password-field { position: relative; display: block; }
.password-field input { padding-right: 4.2rem; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: .35rem;
  min-height: 32px;
  padding: .35rem .5rem;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--brand-primary);
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
  cursor: pointer;
}
.password-toggle:hover { background: rgba(0, 0, 0, .05); }

@media (max-width: 860px) {
  .hero { padding-top: 4.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-copy { max-width: 680px; }
  .journey-shell { width: min(100%, 560px); margin-inline: auto; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid > div { border-bottom: 1px solid var(--line); }
  .trust-grid > div:nth-child(2n) { border-right: 1px solid var(--line); }
  .trust-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
  .closing-card { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 2rem, 1120px); }
  .site-head .wrap { min-height: 64px; gap: .75rem; }
  .logo img { height: 25px; }
  .site-head nav { gap: .7rem; }
  .site-head nav > a:not(.btn) { font-size: .84rem; }
  .nav-pricing { display: none; }
  .nav-cta { min-height: 40px; padding: .55rem .82rem; border-radius: 8px; font-size: .82rem; }

  .hero { padding: 3.4rem 0 3.7rem; }
  .hero-grid { gap: 2.8rem; }
  .hero h1 { max-width: 11ch; margin-bottom: 1.1rem; font-size: clamp(2.55rem, 12.5vw, 3.6rem); }
  .hero p.lede { margin-bottom: 1.5rem; font-size: 1rem; line-height: 1.62; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { min-width: 0; padding-inline: .85rem; }
  .journey-shell { padding: .55rem; }
  .journey-card { padding: 1.25rem; border-radius: 18px; }
  .journey-glow { inset: 4% -1% -1% 4%; border-radius: 22px; transform: rotate(2deg); }
  .journey-list li { min-height: 3.75rem; }

  .trust-grid > div { padding: 1.15rem 1rem; }
  .trust-grid strong { font-size: .78rem; }
  .trust-grid span { font-size: .7rem; line-height: 1.4; }

  .benefits { padding: 4.5rem 0; }
  .section-heading { margin-bottom: 2rem; text-align: left; }
  .section-heading h2 { font-size: 2rem; }
  .section-heading > p:last-child { margin-left: 0; }
  .benefit-scroll-cue {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -.55rem 0 .7rem;
    color: var(--brand-primary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .benefit-scroll-cue span { font-size: 1rem; }
  .features {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(82vw, 310px);
    gap: .85rem;
    width: calc(100% + (100vw - 100%) / 2);
    overflow-x: auto;
    padding: .2rem 1rem 1rem 0;
    scroll-padding-inline-start: 0;
    scroll-snap-type: inline mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .features::-webkit-scrollbar { display: none; }
  .feature { padding: 1.4rem; scroll-snap-align: start; }

  .closing-section { padding-bottom: 4rem; }
  .closing-card { padding: 2rem 1.4rem; border-radius: 18px; }
  .closing-actions { flex-wrap: wrap; }
  .closing-actions .btn { width: 100%; }

  .field-row { grid-template-columns: 1fr; }
  .panel { margin: 2rem auto; padding: 1.3rem; }
}

@media (max-width: 360px) {
  .wrap { width: min(100% - 1.5rem, 1120px); }
  .site-head nav { gap: .5rem; }
  .hero-actions { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div,
  .trust-grid > div:nth-child(2n),
  .trust-grid > div:nth-last-child(-n+2) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .trust-grid > div:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .feature { transition: none; }
}
