:root {
  color-scheme: light;
  --ink: #152622;
  --paper: #faf7ef;
  --white: #fffefa;
  --orange: #d85c27;
  --orange-dark: #923b19;
  --muted: #52605a;
  --line: #d9ded4;
  --soft: #edf0e7;
  --warm: #f6e9d8;
  --shadow: 0 16px 44px rgba(21,38,34,.065);
  --radius: 22px;
  font-family: Arial, Helvetica, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 0; background: var(--paper); }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
input, textarea, select { font-size: 16px; }
button, input, textarea, select, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--orange-dark); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, a, input, textarea, select, summary { outline-offset: 4px; }
:focus-visible { outline: 3px solid #8b3212; box-shadow: 0 0 0 6px #fffefa; }
[hidden] { display: none !important; }

header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.025em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
}
.brand::before {
  content: '';
  width: 10px;
  height: 22px;
  flex: 0 0 10px;
  display: inline-block;
  border-radius: 8px 8px 3px 3px;
  background: var(--orange);
}
.brand::before { display: none; }
.brand > b { display: grid; place-items: center; width: 39px; height: 42px; flex: 0 0 39px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 23px; letter-spacing: -.06em; border-bottom: 3px solid var(--orange); }
.brand small { display: block; margin-top: 5px; font-size: 9px; line-height: 1.4; font-weight: 700; letter-spacing: .11em; color: var(--muted); }
header nav, header .nav, .nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
header nav a, .nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--ink); }
.skip {
  position: fixed;
  left: 14px;
  top: -100px;
  z-index: 1000;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 700;
}
.skip:focus { top: 12px; }

main { width: min(1200px, 100%); margin: 0 auto; padding: 0 28px 64px; }
.crumb { padding: 24px 0 10px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.crumb a { color: var(--muted); }
.eyebrow {
  color: var(--orange-dark);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin: 0 0 13px;
}
h1, h2, h3, h4 { margin-top: 0; line-height: 1.16; letter-spacing: -.035em; text-wrap: balance; }
h1 { max-width: 850px; font-size: clamp(35px, 4.8vw, 64px); font-weight: 800; margin-bottom: 23px; }
h2 { font-size: clamp(25px, 3vw, 34px); font-weight: 800; margin-bottom: 18px; }
h3 { font-size: 21px; margin-bottom: 12px; }
h4 { font-size: 17px; margin-bottom: 10px; }
p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 23px; margin: 15px 0 0; }
li { padding-left: 3px; margin-bottom: 10px; }
li:last-child { margin-bottom: 0; }
.lead { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.65; color: #35473f; max-width: 690px; }
.hook { font-size: 17px; line-height: 1.55; font-weight: 700; color: var(--orange-dark); max-width: 660px; }
.small, small { font-size: 13px; color: var(--muted); line-height: 1.6; }

.tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 52px;
  align-items: center;
  padding: 30px 0 48px;
}
.tool-hero > *, .collection-hero > *, .bench > *, .app-bridge > * { min-width: 0; }
.tool-hero figure { margin: 0; justify-self: center; }
.tool-hero figure img {
  width: 222px;
  height: 333px;
  object-fit: contain;
  border-radius: 21px;
  box-shadow: 0 18px 38px rgba(21,38,34,.18);
}
.tool-hero figcaption { max-width: 222px; margin-top: 12px; font-size: 11px; color: var(--muted); line-height: 1.5; }

