/* ============================================================
   ProfitAI.in — design system
   "Warm workshop" — paper, ink, persimmon. Human, not corporate.
   ============================================================ */

:root {
  --paper: #FAF6EE;
  --paper-2: #F2ECDD;
  --paper-3: #EAE1CE;
  --card: #FFFDF8;
  --ink: #1E1811;
  --ink-soft: #5C5347;
  --ink-faint: #8A7F70;
  --accent: #E4572E;        /* persimmon */
  --accent-deep: #B23E1D;
  --accent-soft: #FBE3D8;
  --green: #1E6B4F;
  --green-soft: #DDEBDD;
  --sun: #FFC53D;
  --sun-soft: #FFF3D1;
  --line: #1E1811;
  --radius: 16px;
  --radius-s: 10px;
  --shadow: 5px 5px 0 rgba(30, 24, 17, 1);
  --shadow-s: 3px 3px 0 rgba(30, 24, 17, 1);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* faint paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-deep); }
img { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
section { padding: 72px 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 2px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; gap: 18px;
  max-width: var(--max); margin: 0 auto; padding: 12px 22px;
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 9px;
  white-space: nowrap;
}
.logo-mark {
  width: 34px; height: 34px; border: 2px solid var(--line); border-radius: 10px;
  background: var(--sun); display: grid; place-items: center;
  font-size: 1.15rem; box-shadow: 2px 2px 0 var(--line);
  transform: rotate(-4deg);
}
.logo em { font-style: normal; color: var(--accent-deep); }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: 8px 13px; border-radius: 9px;
}
.main-nav a:hover { background: var(--paper-2); }
.main-nav a.active { background: var(--ink); color: var(--paper); }
.header-search { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-pill {
  display: flex; align-items: center; gap: 8px;
  border: 2px solid var(--line); border-radius: 999px;
  background: var(--card); padding: 7px 14px; font-size: .92rem; color: var(--ink-faint);
  cursor: pointer; box-shadow: 2px 2px 0 var(--line);
}
.search-pill:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.search-pill kbd {
  font-family: var(--font-mono); font-size: .72rem; border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 6px; background: var(--paper-2);
}
.menu-btn { display: none; }
.mobile-nav { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1rem; color: var(--ink); text-decoration: none;
  background: var(--card); border: 2px solid var(--line); border-radius: 12px;
  padding: 12px 22px; cursor: pointer; box-shadow: var(--shadow-s);
  transition: transform .12s ease, box-shadow .12s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--line); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--line); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-sun { background: var(--sun); }
.btn-sm { padding: 8px 15px; font-size: .9rem; border-radius: 10px; }

/* ---------- stickers, chips, eyebrow ---------- */
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep);
  margin-bottom: 14px;
}
.sticker {
  display: inline-block; font-weight: 800; font-size: .82rem;
  background: var(--sun); border: 2px solid var(--line); border-radius: 999px;
  padding: 5px 14px; transform: rotate(-2deg); box-shadow: 2px 2px 0 var(--line);
  text-transform: uppercase; letter-spacing: .04em;
}
.sticker.green { background: var(--green-soft); transform: rotate(1.5deg); }
.sticker.peach { background: var(--accent-soft); }
.chip {
  display: inline-block; border: 2px solid var(--line); border-radius: 999px;
  padding: 6px 15px; font-size: .88rem; font-weight: 600; background: var(--card);
  color: var(--ink); text-decoration: none; margin: 0 8px 8px 0;
  transition: transform .12s ease;
}
.chip:hover { background: var(--sun-soft); transform: translateY(-2px); }

/* hand-drawn underline for hero words */
.scribble { position: relative; white-space: nowrap; }
.scribble > svg {
  position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .34em;
  overflow: visible;
}

