/* ===== AI Scan — Landing page (UI kit) layout =============================
   Page-level composition only. All colour/type/space via design tokens.
   ========================================================================== */

/* Smooth cross-page fade (supporting browsers) + smooth in-page scrolling */
@view-transition { navigation: auto; }

@keyframes lsPageIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  body { animation: lsPageIn 0.32s ease both; }
}

/* Reserve the sticky-nav height so React mounting it causes no layout snap */
#ls-nav { min-height: 68px; }

/* Anchored sections clear the sticky nav when scrolled to */
.ls-hero, .ls-section { scroll-margin-top: 84px; }
.ls-anchor { display: block; scroll-margin-top: 84px; }

.ls-wrap { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--gutter); }
.ls-section { padding-block: var(--section-padding-y); }
.ls-band { background: var(--color-grey-100); }
.ls-h2 { font-size: var(--text-display-2); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); line-height: var(--leading-snug); }

/* Carbon (IBM) icon primitive — inline SVG (injected) that inherits currentColor */
.cds-icon { display: inline-block; width: 1em; height: 1em; flex: none; fill: currentColor; vertical-align: middle; }
.cds-icon path, .cds-icon polygon, .cds-icon circle, .cds-icon rect { fill: currentColor; }

/* ---- Nav ---- */
.ls-nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border-subtle); }
.ls-nav__inner { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter); height: 68px; display: flex; align-items: center; gap: var(--space-6); }
.ls-wordmark { display: inline-flex; text-decoration: none; }
.ls-wordmark__img { display: block; height: 26px; width: auto; }
.ls-footer__brand .ls-wordmark__img { height: 30px; }
.ls-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; }

/* Skip link — hidden until keyboard-focused, then slides into the top-left. */
.ls-skip { position: fixed; left: 16px; top: 16px; z-index: 1000; background: var(--color-blue); color: var(--color-white); font-size: var(--text-small); font-weight: var(--weight-semibold); padding: 0.6rem 1rem; border-radius: var(--radius-sm); text-decoration: none; transform: translateY(-150%); transition: transform 0.16s ease; }
.ls-skip:focus { transform: translateY(0); outline: 2px solid var(--color-white); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ls-skip { transition: none; } }

/* ---- CTA modal ---- */
.ls-modal-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(10, 10, 10, 0.45); opacity: 0; transition: opacity 0.18s ease; }
.ls-modal-overlay.is-open { opacity: 1; }
.ls-modal { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 420px; max-width: 100%; max-height: calc(100vh - 48px); overflow-y: auto; padding: 26px 28px; transform: translateY(8px); transition: transform 0.18s ease; }
.ls-modal-overlay.is-open .ls-modal { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .ls-modal-overlay, .ls-modal { transition: none; } }

.ls-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ls-modal__title { font-size: var(--text-h4); font-weight: var(--weight-semibold); }
.ls-modal__close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: -6px -8px 0 0; border: 0; background: transparent; color: var(--text-tertiary); cursor: pointer; border-radius: var(--radius-sm); transition: color 0.16s ease, background-color 0.16s ease; }
.ls-modal__close:hover { color: var(--text-primary); background: var(--surface-sunken); }
.ls-modal__close:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.ls-modal__close svg { width: 20px; height: 20px; }
.ls-modal__sub { font-size: var(--text-small); color: var(--text-secondary); line-height: var(--leading-relaxed); margin: 6px 0 20px; }

.ls-field { display: block; margin-bottom: 14px; }
.ls-field__label { display: block; font-size: var(--text-small); font-weight: var(--weight-medium); color: var(--text-primary); margin-bottom: 6px; }
.ls-field__req { color: var(--text-accent); }
.ls-field__control { font-family: var(--font-sans); font-size: var(--text-body); color: var(--text-primary); background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 0.6rem 0.75rem; width: 100%; transition: border-color 0.16s ease, box-shadow 0.16s ease; }
.ls-field__control::placeholder { color: var(--text-tertiary); }
.ls-field__control:hover { border-color: var(--text-tertiary); }
.ls-field__control:focus { outline: none; border-color: var(--border-accent); box-shadow: var(--shadow-focus); }
select.ls-field__control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235A5C63' stroke-width='1.4' d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.7rem center; padding-right: 2rem; }
textarea.ls-field__control { resize: vertical; min-height: 64px; }

