/* ==========================================================================
   LaundryOS marketing site — design system
   Look & feel modeled on monday.com: Figtree type, white canvas, navy ink,
   purple pill CTAs, vivid per-app accents, big friendly radii.
   ========================================================================== */

:root {
  --ink: #181b34;          /* headline navy */
  --body: #323338;         /* body text */
  --muted: #676879;        /* secondary text */
  --faint: #9699a6;
  --line: #e6e9ef;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --primary: #6161ff;      /* CTA purple */
  --primary-hover: #5151d5;
  --footer: #181b34;
  --radius-card: 16px;
  --radius-tile: 12px;
  --shadow-sm: 0 4px 8px rgba(29, 140, 242, .04), 0 1px 3px rgba(24, 27, 52, .08);
  --shadow-md: 0 6px 20px rgba(24, 27, 52, .10);
  --shadow-lg: 0 15px 50px rgba(24, 27, 52, .16);
  /* per-page accent — overridden on app pages */
  --accent: #6161ff;
  --g1: #6161ff;
  --g2: #00c875;
  --accent-soft: rgba(97, 97, 255, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Figtree', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -1.5px; font-weight: 600; }
h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -1px; font-weight: 600; }
h3 { font-size: 22px; }
p  { margin: 0 0 16px; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* --------------------------------------------------------------------------
   Buttons — monday-style pills
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 40px;
  padding: 13px 26px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(.9); }
.btn-outline { background: transparent; color: var(--ink); border-color: #c3c6d4; }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); padding: 13px 16px; }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e9eaf5; }
.btn-lg { padding: 16px 32px; font-size: 18px; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.cta-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 14px;
}
.cta-note .sep { color: var(--faint); margin: 0 6px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 12px rgba(24,27,52,.05); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 10px;
  color: var(--ink);
}
.brand-mark { grid-row: 1; }
.brand-name { grid-column: 2; grid-row: 1; font-size: 22px; font-weight: 700; letter-spacing: -.5px; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 30px; width: auto; max-width: none; flex: none; }
.brand .os {
  background: linear-gradient(100deg, #008ae1, #00ecb0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav > a, .nav-drop > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 0;
  background: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
}
.main-nav > a:hover, .nav-drop > button:hover { background: var(--bg-soft); text-decoration: none; }
.nav-drop { position: relative; }
.nav-drop .chev { transition: transform .15s ease; }
.nav-drop.open .chev { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .login { font-size: 15px; color: var(--ink); padding: 9px 12px; border-radius: 8px; }
.nav-actions .login:hover { background: var(--bg-soft); text-decoration: none; }
.nav-actions .btn { padding: 10px 22px; font-size: 15px; }

/* Apps mega-menu */
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: -16px;
  width: 720px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 18px;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.nav-drop.open .mega { display: grid; }
.mega a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
}
.mega a:hover { background: var(--bg-soft); text-decoration: none; }
.mega img, .mega .mega-ic { width: 30px; height: 30px; flex: none; object-fit: contain; }
.mega b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.mega span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; }

.hamburger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 88px 0 72px;
  text-align: left;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 720px;
  background:
    radial-gradient(580px 320px at 12% 18%, rgba(0, 200, 117, .10), transparent 64%),
    radial-gradient(620px 360px at 88% 12%, rgba(97, 97, 255, .12), transparent 64%),
    radial-gradient(520px 300px at 55% 0%, rgba(252, 21, 99, .07), transparent 64%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 20px; }
.hero .lede {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 36px;
}
/* Top row: text on the left, MacBook shot on the right (vertically centered
   beside the text). The picker sits full-width below this row. */
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.hero-lead { flex: 0 1 560px; max-width: 560px; }
/* The shot is right-aligned and bled out to the viewport's right edge:
   margin-right pulls its box past the container gutter exactly to the edge. */
.hero-figure {
  position: relative;
  flex: 0 0 auto;
  width: min(48vw, 1040px);
  margin-right: calc((100% - 100vw) / 2);
}
.hero-figure .shot { width: 100%; height: auto; display: block; }
/* Phone mockup overlaid on the lower-left of the desktop shot. */
.hero-figure .shot-phone {
  position: absolute;
  left: 4%;
  bottom: 6%;
  width: 23%;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 22px 44px rgba(16, 24, 40, .28));
}
/* Picker spans full width beneath both columns. */
.hero-picker { margin-top: 8px; }
.hero .picker { justify-content: start; }

/* monday-style picker cards */
.picker-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 44px 0 18px;
}
.picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 168px));
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}
.pick {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 14px 14px;
  background: #fff;
  border: 1px solid #d0d4e4;
  border-radius: var(--radius-tile);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.pick:hover { border-color: var(--pc, var(--primary)); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pick .tick {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #c3c6d4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  transition: all .15s ease;
}
.pick.on { border-color: var(--pc, var(--primary)); box-shadow: 0 0 0 1px var(--pc, var(--primary)) inset; }
.pick.on .tick { background: var(--pc, var(--primary)); border-color: var(--pc, var(--primary)); }
.pick img { width: 34px; height: 34px; object-fit: contain; }
.pick b { font-size: 15px; color: var(--ink); font-weight: 600; line-height: 1.25; }
.pick span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */
.truststrip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  text-align: center;
}
.truststrip p { margin: 0; color: var(--muted); font-size: 15px; }
.truststrip b { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head p { font-size: 18px; color: var(--muted); }

/* --------------------------------------------------------------------------
   App cards grid (the centerpiece)
   -------------------------------------------------------------------------- */
/* Cortex spotlight — full-bleed screen recording with the copy overlaid. */
.cortex-stage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);   /* break out of the container to viewport edges */
  margin-bottom: 56px;
  overflow: hidden;
  background: #0b0e23;             /* shows behind the video until it paints */
}
.cortex-video {
  display: block;
  width: 100%;
  height: auto;
}
.cortex-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  /* dark scrim, heaviest on the left where the copy sits, fading to clear */
  background: linear-gradient(90deg,
    rgba(8,10,26,.92) 0%, rgba(8,10,26,.78) 28%,
    rgba(8,10,26,.32) 50%, rgba(8,10,26,0) 70%);
}
.cortex-copy {
  max-width: 560px;
  padding: 0 clamp(24px, 6vw, 104px);
  color: #fff;
}
.cortex-mark {
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 0 18px;
  border-radius: var(--radius-tile);
}
.cortex-copy .eyebrow { color: #57e3e3; }   /* lighter teal — readable on dark */
.cortex-copy h2 {
  color: #fff;
  font-size: clamp(26px, 3.4vw, 40px);
  margin: 6px 0 14px;
}
.cortex-copy p {
  color: rgba(255,255,255,.9);
  font-size: 17px;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
/* Apps slider — horizontal scroll-snap carousel with arrow controls. */
.apps-slider { position: relative; }
.apps-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;                  /* else y computes to auto and traps page scroll */
  overscroll-behavior-x: contain;      /* don't chain horizontal swipes to page navigation */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;               /* Firefox */
  -webkit-overflow-scrolling: touch;
  /* Full-bleed to the viewport so edge-card shadows clip off-screen, not mid-page.
     Side padding re-aligns the first/last card with the 1320px content column;
     vertical padding leaves room for the hover shadow (shadow-lg). */
  width: 100vw;
  margin: 0 0 0 calc(50% - 50vw);
  padding: 28px max(24px, calc(50vw - 636px)) 56px;
  scroll-padding-inline: max(24px, calc(50vw - 636px));
}
.apps-track::-webkit-scrollbar { display: none; }   /* WebKit */
.apps-track:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
/* Large monday-style feature cards; neighbours peek at the row edges. */
.app-slide {
  flex: 0 0 clamp(290px, 33vw, 432px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent) 13%, #fff),
    color-mix(in srgb, var(--accent) 5%, #fff));
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .2s, transform .2s;
}
.app-slide:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.app-slide-copy { padding: 30px 30px 0; }
.app-slide-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 16px;
}
.app-slide-brand img { width: 28px; height: 28px; border-radius: 7px; }
.app-slide h3 {
  font-size: clamp(20px, 1.8vw, 25px);
  line-height: 1.22;
  margin: 0 0 14px;
  color: var(--ink);
}
.app-slide-more { color: var(--accent); font-weight: 600; font-size: 14px; }
.app-slide-shot {
  margin-top: auto;
  padding-left: 0;
  padding-top: 22px;
}
.app-slide-shot img {
  display: block;
  width: 100%;
  margin-left: 0;
}
/* Custom slide art (e.g. the Dispatch table): enlarge and let it bleed/crop
   off the card's right edge (clipped by .app-slide overflow:hidden). */
.app-slide--wide .app-slide-shot img {
  width: 100%;
  max-width: none;
}
.slider-nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .15s, border-color .15s, opacity .15s, transform .1s;
}
.slider-btn:hover:not(:disabled) { background: var(--bg-soft); border-color: var(--faint); }
.slider-btn:active:not(:disabled) { transform: scale(.94); }
.slider-btn:disabled { opacity: .32; cursor: default; box-shadow: none; }
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 24px 22px;
  color: var(--body);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.app-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  opacity: 0;
  transition: opacity .2s ease;
}
.app-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.app-card:hover::before { opacity: 1; }
.app-card img, .app-card .app-ic { width: 44px; height: 44px; object-fit: contain; }
.app-card h3 { margin: 2px 0 0; font-size: 19px; display: flex; align-items: baseline; gap: 8px; }
.app-card h3 small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; }
.app-card p { margin: 0; font-size: 14.5px; color: var(--muted); flex: 1; }
.app-card .more {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--c2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.app-card:hover .more .arrow { transform: translateX(3px); }
.app-card .more .arrow { transition: transform .15s ease; }

/* --------------------------------------------------------------------------
   Split feature rows
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
}
.split.flip .split-copy { order: 2; }
/* Video rows get a larger media column. */
.split.has-media { grid-template-columns: 0.8fr 1.6fr; gap: 48px; }
/* Flipped video rows keep the media on the big side (media left, copy right). */
.split.has-media.flip { grid-template-columns: 1.6fr 0.8fr; }
/* Bleed-right rows: copy on the left, media flush to the viewport's right edge. */
.split.bleed-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}
.split.bleed-right .split-copy { flex: 0 1 480px; max-width: 480px; }
.split.bleed-right > :last-child {
  flex: 0 0 auto;
  width: min(52vw, 920px);
  margin-right: calc((100% - 100vw) / 2);
}
.split.bleed-right > :last-child .shot { width: 100%; height: auto; display: block; }
/* Flipped bleed row: copy on the right, media flush to the viewport's LEFT edge. */
.split.bleed-right.flip > :last-child {
  margin-left: calc((100% - 100vw) / 2);
  margin-right: 0;
}
/* MP4s can't be transparent, so the shell's rounded corners bake onto white —
   round the media element to clip those white corners (harmless on transparent PNGs). */
