﻿/* AI Income Systems: the brand layer over the design-taste-frontend engine.
   Every colour, font and effect here comes from website\DESIGN.md (sampled from Bobby's YouTube
   banner, profile picture and thumbnails). Shared by the home page and the skill pages. */

:root {
  /* palette (DESIGN.md) */
  --p-bg: #000208; --p-surface: #080B12; --p-ink: #ffffff; --p-muted: #A9B4C8;
  --p-accent: #F6A622; --p-accent-ink: #000000; --p-action: #F6BA42; --p-action-ink: #000000;
  /* no light sections on this site: the "inverse" ground stays dark navy */
  --p-inv-bg: #000717; --p-inv-surface: #080B12; --p-inv-ink: #ffffff; --p-inv-muted: #A9B4C8;
  --p-inv-accent: #F6A622; --p-inv-accent-ink: #000000; --p-inv-action: #F6BA42; --p-inv-action-ink: #000000;

  --font-display: "Bebas Neue", "League Gothic", Impact, sans-serif;
  --font-text: "Montserrat", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 400;
  --display-tracking: 0.01em;
  --display-tracking-xl: 0.005em;

  /* DESIGN.md colours by name */
  --navy: #000717; --deep: #000105;
  --blue-glow: #05AEF8; --blue-dot: #0D8BD9; --blue-line: #0048A3; --blue-line-deep: #00387E; --blue-halo: #407FA6;
  --gold: #F6A622; --gold-button: #F6BA42; --gold-ring: #E99E12; --gold-frame: #DDAA3A;
  --faint: #6B7890;
  --hair: rgba(0, 72, 163, .35);
  --hair-strong: rgba(5, 174, 248, .45);

  /* Bebas Neue is condensed, so it runs larger than the engine's defaults (DESIGN.md type table) */
  --t-h1: clamp(60px, 4.6vw + 46px, 112px);
  --ly-h1-xl: clamp(60px, 4.6vw + 46px, 112px);
  --t-h2: clamp(44px, 1.9vw + 37px, 64px);
  --t-h3: clamp(28px, .4vw + 26px, 32px);
  --t-lead: 20px;
  --t-body: 17px;
  --line-strong: var(--hair-strong);
}
@media (max-width: 639px) { :root { --t-lead: 18px; } }

body { font-family: var(--font-text); background: var(--p-bg); }
h1, h2, h3, .t-h1, .t-h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: var(--display-tracking); }
h1, .t-h1 { line-height: .92; }
h2, .t-h2 { line-height: .95; }
.gold { color: var(--gold); }
.logo-blue { color: var(--blue-glow); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--blue-glow); outline-offset: 3px; }

/* nav: the wordmark in the display face */
.nav { background: var(--p-bg); border-bottom-color: var(--hair); }
.nav__logo { font: 400 28px/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { width: auto; height: auto; clip-path: none; padding: 8px 12px; background: var(--p-action); color: #000; z-index: 20; }

/* eyebrow: small code-style label, one per section (DESIGN.md) */
.eyebrow { font: 600 13px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-glow); margin: 0; }
.section-head p:not(.eyebrow), .hero__lead { color: var(--p-muted); }

/* hero: the banner's headline halo */
.hero--photo { background: var(--p-bg); }
.hero--photo h1 { max-width: 12ch; text-shadow: 0 0 2px rgba(255,255,255,.6), 0 0 18px rgba(64,127,166,.55); }
.hero--photo h1 .gold { text-shadow: 0 0 18px rgba(233,158,18,.45); }
.hero-notice { font: 600 13px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--blue-glow); }
.hero__lead { font-size: var(--t-lead); line-height: 1.55; max-width: 46ch; }
.hero__facts { border-top: 1px solid var(--hair); padding-top: var(--s-5); }
.hero__facts dt { font: 600 13px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-glow); }
.hero__facts dd { font-weight: 500; }

