/* TurkeyBoards Tools — landing page. */

/* ---------- Landing ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.eyebrow { font: 700 13px/20px var(--font-mono); color: var(--link); margin: 0 0 var(--space-4); }
.hero h1 { font: 700 clamp(38px, 5.2vw, 60px)/1 var(--font-display); letter-spacing: -0.045em; margin: 0; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--brand-feather-deep); }
:root[data-theme="dark"] .hero h1 em { color: var(--brand-feather); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 em { color: var(--brand-feather); } }
.oss-group a, .oss-libs a, .upload-formats a { color: var(--link); }

.oss-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.oss-group { padding: var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); min-width: 0; }
.oss-group h3 { margin: 0 0 var(--space-3); font: 700 18px/24px var(--font-display); letter-spacing: -0.02em; }
.oss-group > p { margin: 0 0 var(--space-3); color: var(--ink-muted); font-size: 14px; line-height: 21px; }
.oss-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.oss-group li { display: grid; gap: 2px; font-size: 14px; line-height: 21px; }
.oss-group li > a { font-weight: 700; }
.oss-group li > span { color: var(--ink-muted); }
.oss-group ul.oss-boards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.oss-libs { margin: var(--space-5) 0 0; color: var(--ink-muted); font-size: 14px; line-height: 22px; max-width: 60em; }
@media (max-width: 900px) { .oss-grid { grid-template-columns: minmax(0, 1fr); } }
.demo-mascot { position: absolute; right: -14px; top: -92px; width: 132px; height: auto; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0, 22, 52, .18)); }
.demo-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-right: 110px; }
.demo-bar .dots { display: flex; gap: 6px; }
.demo-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.demo-bar .file { font: 400 12px/1 var(--font-mono); color: var(--ink-muted); }
.demo-board { background: var(--canvas); border-radius: var(--radius-md); padding: 14px; }
.demo-board svg { display: block; width: 100%; height: auto; }
.demo-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; font: 400 12px/18px var(--font-mono); color: var(--ink-muted); }
.demo-foot kbd { font: inherit; color: var(--ink); }

.section { padding-block: 56px; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: var(--space-2); margin-bottom: var(--space-6); max-width: 46em; }
.section-head h2 { font: 700 clamp(26px, 3.4vw, 34px)/1.1 var(--font-display); letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.section-head p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 24px; }

.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.pipeline li { position: relative; padding: 0 20px 0 0; display: grid; gap: 10px; align-content: start; counter-increment: step; }
.pipeline .node { display: flex; align-items: center; gap: 10px; }
.pipeline .num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 15px/1 var(--font-mono); border: 2px solid var(--sticker-edge); background: var(--surface); color: var(--ink); flex: none; }
.pipeline li.is-ready .num { background: var(--brand-feather); color: var(--on-feather); box-shadow: 2px 2px 0 var(--sticker-edge); }
.pipeline .rail { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 11px); }
.pipeline li:last-child .rail { visibility: hidden; }
.pipeline h3 { margin: 4px 0 0; font: 700 18px/24px var(--font-display); letter-spacing: -0.02em; }
.pipeline p { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 21px; }
.pipeline .fmt { font: 400 12px/18px var(--font-mono); color: var(--ink); }
@media (max-width: 900px) {
  .pipeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pipeline li { grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding: 0 0 24px; }
  .pipeline .node { grid-row: 1 / span 4; flex-direction: column; align-self: stretch; }
  .pipeline .rail { width: 2px; height: auto; flex: 1; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 11px); }
  .pipeline h3 { margin: 4px 0 0; }
}

.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.tb-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); background: var(--surface); color: var(--ink); border: 2px solid var(--sticker-edge); border-radius: var(--radius-lg); box-shadow: var(--shadow-sticker); text-decoration: none; transition: transform .1s ease, box-shadow .1s ease; min-width: 0; }
a.tb-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--sticker-edge); }
.tb-card-quiet { border: 1px solid var(--line); box-shadow: none; }
.tb-card .card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tb-card .glyph { width: 44px; height: 44px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--surface-sunken); color: var(--ink); border: 1px solid var(--line); }
.tb-card .glyph svg { width: 24px; height: 24px; }
a.tb-card .glyph { background: var(--brand-feather); color: var(--on-feather); border: 2px solid var(--sticker-edge); }
.tb-card h3 { margin: 0; font: 700 21px/26px var(--font-display); letter-spacing: -0.02em; }
.tb-card p { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 22px; }
.tb-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; line-height: 20px; }
.tb-card li { display: flex; gap: 8px; }
.tb-card li::before { content: ""; width: 6px; height: 6px; margin-top: 7px; border-radius: 1.5px; background: var(--brand-feather-deep); flex: none; }
.tb-card .go { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--link); }
.inspired { font-size: 13px; color: var(--ink-muted); }
@media (max-width: 760px) { .tools-grid { grid-template-columns: minmax(0, 1fr); } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table.formats { border-collapse: collapse; width: 100%; min-width: 680px; font-size: 13px; }
.formats th, .formats td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.formats tr:last-child td { border-bottom: 0; }
.formats th { font: 700 11px/16px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-sunken); }
.formats td.f { font-weight: 700; }
.formats code { font: 400 12.5px/18px var(--font-mono); }

.site-foot { border-top: 1px solid var(--line); background: var(--surface); }
.site-foot .wrap { display: flex; gap: 32px 48px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding-block: 32px; }
.foot-about { display: flex; gap: 16px; align-items: center; flex: 1 1 280px; max-width: 30em; }
.site-foot img { width: 48px; height: auto; flex: none; }
.site-foot p { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 21px; }
.foot-nav { display: flex; gap: 24px 56px; flex-wrap: wrap; }
.foot-nav h2 { margin: 0 0 10px; font: 700 11px/16px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.foot-nav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot-nav a { color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.foot-nav a:hover { color: var(--link); text-decoration: underline; }
.foot-nav a.ext::after { content: " ↗"; color: var(--ink-muted); }

/* ---------- Hero: headline and live demo, then the upload card across both ---------- */
.hero { padding-block: 64px 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 56px; align-items: center; }
.hero-text { display: grid; gap: var(--space-5); align-content: center; }
.hero h1 { font-size: clamp(38px, 4.3vw, 58px); }
@media (min-width: 901px) { .hero h1 .h1-line { white-space: nowrap; } .hero h1 .h1-line:first-child::after { content: "\A"; white-space: pre; } }
.hero p.lede { font-size: 16px; line-height: 27px; color: var(--ink-muted); margin: 0; max-width: 34em; }
.demo { position: relative; padding: 22px 22px 16px; background: var(--surface); border: 2px solid var(--sticker-edge); border-radius: var(--radius-lg); box-shadow: 6px 6px 0 var(--sticker-edge); margin-top: 28px; }