.split .shot { border-radius: 16px; }
/* Keep bled/full-bleed media from creating a horizontal scrollbar. */
#platform, #apps { overflow-x: clip; }
.split .eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: inline-block;
}
.split h2 { font-size: clamp(26px, 3vw, 38px); }
.split p.sub { font-size: 17px; color: var(--muted); }
.split ul { list-style: none; padding: 0; margin: 22px 0 26px; }
.split li {
  position: relative;
  padding: 7px 0 7px 32px;
  font-size: 16px;
}
.split li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--row-accent, var(--primary));
  opacity: .14;
}
.split li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 17px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--row-accent, var(--primary));
  border-bottom: 2px solid var(--row-accent, var(--primary));
  transform: rotate(-45deg);
}
.split .applinks { display: flex; flex-wrap: wrap; gap: 10px; }
.applink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.applink:hover { text-decoration: none; border-color: #c3c6d4; box-shadow: var(--shadow-sm); }
.applink img { width: 22px; height: 22px; object-fit: contain; }

/* --------------------------------------------------------------------------
   Shots — device-mockup screenshots (placeholders now; shots.so exports later,
   same filenames under assets/shots/)
   -------------------------------------------------------------------------- */
.shot { display: block; width: 100%; height: auto; }
.shot--phone { max-width: 300px; margin: 0 auto; }

/* --------------------------------------------------------------------------
   Rainbow stats band
   -------------------------------------------------------------------------- */
.statband {
  position: relative;
  padding: 80px 0;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.statband::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #00c875, #00b3b8, #006aff, #6b32bc, #b300b7, #fc1563, #fb443f, #ffc828);
}
.statband .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; align-items: center; }
.statband-line {
  margin: 0;
  text-align: center;
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -1px;
  max-width: 900px;
  margin-inline: auto;
  background: linear-gradient(90deg, #7ee8c7, #7aa7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.statband .num {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -1.5px;
  background: linear-gradient(90deg, #7ee8c7, #7aa7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.statband .lbl { color: #b9bccd; font-size: 15.5px; margin-top: 6px; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.ctaband {
  padding: 110px 0;
  text-align: center;
  background:
    radial-gradient(700px 360px at 20% 0%, rgba(97, 97, 255, .10), transparent 60%),
    radial-gradient(700px 360px at 80% 100%, rgba(0, 200, 117, .10), transparent 60%);
}
.ctaband h2 { font-size: clamp(32px, 4.4vw, 52px); }
.ctaband p { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto 34px; }

/* --------------------------------------------------------------------------
   App page hero
   -------------------------------------------------------------------------- */
.app-hero {
  position: relative;
  padding: 84px 0 72px;
  overflow: hidden;
}
.app-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 380px at 14% 0%, color-mix(in srgb, var(--g1) 13%, transparent), transparent 66%),
    radial-gradient(640px 380px at 90% 18%, color-mix(in srgb, var(--g2) 12%, transparent), transparent 66%);
  pointer-events: none;
}
.app-hero .container { position: relative; }
.app-hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}
.app-hero-grid > :first-child { flex: 0 1 500px; max-width: 520px; }
/* Shot is big and flush to the viewport's right edge. */
.app-hero-grid > :last-child {
  flex: 0 0 auto;
  width: min(56vw, 1000px);
  margin-right: calc((100% - 100vw) / 2);
}
.app-hero .shot {
  width: 100%;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}
