/* LOOKSMAXBRO — looksmaxbro.com
 *
 * The site is its own thing, but it is the same brand as the app: dark-only, exactly one lime
 * accent, cyan used sparingly, every NUMBER in tabular mono. Tokens below are lifted verbatim from
 * docs/product/design-system.md so the two can never drift by accident.
 *
 * No build step, no framework, no external request — the whole site is four HTML files and this. */

:root {
  /* Colour tokens — design-system.md §Color tokens */
  --bg: #000000;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --lime: #cfff3b;
  --cyan: #64d2ff;
  --delta-pos: #30d158;
  --label: #ffffff;
  --label-2: rgba(235, 235, 245, 0.6);
  --label-3: rgba(235, 235, 245, 0.3);
  --hairline: rgba(235, 235, 245, 0.12);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Inter,
    system-ui, sans-serif;
  /* Numbers are mono and tabular everywhere — scores, deltas, percentages. Same rule as the app. */
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Roboto Mono", monospace;

  --radius-card: 18px;
  --radius-chip: 9px;
  --radius-button: 14px;

  --page: 1080px;
  --gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
  /* The sticky header must not cover the heading you just jumped to. */
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* A single lime bloom behind the fold. It is the only "decoration" on the site; everything else
 * earns its place by saying something. */
body::before {
  content: "";
  position: fixed;
  top: -30vh;
  left: 50%;
  width: min(1200px, 130vw);
  height: 80vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(207, 255, 59, 0.09), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------------------------------------- type */

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  font-size: clamp(40px, 7vw, 68px);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
}

h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

a:hover {
  text-decoration: underline;
}

/* Focus must be visible — the site is keyboard-navigable and the lime ring is on-brand anyway. */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label-3);
}

.lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--label-2);
  max-width: 56ch;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------------------------------------------------------------- wordmark */

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--label);
}

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

/* The lime underscore is the logo. It blinks like a terminal caret — §Brand: `LOOKSMAXBRO_`. */
.wordmark i {
  font-style: normal;
  color: var(--lime);
  animation: caret 1.2s steps(2, jump-none) infinite;
}

@keyframes caret {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0.15;
  }
}

/* ---------------------------------------------------------------- header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--label-2);
  font-size: 14px;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--label);
  text-decoration: none;
}

@media (max-width: 720px) {
  /* The in-page section links go; the legal links stay reachable from the footer on every page. */
  .site-nav a:not(.btn) {
    display: none;
  }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-button);
  background: var(--lime);
  color: #000;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  filter: brightness(1.08);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 17px;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--label);
}

/* ---------------------------------------------------------------- chips */

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-chip);
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-size: 12px;
  font-weight: 600;
  color: var(--label-2);
  white-space: nowrap;
}

.chip-lime {
  color: var(--lime);
  background: rgba(207, 255, 59, 0.1);
  border-color: rgba(207, 255, 59, 0.3);
}

.chip-cyan {
  color: var(--cyan);
  background: rgba(100, 210, 255, 0.1);
  border-color: rgba(100, 210, 255, 0.3);
}

/* ---------------------------------------------------------------- layout */

section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-head {
  max-width: 60ch;
  margin-bottom: 44px;
  display: grid;
  gap: 14px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 860px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--label-2);
  font-size: 15px;
}

/* ---------------------------------------------------------------- hero */

.hero {
  padding-top: clamp(56px, 8vw, 92px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

.hero-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.hero h1 .accent {
  color: var(--lime);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.note {
  font-size: 13px;
  color: var(--label-3);
}

/* ---------------------------------------------------------------- scan tile + ring */

/* The hero visual: the app's own scan-placeholder tile — 12pt diagonal stripes, a lime scanline
 * sweeping it, a conic score ring on top. Built in CSS; no image, no request. */
.scan-tile {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  border-radius: 28px;
  overflow: hidden;
  background-color: var(--surface);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.035) 0 1px,
    transparent 1px 12px
  );
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
}

/* Signature move, ported from the app: a 2pt lime bar, bright in the centre, transparent at the
 * ends, with a soft bloom, sweeping top↔bottom on a 2.4s ease loop. */
.scan-tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime) 45%, var(--lime) 55%, transparent);
  box-shadow: 0 0 18px 2px rgba(207, 255, 59, 0.55);
  animation: sweep 2.4s ease-in-out infinite alternate;
}

@keyframes sweep {
  from {
    top: 8%;
  }
  to {
    top: 92%;
  }
}

.ring {
  position: relative;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  /* Conic progress ring — 7.4/10 of the sweep is lime, the rest is track. */
  background: conic-gradient(var(--lime) 0 74%, var(--surface-2) 74% 100%);
}

.ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #0a0a0a;
}

.ring-inner {
  position: relative;
  text-align: center;
  display: grid;
  gap: 2px;
}

.ring-score {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(38px, 6vw, 52px);
  font-weight: 700;
  color: var(--lime);
  line-height: 1;
}

.ring-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label-3);
}

/* ---------------------------------------------------------------- metrics */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 860px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metric {
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--hairline);
  display: grid;
  gap: 10px;
}

.metric-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.metric-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--label-2);
}

.metric-value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  font-weight: 700;
  color: var(--label);
}

.bar {
  height: 4px;
  border-radius: 2px;
  background: var(--surface-2);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--lime);
}

/* ---------------------------------------------------------------- steps */

.step {
  position: relative;
  padding-top: 28px;
}

.step-n {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 0.1em;
}

.step h3 {
  margin: 10px 0 8px;
}

.step p {
  color: var(--label-2);
  font-size: 15px;
}

/* ---------------------------------------------------------------- privacy split */

.privacy-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 860px) {
  .privacy-split {
    grid-template-columns: 1fr;
  }
}

.ledger {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.ledger h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 16px;
}

.ledger ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.ledger li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: 15px;
  color: var(--label-2);
  line-height: 1.5;
}

.ledger li b {
  color: var(--label);
  font-weight: 600;
}

.tick {
  color: var(--delta-pos);
  font-weight: 700;
}

.cross {
  color: var(--label-3);
  font-weight: 700;
}

/* ---------------------------------------------------------------- faq */

.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 20px;
  color: var(--lime);
  flex: none;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  padding: 0 0 20px;
  color: var(--label-2);
  max-width: 72ch;
}

/* ---------------------------------------------------------------- cta */

.cta {
  text-align: center;
}

.cta .wrap {
  display: grid;
  gap: 24px;
  justify-items: center;
}

.cta-card {
  width: 100%;
  padding: clamp(40px, 6vw, 64px) 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(207, 255, 59, 0.08), rgba(207, 255, 59, 0.02));
  border: 1px solid rgba(207, 255, 59, 0.22);
  display: grid;
  gap: 20px;
  justify-items: center;
}

/* ---------------------------------------------------------------- footer */

.site-foot {
  border-top: 1px solid var(--hairline);
  padding: 40px 0;
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.foot-links a {
  color: var(--label-2);
  font-size: 14px;
}

.foot-links a:hover {
  color: var(--label);
  text-decoration: none;
}

.foot-legal {
  font-size: 13px;
  color: var(--label-3);
}

/* ---------------------------------------------------------------- legal pages */

.legal {
  padding: clamp(48px, 7vw, 80px) 0 96px;
}

.legal .wrap {
  max-width: 760px;
}

.legal-head {
  display: grid;
  gap: 12px;
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--hairline);
}

.legal-head h1 {
  font-size: clamp(32px, 5vw, 44px);
}

.updated {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--label-3);
}

/* The one-paragraph summary at the top of each legal page. A policy nobody reads protects nobody,
 * so the honest version of it is stated in plain words before the clauses begin. */
.tldr {
  padding: 20px 22px;
  border-radius: var(--radius-card);
  background: rgba(100, 210, 255, 0.06);
  border: 1px solid rgba(100, 210, 255, 0.25);
  margin-bottom: 40px;
}

.tldr .eyebrow {
  color: var(--cyan);
  margin-bottom: 8px;
  display: block;
}

.tldr p {
  font-size: 15px;
  color: var(--label-2);
}

.tldr p + p {
  margin-top: 10px;
}

.legal h2 {
  font-size: 20px;
  margin: 40px 0 12px;
  scroll-margin-top: 88px;
}

.legal h2 .n {
  font-family: var(--mono);
  color: var(--lime);
  margin-right: 10px;
}

.legal h3 {
  font-size: 16px;
  margin: 24px 0 8px;
  color: var(--label);
}

.legal p,
.legal li {
  color: var(--label-2);
  font-size: 16px;
  line-height: 1.65;
}

.legal p + p {
  margin-top: 14px;
}

.legal ul {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.legal li::marker {
  color: var(--label-3);
}

.legal strong {
  color: var(--label);
  font-weight: 600;
}

.legal table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 15px;
}

.legal thead th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label-3);
}

.legal tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--hairline);
  color: var(--label-2);
  vertical-align: top;
}

.legal tbody td:first-child {
  color: var(--label);
  font-weight: 600;
  white-space: nowrap;
}

/* Wide tables scroll inside themselves — the page body never scrolls sideways. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------------------------------------------------------------- support */

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}

@media (max-width: 860px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

.mailto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
}
