/* The CoreCast landing page (corecast.us). Plain CSS, no build step: the colours are the Brand Spec's §2 tokens, copied
   from packages/ui/src/tokens.css (light) and the spec's dark block (docs/BRAND.md). Change a brand colour there first. */

:root {
  color-scheme: light dark;
  /* brand — never change with theme */
  --cc-cobalt: #1747d1;
  --cc-cobalt-light: #5b84f0;
  --cc-cobalt-tint: #b6c7f2;
  --cc-cobalt-wash: #e8eefb;
  --cc-sun: #ffd60a;
  --cc-sun-wash: #fff8d6;
  --cc-ink: #0b1f5c;
  --cc-flare: #e8462b;
  --cc-flare-wash: #fde2dc;
  /* roles — light */
  --cc-bg: #f3f5fa;
  --cc-surface: #ffffff;
  --cc-border: #e3e6ef;
  --cc-divider: #eef0f6;
  --cc-text: #0b1f5c;
  --cc-text-2: #3c4661;
  --cc-text-3: #5b6478;
  --cc-text-4: #8a93a8;
  --cc-link: #1747d1;
  --cc-on-dark: #dce4ff;
  --logo-outer: var(--cc-cobalt);
  --primary-hover: #133bad;
  --sun-hover: #e3bc00;
  /* the sketch: bars and the slip's empty months */
  --sketch-bar: var(--cc-cobalt);
  --sketch-bar-2: var(--cc-cobalt-light);
  --sketch-ghost: var(--cc-cobalt-tint);
  --sketch-cost: var(--cc-cobalt-tint);
  /* shape & type */
  --cc-r-card: 16px;
  --cc-r-control: 10px;
  --cc-r-pill: 999px;
  --cc-font-display: 'Lexend', sans-serif;
  --cc-font-body: 'Manrope', sans-serif;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cc-bg: #040b24;
    --cc-surface: #12256b;
    --cc-border: #2b4394;
    --cc-divider: #22378a;
    --cc-text: #ffffff;
    --cc-text-2: #dde3f7;
    --cc-text-3: #a3b1de;
    --cc-text-4: #8493c9;
    --cc-sun-wash: #3d3812;
    --cc-flare-wash: #5a2229;
    --cc-link: #9dbbff;
    --cc-flare: #ff8a78;
    /* Dark mode: the logo's outer C turns white (Brand Spec §3). */
    --logo-outer: #ffffff;
    --sketch-bar: var(--cc-cobalt-light);
    --sketch-bar-2: var(--cc-cobalt-tint);
    --sketch-ghost: #5b84f0;
    --sketch-cost: #2b4394;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cc-bg);
  color: var(--cc-text);
  font: 400 16px/1.6 var(--cc-font-body);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--cc-font-display);
  color: var(--cc-text);
}

p {
  margin: 0;
}

a {
  color: var(--cc-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--cc-cobalt-light);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  border-radius: var(--cc-r-control);
  background: var(--cc-ink);
  color: #ffffff;
  font-weight: 700;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

/* The logo and the horizontal lockup (Brand Spec §4): mark, then the wordmark, a third of the mark apart. */
.mark {
  display: block;
  flex: none;
}

.mark .outer {
  stroke: var(--logo-outer);
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cc-text);
}

.lockup:hover {
  text-decoration: none;
}

.wordmark {
  font-family: var(--cc-font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* Buttons (Brand Spec §6): 42px, radius 10, Manrope 700 14px. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--cc-r-control);
  border: 1px solid transparent;
  font: 700 15px/1 var(--cc-font-body);
  white-space: nowrap;
  transition:
    background-color 150ms,
    border-color 150ms,
    color 150ms;
}

.btn:hover {
  text-decoration: none;
}

.btn--compact {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.btn--primary {
  background: var(--cc-cobalt);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--primary-hover);
}

.btn--secondary {
  background: var(--cc-surface);
  border-color: var(--cc-border);
  color: var(--cc-text);
}

.btn--secondary:hover {
  border-color: var(--cc-cobalt-light);
}

.btn--sun {
  background: var(--cc-sun);
  color: var(--cc-ink);
}

.btn--sun:hover {
  background: var(--sun-hover);
}

.eyebrow {
  font-family: var(--cc-font-display);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cc-link);
}