.app-hero .idbar { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.app-hero .idbar img { width: 52px; height: 52px; object-fit: contain; }
.app-hero .idbar .nm { font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: -.5px; line-height: 1.1; }
.app-hero .idbar .cat { font-size: 13px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--accent); }
.app-hero h1 { font-size: clamp(36px, 4.6vw, 56px); }
.app-hero .lede { font-size: 19px; color: var(--muted); margin-bottom: 32px; max-width: 540px; }
.app-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 22px 0 2px;
  font-size: 13.5px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.breadcrumb a { color: var(--muted); transition: color .15s ease; }
.breadcrumb a:hover { color: var(--ink); text-decoration: none; }
.breadcrumb .bc-sep { color: var(--faint); user-select: none; }
.breadcrumb .bc-current { color: var(--ink); font-weight: 600; }

/* feature cards on app pages */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-card .fic {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--g1) 16%, #fff), color-mix(in srgb, var(--g2) 16%, #fff));
  color: var(--accent);
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* better-together row */
.together-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--footer); color: #c5c7d5; padding: 72px 0 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}
.footer-brand { padding-right: 12px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-by { color: #9699a6; }
.site-footer .tag { font-size: 14.5px; color: #9699a6; max-width: 260px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 16px; }
.footer-subhead { color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin: 18px 0 11px; opacity: .8; }
.footer-subhead:first-of-type { margin-top: 2px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer ul a { color: #c5c7d5; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; line-height: 1.35; }
.site-footer ul a:hover { color: #fff; text-decoration: none; }
.site-footer ul img { width: 18px; height: 18px; object-fit: contain; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #9699a6;
}
.footer-bottom a { color: #9699a6; }
.footer-bottom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  /* Hero stacks: centered text, MacBook shot below (no longer flush-right). */
  .hero { text-align: center; }
  .hero-top { flex-direction: column; gap: 8px; }
  .hero-lead { flex: none; max-width: none; }
  .hero .lede { max-width: 640px; margin-left: auto; margin-right: auto; }
  .hero .picker { justify-content: center; }
  .hero-figure {
    width: 100%;
    max-width: 720px;
    margin: 24px auto 0;
  }
  .split, .split.has-media { grid-template-columns: 1fr; gap: 40px; }
  .app-hero-grid { flex-direction: column; align-items: stretch; gap: 36px; }
  .app-hero-grid > :first-child { flex: none; max-width: none; }
  .app-hero-grid > :last-child { width: 100%; margin-right: 0; }
  .split.flip .split-copy { order: 0; }
  .split.bleed-right { flex-direction: column; gap: 40px; }
  .split.bleed-right .split-copy { flex: none; max-width: none; }
  .split.bleed-right > :last-child { width: 100%; margin-right: 0; }
  .feature-grid, .together-grid { grid-template-columns: repeat(2, 1fr); }
  .statband .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .mega { width: 540px; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .mega { position: static; width: auto; display: none; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .nav-drop.open .mega { display: grid; grid-template-columns: 1fr; }
  .hamburger { display: block; }
  .nav-actions .login, .nav-actions .btn-outline { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  /* Keep the brand intact when the header gets tight. */
  .header-inner { gap: 12px; }
  .brand { flex: none; }
  .main-nav { order: 3; }
  .nav-actions { margin-left: auto; }
  .section { padding: 64px 0; }
  .feature-grid, .together-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  /* Cortex: stack copy under the recording so it can't be clipped on a short video. */
  .cortex-overlay {
    position: static;
    background: #0b0e23;
  }
  .cortex-copy { max-width: none; padding: 28px 24px 32px; }
  .app-slide { flex-basis: 84vw; min-height: 500px; }
}

/* --------------------------------------------------------------------------
   Contact / Get-started page
   -------------------------------------------------------------------------- */
.contact { padding: 64px 0 96px; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-intro h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.02em; margin: 8px 0 14px; }
.contact-intro .lede { color: var(--muted); font-size: 17px; line-height: 1.6; }
.contact-points { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-points li { position: relative; padding-left: 28px; margin: 12px 0; color: var(--ink); }
.contact-points li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 6px;
  background: color-mix(in srgb, var(--primary) 14%, #fff);
  color: var(--primary); font-size: 12px; display: grid; place-items: center;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.contact-form .opt { color: var(--muted); font-weight: 400; }
.contact-form input,
.contact-form textarea {
  font: inherit; font-weight: 400; font-size: 15px;
  padding: 11px 13px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.apps-pick { border: 0; padding: 0; margin: 4px 0; }
.apps-pick legend { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 10px; padding: 0; }
.apps-pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.apppick {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px 10px;
  border: 1.5px solid var(--line); border-radius: 12px;
  cursor: pointer; text-align: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.apppick:hover { border-color: color-mix(in srgb, var(--xc) 50%, var(--line)); }
.apppick input { position: absolute; opacity: 0; pointer-events: none; }
.apppick img { width: 26px; height: 26px; object-fit: contain; }
.apppick-name { font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.apppick-check {
  position: absolute; top: 7px; left: 7px;
  width: 16px; height: 16px; border-radius: 5px;
  border: 1.5px solid var(--line); background: #fff;
  display: grid; place-items: center; font-size: 10px; color: transparent; line-height: 1;
}
.apppick.is-checked { border-color: var(--xc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--xc) 16%, transparent); }
.apppick.is-checked .apppick-check { background: var(--xc); border-color: var(--xc); color: #fff; }
.contact-form button[type="submit"] { align-self: flex-start; margin-top: 4px; }
.form-note { color: var(--muted); font-size: 13px; margin: 0; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .field-row { grid-template-columns: 1fr; }
  .apps-pick-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   Why LaundryOS — old-way / new-way comparison
   -------------------------------------------------------------------------- */
.why-hero .actions { display: flex; gap: 12px; margin-top: 8px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-col {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  padding: 28px 28px 30px;
}
.compare-col h3 { font-size: 18px; margin: 0 0 16px; }
.compare-col ul { list-style: none; padding: 0; margin: 0; }
.compare-col li { position: relative; padding-left: 30px; margin: 13px 0; line-height: 1.5; }
.compare-col li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 19px; height: 19px; border-radius: 6px;
  display: grid; place-items: center; font-size: 12px; line-height: 1;
}
.compare-old { background: var(--bg-soft); }
.compare-old h3, .compare-old li { color: var(--muted); }
.compare-old li::before { content: "\2715"; background: #e7e8ee; color: #8a8c9c; }
.compare-new {
  background: color-mix(in srgb, var(--primary) 6%, #fff);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--line));
}
.compare-new li { color: var(--ink); }
.compare-new li::before { content: "\2713"; background: color-mix(in srgb, var(--primary) 16%, #fff); color: var(--primary); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Apps index (the suite listing)
   -------------------------------------------------------------------------- */
.apps-index-head { padding-bottom: 8px; }
.apps-index { padding-top: 24px; }
.apps-group { margin-bottom: 52px; }
.apps-group:last-child { margin-bottom: 0; }
.apps-group-title { font-size: clamp(21px, 2.3vw, 28px); margin: 0 0 22px; }

/* Brand lockup: mark + LaundryOS on row 1, small "by Luminar" beneath the name */
.brand-by {
  grid-column: 2;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .2px;
}
.brand-luminar { height: 10px; width: auto; display: block; }

/* --------------------------------------------------------------------------
   Platform + Solutions mega-menus
   -------------------------------------------------------------------------- */
.mega-wide { width: 880px; grid-template-columns: 1fr 1px 1.3fr; column-gap: 26px; padding: 22px 24px; align-items: start; }
.mega-solutions { width: 760px; grid-template-columns: repeat(3, 1fr); column-gap: 26px; padding: 22px 24px; align-items: start; }
.mega-divider { width: 1px; background: var(--line); align-self: stretch; }

.mega-col-head { font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--faint); padding: 0 12px; margin-bottom: 2px; }
.mega-sub { font-size: 12.5px; color: var(--muted); padding: 0 12px; margin: 0 0 8px; }
.mega-usecases { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega-caps { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 8px; }
.cap-head { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--faint); padding: 0 12px; margin: 8px 0 2px; }

/* Reuse .mega a (flex row + hover) for items; just style the icon tile. */
.mega-item { align-items: center; }
.mega-item--compact { padding-top: 7px; padding-bottom: 7px; }
.mega .mega-ic {
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--ink);
}
.mega .mega-ic svg { width: 17px; height: 17px; }

.mega-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 6px; }
.mega-foot a { color: var(--primary); font-weight: 600; font-size: 13.5px; width: max-content; }
.mega-foot a:hover { background: transparent; text-decoration: none; }
.mega-foot a:hover .arrow { transform: translateX(3px); }

/* Mobile: let the megas stack as plain lists inside the open hamburger nav. */
@media (max-width: 760px) {
  .mega-wide, .mega-solutions {
    width: 100%;
    grid-template-columns: 1fr;
    box-shadow: none;
    border: 0;
    padding: 4px 0 8px;
  }
  .mega-divider { display: none; }
  .mega-usecases, .mega-caps { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Solutions pages (detail hero checklist + index cards)
   -------------------------------------------------------------------------- */
.app-hero .eyebrow { display: block; margin-bottom: 12px; }
.sol-points { margin: 22px 0 30px; }
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sol-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--ink);
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.sol-card:hover { box-shadow: var(--shadow-md); border-color: #d8dbe6; transform: translateY(-2px); text-decoration: none; }
.sol-card .sol-card-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--bg-soft); color: var(--ink); }
.sol-card .sol-card-ic svg { width: 21px; height: 21px; }
.sol-card b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.sol-card span { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; }
@media (max-width: 880px) { .sol-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sol-grid { grid-template-columns: 1fr; } }

/* Footer association membership badge */
.footer-member { margin-top: 24px; }
.footer-member-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: #9699a6; margin-bottom: 9px; }
.footer-laa { height: 28px; width: auto; max-width: none; }

/* --------------------------------------------------------------------------
   Legal / Security prose pages
   -------------------------------------------------------------------------- */
.legal { padding: 52px 0 96px; }
.legal-head { max-width: 760px; margin-bottom: 8px; }
.legal-head h1 { font-size: clamp(32px, 4vw, 46px); }
.legal-head .updated { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 21px; margin: 38px 0 12px; }
.legal-body h3 { font-size: 16.5px; margin: 22px 0 8px; }
.legal-body p, .legal-body li { color: var(--body); font-size: 15.5px; line-height: 1.72; }
.legal-body ul { padding-left: 20px; margin: 0 0 16px; }
.legal-body li { margin-bottom: 7px; }
.legal-body strong { color: var(--ink); }
.legal-lead { font-size: 18px; color: var(--muted); line-height: 1.6; }

/* Security compliance status list */
.sec-status { max-width: 760px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sec-status li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.sec-status .ss-name { font-weight: 600; color: var(--ink); min-width: 180px; }
.sec-status .ss-state { font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 20px; background: var(--bg-soft); color: var(--muted); }
.sec-status .ss-state.ok { background: color-mix(in srgb, #00c875 16%, #fff); color: #0a8a52; }
.sec-status .ss-state.wip { background: color-mix(in srgb, var(--primary) 14%, #fff); color: var(--primary); }
.sec-status .ss-desc { color: var(--muted); font-size: 14.5px; flex: 1 1 260px; }

/* Footer legal links */
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
