/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ============================================================
   TOKENS — Dithered Retro-Future
   ============================================================ */
:root {
  --bg:       #F5F5F0;   /* paper cream */
  --bg-2:     #ECEAE3;   /* slightly darker cream */
  --bg-dark:  #0A0A0A;   /* near-black for dark windows */
  --black:    #000000;
  --white:    #FFFFFF;
  --pink:     #FF85A2;
  --green:    #22C55E;
  --red:      #E53E3E;

  --text:     #0A0A0A;
  --text-2:   #4A4040;
  --text-3:   #8A8080;

  --border:   1.5px solid var(--black);
  --border-1: 1px solid var(--black);

  --font-serif: 'Syne', sans-serif;
  --font-mono:  'IBM Plex Mono', 'Courier New', monospace;
  --font-sans:  'IBM Plex Sans', system-ui, sans-serif;

  --r: 0px;   /* no border radius — brutalist */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   GRAIN OVERLAY (dithering / noise)
   ============================================================ */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.035;
  mix-blend-mode: multiply;
}


/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: var(--border);
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  height: 52px;
}

/* Logo cell */
.nav__logo-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border-right: var(--border);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-bs {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  background: var(--black);
  color: var(--white);
  padding: 3px 7px;
  letter-spacing: 0.06em;
}

.nav__logo-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
}

/* Nav links grid */
.nav__links {
  display: flex;
  align-items: stretch;
  flex: 1;
}

.nav__cell {
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-right: var(--border-1);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  transition: background 0.15s;
  text-decoration: none;
}
.nav__cell:hover { background: var(--bg-2); }

/* CTA */
.nav__cta {
  display: flex;
  align-items: center;
  padding: 0 24px;
  margin-left: auto;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-left: var(--border);
  flex-shrink: 0;
  transition: background 0.15s;
  text-decoration: none;
}
.nav__cta:hover { background: #2A2A2A; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  border: var(--border);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, transform 0.08s;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 0;
  padding: 12px 24px;
  outline: none;
}

/* Pink primary */
.btn--pink {
  background: var(--pink);
  color: var(--black);
}
.btn--pink:hover { background: #ff6a8e; }
.btn--pink:active { transform: translateY(1px); }

/* Green */
.btn--green {
  background: var(--green);
  color: var(--black);
}
.btn--green:hover { background: #16a34a; color: var(--white); }

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--black);
}
.btn--outline:hover { background: var(--black); color: var(--white); }

/* Sizes */
.btn--sm  { font-size: 11px; padding: 8px 16px; }
.btn--full { width: 100%; }

/* ============================================================
   EYEBROW
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-3);
  display: block;
  margin-bottom: 10px;
}

/* ============================================================
   OS WINDOW COMPONENT
   ============================================================ */
.win {
  border: var(--border);
  background: var(--bg);
  position: relative;
}

/* Title bar */
.win__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: var(--border);
  background: var(--bg-2);
  min-height: 32px;
}

.win__bar--pink  { background: var(--pink); }
.win__bar--green { background: var(--green); }
.win__bar--dark  { background: var(--bg-dark); }

/* Window controls (macOS-style dots) */
.win__controls {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.win__btn {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.25);
  background: var(--bg-2);
  display: inline-block;
}
.win__bar--pink  .win__btn { background: rgba(0,0,0,0.15); }
.win__bar--green .win__btn { background: rgba(0,0,0,0.15); }
.win__bar--dark  .win__btn { background: rgba(255,255,255,0.15); }

.win__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.06em;
  flex: 1;
  text-align: center;
}

.win__hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  flex-shrink: 0;
}

/* Window body */
.win__body {
  padding: 20px;
}

.win__body--dark {
  background: var(--bg-dark);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 72px 0 80px;
  border-bottom: var(--border);
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero__h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 20px;
}

.hero__h1 em {
  font-style: normal;
  color: var(--pink);
}

.hero__sub {
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 28px;
}

.hero__btns {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.hero__btns .btn { border-right-width: 0; }
.hero__btns .btn:last-child { border-right: var(--border); }

/* System log widget */
.sys-log {
  border: var(--border);
}

.sys-log__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-dark);
  border-bottom: var(--border);
}

.sys-log__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
}
.sys-log__dot--r { background: #FF5F57; }
.sys-log__dot--y { background: #FEBC2E; }
.sys-log__dot--g { background: #28C840; }

.sys-log__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-left: 4px;
  letter-spacing: 0.06em;
}

.sys-log__body {
  background: var(--bg-dark);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sys-log__line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
}

.sys-log__key {
  color: var(--pink);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 130px;
}

.sys-log__val {
  color: rgba(255,255,255,0.7);
}

.sys-log__val--green { color: var(--green); font-weight: 700; }

/* ── Hero window ── */
.hero__window-wrap { position: relative; }

/* Scoring profile */
.score-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: var(--border-1);
  margin-bottom: 12px;
  background: var(--bg-2);
}

.score-profile__ava {
  width: 42px; height: 42px;
  background: var(--pink);
  border: var(--border-1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  flex-shrink: 0;
}

.score-profile__info { flex: 1; }
.score-profile__handle {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}
.score-profile__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  margin-top: 2px;
}

.score-badge {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 800;
  color: var(--black);
  line-height: 1;
  border: var(--border-1);
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pink);
  flex-shrink: 0;
}

/* Inner window (nested frame) */
.win-inner {
  border: var(--border-1);
  margin-bottom: 12px;
}

