/* ── Tools section — shared styles ─────────────────────────────
   Extends the grid-paper / navy-ink world of the landing page.
   Sidebar index + content pages, à la an editor's field notebook. */

/* Self-hosted fonts — no Google servers, no GDPR headache */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('fonts/space-grotesk.woff2') format('woff2');
}

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

:root {
  --ink: #0a0a3a;
  --ink-60: rgba(10, 10, 58, 0.6);
  --ink-40: rgba(10, 10, 58, 0.4);
  --ink-15: rgba(10, 10, 58, 0.15);
  --paper: #e8e8ea;
  --card: #f2f1ee;
  --accent: #ff6a14;          /* ClipEater orange — the one warm voice */
  --accent-deep: #b83c06;
  --serif: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;  /* display/headline */
  --sans: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;   /* copy */
}

html { scroll-behavior: smooth; }

body {
  /* paper-tint overlay washes the grid out for better text contrast */
  background: linear-gradient(rgba(232, 232, 234, 0.55), rgba(232, 232, 234, 0.55)),
              url('bg-paper.png?v=2') center/cover no-repeat fixed;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  cursor: none;
}
@media (hover: none), (max-width: 900px) { body { cursor: auto; } }

::selection { background: var(--ink); color: var(--paper); }

/* ── Custom cursor (same as landing) ── */
.cursor {
  position: fixed; width: 28px; height: 28px;
  border: 2px solid rgba(10, 10, 58, 0.7); border-radius: 50%;
  pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
  transition: opacity .25s ease, transform .15s ease;
  background: rgba(10, 10, 58, 0.06);
}
.cursor.hidden { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
@media (hover: none), (max-width: 900px) { .cursor { display: none; } }
a, button, input, label { cursor: none; }
@media (hover: none), (max-width: 900px) { a, button, input, label { cursor: pointer; } }

/* ── Layout shell ── */
.shell { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
  width: 248px; flex-shrink: 0;
  border-right: 1.5px solid var(--ink-15);
  background: rgba(242, 241, 238, 0.72);
  backdrop-filter: blur(3px);
  padding: 36px 0 28px;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  z-index: 40;
}
.side-brand { padding: 0 26px 26px; }
.side-brand a { text-decoration: none; color: var(--ink); }
.side-brand .brand-name {
  font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.25;
}
.side-brand .brand-sub {
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-60); margin-top: 5px;
}
.side-back {
  display: block; padding: 9px 26px; font-size: 12.5px; letter-spacing: 0.08em;
  color: var(--ink-60); text-decoration: none; transition: color .25s ease;
}
.side-back:hover { color: var(--ink); }

.side-section {
  padding: 22px 26px 8px;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-40);
}
.side-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 26px; text-decoration: none; color: var(--ink);
  font-size: 14px; font-weight: 400;
  border-left: 3px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.side-link:hover { background: rgba(10, 10, 58, 0.05); }
.side-link.active { border-left-color: var(--accent); background: rgba(10, 10, 58, 0.06); font-weight: 700; }
.side-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.side-link .tag {
  margin-left: auto; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2.5px 7px; border-radius: 999px; font-weight: 700;
}
.tag-free  { border: 1px solid var(--ink-40); color: var(--ink-60); }
.tag-pro   { background: var(--accent); color: #fff; }
.tag-soon  { border: 1px dashed var(--ink-40); color: var(--ink-40); }

.side-foot {
  margin-top: auto; padding: 22px 26px 0;
  font-size: 11.5px; line-height: 1.6; color: var(--ink-40); font-style: italic;
}
.side-foot a { color: var(--ink-60); text-decoration: none; border-bottom: 1px solid var(--ink-15); }
.side-foot a:hover { color: var(--ink); }

/* ── Main column ── */
.main { flex: 1; min-width: 0; position: relative; }

.crumbs {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 26px 48px 0; font-size: 12.5px; letter-spacing: 0.09em;
  color: var(--ink-40); position: relative; z-index: 5;
}
.crumbs a { color: var(--ink-60); text-decoration: none; transition: color .25s ease; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: 0.5; }
.crumbs .here { color: var(--ink); }

.content {
  max-width: 860px; padding: 44px 48px 90px;
  position: relative; z-index: 5;
}

/* ── Floating background deco ── */
.deco { position: fixed; pointer-events: none; z-index: 1; opacity: 0.32; will-change: transform; }
.deco img { width: 100%; display: block; }
.deco-a { width: 210px; right: 4%; top: 9%; }
.deco-b { width: 150px; right: 12%; bottom: 12%; }
.deco-c { width: 120px; left: 290px; bottom: 5%; }
@keyframes deco-float-a { 0%,100% { transform: translateY(0) rotate(0deg); } 45% { transform: translateY(-14px) rotate(1.5deg); } 75% { transform: translateY(-6px) rotate(-1deg); } }
@keyframes deco-float-b { 0%,100% { transform: translateY(0) rotate(0deg); } 35% { transform: translateY(-10px) rotate(-2deg); } 70% { transform: translateY(-18px) rotate(1deg); } }
.deco-a { animation: deco-float-a 7s ease-in-out infinite; }
.deco-b { animation: deco-float-b 5.5s ease-in-out infinite; }
.deco-c { animation: deco-float-a 6.2s ease-in-out infinite reverse; }

/* ── Type ── */
h1.page-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.5vw, 46px);
  line-height: 1.15; margin-bottom: 14px;
}
.page-lede { font-size: 17px; color: var(--ink-60); max-width: 56ch; margin-bottom: 8px; }

