/* RTFM d.o.o. — sibling palette to in-a-box-tools.tech (2026 suite redesign) */

:root {
  --bg: #faf9f5;
  --bg-alt: #f0eee6;
  --card: #ffffff;
  --border: #d1cfc5;
  --border-strong: #b8b5a8;
  --text: #3d3d3a;
  --muted: #77766f;
  --heading: #141413;
  --primary: #c96345;
  --primary-hover: #a94d34;
  --secondary: #788c5d;
  --accent: #b04a3f;

  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 14px;
  --maxw: 1160px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 19, .06);
  --shadow-md: 0 8px 24px rgba(20, 20, 19, .08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--heading);
  line-height: 1.18;
  letter-spacing: -.018em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-hover); }

ul { list-style: none; }

code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--bg-alt);
  padding: .15em .4em;
  border-radius: var(--radius-sm);
}

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
.container-narrow { max-width: 760px; margin-inline: auto; padding-inline: 28px; }

/* ---------- Shared type helpers ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 1rem;
}

.lede { font-size: 1.185rem; color: var(--text); max-width: 62ch; }
.muted { color: var(--muted); }

.rule { height: 1px; background: var(--border); border: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 11px 24px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--heading);
  background: transparent;
  transition: all .2s ease;
  cursor: pointer;
}
.btn:hover { border-color: var(--heading); color: var(--heading); }

.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 245, .88);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.logo {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--heading);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.logo .logo-mark { color: var(--primary); }
.logo .logo-sub {
  font-weight: 400;
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted);
}

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--heading); }

/* ---------- Sections ---------- */

section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 68ch; margin-bottom: 3rem; }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(4rem, 9vw, 7.5rem); }
.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 1.5rem; font-size: 1.25rem; }

/* ---------- Stat strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.stats > div { padding: 24px 26px; border-right: 1px solid var(--border); }
.stats > div:last-child { border-right: 0; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--heading);
  line-height: 1.1;
  display: block;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
  display: block;
}

/* ---------- Cards / grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .95rem; }

.numbered { counter-reset: step; }
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--primary);
  display: block;
  margin-bottom: 14px;
}

/* ---------- Engagement tiers ---------- */

.tier {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.tier-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.tier-meta .tier-no { color: var(--primary); font-weight: 700; }
.tier h3 { font-size: 1.45rem; margin-bottom: .75rem; }
.tier > p { color: var(--muted); font-size: .95rem; }

.tier-list { margin-top: 22px; }
.tier-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: .93rem;
  color: var(--text);
}
.tier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
}

.tier-out {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.tier-out .eyebrow { margin-bottom: .5rem; }
.tier-out p { font-size: .92rem; color: var(--text); }

.list-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 22px;
  display: block;
}

/* ---------- Fit / not-fit ---------- */

.fit-col li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: .95rem;
}
.fit-col li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: .95rem;
}
.fit-yes li::before { content: "+"; color: var(--secondary); font-weight: 700; }
.fit-no li::before { content: "\2212"; color: var(--accent); font-weight: 700; }

/* ---------- Product / proof table ---------- */

.proof-group { margin-bottom: 3rem; }
.proof-group > h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.tool {
  display: grid;
  grid-template-columns: 124px 1fr 200px;
  gap: 24px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.tool:last-child { border-bottom: 0; }
.tool-id {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--heading);
}
.tool-name { font-size: .8rem; color: var(--muted); display: block; margin-top: 3px; font-family: var(--font-sans); letter-spacing: 0; font-weight: 400; }
.tool-pitch { color: var(--heading); font-size: 1rem; margin-bottom: .3rem; }
.tool-detail { color: var(--muted); font-size: .9rem; }
.tool-side { font-family: var(--font-mono); font-size: 11px; color: var(--muted); line-height: 1.7; }
.tool-side .stars { color: var(--primary); font-weight: 600; }

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
}
.badge-established { border-color: var(--secondary); color: var(--secondary); }
.badge-active { border-color: var(--border-strong); color: var(--muted); }
.badge-developing { border-color: var(--accent); color: var(--accent); }

/* ---------- Callout ---------- */

.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 26px 30px;
}

.pull {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.4;
  color: var(--heading);
  max-width: 40ch;
}

/* ---------- Prose (about) ---------- */

.prose h2 { margin-top: 3rem; margin-bottom: 1rem; }
.prose h3 { margin-top: 2rem; margin-bottom: .5rem; }
.prose ul { margin-bottom: 1rem; }
.prose ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary);
}

/* ---------- Contact ---------- */

.brief {
  font-family: var(--font-mono);
  font-size: .87rem;
  line-height: 1.9;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  color: var(--muted);
  white-space: pre-wrap;
}

.entity {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
}
.entity dt {
  display: inline-block;
  min-width: 92px;
  color: var(--heading);
}
.entity dd { display: inline; }
.entity div { display: block; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-block: 48px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-grid li { margin-bottom: 8px; font-size: .9rem; }
.footer-grid a { color: var(--text); }
.footer-grid a:hover { color: var(--primary); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .tool { grid-template-columns: 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  .container, .container-narrow { padding-inline: 20px; }
  .nav { height: 60px; gap: 12px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 10px; }
  .logo .logo-sub { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .stats > div:last-child { border-bottom: 0; }
  .tier, .card { padding: 24px; }
}

/* ---------- Evidence gallery ---------- */

.evidence-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.evidence-gallery figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #141413;
  display: flex;
  flex-direction: column;
}

.evidence-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.evidence-gallery figcaption {
  flex: 1;
  padding: 14px 18px;
  background: var(--card);
  border-top: 1px solid var(--border);
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.5;
}
.evidence-gallery figcaption strong {
  display: block;
  color: var(--heading);
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 2px;
}

.evidence-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--muted);
  margin-top: 18px;
}

/* Wide cinematic band */
.evidence-band {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #141413;
  margin: 0;
}
.evidence-band img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: top left;
}
.evidence-band figcaption {
  padding: 14px 20px;
  background: var(--card);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
}

@media (max-width: 900px) {
  .evidence-gallery { grid-template-columns: 1fr; }
  .evidence-band img { aspect-ratio: 16 / 10; }
}