.ls-modal__submit { width: 100%; margin-top: 4px; }
.ls-modal__privacy { margin: 14px 0 0; font-size: var(--text-caption); color: var(--text-tertiary); line-height: 1.5; text-align: center; }
.ls-modal__privacy a { color: var(--text-accent); text-decoration: underline; text-underline-offset: 2px; }

/* Honeypot — off-screen, never shown to people or AT */
.ls-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ls-modal__success { text-align: center; padding: 10px 0 4px; }
.ls-modal__success:focus { outline: none; }
.ls-modal__successicon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--status-positive-bg); color: var(--status-positive-ink); margin-bottom: 14px; }
.ls-modal__successicon svg { width: 26px; height: 26px; }
.ls-modal__successtitle { font-size: var(--text-h5); font-weight: var(--weight-medium); color: var(--text-primary); line-height: var(--leading-snug); }
.ls-modal__successbtn { margin-top: 18px; }
.ls-wordmark__mark { font-family: var(--font-mono); font-weight: var(--weight-medium); font-size: 16px; letter-spacing: var(--tracking-wider); color: var(--color-white); background: var(--color-blue); padding: 5px 9px; border-radius: var(--radius-xs); }
.ls-nav__links { display: flex; gap: var(--space-5); margin-left: var(--space-4); }
.ls-nav__links a { color: var(--text-secondary); font-size: var(--text-small); font-weight: var(--weight-medium); }
.ls-nav__links a:hover { color: var(--text-primary); }
.ls-nav__actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }
.ls-nav__login { color: var(--text-secondary); font-size: var(--text-small); font-weight: var(--weight-medium); }
.ls-nav__login:hover { color: var(--text-primary); }

/* Mobile menu toggle + drawer (hidden on desktop) */
.ls-nav__toggle { display: none; margin-left: auto; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: #fff; color: var(--text-primary); cursor: pointer; transition: border-color .16s ease, background-color .16s ease; }
.ls-nav__toggle:hover { border-color: var(--color-black); }
.ls-nav__toggle .cds-icon { width: 22px; height: 22px; }
.ls-nav__drawer { display: none; overflow: hidden; border-top: 1px solid var(--border-subtle); background: rgba(255,255,255,.98); backdrop-filter: saturate(180%) blur(10px); }
.ls-nav__drawer.is-open { display: block; }
.ls-nav__drawerlinks { display: flex; flex-direction: column; padding: var(--space-3) var(--gutter); }
.ls-nav__drawerlinks a { padding: var(--space-3) 0; font-size: var(--text-h5); font-weight: var(--weight-medium); color: var(--text-primary); border-bottom: 1px solid var(--color-grey-200); }
.ls-nav__drawerlinks a:last-child { border-bottom: 0; }
.ls-nav__draweractions { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4) var(--gutter) var(--space-6); }
.ls-nav__draweractions .aisn-btn { width: 100%; }
.ls-nav__drawerlogin { text-align: center; padding-top: var(--space-1); font-size: var(--text-body); font-weight: var(--weight-medium); color: var(--text-secondary); }

/* ---- Hero ---- */
.ls-hero { padding: clamp(3rem, 1.5rem + 6vw, 6rem) 0 var(--space-9); }
.ls-hero__inner { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.ls-hero__h1 { font-size: var(--text-display-1); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); margin: var(--space-4) 0 0; }
.ls-hero__sub { font-size: var(--text-lead); line-height: var(--leading-normal); color: var(--text-secondary); margin-top: var(--space-5); max-width: 30ch; }
.ls-hero__cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-6); max-width: 460px; }
.ls-hero__cta .aisn-btn { width: 100%; }
.ls-hero__meta { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-6); font-size: var(--text-small); color: var(--text-tertiary); }
.ls-hero__meta strong { color: var(--text-primary); font-weight: var(--weight-semibold); }
.ls-hero__sep { width: 1px; height: 16px; background: var(--border-subtle); }