/* buttons: gold fill with the banner button's cut corners; blue outline for the second action */
.btn { font-family: var(--font-text); font-weight: 800; font-size: 16px; height: 52px; padding: 0 28px; border-radius: 0;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.btn--primary { background: var(--gold-button); color: #000; }
.btn--primary:hover { background: #ffc85a; filter: drop-shadow(0 0 14px rgba(233,158,18,.55)); }
.btn--secondary { background: transparent; color: #fff; border: 0;
  box-shadow: inset 0 0 0 1px var(--blue-glow); }
.btn--secondary:hover { background: rgba(5,174,248,.10); filter: drop-shadow(0 0 12px rgba(5,174,248,.35)); }
.nav .btn { height: 44px; padding: 0 20px; font-size: 15px; }
.section-action { margin-top: var(--s-7); }

/* cards: lifted by a lighter surface and a blue hairline, no heavy shadows */
.card { background: var(--p-surface); border: 1px solid var(--hair); border-radius: 16px; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); }
a.card { color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--hair-strong); box-shadow: 0 0 24px rgba(5,174,248,.15); }
.card > h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--t-h3); line-height: 1; letter-spacing: .01em; text-transform: uppercase; margin: 0; }
.card > p { color: var(--p-muted); margin: 0; }
.card__go { margin-top: auto; padding-top: var(--s-3); color: var(--blue-glow); font-weight: 500; }
a.card:hover .card__go { text-decoration: underline; text-underline-offset: 4px; }
.ground-navy .card { background: #080B12; }
/* the gold HUD corner, like the gold corner of the banner frame (feature cards only) */
.card--hud { position: relative; }
.card--hud::before { content: ""; position: absolute; top: -1px; left: -1px; width: 24px; height: 24px; border-top: 2px solid var(--gold-frame); border-left: 2px solid var(--gold-frame); border-top-left-radius: 16px; pointer-events: none; }
.num { font: 400 44px/1 var(--font-display); color: var(--blue-glow); }

/* tag pills, as on the thumbnails: green = live or free now, gold = coming soon, red = the problem */
.tag { align-self: flex-start; font: 800 13px/1 var(--font-text); letter-spacing: .04em; text-transform: uppercase; padding: 7px 12px; border-radius: 10px; border: 2px solid; }
.tag--green { color: #fff; border-color: #0DC391; background: #0F2B1F; }
.tag--gold { color: #fff; border-color: #EFA533; background: #2A1F09; }
.tag--red { color: #fff; border-color: #F35371; background: #2A0F16; }

/* sections: alternate the navy ground (DESIGN.md), separation by ground only */
.ground-navy { background: var(--navy); }
.section:not(.ground-navy):not(.hero) { background: var(--p-bg); }

/* tools: two cards beside one video card */
.tools-stack { display: grid; gap: var(--s-5); align-content: start; }
.video { position: relative; display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--hair); align-self: start; aspect-ratio: 16 / 9; }
.video img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur, .3s) var(--ease, ease); }
.video:hover img { transform: scale(1.025); }
.video__play { position: absolute; right: 16px; bottom: 16px; width: 64px; height: 64px; display: grid; place-items: center;
  background: var(--gold-button); clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.video__play svg { width: 30px; height: 30px; fill: #000; }
.video:hover .video__play { filter: drop-shadow(0 0 14px rgba(233,158,18,.6)); }

/* about: words left, the gold-ring profile picture right */
.about { align-items: center; }
.about__text { display: grid; gap: var(--s-4); }
.about__text h2 { margin-bottom: var(--s-3); }
.about__text p:not(.eyebrow) { color: var(--p-muted); font-size: 18px; line-height: 1.65; max-width: 58ch; margin: 0; }
.about__photo img { width: 100%; max-width: 380px; height: auto; border-radius: 50%; display: block; margin-left: auto; filter: drop-shadow(0 0 32px rgba(5,174,248,.25)); }
@media (max-width: 1023px) { .about__photo img { max-width: 220px; margin: var(--s-6) 0 0; } }

/* footer */
.closing { background: var(--deep); }
.footer__lede { color: var(--p-muted); }
.footer__col h4 { font: 600 13px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-glow); }
.footer__legal { color: var(--faint); font-size: 14px; border-top-color: var(--hair); }
.footer__legal a { color: var(--p-muted); }
.footer__legal .results { max-width: 64ch; }

/* hero facts stay on the dark left half, off Bobby's face */
@media (min-width: 1024px) {
  .hero.hero--photo[data-calm="left"] .hero__facts { right: 50%; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s-5); }
  .hero.hero--photo[data-calm="left"] .hero__facts > div { grid-column: auto; }
}
/* the blue outline button keeps the cut corners: a blue layer with the dark face 1px inside it */
.btn.btn--secondary { position: relative; isolation: isolate; background: var(--blue-glow); box-shadow: none; }
.btn.btn--secondary::before { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--p-bg);
  clip-path: polygon(9.6px 0, 100% 0, 100% calc(100% - 9.6px), calc(100% - 9.6px) 100%, 0 100%, 0 9.6px); transition: background-color var(--dur, .2s) var(--ease, ease); }
