/* Passbrick tool pages: the landing's neo-brutalist style, plus the tool
   widgets and the animation stage. */
:root {
  --paper: #F6F1E7;
  --ink: #111111;
  --white: #FFFFFF;
  --yellow: #FFD23F;
  --violet: #8B7BFF;
  --teal: #3DDBD9;
  --pink: #FF6B8B;
  --muted: #333333;
  --stroke: 3px;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(#E2DACB 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.mono { font-family: 'Space Mono', monospace; }
[id] { scroll-margin-top: 90px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); border: var(--stroke) solid var(--ink); padding: 8px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 16px; }

.box { background: var(--white); border: var(--stroke) solid var(--ink); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 20px; border: var(--stroke) solid var(--ink); border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink); font: 700 17px 'Archivo', sans-serif; color: var(--ink);
  text-decoration: none; transition: transform .12s, box-shadow .12s; cursor: pointer; background: var(--white);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible, .seg button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.btn-yellow { background: var(--yellow); }
.btn-ink { background: var(--ink); color: var(--white); box-shadow: 4px 4px 0 var(--yellow); }
.btn-ink:hover { box-shadow: 6px 6px 0 var(--yellow); }
.btn-small { padding: 8px 14px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.sticker { display: inline-block; border: var(--stroke) solid var(--ink); border-radius: 8px; box-shadow: 3px 3px 0 var(--ink); padding: 4px 12px; font: 700 14px 'Space Mono', monospace; letter-spacing: .02em; background: var(--white); }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 13px; background: var(--white); font-weight: 700; font-size: 14px; }
h1, h2, h3 { margin: 0; }
h1 { font-weight: 900; font-size: clamp(38px, 6vw, 62px); line-height: 1.03; letter-spacing: -.02em; }
h2 { font-weight: 900; font-size: clamp(28px, 4vw, 40px); line-height: 1.08; letter-spacing: -.01em; margin-bottom: 14px; }
h3 { font-weight: 700; font-size: 20px; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 640px; }

/* Nav, with an app-style menu on small screens */
nav.site { padding: 14px 0; position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: var(--stroke) solid transparent; transition: border-color .15s; }
nav.site.scrolled { border-bottom-color: var(--ink); }
nav.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border: var(--stroke) solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); }
.nav-links { display: flex; gap: 22px; font-weight: 700; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-get { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; background: var(--yellow); color: var(--ink); border: var(--stroke) solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--ink); font: 700 17px 'Archivo', system-ui, sans-serif; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.nav-get:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.menu-btn { display: none; width: 46px; height: 46px; padding: 0; background: var(--white); border: var(--stroke) solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; place-items: center; }
.menu-btn span { display: block; width: 20px; height: 3px; background: var(--ink); border-radius: 2px; margin: 2.5px auto; transition: transform .2s, opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu-sheet { display: none; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-get { display: none; }
  .menu-btn { display: grid; }
  .menu-sheet {
    display: block; position: fixed; inset: 74px 0 0 0; z-index: 55; background: var(--paper);
    padding: 18px 16px 32px; overflow-y: auto; transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .2s, opacity .2s, visibility 0s .2s; border-top: var(--stroke) solid var(--ink);
  }
  .menu-open .menu-sheet { transform: none; opacity: 1; visibility: visible; transition: transform .2s, opacity .2s; }
  .menu-sheet a.item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 12px; background: var(--white); border: var(--stroke) solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
  .menu-sheet a.item .dot { width: 30px; height: 30px; flex: none; border: var(--stroke) solid var(--ink); border-radius: 8px; }
  .menu-sheet a.item small { display: block; font-weight: 500; font-size: 14px; color: var(--muted); }
  .menu-sheet a.play { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 8px; padding: 14px; background: var(--yellow); color: var(--ink); border: var(--stroke) solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--ink); font-weight: 700; text-decoration: none; }
  .menu-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .menu-sheet, .menu-btn span { transition: none !important; } }

/* Breadcrumbs */
.crumbs { font-size: 14px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { font-weight: 700; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Tool hero */
.tool-hero { padding: 26px 0 30px; }
.tool-hero .lead { margin: 18px 0 22px; }
.seal { display: flex; flex-wrap: wrap; gap: 10px; }

/* Tool + stage layout */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; padding-bottom: 40px; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: 1fr; } }
.tool { padding: 22px; }
.tool h2 { font-size: 22px; margin-bottom: 16px; }
.field { margin-bottom: 18px; }
.field > label, .field > .label { display: block; font-weight: 700; margin-bottom: 8px; }
.field .hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.output {
  display: flex; align-items: stretch; gap: 10px; margin-bottom: 18px;
}
.output .value {
  flex: 1; min-width: 0; font: 700 clamp(17px, 2.4vw, 22px) 'Space Mono', monospace; padding: 14px 16px;
  background: var(--paper); border: var(--stroke) solid var(--ink); border-radius: 10px; overflow-wrap: anywhere; line-height: 1.35;
}
input[type="text"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; font: 600 17px 'Archivo', sans-serif; padding: 12px 14px; background: var(--white);
  border: var(--stroke) solid var(--ink); border-radius: 10px; color: var(--ink);
}
input.mono-in, textarea.mono-in { font-family: 'Space Mono', monospace; }
textarea { min-height: 110px; resize: vertical; }
input[type="range"] { width: 100%; accent-color: var(--ink); height: 28px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; }
.seg { display: inline-flex; border: var(--stroke) solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--white); flex-wrap: wrap; }
.seg button { border: 0; border-right: var(--stroke) solid var(--ink); background: transparent; padding: 9px 14px; font: 700 15px 'Archivo', sans-serif; cursor: pointer; color: var(--ink); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--yellow); }
.meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 6px 0 8px; }
.meter i { height: 12px; border: 2px solid var(--ink); border-radius: 4px; background: var(--white); }
.meter[data-level="1"] i:nth-child(-n+1) { background: var(--pink); }
.meter[data-level="2"] i:nth-child(-n+2) { background: #FFA86B; }
.meter[data-level="3"] i:nth-child(-n+3) { background: var(--yellow); }
.meter[data-level="4"] i:nth-child(-n+4) { background: var(--teal); }
.meter[data-level="5"] i:nth-child(-n+5) { background: var(--teal); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px; }
.stat b { display: block; font: 700 18px 'Archivo', sans-serif; line-height: 1.25; }
.stat span { font-size: 13px; color: var(--muted); }
.note { border: var(--stroke) solid var(--ink); border-radius: 12px; padding: 12px 14px; font-size: 15px; margin-top: 14px; }
.note.pink { background: var(--pink); }
.note.teal { background: var(--teal); }
.note.yellow { background: var(--yellow); }
.note.white { background: var(--white); }
.list-out { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.list-out li { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 8px 10px 8px 14px; font: 700 17px 'Space Mono', monospace; overflow-wrap: anywhere; }

/* The animation stage */
.stage { padding: 0; overflow: hidden; position: sticky; top: 96px; }
@media (max-width: 900px) { .stage { position: relative; top: 0; } }
.stage-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: var(--stroke) solid var(--ink); background: var(--ink); color: var(--paper); font: 700 13px 'Space Mono', monospace; letter-spacing: .04em; }
.stage-head .live { display: inline-flex; align-items: center; gap: 8px; }
.stage-head .live::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.stage-canvas { background: var(--paper); background-image: radial-gradient(#E2DACB 1.2px, transparent 1.2px); background-size: 22px 22px; }
.stage-canvas canvas { display: block; }
.hud { padding: 12px 16px 14px; border-top: var(--stroke) solid var(--ink); background: var(--white); min-height: 68px; }
.hud b { display: block; font: 700 13px 'Space Mono', monospace; letter-spacing: .04em; color: var(--muted); }
.hud span { font-weight: 700; font-size: 17px; }
.hud-in { animation: hudIn .35s ease-out; }
@keyframes hudIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Article */
.article { padding: 34px 0 10px; }
.article .wrap { max-width: 820px; }
.article section { padding: 22px 0; }
.article p, .article li { font-size: 18px; }
.article ul, .article ol { padding-left: 22px; }
.article li + li { margin-top: 6px; }
.steps { list-style: none; padding: 0 !important; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 66px; background: var(--white); border: var(--stroke) solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--yellow); border: var(--stroke) solid var(--ink); border-radius: 8px; font: 700 17px 'Space Mono', monospace; }
.steps li b { display: block; margin-bottom: 2px; }
table.compare { width: 100%; border-collapse: separate; border-spacing: 0; border: var(--stroke) solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--white); font-size: 16px; }
table.compare th, table.compare td { padding: 10px 12px; text-align: left; border-bottom: 2px solid var(--ink); vertical-align: top; }
table.compare tr:last-child td { border-bottom: 0; }
table.compare th { background: var(--yellow); }
.table-wrap { overflow-x: auto; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: var(--stroke) solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 700 24px/1 'Space Mono', monospace; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); font-size: 17px; }

