/* ResinTech — restrained industrial design system. Colours derived from the
   original logo: teal #00ACA8, ink #1D1D1B, grey #706F6F. */
:root {
  --teal: #00aca8;
  --teal-700: #007b78;      /* link / focus colour — 4.7:1 on white */
  --teal-800: #005f5c;
  --teal-050: #e6f6f5;
  --ink: #1d1d1b;
  --ink-800: #2b2b29;
  --g700: #706f6f;
  --g600: #5b5b59;          /* body secondary text, 6.7:1 on white */
  --g400: #a3a3a0;
  --g300: #cfcfcc;
  --g200: #e4e4e1;
  --g100: #f2f2f0;
  --g050: #f8f8f6;
  --bg: #ffffff;
  --warn-bg: #fff6e5;
  --warn-bd: #e6b455;
  --warn-tx: #5c3d00;
  --ok: #1a7f37;
  --err: #b42318;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(29, 29, 27, .06), 0 4px 14px rgba(29, 29, 27, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1160px;
  --gutter: 16px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--teal-800); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.012em; font-weight: 700; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2rem); margin-top: 0; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin: .25em 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; margin-left: .3em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5em 1em; z-index: 100; border-radius: var(--radius); }
.skip:focus { left: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--teal-700); margin-bottom: .6em; }
.lead { font-size: 1.2rem; color: var(--g600); max-width: 62ch; }
.muted { color: var(--g600); }
.small { font-size: .9rem; }
.code { font-family: var(--mono); font-size: .9em; background: var(--g100); padding: .1em .4em; border-radius: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .2em; padding: .7em 1.15em; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 1.5px solid transparent; line-height: 1.2; cursor: pointer; font-family: inherit; font-size: 1rem; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-800); color: #fff; }
.btn-teal { background: var(--teal-700); color: #fff; }
.btn-teal:hover { background: var(--teal-800); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--g300); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: .5em .9em; font-size: .95rem; }
.btn-lg { padding: .85em 1.4em; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--g200); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; flex-wrap: wrap; }
.brand img { width: 176px; height: auto; }
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1.5px solid var(--g300); border-radius: var(--radius); padding: .45rem .7rem; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.nav-toggle-bars { width: 18px; height: 2px; background: currentColor; position: relative; display: inline-block; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; flex-wrap: wrap; align-items: center; }
.site-nav a { display: block; padding: .5rem .7rem; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: var(--radius); font-size: .98rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--g100); color: var(--ink); }
.site-nav a.btn { background: var(--ink); color: #fff; margin-left: .3rem; }
.site-nav a.btn:hover { background: var(--ink-800); }
@media (max-width: 899px) {
  .site-nav { display: none; width: 100%; padding-bottom: .6rem; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: .7rem .6rem; border-bottom: 1px solid var(--g100); }
  .site-nav a.btn { margin: .6rem 0 0; justify-content: center; }
  .js-off .site-nav { display: block; }
}
@media (min-width: 900px) { .nav-toggle { display: none; } }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: clamp(2.5rem, 4vw, 5rem) 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60vw; max-width: 720px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(0,172,168,.35), transparent 65%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lead { color: #d9d9d6; }
.hero .eyebrow { color: var(--teal); }
.hero .btn-primary { background: var(--teal); color: var(--ink); }
.hero .btn-primary:hover { background: #24c3bf; color: var(--ink); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero-paths { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.hero-paths a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; padding: .9rem 1rem; border-radius: var(--radius); font-weight: 600; }
.hero-paths a:hover { background: rgba(255,255,255,.12); border-color: var(--teal); }
.hero-paths span { display: block; font-weight: 400; color: #bdbdb9; font-size: .92rem; }

/* Page head */
.page-head { background: var(--g050); border-bottom: 1px solid var(--g200); padding: clamp(1.5rem, 3vw, 3rem) 0; }
.page-head h1 { max-width: 24ch; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .88rem; color: var(--g600); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--g400); }
.crumbs a { color: var(--g600); }

/* Sections & grids */
.section { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.section-tight { padding: clamp(1.2rem, 2.5vw, 2rem) 0; }
.section + .section { border-top: 1px solid var(--g200); }
.section-alt { background: var(--g050); }
.section-h { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.section-h p { margin: 0; color: var(--g600); }
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.card { background: #fff; border: 1px solid var(--g200); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.card h3 { margin: 0; font-size: 1.1rem; }
.card p { margin: 0; color: var(--g600); font-size: .97rem; }
.card .card-cta { margin-top: auto; padding-top: .5rem; font-weight: 600; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover h3 { color: var(--teal-700); }
.card-badge { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--teal-700); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.two-col { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
.two-col > * { min-width: 0; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) 320px; } .two-col.rev { grid-template-columns: 320px minmax(0, 1fr); } }
.aside { position: sticky; top: 84px; align-self: start; display: grid; gap: 1rem; }
.panel { background: var(--g050); border: 1px solid var(--g200); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.panel h2, .panel h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--g600); margin-bottom: .7rem; }
.panel ul { list-style: none; padding: 0; margin: 0; }
.panel li { padding: .35rem 0; border-top: 1px solid var(--g200); }
.panel li:first-child { border-top: 0; }
.panel .btn { width: 100%; justify-content: center; }
.notice { border: 1px solid var(--warn-bd); background: var(--warn-bg); color: var(--warn-tx); padding: 1rem 1.2rem; border-radius: var(--radius); margin: 1rem 0; }
.notice p { margin: 0; }
.notice strong { color: inherit; }
.note { font-size: .92rem; color: var(--g600); }
.dist-label { display: inline-block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--g600); background: var(--g100); padding: .2em .55em; border-radius: 4px; }

/* Tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.4rem; border: 1px solid var(--g200); border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
.tbl caption { text-align: left; font-weight: 700; padding: .8rem 1rem; background: var(--g050); border-bottom: 1px solid var(--g200); }
.tbl th, .tbl td { text-align: left; padding: .65rem .9rem; border-bottom: 1px solid var(--g200); vertical-align: top; }
.tbl thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: .86rem; letter-spacing: .04em; text-transform: uppercase; }
.tbl tbody th { font-weight: 600; color: var(--ink); background: var(--g050); width: 32%; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl.kv tbody th { width: 34%; }
.tbl.compact { min-width: 0; }
.tbl-num td { font-variant-numeric: tabular-nums; }

/* Product pages */
.product-hero { background: var(--g050); border-bottom: 1px solid var(--g200); padding: clamp(1.5rem, 3vw, 3rem) 0; }
.product-hero-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 860px) { .product-hero-grid { grid-template-columns: minmax(0, 1fr) 360px; } }
.product-img { background: #fff; border: 1px solid var(--g200); border-radius: var(--radius); padding: 1rem; display: grid; place-items: center; aspect-ratio: 4 / 5; max-height: 460px; }
.product-img img { max-height: 420px; width: auto; object-fit: contain; }
.product-img.placeholder { color: var(--g600); font-size: .9rem; text-align: center; }
.facts { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .5rem .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.facts li { background: #fff; border: 1px solid var(--g200); border-radius: var(--radius); padding: .7rem .9rem; }
.facts b { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--g600); margin-bottom: .2em; font-weight: 700; }
.product-code { font-family: var(--mono); color: var(--teal-700); font-weight: 700; font-size: 1rem; }
.status-pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: .2em .6em; border-radius: 999px; background: var(--warn-bg); color: var(--warn-tx); border: 1px solid var(--warn-bd); }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.doc-list li { display: flex; gap: .8rem; align-items: flex-start; border: 1px solid var(--g200); border-radius: var(--radius); padding: .8rem 1rem; background: #fff; }
.doc-list .ic { width: 1.4em; height: 1.4em; margin: .1em 0 0; color: var(--teal-700); flex: none; }
.doc-list a { font-weight: 600; }
.doc-list .small { display: block; }
.related { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.related a { display: block; border: 1px solid var(--g200); border-radius: var(--radius); padding: .9rem 1rem; text-decoration: none; color: var(--ink); background: #fff; }
.related a:hover { border-color: var(--teal); }
.related .product-code { display: block; font-size: .85rem; }
.related span { color: var(--g600); font-size: .93rem; }

/* Filters (products index) */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.filters button { border: 1.5px solid var(--g300); background: #fff; color: var(--ink); padding: .45em .9em; border-radius: 999px; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters button:hover { border-color: var(--ink); }
.product-card { position: relative; }
.product-card .thumb { aspect-ratio: 4 / 3; background: var(--g050); border-radius: 4px; position: relative; margin-bottom: .4rem; overflow: hidden; }
.product-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: .6rem; }
.product-card[hidden] { display: none; }

/* FAQ */
.faq { border-top: 1px solid var(--g200); }
.faq-item { border-bottom: 1px solid var(--g200); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1rem 2.2rem 1rem 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.05rem; display: inline; }
.faq-item summary::after { content: "+"; position: absolute; right: .3rem; top: .9rem; font-size: 1.4rem; color: var(--teal-700); line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-a { padding: 0 0 1.1rem; max-width: 70ch; color: var(--g600); }
.faq-a p { margin: 0; }

/* Systems */
.layer-stack { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 4px; }
.layer-stack li { display: grid; grid-template-columns: 1.1fr 1.2fr .8fr 1.3fr; gap: .8rem; padding: .7rem .9rem; border-radius: 4px; background: var(--g100); font-size: .95rem; }
.layer-stack li.head { background: var(--ink); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.layer-stack li.base { background: var(--teal-050); }
@media (max-width: 640px) { .layer-stack li { grid-template-columns: 1fr 1fr; } }
.config { border: 1px solid var(--g200); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 0 0 1.5rem; background: #fff; }
.config h3 { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.config h3 .product-code { font-size: 1.1rem; }
.build-total { font-weight: 700; font-size: .95rem; }
.flow { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0; }
.flow span { background: var(--g100); border-radius: 4px; padding: .5em .8em; font-weight: 600; font-size: .95rem; }
.flow span.opt { background: var(--teal-050); }
.flow em { color: var(--g400); font-style: normal; }

/* Forms */
.form { display: grid; gap: 1rem; max-width: 640px; }
.form-row { display: grid; gap: .35rem; }
.form-row label { font-weight: 600; }
.form-row .hint { font-size: .88rem; color: var(--g600); }
.form-row input, .form-row select, .form-row textarea { font: inherit; padding: .7em .8em; border: 1.5px solid var(--g300); border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--teal-700); outline: 3px solid rgba(0,172,168,.25); outline-offset: 0; }
.form-row textarea { min-height: 160px; resize: vertical; }
.form-row.invalid input, .form-row.invalid select, .form-row.invalid textarea { border-color: var(--err); }
.form-error { color: var(--err); font-size: .9rem; }
.form-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); display: grid; gap: 1rem; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.form-status { padding: 1rem 1.2rem; border-radius: var(--radius); margin: 0; }
.form-status.ok { background: #e8f5ec; border: 1px solid #9bd3ab; color: #0f5a25; }
.form-status.err { background: #fdecea; border: 1px solid #f0a59e; color: #7a1a12; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; }
.check input { width: auto; margin-top: .3em; }

/* Home extras */
.stat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat-list li { border-left: 3px solid var(--teal); padding: .2rem 0 .2rem 1rem; }
.stat-list b { display: block; font-size: 1.05rem; }
.stat-list span { color: var(--g600); font-size: .95rem; }
.cta-band { background: var(--teal-050); border-top: 1px solid var(--g200); border-bottom: 1px solid var(--g200); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between; padding-top: 2rem; padding-bottom: 2rem; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: .2rem 0 0; color: var(--g600); }

/* Footer */
.site-footer { background: var(--ink); color: #d9d9d6; margin-top: 3rem; padding: 3rem 0 1.5rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--teal); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr .8fr 1.1fr; } }
.footer-brand img { width: 170px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--g400); margin-bottom: .8rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; columns: 2; gap: 2rem; }
.footer-nav li { margin: .3rem 0; break-inside: avoid; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-dist-label { font-size: .8rem; color: var(--g400); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem; }
.site-footer .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .84rem; color: var(--g400); }
.footer-legal p { margin: 0; }

/* Guides */
.guide-meta { color: var(--g600); font-size: .92rem; margin-bottom: 1.5rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0 1.5rem; }
.prose th, .prose td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--g200); vertical-align: top; }
.prose th { background: var(--g050); }
.prose blockquote { border-left: 3px solid var(--teal); margin: 1rem 0; padding: .2rem 1rem; color: var(--g600); }

/* 404 */
.center { text-align: center; }
.big { font-size: clamp(3rem, 8vw, 6rem); color: var(--g300); font-weight: 800; line-height: 1; }

@media print {
  .site-header, .site-footer, .nav-toggle, .btn, .filters { display: none !important; }
  body { font-size: 11pt; }
  .tbl-wrap { border: 0; } .tbl { min-width: 0; }
  a { color: inherit; text-decoration: none; }
}
