/* Keyra — production stylesheet
   Tokens */
:root {
  --ink: #0E1117;
  --ink-2: #2A2F3A;
  --text: #0E1117;
  --muted: #5B6472;
  --muted-2: #3C4450;
  --line: #E3E6EA;
  --line-2: #CBD0D6;
  --ground: #FFFFFF;
  --ground-2: #F5F6F8;
  --accent: #0A6B4F;
  --accent-dark: #4ADE9B;
  --on-dark-muted: #A3ABB8;
  --on-dark-soft: #D5DAE1;
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1160px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", Inter, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img, svg { display: inline-block; vertical-align: middle; }
h1, h2, h3, p, ul, ol, dl { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.eyebrow { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

h1.display { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.03em; }
h2.display { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.025em; }
.lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 560px; }
.sub { font-size: 17px; line-height: 1.55; color: var(--muted); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.btn-primary { background: var(--ink); color: #FFFFFF; }
.btn-primary:hover { background: var(--ink-2); color: #FFFFFF; }
.btn-secondary { background: #FFFFFF; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 18px; }
.btn-block { width: 100%; min-height: 52px; font-size: 16px; }

/* Nav */
.site-header { border-bottom: 1px solid var(--line); background: #FFFFFF; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.nav-link { text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500; padding: 8px 4px; }
.nav-link:hover { color: var(--accent); }

/* Hero */
.hero { padding: 88px 0 72px; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.checks { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--muted); }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks svg { color: var(--accent); flex: 0 0 auto; }
.hero-panel { flex: 1 1 400px; min-width: 0; background: var(--ink); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-muted); }
.panel-head .cap { letter-spacing: 0.08em; text-transform: uppercase; }
.mini { background: #FFFFFF; border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.mini-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.mini-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.mini-sum { font-size: 14px; color: var(--muted); }
.mini-fee { margin-top: 6px; display: flex; align-items: baseline; gap: 10px; }
.mini-fee .amt { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--accent); }

/* Stats */
.stats { padding-bottom: 72px; }
.stats-grid { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stat { padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 36px; letter-spacing: -0.02em; }
.stat-txt { font-size: 15px; color: var(--muted); }

/* How it works */
.how { padding: 24px 0 96px; }
.how-grid { margin-top: 40px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.step-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.step-txt { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Listings */
.listings { padding: 80px 0 72px; background: var(--ground-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.listings .container { display: flex; flex-direction: column; gap: 32px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; border: 1px solid var(--line-2); background: #FFFFFF; color: var(--ink); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.count { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: #FFFFFF; overflow: hidden; }
.card[open] { border-color: var(--ink); }
.card.is-open { grid-column: 1 / -1; }
.card[hidden] { display: none; }
.card-head { list-style: none; cursor: pointer; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.card-head::-webkit-details-marker { display: none; }
.card-head:hover { background: #F7F8FA; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); line-height: 1.4; }
.chev { flex: 0 0 auto; color: var(--muted); transition: transform .15s ease; }
.card[open] .card-head .chev { transform: rotate(180deg); }
.card-name { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
.card-sum { font-size: 15px; line-height: 1.5; color: var(--muted); }
.card-fees { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.fee { display: flex; flex-direction: column; gap: 2px; }
.fee-big { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--accent); }
.fee-mid { font-family: var(--font-display); font-weight: 600; font-size: 18px; padding-top: 3px; }

.card-body { border-top: 1px solid var(--line); padding: 28px 22px 26px; display: flex; flex-direction: column; gap: 30px; }
.body-top { display: flex; flex-wrap: wrap; gap: 32px; }
.body-overview { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.body-overview p { font-size: 16px; line-height: 1.6; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.fact { display: flex; flex-direction: column; gap: 3px; }
.fact-wide { grid-column: 1 / -1; }
.fact dd { margin: 0; font-size: 15px; line-height: 1.45; }
.fit-grid { flex: 1 1 360px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; align-content: start; }
.fit-box { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.fit-box.no { background: var(--ground-2); }
.fit-title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.fit-title svg { color: var(--accent); }
.fit-box.no .fit-title svg { color: var(--muted); }
.fit-list { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.fit-list li { display: flex; gap: 9px; font-size: 14.5px; line-height: 1.45; }
.fit-list svg { flex: 0 0 auto; margin-top: 3px; color: var(--accent); }
.fit-box.no .fit-list li { color: var(--muted-2); }
.fit-box.no .fit-list svg { color: var(--muted); }
.body-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; padding-top: 26px; border-top: 1px solid var(--line); }
.detail-col { display: flex; flex-direction: column; gap: 10px; }
.detail-col ul, .detail-col ol { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; line-height: 1.45; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; }
.tool { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 8px; background: var(--ground-2); border: 1px solid var(--line); font-size: 13px; }
.body-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.body-cta .note { font-size: 14px; color: var(--muted); }
.body-cta .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.body-cta .btn { min-height: 44px; }

.not-listed { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: #FFFFFF; }
.not-listed-title { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.not-listed-txt { font-size: 15px; color: var(--muted); }

/* Referral */
.refer { padding: 80px 0; }
.refer-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.refer-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.refer-steps { flex: 1 1 320px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rstep { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.rstep-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.rstep-title { font-weight: 600; font-size: 16px; }
.rstep-txt { font-size: 14px; line-height: 1.5; color: var(--muted); }
.refer-steps .btn { grid-column: 1 / -1; }

/* Contact */
.contact { padding: 88px 0; background: var(--ink); color: #FFFFFF; }
.contact-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.contact-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact .eyebrow { color: var(--accent-dark); }
.contact h2 { color: #FFFFFF; }
.contact .sub { color: var(--on-dark-muted); }
.contact-points { margin-top: 8px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--on-dark-soft); }
.contact-points li { display: flex; gap: 10px; }
.contact-points svg { flex: 0 0 auto; margin-top: 2px; color: var(--accent-dark); }
.contact-points a { color: #FFFFFF; }
.form-card { flex: 1 1 480px; min-width: 0; background: #FFFFFF; color: var(--text); border-radius: 18px; padding: 32px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #FFFFFF; color: var(--text); font-size: 15px; }
.input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(14, 17, 23, 0.12); }
textarea.input { min-height: 132px; resize: vertical; line-height: 1.5; }
.fine { font-size: 13px; line-height: 1.5; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; flex-direction: column; gap: 16px; padding: 16px 0; }
.form-status.is-visible { display: flex; }
.form-status svg { color: var(--accent); }
.form-status h3 { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; }
.form-status p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.form-error { display: none; border: 1px solid #E0B4B4; background: #FDF4F4; color: #7A2E2E; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.form-error.is-visible { display: block; }
.form-error a { color: #7A2E2E; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* FAQ */
.faq-section { padding: 88px 0; }
.faq-wrap { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.faq > summary::-webkit-details-marker { display: none; }
.faq[open] > summary .chev { transform: rotate(180deg); }
.faq p { padding: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--muted-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; background: #FFFFFF; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.footer-brand .brand-name { font-size: 19px; }
.footer-brand p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.footer-brand a { font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; }
.footer-links .nav-link { padding: 0; }
.footer-bottom { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--muted); }

/* Simple pages (privacy, thanks, 404) */
.page { padding: 72px 0 96px; }
.page-wrap { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.page h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin-top: 12px; }
.page p, .page li { font-size: 16px; line-height: 1.6; color: var(--muted-2); }
.page ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.page-note { border: 1px solid var(--line); background: var(--ground-2); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; color: var(--muted); }

/* Responsive */
@media (max-width: 720px) {
  .hero { padding: 56px 0 48px; }
  .hero-panel { display: none; }
  .stat { padding-left: 0; padding-right: 0; }
  .facts { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .refer-steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chev, .btn { transition: none; }
}
