/* ==========================================================================
   It’s Fully Online — Landing Page (Minimal, Dark, AI-vibe)
   No video. No marquee. No code-card mockup. No glow. Type does the work.
   ========================================================================== */

/* ── Hero: left-aligned type over the line field ──────────────────── */
.hero {
 position: relative;
 overflow: hidden;
 padding: calc(var(--header-height) + var(--s-11)) 0 var(--s-11);
 border-bottom: 1px solid var(--line-1);
}
.hero-field {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 z-index: 0;
 pointer-events: none;
 /* quiet behind the copy, full strength on the right where the thread runs */
 -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.5) 45%, #000 75%);
 mask-image: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.5) 45%, #000 75%);
}
.hero-inner {
 position: relative;
 z-index: 1;
 max-width: var(--content-max);
}
.hero-eyebrow {
 font-family: var(--font-mono);
 font-size: var(--t-micro);
 letter-spacing: 0.02em;
 color: var(--accent);
 margin: 0 0 var(--s-5);
}
.hero-title {
 font-family: var(--font-display);
 font-size: var(--t-display);
 line-height: 0.92;
 letter-spacing: var(--ls-display);
 color: var(--ink-1);
 margin: 0 0 var(--s-6);
 max-width: 13ch;
 text-transform: uppercase;
}
.hero-title em {
 font-style: normal;
 color: var(--accent);
}
.hero-lede {
 font-size: clamp(1rem, 1.2vw, 1.125rem);
 line-height: 1.6;
 color: var(--ink-2);
 max-width: 54ch;
 margin: 0 0 var(--s-7);
}
.hero-search {
 position: relative;
 max-width: 520px;
 margin: 0 0 var(--s-5);
}
.hero-search input {
 width: 100%;
 height: 52px;
 padding: 0 48px 0 var(--s-5);
 background: var(--bg-1);
 border: 1px solid var(--line-3);
 border-radius: var(--r-3);
 color: var(--ink-1);
 font: inherit;
 font-size: 1rem;
}
.hero-search input::placeholder { color: var(--ink-3); }
.hero-search input:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.hero-search kbd {
 position: absolute;
 right: 14px;
 top: 50%;
 translate: 0 -50%;
 font-family: var(--font-mono);
 font-size: var(--t-micro);
 color: var(--ink-3);
 border: 1px solid var(--line-2);
 border-radius: var(--r-1);
 padding: 1px 7px;
}
.hero-cta {
 display: flex;
 gap: var(--s-3);
 flex-wrap: wrap;
}

/* directory filter chips */
.chips {
 display: flex;
 flex-wrap: wrap;
 gap: var(--s-2);
 margin: 0 0 var(--s-8);
}
.chip-btn {
 font: inherit;
 font-size: var(--t-micro);
 color: var(--ink-2);
 background: transparent;
 border: 1px solid var(--line-2);
 border-radius: var(--r-full);
 padding: 6px 14px;
 cursor: pointer;
 transition: border-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}
.chip-btn span { font-family: var(--font-mono); color: var(--ink-3); margin-left: 4px; }
.chip-btn:hover { border-color: var(--line-3); color: var(--ink-1); }
.chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink-inverse); font-weight: 600; }
.chip-btn[aria-pressed="true"] span { color: var(--ink-inverse); }
.dir-empty { color: var(--ink-2); padding: var(--s-9) 0; }