.button, button.button, .secondary, .text-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 21px;
  border: 1px solid var(--ink);
  border-radius: 11px;
  color: var(--paper);
  background: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.button:hover, button.button:hover { color: #fff; background: #29483d; box-shadow: 0 4px 0 var(--orange); text-decoration: none; }
.secondary, .button.secondary { color: var(--ink); background: transparent; border-color: #abb6aa; }
.secondary:hover, .button.secondary:hover { color: var(--ink); background: #edf0e7; box-shadow: none; border-color: var(--ink); }
.text-button { color: var(--orange-dark); background: transparent; border-color: transparent; padding-inline: 8px; text-decoration: underline; }
.text-button:hover { background: #f3e6d8; }
button:disabled, .button[aria-disabled="true"] { cursor: not-allowed; background: #e4e7df; color: #536157; border-color: #aeb7ab; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }

.bench { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 25px; align-items: start; margin: 0 0 52px; }
.inputs-panel, .output-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 29px; background: var(--white); box-shadow: var(--shadow); }
.inputs-panel > h2, .output-panel > h2 { font-size: 23px; margin-bottom: 9px; }
.inputs-panel > p, .output-panel > p { color: var(--muted); font-size: 14px; }
.output-panel { border-top: 4px solid var(--orange); }
.field { margin-top: 22px; }
.field label, label.field { display: block; font-weight: 700; font-size: 14px; line-height: 1.5; margin-bottom: 8px; }
.field small, .field .small { display: block; margin-top: 7px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field textarea, .field select,
input:not([type="checkbox"]):not([type="radio"]), textarea, select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 13px;
  background: #fffefa;
  color: var(--ink);
  border: 1px solid #aab7ab;
  border-radius: 9px;
  line-height: 1.5;
}
textarea { min-height: 116px; resize: vertical; }
select { padding-right: 30px; white-space: normal; }
input::placeholder, textarea::placeholder { color: #637269; opacity: 1; }
.check { display: flex !important; align-items: flex-start; gap: 11px; min-height: 44px; font-size: 14px; line-height: 1.55; font-weight: 500; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; }
.status { min-height: 24px; margin-top: 16px; font-size: 13px; font-weight: 700; color: #294a38; overflow-wrap: anywhere; }
.status:empty { margin: 0; min-height: 0; }
.result-section { margin-top: 20px; padding: 19px 0 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.result-section h3 { font-size: 16px; letter-spacing: -.015em; margin-bottom: 9px; }
.result-section p, .result-section li { font-size: 15px; line-height: 1.7; }
.result-section p { white-space: pre-line; }
.result-section ul, .result-section ol { margin-top: 8px; }
.result-section:first-child { margin-top: 0; border: 0; padding-top: 0; }
.reading { max-width: 850px; margin: 38px 0; }
.reading h2 { margin-top: 30px; }
.reading h3 { margin-top: 25px; }
.reading p, .reading li { line-height: 1.8; }
details { border-top: 1px solid var(--line); padding: 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { min-height: 52px; padding: 18px 28px 18px 0; cursor: pointer; font-weight: 700; font-size: 15px; line-height: 1.55; }
details > p, details > div { padding: 0 0 21px; color: #3d4d44; font-size: 15px; }
details[open] summary { color: var(--orange-dark); }

.app-bridge {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  margin: 56px 0;
  padding: 36px;
  border-radius: 25px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 18px 38px rgba(21,38,34,.10);
}
.app-bridge img { width: 170px; height: 255px; object-fit: contain; border-radius: 14px; box-shadow: 0 12px 24px rgba(0,0,0,.25); }
.app-bridge figure { margin: 0; }
.app-bridge h2 { max-width: 680px; font-size: clamp(25px, 3vw, 36px); }
.app-bridge p { max-width: 680px; color: #e0e6dc; font-size: 16px; }
.app-bridge .eyebrow { color: #f9b38e; font-size: 11px; }
.app-bridge .offer, .offer { font-size: 13px; line-height: 1.65; }
.app-bridge .button { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.app-bridge .button:hover { background: #fff; color: var(--ink); box-shadow: 0 4px 0 var(--orange); }
.app-bridge .small, .app-bridge small { color: #c9d3c7; }
.app-bridge a:not(.button) { color: #ffba95; }
.related { margin-top: 54px; padding-top: 32px; border-top: 1px solid var(--line); }
.related h2 { font-size: 25px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.related-grid > a { display: block; min-height: 82px; padding: 19px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--white); font-size: 15px; font-weight: 700; text-decoration: none; line-height: 1.5; }
.related-grid > a:hover { border-color: var(--orange-dark); background: #f6ece0; }

.collection-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 30px;
  padding: 64px 0 58px;
}
.collection-hero h1 { max-width: 700px; }
.collection-hero h1 em { color: var(--orange-dark); font-style: normal; }
.collection-hero .lead { font-size: 20px; }
.phone-stack {
  min-height: 345px;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  isolation: isolate;
}
.phone-stack img { width: clamp(115px, 12.4vw, 170px); height: auto; border-radius: 16px; box-shadow: 0 18px 32px rgba(21,38,34,.23); position: relative; }
.phone-stack img:nth-child(1) { transform: rotate(-7deg) translateX(10px) translateY(12px); z-index: 1; }
.phone-stack img:nth-child(2) { transform: translateY(-8px); z-index: 3; }
.phone-stack img:nth-child(3) { transform: rotate(7deg) translateX(-10px) translateY(12px); z-index: 2; }
.library { margin-top: 10px; }
.library-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; padding-top: 30px; border-top: 1px solid var(--line); }
.library-heading h2 { margin: 0; font-size: 30px; }
.library-heading p { margin: 0; font-size: 14px; color: var(--muted); }
.library-heading > label { flex: 0 1 320px; min-width: 0; width: 100%; font-size: 13px; font-weight: 700; line-height: 1.6; }
.library-heading > label input { margin-top: 7px; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 24px; align-items: center; }
.filters button { min-height: 44px; padding: 10px 16px; border: 1px solid #b8c1b5; border-radius: 30px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.5; }
.filters button:hover { border-color: var(--ink); background: #eef0e7; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filters .field { margin-top: 0; }
.filters label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tool-card {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  min-height: 275px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 5px 18px rgba(21,38,34,.025);
  color: var(--ink);
  text-decoration: none;
}
.tool-card:hover { text-decoration: none; }
.tool-card:hover, .tool-card:focus-within { border-color: #a1b2a2; box-shadow: 0 12px 30px rgba(21,38,34,.07); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1.5; letter-spacing: .02em; }
.card-top span { max-width: 100%; overflow-wrap: anywhere; }
.tool-card h2, .tool-card h3 { font-size: 22px; line-height: 1.2; margin-bottom: 12px; }
.tool-card p { color: #4d5e53; font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
.card-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; align-self: flex-start; color: var(--orange-dark); font-size: 13px; font-weight: 800; text-decoration-thickness: 1px; }
.tool-card:nth-child(6n+2) { background: #f0f3eb; }
.tool-card:nth-child(6n+4) { background: #f9efe2; }
footer { max-width: 1200px; margin: 0 auto; padding: 28px 28px 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (min-width: 1000px) {
  .output-panel { position: sticky; top: 25px; }
}
@media (max-width: 900px) {
  .collection-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 20px; padding-top: 44px; }
  .phone-stack { min-height: 280px; }
  .phone-stack img { width: 115px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-hero { gap: 28px; grid-template-columns: minmax(0, 1fr) 210px; }
  .tool-hero figure img { width: 200px; height: 300px; }
  .inputs-panel, .output-panel { padding: 23px; }
  .bench { gap: 18px; }
}
@media (max-width: 700px) {
  header { padding: 16px 20px; gap: 8px 20px; flex-wrap: wrap; }
  header nav, header .nav, .nav { gap: 4px 18px; }
  header nav a, .nav a { font-size: 13px; }
  main { padding: 0 20px 42px; }
  h1 { font-size: clamp(33px, 7.8vw, 48px); }
  .collection-hero { grid-template-columns: minmax(0, 1fr); padding: 38px 0 34px; gap: 8px; }
  .collection-hero .lead { font-size: 18px; }
  .phone-stack { min-height: 290px; padding: 28px 10px; margin: 4px 0 12px; }
  .phone-stack img { width: min(27vw, 145px); }
  .tool-hero { grid-template-columns: minmax(0, 1fr); padding: 25px 0 32px; gap: 28px; }
  .tool-hero figure { justify-self: start; display: flex; align-items: center; gap: 18px; }
  .tool-hero figure img { width: 150px; height: 225px; flex: 0 0 150px; border-radius: 15px; }
  .tool-hero figcaption { max-width: 160px; }
  .bench { grid-template-columns: minmax(0, 1fr); margin-bottom: 38px; gap: 20px; }
  .inputs-panel, .output-panel { padding: 24px; }
  .app-bridge { padding: 27px; gap: 25px; grid-template-columns: 125px minmax(0, 1fr); }
  .app-bridge img { width: 125px; height: 188px; border-radius: 12px; }
  .app-bridge h2 { font-size: 26px; }
  .related-grid { grid-template-columns: minmax(0, 1fr); }
  .filters { grid-template-columns: minmax(0, 1fr); }
  footer { padding: 25px 20px; }
}
@media (max-width: 480px) {
  .brand { font-size: 16px; }
  header { padding: 13px 18px; }
  main { padding-inline: 18px; }
  .crumb { padding-top: 18px; font-size: 12px; }
  .eyebrow { font-size: 10px; }
  .lead { font-size: 18px; }
  .hook { font-size: 16px; }
  .tool-hero figure { gap: 17px; }
  .tool-hero figure img { width: 132px; height: 198px; flex-basis: 132px; }
  .tool-hero figcaption { font-size: 11px; }
  .inputs-panel, .output-panel { padding: 22px 19px; border-radius: 17px; }
  .actions { gap: 10px; }
  .actions .button { flex: 1 1 140px; }
  .actions .text-button { flex: 0 1 auto; }
  .app-bridge { grid-template-columns: minmax(0, 1fr); padding: 26px 23px; margin: 38px 0; }
  .app-bridge img { width: 140px; height: 210px; }
  .app-bridge figure { justify-self: start; }
  .app-bridge .button { width: 100%; }
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tool-card { min-height: 245px; padding: 23px; }
  .phone-stack { min-height: 295px; padding: 12px 0 20px; }
  .phone-stack img { width: min(28vw, 118px); border-radius: 11px; }
  .phone-stack img:nth-child(1) { transform: rotate(-5deg) translateX(8px) translateY(11px); }
  .phone-stack img:nth-child(3) { transform: rotate(5deg) translateX(-8px) translateY(11px); }
  .library-heading { padding-top: 23px; }
  .library-heading h2 { font-size: 27px; }
  footer { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  :root { color-scheme: light; font-size: 11pt; color: #111; background: white; }
  * { box-shadow: none !important; text-shadow: none !important; }
  body, main, .bench, .output-panel { width: auto; max-width: none; margin: 0; padding: 0; color: #111; background: white; border: 0; }
  header, nav, .nav, .skip, .crumb, .inputs-panel, .actions, button, .status, .app-bridge, .related, .filters, .library, .collection-hero, footer, .tool-hero figure { display: none !important; }
  .tool-hero { display: block; padding: 0 0 12pt; margin: 0; border-bottom: 1px solid #999; }
  .tool-hero h1 { font-size: 23pt; line-height: 1.16; margin: 0 0 7pt; }
  .tool-hero .lead, .tool-hero .hook { font-size: 10pt; line-height: 1.45; color: #222; margin: 0 0 5pt; }
  .eyebrow { color: #444; font-size: 8pt; margin-bottom: 5pt; }
  .bench { display: block; }
  .output-panel { position: static; padding-top: 14pt; }
  .output-panel > h2 { font-size: 16pt; }
  .output-panel > p { color: #333; font-size: 10pt; }
  .result-section { break-inside: avoid; page-break-inside: avoid; border-color: #aaa; padding-top: 10pt; margin-top: 10pt; }
  .result-section h3 { font-size: 11pt; }
  .result-section p, .result-section li { font-size: 10pt; line-height: 1.5; }
  .reading { display: none !important; }
  a { color: #111; text-decoration: none; }
  a::after { content: none !important; }
  @page { margin: 16mm; }
}
