/* Doolhof Labs — design system v3: warm paper, oxblood, no italics */

:root {
  --bg:           #f6f3eb;
  --bg-soft:      #efebe0;
  --bg-card:      #fbf8f1;
  --bg-elevated:  #ffffff;

  --ink:          #15120e;
  --ink-2:        #2a2520;
  --ink-3:        #4d463d;
  --ink-4:        #786f63;
  --ink-5:        #a8a094;

  --line:         #d9d4c5;
  --line-strong:  #b8b1a0;

  --accent:       #7a3a28;
  --accent-2:     #9d4d36;
  --accent-soft:  #ecdcd5;

  --ok:           #4a6b3a;
  --warn:         #8a5a1c;

  --shadow-sm:    0 1px 2px rgba(10,10,10,0.04), 0 1px 1px rgba(10,10,10,0.02);
  --shadow-md:    0 4px 16px rgba(10,10,10,0.04), 0 1px 3px rgba(10,10,10,0.03);
  --shadow-lg:    0 16px 48px rgba(10,10,10,0.06), 0 4px 12px rgba(10,10,10,0.04);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Fraunces", "Source Serif Pro", Georgia, serif;
  --mono:  "JetBrains Mono", "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink-2);
  line-height: 1.55;
  font-size: 16px;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: white; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── header ───────────────────────────────────────── */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.logo svg { width: 22px; height: 22px; }

nav.primary {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav.primary a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 0.15s ease;
}
nav.primary a:hover { color: var(--ink); }
nav.primary a.active { color: var(--ink); }
nav.primary .nav-cta {
  background: var(--ink);
  color: white;
  padding: 8px 16px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  transition: background 0.15s ease;
}
nav.primary .nav-cta:hover { background: var(--accent); }

/* ─── hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 0 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 360px at 85% 20%, rgba(122, 58, 40, 0.05), transparent 60%),
    radial-gradient(600px 300px at 12% 95%, rgba(122, 58, 40, 0.04), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  margin-bottom: 26px;
}
.kicker::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--ink);
  max-width: 920px;
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero .sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 640px;
  margin-bottom: 38px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ─── buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: all 0.18s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--bg-soft);
}
.btn-big { padding: 16px 26px; font-size: 15px; }
.btn .arrow { display: inline-block; transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ─── sections ─────────────────────────────────────── */
section {
  padding: 110px 0;
  border-bottom: 1px solid var(--line);
}
section.tight { padding: 90px 0; }

.section-head {
  margin-bottom: 64px;
  max-width: 720px;
}
.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}
section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin-bottom: 18px;
}
section .lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 640px;
}

/* ─── product cards ────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.product {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0;
  transition: all 0.22s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 280px;
}
.product:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product .product-art {
  height: 140px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product .product-body {
  padding: 24px 26px 26px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product .product-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-5);
}
.product .product-meta .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-5);
}
.product .product-meta.live .dot { background: var(--ok); }
.product .product-meta.live { color: var(--ok); }
.product .product-meta.soon .dot { background: var(--warn); }
.product .product-meta.soon { color: var(--warn); }

.product h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 8px;
}
.product p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-3);
  flex-grow: 1;
  margin-bottom: 16px;
}
.product .product-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product:hover .product-link .arrow { transform: translateX(3px); }
.product .product-link .arrow { transition: transform 0.18s ease; display: inline-block; }

/* Product art variants */
.art-qimonq {
  background:
    radial-gradient(circle at 30% 40%, rgba(122, 58, 40, 0.22), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(26, 84, 104, 0.18), transparent 55%),
    linear-gradient(135deg, #fafaf8 0%, #e8eef0 100%);
}
.art-qimonq::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 58, 40, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 58, 40, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.art-voqa {
  background: linear-gradient(135deg, #1a1d23 0%, #2a3340 100%);
  position: relative;
}
.art-voqa::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 6px,
    rgba(255,255,255,0.08) 6px,
    rgba(255,255,255,0.08) 7px
  );
  mask-image: radial-gradient(ellipse 60% 80% at center, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at center, black 30%, transparent 100%);
}

