/* Cube Apps parent site — tokens from the v1 design handoff (03_Design_System/tokens.json) */
:root {
  --charcoal: #20232B;
  --charcoal-2: #2A2E38;
  --electric-blue: #397BFF;
  --blue-strong: #2D6BF0;   /* electric blue, deepened just enough for white button text (4.7:1) */
  --blue-ink: #1F5FE0;      /* small blue text on warm white (5.2:1) */
  --blue-on-dark: #6E95FF;  /* small blue text on charcoal (5.5:1) */
  --blue-wash: #EDF2FF;
  --warm-white: #F7F6F2;
  --art-field: #FAF9F4;     /* matches the mascot artwork's own background */
  --orange: #FF914D;
  --slate: #687181;
  --white: #FFFFFF;
  --hairline: #E5E8EF;
  --getlit-purple: #8054F6;
  --haus-orange: #F59E42;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-button: 14px;
  --radius-card: 24px;
  --radius-pill: 999px;
  --max: 1200px;
  --gutter: 32px;
  --section-y: 96px;
  --shadow-card: 0 1px 2px rgba(32, 35, 43, .04), 0 8px 24px rgba(32, 35, 43, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--warm-white);
  color: var(--charcoal);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
[id] { scroll-margin-top: 24px; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; background: var(--white); color: var(--charcoal); border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  border-radius: var(--radius-button);
  font: 600 17px/1 var(--font-ui);
  text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue-strong); color: var(--white); }
.btn-primary:hover { background: #2560E0; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; text-decoration: none;
  border-bottom: 2px solid transparent;
}
.text-link:hover { border-bottom-color: currentColor; }