/* Header */
.top {
  border-bottom: 1px solid var(--cc-border);
  background: var(--cc-surface);
}

.top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Hero */
.hero {
  padding: 72px 0 80px;
}

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin-top: 16px;
  font-size: clamp(34px, 4.6vw, 48px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  margin-top: 20px;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.6;
  color: var(--cc-text-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.tagline {
  margin-top: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cc-text-3);
}

/* The product sketch: a card like the app's (white, radius 16, 1px border, no shadow). */
.sketch {
  margin: 0;
  padding: 20px 20px 16px;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-r-card);
}

.sketch svg {
  display: block;
  width: 100%;
  height: auto;
}

.sketch figcaption {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--cc-divider);
  font-size: 13px;
  line-height: 1.5;
  color: var(--cc-text-3);
}

.sketch figcaption strong {
  color: var(--cc-text);
  font-weight: 700;
}

.sk-label {
  font-family: var(--cc-font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--cc-text-3);
}

.sk-month {
  font-family: var(--cc-font-body);
  font-size: 11px;
  font-weight: 600;
  fill: var(--cc-text-3);
}

.sk-grid {
  stroke: var(--cc-divider);
  stroke-width: 1;
}

.sk-bar {
  fill: var(--sketch-bar);
}

.sk-bar-2 {
  fill: var(--sketch-bar-2);
}

.sk-ghost {
  fill: none;
  stroke: var(--sketch-ghost);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}

.sk-arrow {
  fill: none;
  stroke: var(--cc-text-3);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sk-person {
  fill: var(--cc-surface);
  stroke: var(--cc-surface);
  stroke-width: 2;
}

.sk-person--a {
  fill: var(--cc-ink);
}

.sk-person--b {
  fill: var(--cc-cobalt-light);
}

.sk-person--c {
  fill: var(--cc-cobalt-tint);
}

.sk-cost {
  fill: var(--sketch-cost);
}

.sk-unassigned {
  fill: var(--cc-flare);
}

.sk-now {
  stroke: var(--cc-sun);
  stroke-width: 3;
  stroke-linecap: round;
}

/* Value points */
.points {
  padding: 80px 0;
  background: var(--cc-surface);
  border-top: 1px solid var(--cc-border);
  border-bottom: 1px solid var(--cc-border);
}

.points h2,
.fit h2 {
  margin-top: 12px;
  max-width: 22em;
  font-size: clamp(26px, 3.4vw, 32px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cards {
  display: grid;
  gap: 20px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 28px;
  background: var(--cc-bg);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-r-card);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--cc-r-control);
  background: var(--cc-cobalt);
  color: #ffffff;
}

.card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-top: 20px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cc-text-2);
}

/* Who it's for */
.fit {
  padding: 80px 0;
}

.fit__grid {
  display: grid;
  gap: 40px;
}

.facts {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--cc-border);
}

.facts li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--cc-border);
  font-size: 16px;
  color: var(--cc-text-2);
}

.facts li::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: var(--cc-r-pill);
  background: var(--cc-cobalt);
  transform: translateY(-2px);
}

.facts strong {
  color: var(--cc-text);
  font-weight: 700;
}

/* The closing band: an Ink panel with a Sun action, like the app's insight panel. */
.band {
  margin-top: 64px;
  padding: 40px;
  border-radius: var(--cc-r-card);
  background: var(--cc-ink);
  color: var(--cc-on-dark);
  display: grid;
  gap: 24px;
  align-items: center;
}

.band h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.band p {
  margin-top: 8px;
  font-size: 16px;
}

/* Footer */
.foot {
  padding: 32px 0 40px;
  border-top: 1px solid var(--cc-border);
  font-size: 14px;
  color: var(--cc-text-3);
}

.foot__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.foot .lockup .wordmark {
  font-size: 17px;
}

@media (min-width: 800px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .fit__grid {
    grid-template-columns: 5fr 6fr;
    align-items: start;
  }

  .band {
    grid-template-columns: 1fr auto;
    padding: 44px 48px;
  }
}

@media (min-width: 1000px) {
  .hero {
    padding: 96px 0 104px;
  }

  .hero__grid {
    grid-template-columns: 6fr 5fr;
    gap: 56px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .actions .btn {
    flex: 1 1 auto;
  }

  .band {
    padding: 28px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
