/*
 * BoxCad site.
 *
 * Same palette as the tool: deep green on paper white. The pages are text and
 * line drawings, so the whole file is about layout and rhythm and nothing else.
 * No framework, no build step - it is served as written.
 */

:root {
  --brand: #14543a;
  --brand-dark: #0d3a27;
  --brand-bright: #2f8f63;
  --brand-soft: #e8f2ec;
  --ink: #253028;
  --ink-strong: #121a15;
  --ink-mute: #6d7d73;
  --bg: #ffffff;
  --bg-soft: #f4f7f5;
  --line: #dfe7e2;
  --cut: #c8402f;
  --crease: #2f6fb0;
  --radius: 12px;
  --wrap: 68rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 'Urbanist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--ink-strong); line-height: 1.18; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.95rem); font-weight: 650; }
h3 { font-size: 1.08rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-bright); }
em { font-style: normal; font-variant: italic; }

.skip {
  position: absolute; left: -9999px;
  background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; top: 0; z-index: 10; }

/* ------------------------------------------------------------------ head */
.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--wrap); margin: 0 auto; padding: 1.1rem 1.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1.15rem; color: var(--ink-strong); text-decoration: none;
  letter-spacing: -0.02em;
}
/* The mark: a square with one corner folded, which is the whole product in
   one glyph. Drawn in CSS so it costs no request. */
.brand .mark {
  width: 1.05em; height: 1.05em; background: var(--brand);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
  border-radius: 2px;
}
.site-head nav { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.site-head nav a {
  padding: .45rem .8rem; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-weight: 500; font-size: .95rem;
}
.site-head nav a:hover { background: var(--bg-soft); }
.site-head nav a.cta { background: var(--brand); color: #fff; font-weight: 600; }
.site-head nav a.cta:hover { background: var(--brand-dark); }

/* ---------------------------------------------------------------- layout */
main { display: block; }
section { max-width: var(--wrap); margin: 0 auto; padding: 2.6rem 1.25rem; }
.band.alt { max-width: none; background: var(--bg-soft); }
.band.alt > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.narrow { max-width: 44rem; }
.lede { font-size: 1.13rem; color: var(--ink-mute); max-width: 42rem; }
.sub { color: var(--ink-mute); margin-top: -.4em; }
.micro { font-size: .87rem; color: var(--ink-mute); }
.updated { font-size: .87rem; color: var(--ink-mute); margin-top: -.5em; }

.hero { padding-top: 3rem; padding-bottom: 2.4rem; }
.hero h1 { max-width: 20ch; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0 .8rem; }

.btn {
  display: inline-block; padding: .72rem 1.3rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-strong);
  font-weight: 600; font-size: .97rem; text-decoration: none;
  transition: background .15s, border-color .15s, transform .06s;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.three { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.three p { color: var(--ink-mute); margin-bottom: 0; }

/* ----------------------------------------------------------------- cards */
.grid {
  display: grid; gap: 1rem; margin: 1.4rem 0 0;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.card {
  display: block; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.card:hover {
  border-color: var(--brand-bright);
  box-shadow: 0 6px 22px -12px rgba(20, 84, 58, .4);
  transform: translateY(-2px);
}
.card h3 { margin: .9rem 0 .15rem; }
.card p { margin: .3rem 0 0; font-size: .9rem; color: var(--ink-mute); }
.code { font-size: .78rem; font-weight: 600; color: var(--brand-bright); letter-spacing: .03em; }
.code.big { font-size: .95rem; }

/* The drawing itself. Cut is red and crease blue, the way the trade reads a
   dieline, so a packaging engineer recognises it before reading a word. */
.dieline { display: block; width: 100%; height: auto; max-height: 11rem; }
.dieline .c { stroke: var(--cut); }
.dieline .r { stroke: var(--crease); stroke-dasharray: 4 3; opacity: .75; }

/* ---------------------------------------------------------------- detail */
.crumbs {
  max-width: var(--wrap); margin: 0 auto; padding: 1rem 1.25rem 0;
  font-size: .88rem; color: var(--ink-mute);
}
.crumbs a { color: var(--ink-mute); }
.crumbs span { margin: 0 .35rem; }
.detail {
  display: grid; gap: 2rem; align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.detail-art {
  padding: 1.5rem; background: var(--bg-soft); border-radius: var(--radius); border: 1px solid var(--line);
}
.detail-art .dieline { max-height: 22rem; }
.facts { display: grid; gap: .1rem; margin: 1.4rem 0; }
.facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-mute); font-size: .92rem; }
.facts dd { margin: 0; font-weight: 600; font-size: .92rem; text-align: right; }

.notes, .params { padding-left: 1.15rem; color: var(--ink-mute); max-width: 46rem; }
.notes li, .params li { margin-bottom: .5rem; }
.params strong { color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a {
  padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-size: .9rem; color: var(--ink);
}
.chips a:hover { border-color: var(--brand); color: var(--brand); }

/* --------------------------------------------------------------- pricing */
.prices { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin-bottom: 2.5rem; }
.price { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); }
.price.featured { border-color: var(--brand); border-width: 2px; background: var(--brand-soft); }
.price .amount { font-size: 2.4rem; font-weight: 700; color: var(--ink-strong); margin: .2rem 0 .8rem; }
.price .amount span { font-size: .95rem; font-weight: 500; color: var(--ink-mute); margin-left: .4rem; }
.price ul { padding-left: 1.1rem; margin: 0 0 1.4rem; color: var(--ink-mute); }
.price li { margin-bottom: .4rem; }

.faq { max-width: 46rem; }
.faq dt { font-weight: 650; color: var(--ink-strong); margin-top: 1.2rem; }
.faq dd { margin: .25rem 0 0; color: var(--ink-mute); }

.cta-band { text-align: center; }
.cta-band .actions { justify-content: center; }
.more { margin-top: 1.3rem; font-weight: 600; }

/* ------------------------------------------------------------------ foot */
.site-foot { border-top: 1px solid var(--line); margin-top: 2rem; padding: 2.4rem 1.25rem 3rem; }
.site-foot .cols {
  max-width: var(--wrap); margin: 0 auto 1.8rem;
  display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.site-foot .cols > div { display: flex; flex-direction: column; gap: .3rem; }
.site-foot strong { color: var(--ink-strong); margin-bottom: .3rem; }
.site-foot a { color: var(--ink-mute); text-decoration: none; font-size: .93rem; }
.site-foot a:hover { color: var(--brand); }
.site-foot p { color: var(--ink-mute); font-size: .93rem; margin: 0; }
.fine { max-width: var(--wrap); margin: 0 auto .4rem; font-size: .85rem; color: var(--ink-mute); }

@media (max-width: 44rem) {
  .detail { grid-template-columns: 1fr; }
  .site-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