/* ---------- hero ---------- */
.hero { padding: 84px 0 60px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 34rem; }
.hero-search { margin: 28px 0 18px; max-width: 560px; position: relative; }
.hero-search input {
  width: 100%; font-size: 1.08rem; padding: 17px 20px 17px 52px;
  border: 2.5px solid var(--line); border-radius: 16px; background: var(--card);
  box-shadow: var(--shadow-s); font-family: var(--font-body); color: var(--ink);
}
.hero-search input:focus { outline: 3px solid var(--sun); }
.hero-search .mag {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.25rem; pointer-events: none;
}
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50;
  background: var(--card); border: 2px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); max-height: 340px; overflow: auto; display: none;
}
.search-results.open { display: block; }
.search-results a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 16px; text-decoration: none; color: var(--ink); font-weight: 600;
  border-bottom: 1px dashed var(--paper-3);
}
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: var(--sun-soft); }
.search-results .cat { font-size: .75rem; font-family: var(--font-mono); color: var(--ink-faint); font-weight: 400; }

.hero-stats { display: flex; gap: 34px; margin-top: 30px; flex-wrap: wrap; }
.stat .num {
  font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1;
}
.stat .lbl { font-size: .85rem; color: var(--ink-soft); }

/* hero doodle card */
.hero-card {
  background: var(--card); border: 2.5px solid var(--line); border-radius: 20px;
  box-shadow: 7px 7px 0 var(--line); padding: 26px; transform: rotate(1.5deg);
}
.hero-card h3 { font-size: 1.05rem; margin-bottom: 14px; font-family: var(--font-body); font-weight: 800; }
.mini-tool { display: flex; gap: 10px; margin-bottom: 12px; }
.mini-tool input {
  flex: 1; border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 1rem; font-family: var(--font-mono); background: var(--paper);
}
.mini-out {
  background: var(--ink); color: var(--paper); border-radius: 12px; padding: 14px 16px;
  font-family: var(--font-mono); font-size: .95rem; margin-top: 6px;
}
.mini-out b { color: var(--sun); }
.hero-note { margin-top: 14px; font-size: .85rem; color: var(--ink-faint); font-style: italic; }

/* ---------- ticker ---------- */
.ticker {
  border-top: 2px solid var(--line); border-bottom: 2px solid var(--line);
  background: var(--ink); color: var(--paper); overflow: hidden; white-space: nowrap;
  padding: 13px 0;
}
.ticker-track { display: inline-block; animation: tick 40s linear infinite; }
.ticker span { font-family: var(--font-mono); font-size: .92rem; margin: 0 18px; }
.ticker .dot { color: var(--sun); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 6px 0 0; color: var(--ink-soft); max-width: 36rem; }
.sec-link { font-weight: 700; white-space: nowrap; }

/* ---------- category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.cat-card {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-s); transition: transform .14s ease, box-shadow .14s ease;
  display: flex; flex-direction: column; gap: 10px; position: relative;
}
.cat-card:hover { transform: translate(-3px, -3px) rotate(-.4deg); box-shadow: 6px 6px 0 var(--line); }
.cat-ico {
  width: 46px; height: 46px; border: 2px solid var(--line); border-radius: 13px;
  display: grid; place-items: center; font-size: 1.4rem; background: var(--cat-bg, var(--sun-soft));
}
.cat-card h3 { margin: 0; font-size: 1.18rem; }
.cat-card p { margin: 0; font-size: .9rem; color: var(--ink-soft); flex: 1; }
.cat-count {
  font-family: var(--font-mono); font-size: .78rem; color: var(--ink-faint);
  border-top: 1.5px dashed var(--paper-3); padding-top: 10px;
}

/* ---------- tool cards ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.tool-card {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-decoration: none; color: var(--ink);
  transition: transform .14s ease, box-shadow .14s ease;
  display: flex; flex-direction: column; gap: 8px;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-s); border-color: var(--ink); }
.tool-card h3 { margin: 0; font-size: 1.08rem; font-family: var(--font-body); font-weight: 800; }
.tool-card h3 .arrow { color: var(--accent-deep); opacity: 0; transition: opacity .14s; }
.tool-card:hover h3 .arrow { opacity: 1; }
.tool-card p { margin: 0; font-size: .88rem; color: var(--ink-soft); flex: 1; }
.tool-tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: .72rem;
  background: var(--paper-2); border-radius: 6px; padding: 2px 8px; color: var(--ink-soft);
}

/* ---------- tool page ---------- */
.crumbs { font-size: .85rem; color: var(--ink-faint); margin: 26px 0 18px; font-family: var(--font-mono); }
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--accent-deep); }
.tool-hero { padding-bottom: 8px; }
.tool-hero h1 { margin-bottom: 10px; }
.tool-hero .lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 44rem; }
.tool-badges { display: flex; gap: 10px; margin: 16px 0 30px; flex-wrap: wrap; }