/* ---- Report mock ---- */
.ls-report { border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-md); }
.ls-report__chrome { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--border-subtle); background: var(--color-grey-100); }
.ls-report__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-grey-300); }
.ls-report__body { display: grid; grid-template-columns: 168px 1fr; min-height: 320px; }
.ls-report__nav { border-right: 1px solid var(--border-subtle); padding: 16px 12px; background: #fff; }
.ls-report__navlabel { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); padding: 0 8px 10px; }
.ls-report__navitem { display: flex; align-items: baseline; gap: 8px; padding: 8px; border-radius: var(--radius-sm); font-size: 12.5px; color: var(--text-secondary); }
.ls-report__navitem.is-active { background: var(--surface-selected); color: var(--text-accent); font-weight: var(--weight-medium); }
.ls-report__navnum { font-family: var(--font-mono); font-size: 10px; color: var(--text-tertiary); }
.ls-report__navitem.is-active .ls-report__navnum { color: var(--text-accent); }
.ls-report__main { padding: 20px 22px; }
.ls-report__crumb { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--text-accent); text-transform: uppercase; }
.ls-report__title { font-size: var(--text-h5); font-weight: var(--weight-semibold); margin: 8px 0 16px; }
.ls-report__list { display: flex; flex-direction: column; }
.ls-proc { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--color-grey-200); }
.ls-proc:first-child { border-top: 0; }
.ls-proc__name { font-size: 14px; font-weight: var(--weight-medium); }
.ls-proc__note { font-size: 12.5px; color: var(--text-tertiary); margin-top: 2px; }
.ls-proc__meta { display: flex; align-items: center; gap: 12px; flex: none; }
.ls-report--compact .ls-report__body { min-height: 0; }

/* ---- Problem ---- */
.ls-problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.ls-prose p { color: var(--text-secondary); font-size: var(--text-lead); line-height: var(--leading-relaxed); margin-bottom: var(--space-4); }
.ls-prose__lead { color: var(--text-primary) !important; font-weight: var(--weight-medium); }

/* ---- Section heads ---- */
.ls-section__head { max-width: var(--container-text); margin-bottom: var(--space-7); }
.ls-section__head .ls-h2 { margin-top: var(--space-3); }
.ls-section__foot { margin-top: var(--space-7); }

/* ---- How it works (steps) ---- */
/* Cards sit above large, faint sequence arrows that tuck partly behind them. */
.ls-steps { display: flex; align-items: stretch; gap: 0; position: relative; }
.ls-step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); position: relative; z-index: 1; }
.ls-steparrow { flex: 0 0 var(--space-7); align-self: stretch; position: relative; z-index: 0; display: flex; align-items: center; justify-content: center; }
.ls-steparrow::before { content: ""; position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px solid var(--color-blue); opacity: 0.08; }
.ls-steparrow .cds-icon { position: relative; width: 64px; height: 64px; color: var(--color-blue); opacity: 0.05; }
.ls-step__h { font-size: var(--text-h4); font-weight: var(--weight-semibold); margin-top: var(--space-2); }
.ls-step__b { color: var(--text-secondary); line-height: var(--leading-relaxed); }

/* ---- Why it works ---- */
.ls-cols3 { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(2rem, 1.5rem + 2.5vw, 4rem); row-gap: var(--space-7); }
.ls-why__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--surface-selected); color: var(--text-accent); margin-bottom: var(--space-4); }
.ls-why__icon .cds-icon { width: 24px; height: 24px; }
.ls-why__h { font-size: var(--text-h4); font-weight: var(--weight-semibold); }
.ls-why__b { color: var(--text-secondary); line-height: var(--leading-relaxed); margin-top: var(--space-2); }