.ground-navy .btn.btn--secondary::before { background: var(--navy); }
.btn.btn--secondary:hover { background: var(--blue-glow); }
.btn.btn--secondary:hover::before { background: #04121f; }
.hero--photo .btn-row .btn--secondary { background: var(--blue-glow); }
.footer__lede { font-family: var(--font-text); text-transform: none; letter-spacing: 0; font-size: 16px; line-height: 1.6; }
.about__photo img { max-width: 460px; }
@media (max-width: 1023px) { .about__photo img { max-width: 240px; margin: var(--s-6) 0 0; } }

/* tablet: the long sections take two screens instead of spilling into the next one */
@media (min-width: 640px) and (max-width: 1023px) {
  #tools .tools-stack { grid-template-columns: 1fr 1fr; }
  #tools .card { padding: var(--s-5); }
  #services .num { display: none; }
}

/* phone */
@media (max-width: 639px) {
  :root { --t-h1: 54px; --ly-h1-xl: 54px; }
  .nav__actions .btn { display: none; }
  .hero.hero--photo { --photo: 34svh; }
  /* Phase 3: on a phone, "one section = exactly one or two screens" left big empty gaps,
     so sections after the hero size to their content with DESIGN.md's 64px phone spacing */
  html body main > :is(section, .section):not(.hero, .section--hero), html body footer.closing.closing {
    height: auto; min-height: 0; padding-top: 64px; padding-bottom: calc(64px + var(--bar, 0px)); }
  html body main > :is(section, .section):not(.hero, .section--hero) > .wrap { height: auto; }
  html body footer.closing.g2m > .wrap { display: grid; grid-template-rows: none; row-gap: 64px; height: auto; }
  html body footer.closing.g2m > .wrap > * { height: auto; min-height: 0; padding-top: 0; margin-top: 0; }
  .hero__lead { font-size: 17px; }
}

/* ---- Phase 4 polish (impeccable critique) ---- */

/* 1. hero facts: three facts across the dark left side, with room under the buttons */
@media (min-width: 1024px) {
  .hero.hero--photo[data-calm="left"] .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); right: calc(50% - 64px); }
}
.hero--photo .hero__text { padding-bottom: var(--s-8); }

/* 2. services and "what it does": open columns under a blue rule, not a third row of boxes */
.svc-row { row-gap: var(--s-6); }
.svc { display: grid; gap: var(--s-4); align-content: start; padding-top: var(--s-6); border-top: 1px solid var(--hair-strong); }
#services .section-action { margin-top: var(--s-9); }
@media (max-width: 639px) { #services .section-action { margin-top: var(--s-7); } }
.svc > h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--t-h3); line-height: 1; letter-spacing: .01em; text-transform: uppercase; margin: 0; }
.svc > p { color: var(--p-muted); margin: 0; max-width: 40ch; }