/* ── Pillars (3 simple text rows, hairline separator) ──────────────── */
.film {
 padding: var(--s-9) 0 var(--s-10);
 border-bottom: 1px solid var(--line-1);
}
.film .section-label {
 margin-bottom: var(--s-5);
}
.pillars {
 padding: var(--s-12) 0;
}
.pillars-head {
 margin-bottom: var(--s-8);
}
.pillars-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 0;
 border-top: 1px solid var(--line-1);
}
.pillar {
 display: flex;
 flex-direction: column;
 gap: var(--s-3);
 padding: var(--s-7) var(--s-5);
 border-bottom: 1px solid var(--line-1);
 border-right: 1px solid var(--line-1);
}
.pillar:last-child {
 border-right: 0;
}
.pillar-num {
 font-family: var(--font-mono);
 font-size: var(--t-micro);
 color: var(--ink-3);
 letter-spacing: 0.04em;
}
.pillar h3 {
 font-family: var(--font-display);
 font-size: 1.05rem;
 margin: 0;
 letter-spacing: var(--ls-snug);
 font-weight: 500;
 color: var(--ink-1);
}
.pillar p {
 font-size: 0.9rem;
 color: var(--ink-2);
 margin: 0;
 line-height: 1.55;
}

/* ── Directory section ──────────────────────────────────────────────── */
.directory {
 padding: var(--s-12) 0;
 border-top: 1px solid var(--line-1);
}
.directory-head {
 display: flex;
 justify-content: space-between;
 align-items: end;
 gap: var(--s-6);
 margin-bottom: var(--s-9);
 flex-wrap: wrap;
}
.directory-head h2 {
 font-family: var(--font-display);
 font-size: var(--t-h1);
 letter-spacing: var(--ls-display);
 margin: 0;
 font-weight: 500;
 max-width: 16ch;
 color: var(--ink-1);
}
.directory-head h2 em {
 font-style: normal;
 color: var(--accent);
}
.directory-head p {
 color: var(--ink-3);
 font-size: 0.92rem;
 max-width: 40ch;
 margin: 0;
 line-height: 1.5;
}

/* ── How section (slim, two-column) ─────────────────────────────────── */
.how {
 padding: var(--s-12) 0;
 border-top: 1px solid var(--line-1);
}
.how-grid {
 display: grid;
 grid-template-columns: 1fr 1.1fr;
 gap: var(--s-9);
 align-items: start;
}
.how-grid > *,
.example-grid > * {
 min-width: 0; /* allow grid children to shrink below min-content (long code lines) */
}
.how h2 {
 font-family: var(--font-display);
 font-size: var(--t-h1);
 letter-spacing: var(--ls-display);
 margin: 0 0 var(--s-4);
 max-width: 14ch;
 font-weight: 500;
 color: var(--ink-1);
}
.how h2 em {
 font-style: normal;
 color: var(--accent);
}
.how p {
 color: var(--ink-2);
 font-size: 0.98rem;
}
.how-steps {
 display: flex;
 flex-direction: column;
 gap: 0;
}
.how-step {
 display: flex;
 gap: var(--s-5);
 align-items: start;
 padding: var(--s-5) 0;
 border-top: 1px solid var(--line-1);
}
.how-step:last-child {
 border-bottom: 1px solid var(--line-1);
}
.how-step-n {
 font-family: var(--font-mono);
 font-size: 0.78rem;
 color: var(--ink-3);
 padding-top: 2px;
 min-width: 24px;
 font-weight: 400;
 letter-spacing: 0.04em;
}
.how-step h4 {
 font-family: var(--font-sans);
 font-size: 0.95rem;
 font-weight: 500;
 margin: 0 0 4px;
 color: var(--ink-1);
}
.how-step p {
 margin: 0;
 font-size: 0.88rem;
 color: var(--ink-3);
}

