/* ybicu.com — shared stylesheet */

:root {
  --ink:        #12212f;
  --ink-2:      #24384a;
  --muted:      #5d7183;
  --muted-2:    #8b9caa;
  --paper:      #fbfaf7;
  --paper-2:    #f2efe9;
  --rule:       #e0dcd3;
  --accent:     #1f5f73;
  --accent-2:   #2d7e96;
  --accent-bg:  #eaf1f3;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1080px;
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:       #e9eef2;
    --ink-2:     #c6d2db;
    --muted:     #97a8b6;
    --muted-2:   #74879a;
    --paper:     #0d1720;
    --paper-2:   #131f2a;
    --rule:      #253442;
    --accent:    #6fb9cd;
    --accent-2:  #8fd0e2;
    --accent-bg: #14242e;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 720px; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.95rem); }
h3 { font-size: 1.16rem; font-family: var(--sans); font-weight: 650; letter-spacing: -0.005em; }
p  { margin: 0 0 1.1em; }

.eyebrow {
  font-size: 0.735rem; font-weight: 650; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 0.9rem;
}

.lede { font-size: 1.17rem; line-height: 1.6; color: var(--ink-2); }
.small { font-size: 0.9rem; color: var(--muted); }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 74px;
}
.brand { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--accent); }
.brand span { display: block; font-family: var(--sans); font-size: 0.685rem; font-weight: 550; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 0.925rem; font-weight: 500; color: var(--ink-2);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent); text-decoration: none; border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav .nav-cta {
  border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 8px 16px; color: var(--accent); font-weight: 550;
}
.nav .nav-cta:hover { background: var(--accent); color: var(--paper); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 8px 12px; color: var(--ink);
  font: inherit; font-size: 0.85rem; cursor: pointer;
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-header .header-inner { min-height: 64px; }
  .site-header .brand { font-size: 0.98rem; }
  .site-header .brand span { font-size: 0.63rem; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--accent); }
  .nav .nav-cta { margin-top: 14px; text-align: center; border: 1px solid var(--accent); }
}

/* ---------- sections ---------- */
section { padding: 76px 0; }
section.tight { padding: 52px 0; }
.band { background: var(--paper-2); border-block: 1px solid var(--rule); }

.section-head { max-width: 660px; margin-bottom: 42px; }
.section-head p { margin-bottom: 0; color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding: 92px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 268px; gap: 60px; align-items: start; }
.hero h1 { margin-bottom: 18px; }
.hero .creds {
  font-family: var(--sans); font-size: 0.83rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 26px;
}
.hero .lede { margin-bottom: 30px; }

.portrait {
  aspect-ratio: 4 / 5; width: 100%;
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait .initials {
  font-family: var(--serif); font-size: 3.4rem; color: var(--muted-2); letter-spacing: 0.04em;
}

@media (max-width: 860px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .portrait { max-width: 220px; }
}

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 550; border: 1px solid var(--accent);
  background: var(--accent); color: var(--paper);
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--paper); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); }

/* ---------- stat strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--paper); padding: 26px 20px; }
.stat dt { font-family: var(--serif); font-size: 1.85rem; font-weight: 600; color: var(--ink); line-height: 1; }
.stat dd { margin: 8px 0 0; font-size: 0.83rem; line-height: 1.4; color: var(--muted); }
.band .stat { background: var(--paper-2); }

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

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .cards, .cards-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column;
}
.band .card { background: var(--paper); }
.card .num {
  font-family: var(--serif); font-size: 0.9rem; color: var(--accent);
  border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 16px;
  letter-spacing: 0.06em;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 0.955rem; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: 0.94rem; }
.card ul li { margin-bottom: 6px; }
.card .card-link { margin-top: auto; padding-top: 18px; font-size: 0.9rem; font-weight: 550; }
.card-quiet { background: var(--paper-2); border-style: dashed; }
.band .card-quiet { background: var(--paper-2); }

/* ---------- resource cards ---------- */
.resource {
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 32px 30px; background: var(--paper); margin-bottom: 24px;
}
.resource-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.resource h3 { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; }
.tag {
  font-size: 0.7rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-bg);
  border-radius: 100px; padding: 4px 12px; white-space: nowrap;
}
.resource p { color: var(--ink-2); font-size: 0.97rem; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 18px 0 22px; padding: 0; list-style: none; }
.facts li { font-size: 0.86rem; color: var(--muted); position: relative; padding-left: 15px; }
.facts li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- prose lists ---------- */
.prose h2 { margin: 46px 0 16px; }
.prose h3 { margin: 32px 0 12px; }
.prose ul { padding-left: 1.15em; color: var(--ink-2); }
.prose li { margin-bottom: 8px; }
.prose > :first-child { margin-top: 0; }
.prose-column { max-width: 764px; }

.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li {
  border: 1px solid var(--rule); border-radius: 100px; padding: 7px 16px;
  font-size: 0.885rem; color: var(--ink-2); background: var(--paper);
}

.def-list { margin: 0; }
.def-list > div {
  display: grid; grid-template-columns: 132px 1fr; gap: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.def-list > div:first-child { border-top: 1px solid var(--rule); }
.def-list dt { font-size: 0.83rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.def-list dd { margin: 0; color: var(--ink-2); font-size: 0.96rem; }
@media (max-width: 640px) { .def-list > div { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- steps ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.steps li { counter-increment: s; padding-left: 54px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--accent);
  color: var(--accent); font-family: var(--serif); font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.steps strong { display: block; margin-bottom: 3px; color: var(--ink); }
.steps span { color: var(--ink-2); font-size: 0.95rem; }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 0.83rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.96rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 11px 13px; width: 100%;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }

.notice {
  border-left: 3px solid var(--accent); background: var(--accent-bg);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.92rem; color: var(--ink-2);
}
.notice p:last-child { margin-bottom: 0; }

/* ---------- cta band ---------- */
.cta { background: var(--ink); color: var(--paper); text-align: center; border: 0; }
.cta h2 { color: var(--paper); margin-bottom: 14px; }
.cta p { color: var(--muted-2); max-width: 560px; margin: 0 auto 28px; }
.cta .btn { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.cta .btn:hover { background: var(--paper-2); border-color: var(--paper-2); color: var(--ink); }
@media (prefers-color-scheme: dark) {
  .cta { background: var(--paper-2); }
  .cta h2 { color: var(--ink); }
  .cta p { color: var(--muted); }
  .cta .btn { background: var(--accent); border-color: var(--accent); color: #0d1720; }
  .cta .btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #0d1720; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 46px 0 56px; background: var(--paper); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { font-size: 0.9rem; color: var(--ink-2); }
.disclaimer { max-width: 620px; font-size: 0.83rem; line-height: 1.6; color: var(--muted); margin: 30px 0 0; }
.copyright { font-size: 0.83rem; color: var(--muted-2); margin: 14px 0 0; }

/* simulator cards: title + tag on one line */
.card .resource-head { margin-bottom: 12px; gap: 10px; }
.card .resource-head h3 { margin-bottom: 0; }