.art-musicvid {
  background:
    radial-gradient(circle at 25% 30%, #f4a574 0%, transparent 35%),
    radial-gradient(circle at 75% 70%, #c25c44 0%, transparent 40%),
    linear-gradient(135deg, #fff5ed 0%, #f0d8c4 100%);
}

.art-vault {
  background: linear-gradient(135deg, #f8f8f6 0%, #e0e0dc 100%);
  position: relative;
}
.art-vault::before {
  content: "";
  position: absolute;
  inset: 50% 0 0 50%;
  width: 100%; height: 100%;
  transform: translate(-50%, -50%) rotate(45deg);
  background:
    linear-gradient(0deg, transparent 48%, rgba(122, 58, 40, 0.12) 48%, rgba(122, 58, 40, 0.12) 52%, transparent 52%),
    linear-gradient(90deg, transparent 48%, rgba(122, 58, 40, 0.12) 48%, rgba(122, 58, 40, 0.12) 52%, transparent 52%);
  background-size: 16px 16px;
  mask-image: radial-gradient(circle, black 0%, transparent 50%);
  -webkit-mask-image: radial-gradient(circle, black 0%, transparent 50%);
}

.art-linux {
  background:
    linear-gradient(135deg, #7a3a28 0%, #9d4d36 50%, #7a3a28 100%);
  position: relative;
}
.art-linux::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, transparent 49%, rgba(255,255,255,0.1) 49%, rgba(255,255,255,0.1) 51%, transparent 51%);
  background-size: 14px 100%;
  mask-image: linear-gradient(90deg, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 30%, black 70%, transparent 100%);
}

.art-sanctum {
  background: radial-gradient(circle at 50% 60%, #d4c8b8 0%, #f5f0e8 70%);
  position: relative;
}
.art-sanctum::before {
  content: "";
  position: absolute;
  width: 80px; height: 80px;
  border: 1px solid rgba(122, 58, 40, 0.18);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 12px rgba(122, 58, 40, 0.06),
    0 0 0 28px rgba(122, 58, 40, 0.03);
}

/* ─── feature grid ─────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  margin-top: 24px;
}
.feature .feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.feature .feature-icon svg { width: 18px; height: 18px; }
.feature h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 8px;
}
.feature p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ─── steps ────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  counter-increment: step;
  transition: background 0.18s ease;
}
.step:hover { background: var(--accent-soft); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.step h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: 6px;
}
.step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* ─── code block ───────────────────────────────────── */
.code {
  background: #0d1117;
  color: #e6edf3;
  padding: 26px 30px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
  margin: 40px 0;
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid #1f2937;
  box-shadow: var(--shadow-md);
}
.code .prompt  { color: #79c0ff; }
.code .comment { color: #8b949e; font-style: italic; }
.code .string  { color: #a5d6ff; }
.code .keyword { color: #ff7b72; }

/* ─── pricing ──────────────────────────────────────── */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.tier {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
}
.tier:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.tier.featured {
  border-color: var(--accent);
  border-width: 2px;
  background: linear-gradient(180deg, rgba(232, 238, 240, 0.4) 0%, transparent 30%);
}
.tier.featured::before {
  content: "Recommended";
  position: absolute;
  top: -11px;
  left: 32px;
  background: var(--accent);
  color: white;
  padding: 3px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tier .tier-name {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-5);
  margin-bottom: 14px;
}
.tier .price {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 42px;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}
.tier .price .unit {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-4);
  margin-left: 4px;
}
.tier .desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.tier ul {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}
.tier li {
  font-size: 14px;
  color: var(--ink-3);
  padding: 8px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.tier li:first-child { border-top: none; }
.tier li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  background: var(--accent);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8L6.5 11L12.5 5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8L6.5 11L12.5 5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
}

.pricing-note {
  margin-top: 32px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-4);
  font-family: var(--mono);
  letter-spacing: -0.005em;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  border-left: 3px solid var(--accent);
}

/* ─── about / company strip ────────────────────────── */
.company {
  background: var(--bg-soft);
  padding: 96px 0;
}
.company .wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}
.company .head h2 {
  margin-bottom: 0;
}
.company .body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.company .body p:last-child { margin-bottom: 0; }
.company .body em {
  color: var(--accent);
  font-style: italic;
  font-family: var(--serif);
}

/* ─── CTA section ──────────────────────────────────── */
.cta-block {
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.cta-block h2 { margin-bottom: 20px; }
.cta-block .lead { margin: 0 auto 36px; }
.cta-block .cta-row { justify-content: center; }

/* ─── compatibility / tool list ────────────────────── */
.compat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.compat-item {
  padding: 20px 22px;
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  transition: all 0.18s ease;
}
.compat-item:hover { background: var(--bg-elevated); box-shadow: var(--shadow-sm); }
.compat-item h4 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.compat-item p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-3);
}
.compat-item code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg-card);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--accent);
}

/* ─── footer ───────────────────────────────────────── */
footer {
  padding: 64px 0 48px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
footer .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
footer h5 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-5);
  margin-bottom: 16px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a {
  font-size: 14px;
  color: var(--ink-3);
  transition: color 0.15s ease;
}
footer a:hover { color: var(--ink); }
footer .brand-col p {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-top: 14px;
  max-width: 340px;
}
footer .legal {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink-5);
}

/* ─── responsive ───────────────────────────────────── */
@media (max-width: 920px) {
  footer .wrap { grid-template-columns: 1fr 1fr; gap: 36px; }
  .company .wrap { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  section { padding: 72px 0; }
  .hero { padding: 70px 0 64px; }
  nav.primary { gap: 18px; }
  nav.primary a { font-size: 13px; }
  nav.primary .nav-cta { padding: 7px 14px; }
  .section-head { margin-bottom: 40px; }
  footer .wrap { grid-template-columns: 1fr; gap: 32px; }
  footer .legal { flex-direction: column; gap: 8px; }
}

/* ─── v3 global tweaks: nuke italics, retint logo svg ─── */
*, *::before, *::after { font-style: normal !important; }
header.site .logo svg path,
footer .logo svg path { fill: #7a3a28 !important; }