/* Related tools and the tools index */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.tool-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.tool-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.tool-card .ico { width: 52px; height: 52px; display: grid; place-items: center; border: var(--stroke) solid var(--ink); border-radius: 12px; font: 700 20px 'Space Mono', monospace; }
.tool-card p { margin: 0; color: var(--muted); }
.tool-card .go { margin-top: auto; font-weight: 700; }
.related { padding: 30px 0 10px; }

/* Soft app CTA */
.app-cta { margin: 40px 0 0; padding: 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; background: var(--yellow); }
.app-cta img { width: 64px; height: 64px; border: var(--stroke) solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); }
.app-cta h3 { font-size: 22px; margin-bottom: 4px; }
.app-cta p { margin: 0; }
@media (max-width: 700px) { .app-cta { grid-template-columns: 1fr; } }

/* Site footer, same as the landing pages */
.pb-footer { background: #111111; color: #E9E3D6; border-top: 3px solid #111111; margin-top: 60px; padding: 0; font-family: 'Archivo', system-ui, sans-serif; font-size: 15px; }
.pb-footer a { color: #FFFFFF; text-decoration: none; font-weight: 700; }
.pb-footer a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pb-footer-inner { max-width: 1120px; margin: 0 auto; padding: 56px 16px 28px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.pb-brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 24px; color: #FFFFFF; }
.pb-brand img { width: 44px; height: 44px; border: 3px solid #F6F1E7; border-radius: 10px; box-shadow: 3px 3px 0 #FFD23F; }
.pb-tagline { margin: 14px 0 20px; color: #CFC8BA; max-width: 320px; line-height: 1.5; }
.pb-play { display: inline-flex; align-items: center; gap: 10px; background: #FFD23F; color: #111111 !important; border: 3px solid #F6F1E7; border-radius: 10px; box-shadow: 4px 4px 0 #F6F1E7; padding: 11px 18px; font-size: 16px; }
.pb-play:hover { text-decoration: none !important; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #F6F1E7; }
.pb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pb-chips span { border: 2px solid #F6F1E7; border-radius: 999px; padding: 3px 12px; font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; color: #F6F1E7; }
.pb-col h3 { margin: 4px 0 14px; font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: .06em; color: #FFD23F; text-transform: uppercase; }
.pb-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pb-col li { color: #CFC8BA; }
.pb-bottom { max-width: 1120px; margin: 0 auto; padding: 18px 16px 36px; border-top: 1px solid #333333; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #A9A294; font-size: 14px; }
.pb-bottom a { color: #E9E3D6; }
@media (max-width: 860px) { .pb-footer-inner { grid-template-columns: 1fr 1fr; } .pb-footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .pb-footer-inner { grid-template-columns: 1fr; padding-top: 44px; } }
