/* ============================================================
   OLYMPIAN — style.css
   Mobile-first. Dark. Monospace-led.
   ============================================================ */

/* 1. TOKENS */
:root {
  --bg:        #FAFAF8;
  --surf:      #F2F1EE;
  --surf-2:    #E8E6E1;
  --text:      #1A1A18;
  --text-2:    #5A5A54;
  --text-3:    #9A9A90;
  --flag:      #B85F22;
  --flag-bg:   rgba(184, 95, 34, 0.07);
  --flag-bg-2: rgba(184, 95, 34, 0.14);
  --match:     #1F6E55;
  --border:    rgba(26, 26, 24, 0.09);
  --border-2:  rgba(26, 26, 24, 0.15);
  --mono:      ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, 'Courier New', monospace;
  --sans:      system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max:       860px;
  --px:        1.25rem;
  --section:   4.5rem;
}

/* 2. RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

a {
  color: var(--text);
  text-decoration-color: var(--text-3);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover { color: var(--flag); text-decoration-color: var(--flag); }

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

/* 3. LAYOUT */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
}

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

/* 4. TYPE SCALE */
h1 {
  font-family: var(--mono);
  font-size: clamp(1.65rem, 5.5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text);
}

h2 {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-2);
  margin-bottom: 1.75rem;
}

h3 {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

p { line-height: 1.7; }
p + p { margin-top: 0.9rem; }

/* 5. NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flag);
}

.nav-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text); }

.nav-email-link {
  display: none;
}

@media (min-width: 560px) {
  .nav-email-link { display: block; }
}

/* 6. HERO */
.hero {
  padding: 3.5rem 0 3rem;
}

.hero h1 {
  margin-bottom: 1rem;
  max-width: 18ch;
}

.hero-tagline {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

/* 7. LEDGER PREVIEW */
.ledger-outer {
  margin: 0 0 2.5rem;
}

.ledger-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.ledger-id {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

.ledger-scroll-hint {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-3);
}

@media (min-width: 680px) {
  .ledger-scroll-hint { display: none; }
}

.ledger-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-2);
  border-radius: 3px;
  background: #ffffff;
  position: relative;
}

.ledger {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.ledger thead th {
  padding: 0.55rem 1rem;
  text-align: left;
  color: var(--text-3);
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.ledger thead th:nth-child(2),
.ledger thead th:nth-child(3) {
  text-align: right;
}

.ledger thead th:nth-child(4) {
  text-align: center;
  padding-right: 1.25rem;
}

.ledger tbody td {
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--border);
  white-space: nowrap;
}

.ledger tbody td:nth-child(2),
.ledger tbody td:nth-child(3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ledger tbody td:nth-child(4) {
  text-align: center;
  padding-right: 1.25rem;
}

.ledger tbody tr.row-match td { color: var(--text-2); }

.ledger tbody tr.row-flag {
  background: var(--flag-bg);
  animation: flag-pulse 4s ease-in-out infinite;
}
.ledger tbody tr.row-flag td { color: var(--text); }

@keyframes flag-pulse {
  0%, 100% { background: var(--flag-bg); }
  50%       { background: var(--flag-bg-2); }
}

td.empty-cell { color: var(--text-3); }

.status-match {
  color: var(--match);
  font-size: 0.72rem;
}

.status-flag {
  color: var(--flag);
  font-size: 0.72rem;
  font-weight: 500;
}

.ledger-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--border);
}

.ledger-footer-text {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-3);
}

.ledger-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--flag);
  background: var(--flag-bg);
  border: 1px solid rgba(200, 107, 42, 0.25);
  border-radius: 2px;
  padding: 0.15em 0.5em;
}

/* 8. HERO CTA */
.hero-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 0.75rem 1.4rem;
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 3px;
  text-decoration: none;
  color: var(--bg);
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  min-height: 44px;
}
.hero-cta:hover {
  opacity: 0.82;
  color: var(--bg);
}

/* 9. BENEFITS */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 560px) {
  .benefits-grid { grid-template-columns: 1fr 1fr; }
}

.benefit {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 560px) {
  .benefit {
    padding: 1.5rem 1.5rem 1.5rem 0;
    border-right: 1px solid var(--border);
  }
  .benefit:nth-child(even) {
    padding-left: 1.5rem;
    padding-right: 0;
    border-right: none;
  }
  /* Remove bottom border on last row */
  .benefit:nth-last-child(-n+2) { border-bottom: none; }
}

/* Always remove bottom border from last item on mobile */
.benefit:last-child { border-bottom: none; }

.benefit-title {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.benefit-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 40ch;
}

/* 9b. PROBLEM */
.problem-body {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 60ch;
}
.problem-body p { line-height: 1.75; }
.problem-body strong { color: var(--text); font-weight: 500; }

/* 10. DARK SECTION */
.section-dark {
  background: #0D0D0D;
  border-top: none;
  border-bottom: none;
  margin-top: 1px; /* prevent border collapse */
}

.section-dark h2 {
  color: rgba(255, 255, 255, 0.38);
}