/* 5. a switched-off button looks switched off */
.btn[disabled], .btn[aria-disabled="true"] { background: #3a3322; color: #a99c7a; cursor: not-allowed; filter: none; }
.btn[disabled]:hover { background: #3a3322; filter: none; }

/* 7. closing headline on one line where it fits */
.closing .section-head { max-width: 900px; }
.closing .section-head h2 { max-width: none; }

/* 8. browser surfaces in the brand colours */
::selection { background: rgba(246,186,66,.85); color: #000; }
html { scrollbar-color: #0048A3 #000208; accent-color: #F6BA42; }
input, textarea { caret-color: #F6BA42; }

/* 9. the hero tagline reads as a sentence, not a long mono label */
.hero-notice { font: 500 16px/1.45 var(--font-text); letter-spacing: 0; text-transform: none; color: var(--blue-glow); max-width: 44ch; }

/* section labels keep their own size and blue inside a section head (the engine's .section-head p was winning) */
.section-head p.eyebrow, .about__text p.eyebrow { font: 600 13px/1 var(--font-mono); letter-spacing: .08em; color: var(--blue-glow); max-width: none; }

/* 10. the gold HUD corner sits exactly on the card's rounded corner */
.card--hud::before { top: 0; left: 0; border-top-left-radius: 15px; }

/* ---- 2026-11-29: short laptop screens (Bobby's screenshots) ----
   The engine gives every section a FIXED height of one or two screens. On a short window
   (e.g. 1366x657, 1440x700) the content is taller than that and spills over the next section,
   and the hero facts (pinned to the bottom of the screen) slide up under the buttons.
   Fix: every section is AT LEAST one screen (or two) and grows to fit its content; the hero
   facts sit in the normal flow under the buttons. Tall screens look the same as before. */
html body main > :is(section, .section):not(.hero, .section--hero),
html body footer.closing.closing {
  height: auto;
  min-height: calc(var(--h, 1) * 100svh);
}
html body main > :is(section, .section):not(.hero, .section--hero) > .wrap,
html body footer.closing.closing > .wrap { height: auto; }
html body footer.closing.closing > .wrap { display: grid; grid-template-rows: auto auto; align-content: space-between; row-gap: var(--s-8); }
html body main > .hero.hero--photo { height: auto; min-height: 100svh; }
html body .hero.hero--photo > .wrap > .hero-text { min-height: calc(100svh - var(--nav) - var(--s-8)); justify-content: center; gap: var(--s-8); }
html body .hero.hero--photo[data-calm] .hero__facts { position: static; margin-top: 0; }
@media (max-width: 639px) {
  html body main > :is(section, .section):not(.hero, .section--hero), html body footer.closing.closing { min-height: 0; }
  html body .hero.hero--photo > .wrap > .hero-text { min-height: 0; }
}

/* ---- simple pages: coming soon (audit, Lab) and legal (privacy, terms) ---- */
.simple { padding-top: calc(var(--nav) + var(--s-9)); padding-bottom: var(--s-9); }
.simple h1 { font-size: clamp(52px, 3vw + 40px, 88px); line-height: .92; margin: var(--s-4) 0 var(--s-5);
  text-shadow: 0 0 2px rgba(255,255,255,.6), 0 0 18px rgba(64,127,166,.55); }
.simple .lead { color: var(--p-muted); font-size: var(--t-lead); line-height: 1.55; max-width: 52ch; margin: 0 0 var(--s-6); }
.simple .tag { margin-bottom: var(--s-2); }
.simple .svc-row { margin: var(--s-7) 0; }
.waitlist { display: grid; gap: var(--s-4); max-width: 520px; padding: var(--s-6); background: var(--p-surface); border: 1px solid var(--hair); border-radius: 16px; }
.waitlist label { font: 600 13px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-glow); display: grid; gap: var(--s-2); }
.waitlist input { height: 52px; padding: 0 16px; font: 400 16px var(--font-text); color: #fff; background: #000208; border: 1px solid var(--hair); border-radius: 0; }
.waitlist input:focus { outline: 2px solid var(--blue-glow); outline-offset: 0; }
.waitlist .note { color: var(--p-muted); font-size: 15px; margin: 0; }
.waitlist .note a, .legal a { color: var(--blue-glow); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.legal { max-width: 72ch; }
.legal h2 { font-size: clamp(32px, 1vw + 28px, 40px); margin: var(--s-8) 0 var(--s-4); }
.legal p, .legal li { color: #d6dcea; font-size: 17px; line-height: 1.7; }
.legal ul { padding-left: 1.2em; display: grid; gap: var(--s-2); list-style: disc; }
.legal li::marker { color: var(--gold); }
@media (max-width: 639px) { html body main > section.section.simple.simple { padding-top: calc(var(--nav) + var(--s-7)); } }
.legal .updated { font: 600 13px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-glow); }
.legal .notice { margin-top: var(--s-6); padding: var(--s-5); border: 1px solid #EFA533; background: #2A1F09; color: #fff; border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
  .video img, .btn, a.card { transition: none; }
  .video:hover img { transform: none; }
}

/* ---- code blocks with a copy button (skill pages; assets/copy.js shows the button) ---- */
.code { position: relative; background: #000208; border: 1px solid var(--hair); border-radius: 10px; min-width: 0; }
.ground-navy .code { background: #000105; }
.code pre { margin: 0; padding: var(--s-4) 88px var(--s-4) var(--s-4); font: 600 14px/1.65 var(--font-mono); color: #fff; white-space: pre; overflow-x: auto; }
.code pre code { font: inherit; color: inherit; }
.code__copy { position: absolute; top: 8px; right: 8px; padding: 6px 10px; font: 800 13px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: #080B12; border: 1px solid var(--hair-strong); border-radius: 6px; cursor: pointer; }
.code__copy:hover { border-color: var(--blue-glow); }
.code__copy:focus-visible { outline: 2px solid var(--blue-glow); outline-offset: 2px; }
.code__copy.is-copied { color: #000; background: var(--gold-button); border-color: var(--gold-button); }
@media (max-width: 600px) { .code pre { font-size: 13px; } }