/* ---------- Header ---------- */
.site-header { background: var(--charcoal); color: var(--white); position: relative; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); min-height: 44px; }
.brand-mark { width: 36px; height: 36px; color: var(--white); flex: none; }
.brand-name { font: 800 26px/1 var(--font-display); letter-spacing: -0.03em; }
.site-nav { display: flex; gap: 8px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: #E4E7EE; text-decoration: none; font-weight: 500; border-radius: 10px;
}
.site-nav a:hover { color: var(--white); background: rgba(255, 255, 255, .07); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--charcoal); color: var(--white); }
.hero::before {
  /* faint floor-plan motif, decorative only */
  content: ""; position: absolute; inset: auto -120px -40px auto; width: 900px; height: 315px;
  background: url("/img/blueprint-motif.svg") no-repeat center / contain; opacity: .55; pointer-events: none;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center; gap: 48px; padding-top: 40px; padding-bottom: 96px;
}
.pill {
  display: inline-block; padding: 8px 16px; border-radius: var(--radius-pill);
  background: #2C3852; color: #D3DDF7;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.hero h1 { margin-top: 24px; font-size: clamp(42px, 6.2vw, 80px); line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 .accent { color: var(--electric-blue); }
.lede { margin-top: 24px; max-width: 34em; font-size: 19px; color: #D9DCE3; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.hero-actions .text-link { color: var(--white); }
.hero-art {
  justify-self: end; width: 100%; max-width: 440px;
  background: var(--art-field); border-radius: 28px; padding: 28px 24px 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.hero-art img { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.eyebrow { color: var(--blue-ink); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.section h2 { margin-top: 12px; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.12; max-width: 24ch; }
.section-intro { margin-top: 16px; max-width: 62ch; color: var(--slate); font-size: 19px; }

/* ---------- App index ---------- */
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.app-card {
  --accent: var(--electric-blue);
  display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr); gap: 28px;
  padding: 28px; background: var(--white);
  border: 1px solid var(--hairline); border-top: 6px solid var(--accent);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
}
.app-getlit { --accent: var(--getlit-purple); --accent-ink: #6B3FE8; --btn-bg: var(--getlit-purple); --btn-fg: var(--white); }
.app-haus { --accent: var(--haus-orange); --accent-ink: #A9560F; --btn-bg: var(--haus-orange); --btn-fg: var(--charcoal); }
.app-art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.app-body { display: flex; flex-direction: column; align-items: flex-start; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-ink); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.app-card h3 { margin-top: 10px; font-size: 30px; line-height: 1.15; }
.app-line { margin-top: 10px; font-size: 18px; font-weight: 500; line-height: 1.45; }
.app-support { margin-top: 10px; color: var(--slate); font-size: 16px; }
.btn-app { margin-top: auto; background: var(--btn-bg); color: var(--btn-fg); }
.app-body > .btn-app { margin-top: 24px; }
.btn-app:hover { filter: brightness(.94); }

/* ---------- Why ---------- */
.why { background: var(--blue-wash); }
.benefits { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.benefit { background: var(--white); border-radius: var(--radius-card); padding: 28px; border: 1px solid #DCE5FB; }
.benefit-icon { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--blue-wash); fill: none; stroke: var(--blue-strong); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefit-icon .fill { fill: var(--blue-strong); }
.benefit h3 { margin-top: 18px; font-size: 22px; line-height: 1.25; }
.benefit p { margin-top: 8px; color: var(--slate); font-size: 16px; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.about-art { position: relative; max-width: 460px; }
.about-main { margin: 0; background: var(--art-field); border: 1px solid var(--hairline); border-radius: 28px; padding: 32px 28px 20px; }
.about-variant {
  position: absolute; right: -64px; bottom: -32px; margin: 0; width: 140px;
  background: var(--white); border-radius: 20px; padding: 10px; box-shadow: var(--shadow-card); border: 1px solid var(--hairline);
}
.about-variant img { border-radius: 12px; }
.about-variant figcaption { margin-top: 8px; font-size: 13px; font-weight: 600; line-height: 1.3; text-align: center; color: var(--slate); }
.about-copy h2 { max-width: 16ch; }
.about-copy p:not(.eyebrow) { margin-top: 20px; max-width: 58ch; font-size: 18px; color: #3F4553; }
.about-copy p:not(.eyebrow) + p { color: var(--slate); }

/* ---------- Final CTA ---------- */
.cta { background: var(--charcoal); color: var(--white); position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; right: -60px; top: -40px; width: 280px; height: 280px; pointer-events: none;
  background: url("/favicon.svg") no-repeat center / contain; opacity: .08; transform: rotate(-8deg);
}
.cta-inner { position: relative; padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.12; }
.cta p { color: #D9DCE3; font-size: 19px; margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 40px; background: var(--warm-white); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: start; }
.brand-footer { color: var(--charcoal); }
.brand-footer .brand-mark { color: var(--charcoal); width: 32px; height: 32px; }
.brand-footer .brand-name { font-size: 22px; }
.footer-nav { display: flex; gap: 64px; }
.footer-nav div { display: flex; flex-direction: column; }
.footer-heading { font: 700 13px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--blue-ink); text-decoration: underline; }
.copyright { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--hairline); color: var(--slate); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .app-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  :root { --gutter: 24px; --section-y: 72px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 24px; padding-bottom: 64px; gap: 40px; }
  .hero-art { justify-self: center; max-width: 340px; }
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .about-inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .about-art { justify-self: center; width: 100%; max-width: 360px; }
  .about-variant { right: -12px; bottom: -28px; width: 112px; }
}
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -8px;
    background: none; border: 0; border-radius: 12px; color: var(--white); cursor: pointer;
  }
  .nav-toggle svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-open { display: none; }
  .nav-toggle[aria-expanded="true"] .i-close { display: inline; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--charcoal); border-top: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 20px 30px rgba(0, 0, 0, .3);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 52px; padding: 0 4px; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, .06); border-radius: 0; }
  .no-js .site-nav { display: flex; position: static; box-shadow: none; flex-direction: row; padding: 0; border: 0; }
  .header-inner { min-height: 72px; }
  .brand-name { font-size: 23px; }
  .brand-mark { width: 32px; height: 32px; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; --section-y: 64px; }
  body { font-size: 16px; }
  .hero-art { max-width: 300px; padding: 20px 18px 12px; }
  .lede, .section-intro, .cta p { font-size: 17px; }
  .app-card { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 22px; }
  .app-art { max-width: 168px; }
  .app-card h3 { font-size: 27px; }
  .btn-app { align-self: stretch; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { gap: 40px; }
}

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