.widget {
  background: var(--card); border: 2.5px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: clamp(20px, 4vw, 38px); margin: 10px 0 54px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 7px; }
.field .hint { font-weight: 400; font-size: .83rem; color: var(--ink-faint); }
.field input[type="number"], .field input[type="text"], .field input[type="date"],
.field select, .field textarea {
  width: 100%; border: 2px solid var(--line); border-radius: 11px; padding: 12px 14px;
  font-size: 1.02rem; font-family: var(--font-body); background: var(--paper); color: var(--ink);
}
.field textarea { min-height: 130px; font-family: var(--font-mono); font-size: .95rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--sun); background: #fff;
}
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button {
  border: 2px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 8px 16px; font-weight: 700; font-size: .9rem; cursor: pointer; font-family: var(--font-body);
}
.seg button.on { background: var(--ink); color: var(--paper); }

.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 24px; }
.result-card {
  background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 16px;
}
.result-card.hero-result { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.result-card .k { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin-bottom: 4px; }
.result-card.hero-result .k { color: #B9AE9E; }
.result-card .v { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; line-height: 1.15; }
.result-card .v small { font-size: .95rem; font-family: var(--font-body); font-weight: 600; color: var(--ink-faint); }
.result-card.hero-result .v small { color: #B9AE9E; }
.result-note { font-size: .85rem; color: var(--ink-faint); margin-top: 14px; font-style: italic; }

.copy-btn {
  border: 2px solid var(--line); background: var(--sun-soft); border-radius: 9px;
  padding: 7px 13px; font-weight: 700; font-size: .85rem; cursor: pointer; font-family: var(--font-body);
}
.copy-btn:hover { background: var(--sun); }
.output-box {
  background: var(--ink); color: #EDE6D6; border-radius: 12px; padding: 18px;
  font-family: var(--font-mono); font-size: .92rem; white-space: pre-wrap; word-break: break-word;
  margin-top: 16px; max-height: 380px; overflow: auto;
}

/* answer box (AEO) */
.answer-box {
  background: var(--sun-soft); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin: 0 0 44px; position: relative;
}
.answer-box .tag {
  position: absolute; top: -15px; left: 22px; background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  letter-spacing: .05em; text-transform: uppercase;
}
.answer-box p { margin: 0; font-size: 1.06rem; }
.answer-box p strong { color: var(--accent-deep); }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.prose th, .prose td { border: 2px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--paper-2); font-family: var(--font-display); }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; background: var(--card); border: 2px solid var(--line);
  border-radius: 14px; padding: 16px 18px 16px 64px; position: relative;
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px;
  width: 34px; height: 34px; border: 2px solid var(--line); border-radius: 50%;
  background: var(--sun); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
}
.formula {
  background: var(--ink); color: var(--paper); border-radius: 12px; padding: 18px 22px;
  font-family: var(--font-mono); font-size: 1rem; overflow-x: auto; margin: 1.2em 0;
}
.formula .c { color: var(--sun); }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 2px solid var(--line); margin: 18px 0 50px; max-width: 46rem; }
.faq details { border-bottom: 2px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.06rem; padding: 18px 40px 18px 0;
  position: relative; list-style: none; font-family: var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 14px;
  width: 32px; height: 32px; border: 2px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; font-size: 1.3rem; background: var(--paper-2);
  transition: transform .2s ease, background .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--sun); }
.faq .a { padding: 0 0 22px; color: var(--ink-soft); }
.faq .a p { margin: 0; }

