/*
 * Success-Led Selling — marketing static site.
 *
 * The four inviolable color rules (from .kilo/agent/color-enforcement.md):
 *   Rule 1: #000000 background, #CFFF04 text — pages, body, containers, cards.
 *   Rule 2: #000000 background, #FFFFFF text — secondary labels and metadata.
 *   Rule 3: #CFFF04 background, #000000 text — buttons, highlights, active tabs.
 *   Rule 4: #FFFFFF background, #000000 text — printable output only (print
 *           media below). Every white background carries an explicit color:#000.
 * Exception colors (text only on black): #ff9800 callout headings.
 *
 * Mobile-first. Breakpoints: 768px (tablet), 1024px (desktop).
 * Touch targets: buttons and interactive controls are minimum 44px high.
 */
:root {
  --bg: #000000;
  --lime: #CFFF04;
  --white: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.72);
  --callout: #ff9800;
  --success: #10b981;
  --error: #ef4444;
  --line: rgba(207, 255, 4, 0.28);
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.5rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --measure: 68ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--lime);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--bg); background: var(--lime); }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--lime);
  color: var(--bg);
  padding: var(--space-2) var(--space-3);
}
.skip-link:focus { left: var(--space-3); top: var(--space-3); z-index: 10; }

/* Rule 3: promo strip on lime. */
.banner {
  background: var(--lime);
  color: var(--bg);
  text-align: center;
  padding: var(--space-2) var(--space-3);
  margin: 0;
}
.banner a { color: var(--bg); font-weight: 700; }
.banner a:hover, .banner a:focus-visible { background: var(--bg); color: var(--lime); }

.container {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  padding: var(--space-3) 0;
}
.header-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
.brand img {
  height: 2rem;
  width: auto;
  border-radius: var(--radius-sm);
}
.nav__tagline {
  margin: 0;
  color: var(--white);
  font-size: 0.95rem;
}

.country-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}
.country-switch__label { color: var(--white); font-size: 0.95rem; }
.country-switch__select {
  min-height: 44px;
  background: var(--bg);
  color: var(--lime);
  border: 1px solid var(--lime);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-2);
  font-size: 1rem;
}
.country-switch__value { color: var(--white); font-size: 0.95rem; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}
/* Rule 3: the active tab is a lime fill. */
.site-nav a[aria-current="page"] {
  background: var(--lime);
  color: var(--bg);
  border-color: var(--lime);
}

/* ----------------------------- typography ----------------------------- */

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin: 0 0 var(--space-3);
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.85rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 3.5vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); }

p, ul, ol, dl { margin: 0 0 var(--space-3); }

.eyebrow {
  color: var(--callout);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin: 0 0 var(--space-2);
}

/* Rule 2: secondary copy on black. */
.supporting, .card__limit, .photo__caption, .nav__tagline,
.country-switch__label, .country-switch__value, footer .meta {
  color: var(--white);
}
.semibold { font-weight: 700; }

/* Honest-limit labels are callout headings (exception color, black background). */
.card__limit strong, .limits-label {
  color: var(--callout);
  font-weight: 700;
}

/* ----------------------------- sections ----------------------------- */

.section {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line);
}
.section--line { border-top: 1px solid var(--line); }

.hero {
  padding: var(--space-6) 0;
}
.hero-split {
  display: grid;
  gap: var(--space-5);
}
.hero__subline { max-width: var(--measure); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}
.hero__meta {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.hero__meta li {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  color: var(--white);
  font-size: 0.95rem;
}

/* Rule 3: promo sections sit on lime with black text. */
.section--promo {
  background: var(--lime);
  color: var(--bg);
}
.section--promo h2, .section--promo h3, .section--promo a { color: var(--bg); }
.section--promo .eyebrow { color: var(--bg); }
.section--promo .button {
  background: var(--bg);
  color: var(--lime);
  border-color: var(--bg);
}
.section--promo .button:hover, .section--promo .button:focus-visible {
  background: var(--white);
  color: var(--bg);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--lime);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
/* Rule 3: primary button is a lime fill. */
.button, .button--on-dark {
  background: var(--lime);
  color: var(--bg);
}
.button:hover, .button:focus-visible,
.button--on-dark:hover, .button--on-dark:focus-visible {
  background: var(--white);
  color: var(--bg);
}
/* Rule 1: secondary button is black with lime text. */
.button--dark {
  background: var(--bg);
  color: var(--lime);
}
.button--dark:hover, .button--dark:focus-visible {
  background: var(--lime);
  color: var(--bg);
}
.button--quiet {
  background: var(--bg);
  color: var(--lime);
  border-color: var(--line);
  font-weight: 600;
}

/* ----------------------------- cards and grids ----------------------------- */

.grid {
  display: grid;
  gap: var(--space-4);
}
.grid--cards { grid-template-columns: 1fr; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: var(--bg);
  color: var(--lime);
}
.card__title, .task-card__title { font-weight: 700; }

.price-card__amount {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 var(--space-2);
}

.split {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

.feature-row {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
}
.feature-row__num {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 1.4rem;
  color: var(--callout);
  margin: 0;
}

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  counter-reset: step;
}
.steps__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-right: var(--space-2);
  border-radius: 50%;
  background: var(--lime);
  color: var(--bg);
  font-weight: 700;
}

.photo-figure { margin: 0; }
.photo {
  border-radius: var(--radius-md);
  width: 100%;
}
.photo__caption {
  margin-top: var(--space-2);
  font-size: 0.95rem;
}

/* ----------------------------- tables and lists ----------------------------- */

.definition-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
}
.definition-list dt { font-weight: 700; }
.definition-list dd { margin: 0; color: var(--white); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--space-4);
}
th, td {
  border: 1px solid var(--line);
  padding: var(--space-2);
  text-align: left;
  vertical-align: top;
}
th { color: var(--bg); background: var(--lime); }
td { color: var(--lime); }

/* ----------------------------- forms ----------------------------- */

.optin-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: flex-start;
}
input[type="email"],
input[type="number"],
input[type="text"] {
  min-height: 44px;
  background: var(--bg);
  color: var(--lime);
  border: 1px solid var(--lime);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-2);
  font-size: 1rem;
}
.optin-form input[type="email"] {
  flex: 1 1 16rem;
}
.form-status { margin: var(--space-2) 0 0; min-height: 1.5em; }
.form-status--success { color: var(--success); }
.form-status--error { color: var(--error); }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-6) 0 var(--space-5);
}
.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
}
.proof-rail {
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  color: var(--white);
}

/* ----------------------------- breakpoints ----------------------------- */

@media (min-width: 768px) {
  .grid--cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 3rem 1fr 18rem; align-items: start; }
}

@media (min-width: 1024px) {
  .grid--cards { grid-template-columns: repeat(3, 1fr); }
  .hero-split { grid-template-columns: 1.2fr 1fr; align-items: center; }
}

/* ----------------------------- print (Rule 4) ----------------------------- */

@media print {
  body {
    background: #FFFFFF;
    color: #000000;
  }
  .banner, .site-header, .country-switch, .site-nav, .optin-form,
  .proof-rail, .hero__actions, .button {
    display: none;
  }
  a { color: #000000; }
  h1, h2, h3, h4, h5, h6, .eyebrow, .supporting, .card__limit,
  .photo__caption, .nav__tagline, .definition-list dd {
    color: #000000;
  }
  .card, .steps__number, table, th, td {
    background: #FFFFFF;
    color: #000000;
    border-color: #000000;
  }
}