/* ── Example section (slim, two-column) ─────────────────────────────── */
.example {
 padding: var(--s-12) 0;
 border-top: 1px solid var(--line-1);
}
.example-grid {
 display: grid;
 grid-template-columns: 1fr 1.2fr;
 gap: var(--s-9);
 align-items: start;
}
.example h2 {
 font-family: var(--font-display);
 font-size: var(--t-h2);
 margin: 0 0 var(--s-4);
 letter-spacing: var(--ls-snug);
 font-weight: 500;
 color: var(--ink-1);
}
.example p {
 color: var(--ink-2);
 font-size: 0.95rem;
}
.example-tags {
 display: flex;
 flex-wrap: wrap;
 gap: 6px;
 margin-top: var(--s-4);
}
.example-tag {
 font-family: var(--font-mono);
 font-size: 0.7rem;
 background: transparent;
 border: 1px solid var(--line-2);
 border-radius: var(--r-1);
 padding: 3px 8px;
 color: var(--ink-2);
 letter-spacing: 0.02em;
}
.example-code {
 background: var(--bg-2);
 border: 1px solid var(--line-1);
 border-radius: var(--r-3);
 padding: var(--s-5) var(--s-6);
 font-family: var(--font-mono);
 font-size: 0.8rem;
 line-height: 1.7;
 position: relative;
 color: var(--ink-1);
}
.example-code pre {
 margin: 0;
 padding: 0;
 background: none;
 border: 0;
}

/* ── Promise section (simple list) ─────────────────────────────────── */
.promise {
 padding: var(--s-12) 0;
 border-top: 1px solid var(--line-1);
}
.promise h2 {
 font-family: var(--font-display);
 font-size: var(--t-h1);
 letter-spacing: var(--ls-display);
 font-weight: 500;
 color: var(--ink-1);
 max-width: 18ch;
 margin: 0 0 var(--s-7);
}
.promise h2 em {
 font-style: normal;
 color: var(--accent);
}
.promise-list {
 list-style: none;
 padding: 0;
 margin: 0;
 display: grid;
 grid-template-columns: repeat(2, 1fr);
 gap: 0;
 border-top: 1px solid var(--line-1);
 border-left: 1px solid var(--line-1);
}
.promise-list li {
 padding: var(--s-5) var(--s-6);
 display: flex;
 gap: var(--s-4);
 align-items: start;
 color: var(--ink-1);
 border-right: 1px solid var(--line-1);
 border-bottom: 1px solid var(--line-1);
}
.promise-list li strong {
 color: var(--ink-1);
 display: block;
 font-weight: 500;
 margin-bottom: 4px;
 font-size: 0.95rem;
}
.promise-list li span {
 color: var(--ink-3);
 font-size: 0.88rem;
 line-height: 1.5;
}
.promise-list .check {
 width: 6px;
 height: 6px;
 flex-shrink: 0;
 border-radius: 50%;
 background: var(--accent);
 display: inline-block;
 margin-top: 9px;
}

/* ── Publication / Ebook promo ────────────────────────────────────── */
.publication {
 padding: var(--s-12) 0;
 border-top: 1px solid var(--line-1);
}
.publication h2 {
 font-family: var(--font-display);
 font-size: var(--t-h1);
 letter-spacing: var(--ls-display);
 font-weight: 500;
 color: var(--ink-1);
 max-width: 20ch;
 margin: 0 0 var(--s-7);
}
.publication h2 em {
 font-style: normal;
 color: var(--accent);
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 960px) {
 .hero-title {
  max-width: 100%;
 }
 .pillars-grid {
  grid-template-columns: 1fr;
 }
 .pillar {
  border-right: 0;
  padding: var(--s-5) 0;
 }
 .how-grid {
  grid-template-columns: 1fr;
 }
 .example-grid {
  grid-template-columns: 1fr;
 }
 .promise-list {
  grid-template-columns: 1fr;
 }
}
@media (max-width: 720px) {
 .hero {
  padding: calc(var(--header-height) + var(--s-7)) 0 var(--s-9);
 }
 .hero-meta {
  gap: var(--s-4);
 }
}
@media (max-width: 600px) {
 .hero-cta {
  flex-direction: column;
  align-items: stretch;
 }
 .hero-cta .btn {
  width: 100%;
 }
 .directory-head h2 {
  max-width: 100%;
 }
 .directory-head {
  flex-direction: column;
  align-items: start;
 }
}