/* ---------- blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink);
  transition: transform .14s ease, box-shadow .14s ease; display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-s); }
.post-card .art { height: 150px; border-bottom: 2px solid var(--line); display: grid; place-items: center; font-size: 3rem; }
.post-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { margin: 0; font-size: 1.22rem; }
.post-card p { margin: 0; font-size: .9rem; color: var(--ink-soft); flex: 1; }
.byline { font-size: .8rem; color: var(--ink-faint); font-family: var(--font-mono); }
.article { max-width: 44rem; margin: 0 auto; }
.article h1 { margin-bottom: 12px; }
.article .lede { font-size: 1.2rem; color: var(--ink-soft); }
.article .content p { margin-bottom: 1.3em; }
.article .content > p:first-of-type::first-letter {
  font-family: var(--font-display); font-size: 3.4em; float: left;
  line-height: .9; padding-right: 10px; font-weight: 700; color: var(--accent-deep);
}
.author-box {
  display: flex; gap: 16px; background: var(--card); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin: 50px 0; box-shadow: var(--shadow-s);
}
.author-face {
  width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--line);
  background: var(--sun); display: grid; place-items: center; font-size: 1.8rem; flex-shrink: 0;
}

/* ---------- trust / misc sections ---------- */
.band { background: var(--ink); color: var(--paper); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.band h2 { color: var(--paper); }
.band p { color: #C9BFAE; }
.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 30px; }
.promise {
  border: 2px solid #3A332A; border-radius: var(--radius); padding: 24px; background: #262019;
}
.promise .ico { font-size: 1.7rem; margin-bottom: 10px; }
.promise h3 { color: var(--paper); font-size: 1.15rem; margin-bottom: 6px; }
.promise p { font-size: .92rem; margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C9BFAE; padding: 60px 0 30px; border-top: 2px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; margin-bottom: 44px; }
.foot-brand .logo { color: var(--paper); }
.foot-brand p { font-size: .92rem; max-width: 22rem; }
.site-footer h4 { color: var(--paper); font-family: var(--font-body); font-size: .95rem; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #C9BFAE; text-decoration: none; font-size: .93rem; }
.site-footer a:hover { color: var(--sun); }
.foot-bottom {
  border-top: 1px solid #3A332A; padding-top: 24px; display: flex;
  justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .85rem;
}
.foot-note { font-size: .8rem; color: #8A7F70; margin-top: 18px; max-width: 60rem; }

/* ---------- reveal on scroll (JS-only: content stays visible without JS) ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* ---------- search overlay ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(30, 24, 17, .55);
  display: none; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px;
}
.search-overlay.open { display: flex; }
.search-modal {
  background: var(--paper); border: 2.5px solid var(--line); border-radius: 20px;
  box-shadow: 8px 8px 0 var(--line); width: min(620px, 100%); overflow: hidden;
}
.search-modal input {
  width: 100%; border: 0; border-bottom: 2px solid var(--line); padding: 20px 24px;
  font-size: 1.15rem; font-family: var(--font-body); background: var(--card); color: var(--ink);
}
.search-modal input:focus { outline: none; background: #fff; }
.search-modal .hint { padding: 12px 24px; font-size: .82rem; color: var(--ink-faint); border-bottom: 1px dashed var(--paper-3); }
.search-modal .results { max-height: 380px; overflow: auto; }
.search-modal .results a {
  display: flex; justify-content: space-between; gap: 12px; padding: 13px 24px;
  text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px dashed var(--paper-3);
}
.search-modal .results a:hover, .search-modal .results a.sel { background: var(--sun-soft); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 44px; }
  .main-nav { display: none; }
  .menu-btn {
    display: grid; place-items: center; width: 42px; height: 42px;
    border: 2px solid var(--line); border-radius: 10px; background: var(--card);
    font-size: 1.2rem; cursor: pointer; box-shadow: 2px 2px 0 var(--line);
  }
  .mobile-nav {
    display: none; border-top: 2px solid var(--line); background: var(--paper);
    padding: 10px 22px 18px;
  }
  .mobile-nav.open { display: block; }
  .mobile-nav a {
    display: block; padding: 12px 4px; font-weight: 700; color: var(--ink);
    text-decoration: none; border-bottom: 1px dashed var(--paper-3);
  }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 52px 0; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .field-row, .result-grid { grid-template-columns: 1fr; }
  .search-pill kbd { display: none; }
  .search-pill { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