h2.sec {
  font-family: var(--serif); font-weight: 500; font-size: 26px;
  margin: 58px 0 18px; display: flex; align-items: baseline; gap: 14px;
}
h2.sec::after { content: ''; flex: 1; border-bottom: 1.5px dashed var(--ink-15); transform: translateY(-6px); }

/* ── Reveal on load ── */
.rev { opacity: 0; transform: translateY(14px); animation: rev-in .7s cubic-bezier(.2,.7,.2,1) forwards; }
.rev-1 { animation-delay: .05s; } .rev-2 { animation-delay: .15s; }
.rev-3 { animation-delay: .25s; } .rev-4 { animation-delay: .35s; }
.rev-5 { animation-delay: .45s; }
@keyframes rev-in { to { opacity: 1; transform: translateY(0); } }

/* ── Overview: tool cards ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 26px; margin-top: 40px; }

.tool-card {
  position: relative; display: flex; flex-direction: column;
  border: 1.5px solid var(--ink); background: var(--card);
  border-radius: 3px; padding: 26px 26px 22px;
  text-decoration: none; color: var(--ink);
  box-shadow: 4px 5px 0 rgba(10, 10, 58, 0.14);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.tool-card:hover { transform: translate(-2px, -4px) rotate(-0.4deg); box-shadow: 8px 11px 0 rgba(10, 10, 58, 0.16); }
.tool-card.is-soon { border-style: dashed; border-color: var(--ink-40); box-shadow: none; }
.tool-card.is-soon:hover { transform: none; }

.tool-card .card-art {
  height: 128px; display: flex; align-items: center; justify-content: flex-start;
  margin-bottom: 18px;
}
.tool-card .card-art img { height: 100%; width: auto; filter: drop-shadow(3px 5px 6px rgba(10,10,58,.18)); transition: transform .35s ease; }
.tool-card:hover .card-art img { transform: rotate(-3deg) scale(1.05); }
.tool-card .card-art svg { height: 92px; width: auto; }

.tool-card h3 { font-family: var(--serif); font-weight: 500; font-size: 25px; margin-bottom: 6px; }
.tool-card p { font-size: 14px; color: var(--ink-60); line-height: 1.6; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-40); }
.card-meta .tag { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; font-weight: 700; }
.card-go {
  position: absolute; top: 20px; right: 20px; font-size: 19px;
  transition: transform .3s ease; color: var(--ink-60);
}
.tool-card:hover .card-go { transform: translateX(5px); color: var(--accent); }

/* ── Detail: hero ── */
.tool-hero { display: flex; gap: 30px; align-items: flex-start; }
.hero-art {
  width: 148px; height: 148px; flex-shrink: 0;
  border: 1.5px solid var(--ink); border-radius: 3px; background: var(--card);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 4px 5px 0 rgba(10, 10, 58, 0.14);
  transform: rotate(-1.5deg);
}
.hero-art img { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(2px 4px 5px rgba(10,10,58,.18)); }
.hero-art svg { width: 62%; height: 62%; }
.hero-copy { flex: 1; min-width: 0; }
.hero-kicker { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hero-kicker .tag { font-size: 9px; padding: 2.5px 8px; border-radius: 999px; font-weight: 700; letter-spacing: 0.1em; }
.hero-meta { font-size: 12.5px; color: var(--ink-40); letter-spacing: 0.06em; margin-top: 14px; }
.hero-meta b { color: var(--ink-60); font-weight: 700; }

/* ── Detail: feature tiles ── */
.feat-list {
  list-style: none; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 16px; margin-top: 10px;
}
.feat-list li {
  background: var(--card);
  border: 1.5px solid var(--ink-15); border-radius: 3px;
  padding: 18px 18px 16px;
  font-size: 13.5px; color: var(--ink-60); line-height: 1.6;
  box-shadow: 3px 4px 0 rgba(10, 10, 58, 0.08);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feat-list li:hover {
  transform: translateY(-3px) rotate(-0.4deg);
  border-color: var(--ink);
  box-shadow: 5px 7px 0 rgba(10, 10, 58, 0.12);
}
.feat-list li::before {
  content: ''; display: block; width: 19px; height: 19px; margin-bottom: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17'%3E%3Cpath d='M2 9.5 L6.5 14 L15 3' fill='none' stroke='%23ff6a14' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.feat-list b { display: block; font-weight: 700; color: var(--ink); font-size: 14.5px; margin-bottom: 4px; }

/* ── Detail: pricing (ClipEater) ── */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }
.price-col {
  border: 1.5px solid var(--ink-40); border-radius: 3px; background: var(--card);
  padding: 26px 26px 24px; display: flex; flex-direction: column;
}
.price-col.pro { border: 2px solid var(--accent); box-shadow: 5px 6px 0 rgba(255, 106, 20, 0.25); position: relative; }
.price-col.pro::before {
  content: 'one-time · lifetime'; position: absolute; top: -11px; right: 16px;
  background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
}
.price-name { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.price-amount { font-family: var(--serif); font-weight: 500; font-size: 38px; margin: 8px 0 16px; }
.price-amount small { font-size: 14px; font-family: var(--sans); color: var(--ink-40); letter-spacing: 0.05em; }
.price-col ul { list-style: none; flex: 1; margin-bottom: 22px; }
.price-col li { font-size: 13.5px; padding: 6px 0; border-bottom: 1px dashed var(--ink-15); display: flex; gap: 9px; }
.price-col li::before { content: '—'; color: var(--ink-40); }
.price-col.pro li::before { content: '+'; color: var(--accent); font-weight: 700; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
  padding: 13px 26px; border-radius: 3px; text-decoration: none; border: none;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 3px 4px 0 rgba(10, 10, 58, 0.25); }
.btn-ink:hover { transform: translate(-1px, -2px); box-shadow: 5px 7px 0 rgba(10, 10, 58, 0.25); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 3px 4px 0 var(--accent-deep); }
.btn-accent:hover { transform: translate(-1px, -2px); box-shadow: 5px 7px 0 var(--accent-deep); }
.btn-line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-line:hover { background: rgba(10, 10, 58, 0.06); }
.btn:active { transform: translate(1px, 2px); box-shadow: 1px 1px 0 rgba(10,10,58,.2); }

/* ── Download / email gate ── */
.dl-box {
  border: 1.5px solid var(--ink); border-radius: 3px; background: var(--card);
  box-shadow: 4px 5px 0 rgba(10, 10, 58, 0.14);
  padding: 30px 32px; display: flex; gap: 28px; align-items: center;
}
@media (max-width: 760px) { .dl-box { flex-direction: column; align-items: flex-start; } }
.dl-box .dl-mascot { width: 96px; flex-shrink: 0; filter: drop-shadow(2px 4px 5px rgba(10,10,58,.18)); animation: deco-float-b 5s ease-in-out infinite; }
.dl-copy { flex: 1; }
.dl-copy h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin-bottom: 6px; }
.dl-copy p { font-size: 13.5px; color: var(--ink-60); }

.dl-form { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.dl-form input[type='email'] {
  flex: 1; min-width: 210px; font-family: var(--sans); font-size: 14px;
  padding: 12px 15px; border: 1.5px solid var(--ink-40); border-radius: 3px;
  background: #fdfdfb; color: var(--ink); outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.dl-form input[type='email']:focus { border-color: var(--ink); box-shadow: 2px 3px 0 rgba(10,10,58,.12); }
.dl-consent {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 12px;
  font-size: 12.5px; color: var(--ink-60); line-height: 1.55; user-select: none;
}
.dl-consent input[type='checkbox'] {
  appearance: none; -webkit-appearance: none; flex-shrink: 0;
  width: 17px; height: 17px; margin-top: 1px;
  border: 1.5px solid var(--ink-40); border-radius: 3px; background: #fdfdfb;
  display: inline-grid; place-content: center;
  transition: border-color .2s ease, background .2s ease;
}
.dl-consent input[type='checkbox']:hover { border-color: var(--ink); }
.dl-consent input[type='checkbox']:checked { background: var(--accent); border-color: var(--accent); }
.dl-consent input[type='checkbox']:checked::before {
  content: ''; width: 10px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17'%3E%3Cpath d='M2 9.5 L6.5 14 L15 3' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.form-note { font-size: 11.5px; color: var(--ink-40); margin-top: 10px; line-height: 1.6; }
.form-note a { color: var(--ink-60); }
.dl-success { display: none; margin-top: 16px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.dl-success.show { display: block; animation: rev-in .5s ease forwards; }
.dl-success span { color: var(--accent); }

/* ── Install note ── */
.note-box {
  background: rgba(255, 106, 20, 0.85); color: #fff;
  padding: 18px 22px; font-size: 13.5px; border-radius: 3px;
  margin-top: 20px; line-height: 1.7;
  box-shadow: 4px 5px 0 rgba(184, 60, 6, 0.4);
}
.note-box b { color: #fff; }

/* ── Prose ── */
.prose p { max-width: 62ch; margin-bottom: 14px; font-size: 15px; color: var(--ink-60); }
.prose p b, .prose p strong { color: var(--ink); }

/* ── Steps (how it works) ── */
.steps { counter-reset: step; display: grid; gap: 0; margin-top: 4px; }
.step { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px dashed var(--ink-15); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--ink-40);
  width: 44px; flex-shrink: 0; line-height: 1.2;
}
.step h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 3px; }
.step p { font-size: 13.5px; color: var(--ink-60); max-width: 58ch; }

/* ── Footer ── */
.page-foot {
  margin-top: 80px; padding-top: 24px; border-top: 1.5px solid var(--ink-15);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: 0.08em; color: var(--ink-40);
}
.page-foot a { color: var(--ink-60); text-decoration: none; }
.page-foot a:hover { color: var(--ink); }

/* ── Legal pages ── */
.legal .content { max-width: 700px; }
.legal h2.sec { font-size: 23px; margin-top: 46px; }
.legal h3 { font-size: 15px; font-weight: 700; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 14px; color: var(--ink-60); margin-bottom: 12px; line-height: 1.75; }
.legal ul { padding-left: 20px; margin-bottom: 12px; }
.legal li { margin-bottom: 5px; }
.legal a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink-40); }
.legal a:hover { border-bottom-color: var(--ink); }
.legal-card {
  border: 1.5px solid var(--ink); border-radius: 3px; background: var(--card);
  box-shadow: 4px 5px 0 rgba(10, 10, 58, 0.14);
  padding: 22px 26px; margin: 18px 0 8px; font-size: 14.5px; line-height: 1.8;
}
.legal-card b { font-size: 16px; }
.lang-note { font-size: 12px; font-style: italic; color: var(--ink-40); margin-bottom: 28px; }

/* ── Mobile top bar (hamburger + breadcrumb) ── */
.topbar { display: none; }
.nav-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 10, 58, 0.35);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.nav-backdrop.show { opacity: 1; pointer-events: auto; }

/* ── Mobile ── */
@media (max-width: 900px) {
  .topbar {
    display: flex; align-items: center; gap: 15px;
    position: sticky; top: 0; z-index: 60;
    background: rgba(242, 241, 238, 0.88);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border-bottom: 1.5px solid var(--ink-15);
    padding: 13px 18px;
  }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 36px; padding: 8px;
    background: none; border: none; flex-shrink: 0;
  }
  .burger span {
    display: block; height: 2px; width: 100%; border-radius: 2px;
    background: var(--ink);
    transition: transform .3s ease, opacity .25s ease;
  }
  body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .burger span:nth-child(2) { opacity: 0; }
  body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .topbar-crumbs {
    font-size: 13px; letter-spacing: 0.07em; color: var(--ink-40);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .topbar-crumbs a { color: var(--ink-60); text-decoration: none; }
  .topbar-crumbs .sep { opacity: 0.5; padding: 0 3px; }
  .topbar-crumbs .here { color: var(--ink); }

  /* sidebar becomes an off-canvas drawer sliding in from the left */
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    height: 100dvh; width: min(300px, 84vw);
    background: #f2f1ee;
    transform: translateX(-105%);
    transition: transform .4s cubic-bezier(.2, .7, .2, 1);
    z-index: 110; overflow-y: auto;
    padding-top: 28px;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 14px 0 44px rgba(10, 10, 58, 0.28); }
  body.nav-open { overflow: hidden; }

  .topbar ~ .shell .crumbs { display: none; }   /* topbar carries the breadcrumb */
  .content { padding-left: 22px; padding-right: 22px; }
  .deco { display: none; }
  .tool-hero { flex-direction: column; }
}
