/**
 * @file brand-refresh — Shared editorial styling and the product-led homepage.
 * @module website/assets
 */

:root {
  --max-width: 1184px;
  --muted: #616572;
  --line: #e2e2df;
  --shadow: 0 2px 5px #1e242e04, 0 16px 48px #1e242e0b;
}

::selection { background: #dfe3ff; color: #1e242e; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 5px; }
html { scroll-padding-top: 96px; }
.site-header { background: rgb(250 249 246 / 96%); }
.header-inner { height: 80px; width: min(100% - 64px, var(--max-width)); }
.brand-icon { width: 32px; height: 32px; }
.brand-word { font-size: 19px; letter-spacing: -.6px; font-weight: 650; }
.site-nav { font-size: 13px; font-weight: 500; gap: 30px; }
.site-nav a { padding-block: 7px; }
.site-nav a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.button { border-radius: 6px; box-shadow: none; font-size: 14px; font-weight: 600; min-height: 48px; padding: 12px 22px; }
.button-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.button-primary:hover, .button-primary:focus-visible { background: #343d4d; border-color: #343d4d; color: #fff; }
.button-secondary { background: transparent; border-color: #cbcdd0; }
.button-secondary:hover { background: #f0efec; border-color: var(--ink); }
.google-sign-in { display: inline-block; width: fit-content; max-width: 100%; border-radius: 4px; line-height: 0; }
.google-sign-in[hidden] { display: none; }
.google-sign-in img { display: block; width: 180px; height: 40px; max-width: 100%; }
.google-sign-in:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.button-small { min-height: 40px; padding: 8px 16px; font-size: 12px; }
.section-label, .eyebrow { font-size: 11px; letter-spacing: .12em; font-weight: 600; }
.section-title { letter-spacing: -.035em; line-height: 1.12; }
.section-copy { line-height: 1.75; }
.site-footer { padding-top: 58px; padding-bottom: 26px; }
.footer-grid { gap: 48px; }
.site-footer h2 { font-size: 22px; letter-spacing: -.6px; }
.site-footer h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .65; }
.site-footer a, .site-footer p { font-size: 13px; }

.home-shell { width: min(100% - 64px, var(--max-width)); margin-inline: auto; }
.home-kicker { color: var(--primary); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.home-intro { text-align: center; padding: 77px 0 0; }
.home-opening { display: grid; grid-template-columns: .95fr 1.1fr; gap: 44px; align-items: center; text-align: left; }
.home-opening .home-kicker { font-size: 10px; letter-spacing: .08em; }
.home-art { margin: 0 -20px 0 0; }
.home-art img { width: 100%; height: auto; border-radius: 3px; }
.home-intro h1 { margin: 22px auto 0; font-size: clamp(50px, 6vw, 86px); font-weight: 500; letter-spacing: -.065em; line-height: 1.04; max-width: 980px; }
.home-intro h1 span { display: block; color: var(--primary); }
.home-lead { margin: 26px auto 0; max-width: 610px; color: var(--muted); font-size: 18px; line-height: 1.65; text-wrap: pretty; }
.home-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.home-platforms { color: var(--muted); font-size: 11px; letter-spacing: .015em; margin-top: 17px; }
.home-platforms span + span::before { content: "·"; margin: 0 10px; }
.home-opening h1 { font-size: clamp(44px, 4.35vw, 63px); letter-spacing: -.06em; margin: 20px 0 0; }
.home-opening .home-lead { margin-left: 0; font-size: 16px; max-width: 435px; }
.home-opening .home-actions { justify-content: flex-start; }
.home-demo { margin: 47px 0 0; scroll-margin-top: 100px; }
.home-demo .hero-shot-frame { border: 1px solid #c8cbd1; border-radius: 9px; box-shadow: 0 3px 8px #1e242e08, 0 25px 70px -20px #1e242e30; }
.home-demo figcaption { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 15px 0; color: var(--muted); font-size: 11px; text-align: left; }
.home-demo figcaption a { color: var(--ink); white-space: nowrap; border-bottom: 1px solid #bec2c9; }
.home-demo .hero-shot-frame video { display: block; aspect-ratio: 10 / 7; object-fit: contain; }
.home-demo .hero-shot-frame .hero-demo-poster { display: none; }
.home-essentials { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; padding-bottom: 78px; gap: 48px; }
.home-intro .home-essentials { margin-top: 70px; text-align: left; }
.home-essential { border-top: 1px solid #ced0d3; padding-top: 20px; }
.home-essential h2 { font-size: 17px; font-weight: 600; letter-spacing: -.035em; }
.home-essential p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.75; max-width: 320px; }
.home-essential a { display: inline-block; margin-top: 15px; color: var(--primary); font-size: 12px; font-weight: 600; }
.home-chapter { padding: 96px 0; border-top: 1px solid var(--line); }
.home-chapter-white { background: #fff; }
.home-chapter-heading { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: end; margin-bottom: 43px; }
.home-chapter h2 { font-size: clamp(32px, 3.5vw, 49px); line-height: 1.12; letter-spacing: -.045em; font-weight: 500; margin-top: 17px; }
.home-chapter-heading > p { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 475px; padding-bottom: 4px; }
.home-product { margin: 0; overflow: hidden; background: var(--bg); border: 1px solid #d4d6da; border-radius: 8px; }
.home-product img { width: 100%; height: auto; }
.home-workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 34px; }
.home-workflow article { display: grid; grid-template-columns: 25px 1fr; column-gap: 12px; align-content: start; }
.home-workflow .step-number { grid-row: span 2; font-family: ui-monospace, monospace; font-size: 11px; color: var(--primary); padding-top: 5px; }
.home-workflow h3 { font-size: 15px; font-weight: 600; }
.home-workflow p { font-size: 13px; color: var(--muted); margin-top: 7px; line-height: 1.75; }
.home-migration { display: grid; grid-template-columns: .85fr 1.25fr; gap: 85px; align-items: center; }
.home-migration-copy > p:not(.home-kicker) { margin-top: 22px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.home-inline-link { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; margin-top: 25px; border-bottom: 1px solid var(--ink); padding-bottom: 5px; }
.home-proof { margin: 0; padding: 24px; background: #efeeeb; border: 1px solid var(--line); border-radius: 8px; }
.home-proof-image { display: block; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid #d9dadc; background: #fff; }
.home-proof img { width: 100%; height: auto; }
.home-proof figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; font-size: 11px; color: var(--muted); }
.home-proof figcaption strong { color: var(--ink); font-weight: 500; }
.home-footnote { display: block; font-size: 11px; color: var(--muted); margin-top: 17px; line-height: 1.7; }
.home-foundation { display: grid; grid-template-columns: 1fr 1fr; column-gap: 120px; }
.home-foundation-copy > p:not(.home-kicker) { margin-top: 22px; font-size: 16px; color: var(--muted); line-height: 1.8; }
.home-foundation-list { display: grid; }
.home-foundation-list article { padding: 26px 0; border-bottom: 1px solid var(--line); }
.home-foundation-list article:first-child { padding-top: 2px; }
.home-foundation-list h3 { font-size: 17px; letter-spacing: -.025em; font-weight: 550; }
.home-foundation-list p { font-size: 14px; line-height: 1.75; color: var(--muted); margin-top: 9px; }
.home-foundation-list a { color: var(--primary); }
.home-close { text-align: center; padding: 95px 0 88px; background: var(--ink); color: var(--bg); }
.home-close h2 { font-size: clamp(36px, 4.5vw, 60px); letter-spacing: -.055em; font-weight: 500; line-height: 1.13; }
.home-close p { margin: 22px auto 26px; max-width: 510px; font-size: 15px; line-height: 1.8; color: #bdc1cb; }
.home-close .button { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.home-close .button:hover { background: #fff; }
.home-close .home-close-secondary { display: inline-block; margin-left: 24px; color: #e2e4ec; border-bottom: 1px solid #727885; font-size: 13px; }
.home-close + .site-footer { border-color: #ffffff15; }

@media (max-width: 900px) {
  .home-opening { gap: 25px; }
  .home-art { margin-right: 0; }
  .home-chapter-heading { gap: 40px; }
  .home-migration { gap: 40px; grid-template-columns: 1fr 1.1fr; }
  .home-foundation { gap: 50px; }
  .home-essentials, .home-workflow { gap: 24px; }
}
@media (max-width: 760px) {
  .header-inner { height: 68px; width: calc(100% - 36px); }
  .site-nav { gap: 3px; font-size: 15px; }
  .site-header[data-open="true"] .site-nav { top: 68px; }
  .brand-word { font-size: 17px; }
  .header-cta { padding-inline: 12px; }
  .home-shell { width: calc(100% - 36px); }
  .home-intro { padding-top: 50px; }
  .home-opening { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .home-opening .home-lead { margin-inline: auto; }
  .home-opening .home-actions { justify-content: center; }
  .home-opening h1 { font-size: clamp(42px, 9vw, 66px); }
  .home-art { max-width: 580px; margin-inline: auto; }
  .home-intro .home-essentials { margin-top: 38px; }
  .home-intro h1 { font-size: clamp(42px, 9vw, 66px); letter-spacing: -.06em; }
  .home-lead { font-size: 16px; max-width: 450px; margin-top: 23px; }
  .home-actions { gap: 10px; margin-top: 24px; }
  .home-platforms { font-size: 10px; }
  .home-platforms span + span::before { margin: 0 5px; }
  .home-demo { margin-top: 34px; }
  .home-demo figcaption { font-size: 10px; align-items: start; }
  .home-demo figcaption span { max-width: 230px; }
  .home-essentials { grid-template-columns: 1fr; gap: 23px; margin-top: 31px; padding-bottom: 50px; }
  .home-essential { padding-top: 18px; }
  .home-essential p { max-width: 100%; }
  .home-chapter { padding: 55px 0; }
  .home-chapter h2 { font-size: 34px; }
  .home-chapter-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 27px; }
  .home-chapter-heading > p { font-size: 15px; }
  .home-workflow { grid-template-columns: 1fr; gap: 25px; margin-top: 27px; }
  .home-migration { grid-template-columns: 1fr; gap: 32px; }
  .home-proof { padding: 16px; }
  .home-foundation { grid-template-columns: 1fr; gap: 36px; }
  .home-close { padding: 64px 0; }
  .home-close h2 { font-size: 40px; }
  .home-close .home-close-secondary { margin-left: 18px; }
  .footer-grid { gap: 32px; }
}
@media (max-width: 380px) {
  .home-intro h1 { font-size: clamp(32px, 10.5vw, 40px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