.upload-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0; background: var(--surface); border: 2px dashed var(--line-strong); border-radius: var(--radius-lg); transition: border-color .12s ease, background-color .12s ease; }
body.is-dropping .upload-card { border-color: var(--brand-feather-deep); background: var(--surface-sunken); }
.upload-main { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon copy" "btn btn"; gap: 14px 16px; padding: 24px; align-content: center; }
.upload-icon { grid-area: icon; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-feather); color: var(--on-feather); border: 2px solid var(--sticker-edge); }
.upload-icon svg { width: 22px; height: 22px; }
.upload-copy { grid-area: copy; display: grid; gap: 6px; }
.upload-copy h2 { margin: 0; font: 700 19px/24px var(--font-display); letter-spacing: -0.02em; }
.upload-copy p { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.upload-main .tb-btn { grid-area: btn; justify-self: start; height: 42px; font-size: 14px; padding: 0 18px; margin-left: 60px; }
.upload-status { font-size: 14px; line-height: 21px; }
.upload-status:empty { display: none; }
.upload-status.is-error { color: var(--danger, #b42318); font-weight: 700; }
.upload-formats { list-style: none; margin: 0; padding: 20px 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; border-left: 1px solid var(--line); }
.upload-formats li { display: grid; gap: 8px; align-content: start; min-width: 0; }
.upload-formats b { font: 700 14px/20px var(--font-display); }
.upload-formats .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.upload-formats code { font: 400 11.5px/18px var(--font-mono); padding: 1px 6px; border-radius: var(--radius-sm); background: var(--surface-sunken); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.upload-formats small { font-size: 12.5px; line-height: 19px; color: var(--ink-muted); }
@media (max-width: 1100px) {
  .upload-card { grid-template-columns: minmax(0, 1fr); }
  .upload-formats { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 32px 40px; gap: 28px; }
  .demo { margin-top: 64px; order: 2; }
  .upload-card { order: 1; }
}
@media (pointer: coarse) { .drop-text { display: none; } }
@media (max-width: 640px) {
  .upload-formats { grid-template-columns: minmax(0, 1fr); }
  .upload-main { padding: 18px; }
  .upload-main .tb-btn { margin-left: 0; justify-self: stretch; justify-content: center; }
}
@media (max-width: 520px) { .demo-mascot { width: 96px; top: -70px; right: -6px; } .demo { padding: 14px 14px 12px; } .demo-board { padding: 8px; } }