.section-dark .step {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.section-dark .step-num {
  color: rgba(255, 255, 255, 0.2);
}

.section-dark .step-body h3 {
  color: #ffffff;
}

.section-dark .step-body p {
  color: rgba(255, 255, 255, 0.55);
}

.section-dark .step-note {
  color: rgba(255, 255, 255, 0.3);
}

.steps-cta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.steps-cta-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 0.75rem 1.4rem;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 3px;
  text-decoration: none;
  color: #0D0D0D;
  transition: opacity 0.15s;
  min-height: 44px;
}

.steps-cta-btn:hover {
  opacity: 0.82;
  color: #0D0D0D;
}

/* 11. HOW IT WORKS */
.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.step:first-child { padding-top: 0; }
.step:last-child { border-bottom: none; }

.step-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-3);
  padding-top: 0.2rem;
  letter-spacing: 0.05em;
}

.step-body h3 {
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.step-body p {
  font-size: 0.875rem;
  color: var(--text-2);
  max-width: 52ch;
  line-height: 1.65;
}

.step-note {
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-3);
  max-width: 50ch;
  line-height: 1.5;
}

/* 11. FOR WHO */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 560px) {
  .fit-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.fit-col-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
  display: block;
}

.fit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fit-list li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
  align-items: start;
}

.fit-list li::before {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding-top: 0.08rem;
}

.fit-col.yes .fit-list li::before {
  content: '✓';
  color: var(--match);
}

.fit-col.no .fit-list li::before {
  content: '✕';
  color: var(--text-3);
}

/* 12. ABOUT */
.about-body {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 54ch;
}
.about-body p { line-height: 1.75; }
.about-body strong { color: var(--text); font-weight: 500; }

/* 13. CONTACT */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .contact-layout {
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
  }
}

.contact-info-head {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.contact-info-sub {
  font-size: 0.875rem;
  color: var(--text-2);
  max-width: 32ch;
  margin-bottom: 1.5rem;
}

.contact-email-link {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-2);
  padding-bottom: 2px;
  display: inline-block;
  word-break: break-all;
  transition: color 0.15s, border-color 0.15s;
}
.contact-email-link:hover {
  color: var(--flag);
  border-bottom-color: var(--flag);
}

.contact-reply-note {
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 28ch;
}

/* 14. FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.form-field input,
.form-field textarea {
  background: #ffffff;
  border: 1px solid var(--border-2);
  border-radius: 3px;
  color: var(--text);
  font-size: 16px; /* 16px prevents iOS zoom */
  font-family: var(--sans);
  padding: 0.65rem 0.85rem;
  width: 100%;
  min-height: 44px;
  line-height: 1.5;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-3);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(232, 227, 216, 0.25);
}

.form-field:focus-within label {
  color: var(--text-2);
}

/* Honeypot — hidden from real users, bots fill it */
.hp-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  tab-index: -1;
}

.form-submit {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 3px;
  color: var(--bg);
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  align-self: flex-start;
  transition: opacity 0.15s;
}

.form-submit:hover:not(:disabled) {
  opacity: 0.82;
}

.form-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.form-status {
  display: none;
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: 3px;
  line-height: 1.5;
}

.form-status.success {
  display: block;
  background: rgba(38, 122, 98, 0.10);
  border: 1px solid rgba(38, 122, 98, 0.25);
  color: var(--match);
}

.form-status.error {
  display: block;
  background: var(--flag-bg);
  border: 1px solid rgba(200, 107, 42, 0.25);
  color: var(--flag);
}

.form-status.error a {
  color: var(--flag);
  text-decoration-color: rgba(200, 107, 42, 0.4);
}

/* 15. FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
}

@media (min-width: 560px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-co {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-3);
  line-height: 1.85;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

@media (min-width: 560px) {
  .footer-links {
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
  }
}

.footer-links a {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-2); }

/* 16. LEGAL PAGES */
.legal-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 1rem 0;
}

.legal-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-back {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
}
.legal-back:hover { color: var(--text-2); }

.legal-logo {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text-2);
  text-decoration: none;
}

.legal-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 0.6rem;
}

.legal-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-3);
}

.legal-body {
  padding: 3rem 0 5rem;
}

.legal-body h2 {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: 0.02em;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 0.75rem;
  max-width: 66ch;
  line-height: 1.7;
}

.legal-body ul,
.legal-body ol {
  margin: 0.5rem 0 0.85rem 1.25rem;
}

.legal-body li {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 0.4rem;
  line-height: 1.65;
  max-width: 62ch;
}

.define {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--surf-2);
  border: 1px solid var(--border-2);
  border-radius: 2px;
  padding: 0.1em 0.4em;
  color: var(--flag);
}

.legal-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.legal-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legal-footer-co {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-3);
}

.legal-footer-links {
  display: flex;
  gap: 1.25rem;
}

.legal-footer-links a {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-3);
  text-decoration: none;
}
.legal-footer-links a:hover { color: var(--text-2); }

/* Security specific */
.security-table {
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.78rem;
  margin: 1rem 0 1.5rem;
}

.security-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  color: var(--text-3);
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.security-table td {
  padding: 0.55rem 0.75rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.security-table td:first-child {
  color: var(--text);
  white-space: nowrap;
  padding-right: 1.5rem;
}