.win-inner__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--bg-2);
  border-bottom: var(--border-1);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.win-inner__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* Metric rows */
.metric-row {
  display: grid;
  grid-template-columns: 64px 1fr 52px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: var(--border-1);
}
.metric-row:last-child { border-bottom: none; }

.metric-row__name {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

.metric-bar {
  height: 8px;
  background: var(--bg-2);
  border: var(--border-1);
}

.metric-bar__fill {
  height: 100%;
  width: var(--p);
  background: var(--black);
}

.metric-bar__fill--green { background: var(--green); }
.metric-bar__fill--pink  { background: var(--pink); }

.metric-row__val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  text-align: right;
}
.metric-row__val--green { color: var(--green); }
.metric-row__val--pink  { color: var(--pink); }

/* Recommendation box */
.rec-box {
  background: var(--black);
  color: var(--white);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rec-box__label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.rec-box__price {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.rec-box__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.step-win .win__body {
  display: flex;
  flex-direction: column;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}

.step-desc {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 88px 0;
  border-bottom: var(--border);
}

.section--cream2 { background: var(--bg-2); }

.section-head {
  margin-bottom: 48px;
}

.section-h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--black);
}

.section-h2 em {
  font-style: normal;
  color: var(--pink);
}

/* ============================================================
   BEFORE / AFTER
   ============================================================ */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 48px;
}

.ba-grid > .win { border-right: none; }
.ba-grid > .win:last-child { border-right: var(--border); }

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

.check-x {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  width: 20px; height: 20px;
  border: 1px solid var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

.check-ok {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  width: 20px; height: 20px;
  border: 1px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

/* Feature bento grid */
.feat-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.feat-win {
  border: var(--border);
}

/* Hover: raise border brightness */
.feat-win:hover .win__bar--dark { background: #1A1A1A; }
.feat-win:hover { background: var(--bg-2); }
.feat-win .win__body--dark:hover { background: #0D0D0D; }

.feat-icon { font-size: 28px; margin-bottom: 12px; }

/* Dithered SVG icon box */
.feat-icon-wrap {
  width: 72px;
  height: 72px;
  border: var(--border-1);
  margin-bottom: 14px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

.feat-icon-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
}

.feat-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.feat-desc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 0;
}

.review-win {
  border: var(--border);
  display: flex;
  flex-direction: column;
}

.review-win .win__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.review__stars {
  color: #D97706;
  font-size: 14px;
  letter-spacing: 2px;
}

.review__text {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
}

.review__author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: var(--border-1);
}

.review__ava {
  width: 36px; height: 36px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.review-win--featured .review__ava { background: var(--pink); color: var(--black); }

.review__name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
}
.review__role {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  margin-top: 2px;
}

/* Ticker (metrics) */
.ticker {
  display: flex;
  align-items: center;
  border: var(--border);
  margin-top: 32px;
  background: var(--black);
}

.ticker__item {
  flex: 1;
  padding: 24px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.ticker__item:last-child { border-right: none; }

.ticker__val {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.ticker__label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
}

.ticker__div {
  font-family: var(--font-mono);
  font-size: 20px;
  color: rgba(255,255,255,0.12);
  padding: 0 4px;
  display: none;  /* hidden — use border separation instead */
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 24px;
}

.contact-h2 em { font-style: normal; color: var(--pink); }

.perk-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: var(--border);
}

.perk-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  padding: 12px 14px;
  border-bottom: var(--border-1);
}
.perk-list li:last-child { border-bottom: none; }

.perk-check {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  width: 20px; height: 20px;
  border: 1px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* FORM */
.contact-win .win__body {
  padding: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.field__input {
  background: var(--bg);
  border: var(--border-1);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--black);
  outline: none;
  border-radius: 0;
  width: 100%;
  transition: border-color 0.15s;
}
.field__input::placeholder { color: var(--text-3); }
.field__input:focus { border-color: var(--pink); border-width: 2px; }
.field__input.error { border-color: var(--red); border-width: 2px; }

.field__err {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
  min-height: 14px;
}

.form-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  text-align: center;
  margin-top: 12px;
}
.form-note a { text-decoration: underline; }

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: #F0FFF4;
  border: 1px solid var(--green);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #166534;
  margin-top: 14px;
}
.form-success.visible { display: flex; }
.form-success span { font-size: 20px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: var(--border);
  padding: 20px 0;
  background: var(--bg);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

.footer__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.1em;
  border: var(--border-1);
  padding: 4px 8px;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.js-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--delay, 0ms);
}
.js-fade.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .steps-flow { grid-template-columns: repeat(3, 1fr); }
  .feat-bento { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }

  .nav__links { display: none; }
  .nav__logo-cell { border-right: none; }

  .hero__layout { grid-template-columns: 1fr; gap: 32px; }

  .hero__btns { flex-direction: column; }
  .hero__btns .btn { border-right: var(--border) !important; width: 100%; }

  .ba-grid { grid-template-columns: 1fr; }
  .ba-grid > .win { border-right: var(--border); border-bottom: none; }
  .ba-grid > .win:last-child { border-top: var(--border); border-bottom: var(--border); }

  .steps-flow { grid-template-columns: repeat(2, 1fr); }
  .feat-bento { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }

  .ticker { flex-direction: column; }
  .ticker__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); width: 100%; }
  .ticker__item:last-child { border-bottom: none; }

  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero__h1 { font-size: 36px; }
  .steps-flow { grid-template-columns: 1fr; }
  .feat-bento { grid-template-columns: 1fr; }
}
