/*
 * SkillsetOps marketing site — layout and components on top of the shared
 * design tokens (tokens.css) and reset (base.css). Ledger rows, ruled
 * dividers, square corners, no shadows — see 01_DESIGN_SYSTEM.md in the
 * app repo, which this site follows for visual consistency.
 */

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header a,
.site-footer a,
.button {
  text-decoration: none;
}

.wrap {
  max-width: var(--layout-column-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ---- Header ---- */

.site-header {
  border-bottom: var(--rule-border);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--layout-row-min-height);
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.brand {
  font-weight: 600;
  font-size: var(--text-subsection-size);
  color: var(--ink);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: var(--text-data-label-size);
}

.main-nav a[aria-current="page"] {
  color: var(--slate);
}

/* ---- Buttons ---- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-interface);
  font-weight: 500;
  font-size: var(--text-interface-body-size);
  border: 1px solid transparent;
  white-space: nowrap;
}

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

.button--primary {
  background: var(--slate);
  color: var(--surface);
}

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

.button--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.button--secondary:hover {
  background: var(--slate-wash);
}

.cta-row {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ---- Hero ---- */

.hero {
  padding: var(--space-16) 0 var(--space-12);
  border-bottom: var(--rule-border);
}

.hero h1 {
  max-width: 18ch;
  margin-bottom: var(--space-4);
}

.hero p.lede {
  font-size: var(--text-subsection-size);
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: var(--space-8);
}

/* ---- Progress track motif ---- */

.track {
  display: flex;
  gap: var(--track-segment-gap);
  margin: var(--space-8) 0;
}

.track__segment {
  flex: 1;
  height: var(--track-segment-height);
  background: var(--rule);
}

.track__segment--field {
  background: var(--field);
}

.track__segment--brass {
  background: var(--brass);
}

.track__segment--active {
  height: var(--track-segment-height-active);
}

.track__label {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-data-label-size);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: var(--space-2);
}

/* ---- Sections ---- */

.section {
  padding: var(--space-16) 0;
  border-bottom: var(--rule-border);
}

.section:last-of-type {
  border-bottom: none;
}

.section h2 {
  margin-bottom: var(--space-3);
}

.section .section-intro {
  color: var(--muted);
  max-width: var(--measure-interface);
  margin-bottom: var(--space-8);
  font-size: var(--text-interface-body-size);
}

.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: var(--rule-border);
}

.three-up > div {
  padding: var(--space-6) var(--space-6) var(--space-6) 0;
  border-right: var(--rule-border);
}

.three-up > div:last-child {
  border-right: none;
  padding-right: 0;
}

.three-up h3 {
  margin-bottom: var(--space-2);
}

.three-up p {
  color: var(--muted);
}

@media (max-width: 768px) {
  .three-up {
    grid-template-columns: 1fr;
  }

  .three-up > div {
    border-right: none;
    border-bottom: var(--rule-border);
    padding: var(--space-6) 0;
  }

  .three-up > div:last-child {
    border-bottom: none;
  }
}

/* ---- Ledger rows ---- */

.ledger {
  border-top: var(--rule-border);
}

.ledger-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  min-height: var(--layout-row-min-height);
  padding: var(--space-4) 0;
  border-bottom: var(--rule-border);
}

.ledger-row__label {
  font-weight: 500;
  min-width: 14em;
}

.ledger-row__detail {
  color: var(--muted);
}

/* ---- Two-column with sidebar note ---- */

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

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

.note {
  border-left: 3px solid var(--rule);
  padding-left: var(--space-4);
  color: var(--muted);
  font-size: var(--text-data-label-size);
}

/* ---- Trust / security tiers ---- */

.tier-label {
  display: inline-block;
  font-size: var(--text-fine-print-size);
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2px var(--space-2);
  margin-bottom: var(--space-6);
}

/* ---- Forms ---- */

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.form-field label {
  font-weight: 500;
  font-size: var(--text-data-label-size);
}

.form-field input,
.form-field textarea,
.form-field select {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--space-3);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-interface-body-size);
}

.form-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-actions {
  margin-top: var(--space-8);
}

/* ---- Footer ---- */

.site-footer {
  border-top: var(--rule-border);
  padding: var(--space-8) 0;
  margin-top: var(--space-16);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.site-footer nav {
  display: flex;
  gap: var(--space-6);
}

.site-footer,
.site-footer a {
  color: var(--muted);
  font-size: var(--text-fine-print-size);
}