/* ---- What you get ---- */
.ls-get__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.ls-get__lead { font-size: var(--text-lead); color: var(--text-primary); font-weight: var(--weight-medium); margin-top: var(--space-4); }
.ls-get__foot { color: var(--text-secondary); margin: var(--space-4) 0 var(--space-6); line-height: var(--leading-relaxed); }
.ls-get__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ls-get__item { display: flex; gap: var(--space-4); padding: var(--space-5) 0; border-top: 1px solid var(--border-subtle); }
.ls-get__item:first-child { border-top: 0; padding-top: 0; }
.ls-get__h { font-size: var(--text-h5); font-weight: var(--weight-semibold); }
.ls-get__b { color: var(--text-secondary); line-height: var(--leading-relaxed); margin-top: 4px; }

/* ---- FAQ ---- */
.ls-faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.ls-faq__sub { color: var(--text-secondary); margin-top: var(--space-4); }
.ls-faq__head { position: sticky; top: 96px; }

/* ---- Final CTA ---- */
.ls-final { background: var(--color-black); color: var(--color-white); }
.ls-final__inner { text-align: center; max-width: 720px; margin: 0 auto; }
.ls-final__h { font-size: var(--text-display-2); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); color: var(--color-white); }
.ls-final__sub { font-size: var(--text-lead); color: rgba(255,255,255,.72); margin-top: var(--space-4); }
.ls-final__cta { margin-top: var(--space-6); display: flex; justify-content: center; }
.ls-final__note { margin-top: var(--space-5); font-size: var(--text-small); color: rgba(255,255,255,.6); }
.ls-final__note a, .ls-faq__sub a { color: var(--color-white); text-decoration: underline; text-underline-offset: 3px; }
.ls-faq__sub a { color: var(--text-accent); }

/* ---- Footer ---- */
.ls-footer { background: var(--color-grey-100); border-top: 1px solid var(--border-subtle); padding-top: var(--space-9); }
.ls-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-6); padding-bottom: var(--space-8); }
.ls-footer__tag { color: var(--text-secondary); margin-top: var(--space-4); max-width: 28ch; }
.ls-footer__by { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--text-tertiary); margin-top: var(--space-2); }
.ls-footer__colh { font-size: var(--text-small); font-weight: var(--weight-semibold); margin-bottom: var(--space-3); }
.ls-footer__col { display: flex; flex-direction: column; gap: var(--space-2); }
.ls-footer__col a { color: var(--text-secondary); font-size: var(--text-small); display: inline-flex; align-items: center; gap: 5px; }
.ls-footer__col a:hover { color: var(--text-primary); }
.ls-footer__col a .cds-icon { width: 13px; height: 13px; }
.ls-footer__legal { padding: var(--space-5) 0; border-top: 1px solid var(--border-subtle); font-size: var(--text-caption); color: var(--text-tertiary); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .ls-hero__inner, .ls-problem__grid, .ls-get__grid, .ls-faq__grid { grid-template-columns: 1fr; }
  .ls-cols3 { grid-template-columns: 1fr; }
  .ls-steps { flex-direction: column; }
  .ls-steparrow { flex-basis: var(--space-7); align-self: stretch; }
  .ls-steparrow .cds-icon { transform: rotate(90deg); }
  .ls-faq__head { position: static; }
  .ls-nav__links, .ls-nav__actions { display: none; }
  .ls-nav__toggle { display: inline-flex; }
  .ls-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  /* Report mock — stack doc-nav above content, relax fixed widths */
  .ls-report__body { grid-template-columns: 1fr; min-height: 0; }
  .ls-report__nav { border-right: 0; border-bottom: 1px solid var(--border-subtle); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 16px 14px; }
  .ls-report__navlabel { grid-column: 1 / -1; padding: 0 2px 8px; }
  .ls-report__navitem { padding: 8px; }
  .ls-report__main { padding: 20px 16px; }
  .ls-report__title { font-size: var(--text-body); margin: 8px 0 6px; }
  .ls-proc { flex-wrap: wrap; gap: 10px 12px; padding: 16px 0; }
  .ls-proc__meta { width: 100%; justify-content: flex-start; gap: 14px; }
}

@media (max-width: 560px) {
  .ls-footer__grid { grid-template-columns: 1fr; }
}
