/* Racking Studio website.
   Colours come from the materials the program draws: phenolic film, birch ply and its edge, white laminate,
   and the toolpath colours of its Nest window. One typeface, Archivo, with its width axis doing the work. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2-variations"), url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-ext.woff2") format("woff2-variations"), url("../fonts/archivo-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --phenolic: #2a221d;      /* page */
  --film: #3a302a;          /* raised dark surfaces */
  --film-2: #4a3e36;
  --birch: #e3c89a;         /* ply face */
  --edge: #c8a06a;          /* ply edge: the accent */
  --edge-dark: #9c7643;
  --laminate: #f4f4f2;      /* light sections */
  --ink: #221b17;
  --ink-soft: #5b5047;
  --on-dark: #efe6da;
  --on-dark-soft: #c2b4a4;
  --cut-out: #35b368; --cut-slot: #f08a24; --cut-drill: #27b4d6; --cut-pocket: #d04ab5;
  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--phenolic); color: var(--on-dark);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(16px, 0.35vw + 15px, 18px); line-height: 1.6; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--edge); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--edge); color: var(--ink); padding: 10px 14px; z-index: 50; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

h1, h2, h3, h4 { margin: 0; line-height: 1.04; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(40px, 4.6vw, 68px); font-stretch: 112%; letter-spacing: -0.02em; line-height: 0.98; }
h2 { font-size: clamp(30px, 3.6vw, 50px); font-stretch: 116%; max-width: 22ch; }
h3 { font-size: clamp(20px, 1.6vw, 24px); font-stretch: 110%; line-height: 1.15; }
p { margin: 0 0 1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }

/* the birch ply edge: 11 plies, used where one material meets another */
.ply {
  height: 22px;
  background: #c8a06a url("../tex/ply_edge.jpg") left center / auto 100% repeat-x;
  box-shadow: 0 1px 0 rgba(0,0,0,.35) inset, 0 -1px 0 rgba(0,0,0,.35) inset;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px; border-radius: var(--r); border: 2px solid var(--edge);
  background: var(--edge); color: var(--ink); font: inherit; font-weight: 750; font-stretch: 108%;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--birch); border-color: var(--birch); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: rgba(227, 200, 154, .45); border-color: color-mix(in srgb, var(--birch) 45%, transparent); }
.btn-ghost:hover { background: rgba(227, 200, 154, .12); background: color-mix(in srgb, var(--birch) 12%, transparent); border-color: var(--birch); color: var(--on-dark); }
.btn-dark { background: var(--ink); color: var(--laminate); border-color: var(--ink); }
.btn-dark:hover { background: var(--film-2); border-color: var(--film-2); color: var(--laminate); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; }

/* top bar */
.announce { background: var(--edge); color: var(--ink); text-align: center; padding: 8px var(--gut); font-weight: 650; font-size: 15px; }
.announce a { color: inherit; }
.top { position: sticky; top: 0; z-index: 30; background: rgba(42, 34, 29, .92); background: color-mix(in srgb, var(--phenolic) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(239, 230, 218, .08); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; font-stretch: 125%; font-size: 19px; letter-spacing: -0.01em; color: var(--on-dark); }
.mark { width: 30px; height: 30px; color: var(--edge); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15.5px; font-weight: 600; }
.nav a:not(.btn) { text-decoration: none; color: var(--on-dark-soft); }
.nav a:not(.btn):hover { color: var(--on-dark); }
.menu-btn { display: none; background: none; border: 1.5px solid rgba(239,230,218,.3); color: var(--on-dark); border-radius: var(--r); padding: 8px 14px; font: inherit; font-weight: 650; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--phenolic); border-bottom: 1px solid rgba(239,230,218,.1); padding: 8px var(--gut) 20px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid rgba(239,230,218,.08); font-size: 17px; }
  .nav .btn { margin-top: 16px; }
}

/* hero */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-text { margin-top: 22px; }
.hero-text p { color: var(--on-dark-soft); font-size: clamp(17px, 0.5vw + 15px, 20px); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-price { margin-top: 22px; color: var(--on-dark-soft); font-size: 16px; }
.hero-price strong { color: var(--birch); font-stretch: 112%; font-size: 20px; }
@media (max-width: 980px) { .hero-in { grid-template-columns: 1fr; } .hero-text p { max-width: 52ch; } }

.viewer { margin: 0; }
.viewer-stage {
  position: relative; aspect-ratio: 16 / 11; border-radius: 10px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 35%, #e7e2da 0%, #d3cbbf 55%, #b9b0a3 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 30px 60px -30px rgba(0,0,0,.6);
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.viewer-stage.grabbing { cursor: grabbing; }
.spin-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.spin-hint { position: absolute; left: 14px; bottom: 14px; background: rgba(34, 27, 23, .82); color: var(--laminate); font-size: 14px; font-weight: 650; padding: 6px 12px; border-radius: 20px; pointer-events: none; }
.spin-load { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--edge); transform-origin: left; transform: scaleX(0); transition: transform .2s; }
.viewer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 14px; }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--film); border-radius: var(--r); padding: 3px; }
.seg button, .viewer-tools button {
  background: none; border: 0; color: var(--on-dark-soft); font: inherit; font-size: 14.5px; font-weight: 620;
  padding: 7px 12px; border-radius: 4px; cursor: pointer; min-height: 36px;
}
.seg button:hover, .viewer-tools button:hover { color: var(--on-dark); }
.seg button[aria-pressed="true"] { background: var(--edge); color: var(--ink); }
.swatches { display: inline-flex; gap: 8px; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; box-shadow: 0 0 0 1px rgba(239,230,218,.18) inset; background-size: cover; }
.sw[aria-pressed="true"] { border-color: var(--edge); box-shadow: 0 0 0 2px var(--phenolic) inset; }
.sw-hex { background: #2b2420 url("../tex/phenolic_hex.jpg") center / 70px; }
.sw-film { background: #3a302a url("../tex/phenolic_film.jpg") center / 60px; }
.sw-birch { background: #e3c89a url("../tex/birch_face.jpg") center / 120px; }
.sw-white { background: #f4f4f2; }
.viewer-tools { display: inline-flex; gap: 2px; margin-left: auto; }
.viewer-note { margin-top: 12px; font-size: 14px; color: var(--on-dark-soft); max-width: 70ch; }
.viewer-note [data-facts]:not(:empty)::before { content: "("; }
.viewer-note [data-facts]:not(:empty)::after { content: ")"; }
@media (max-width: 640px) { .viewer-tools { margin-left: 0; } }

/* outputs */
.outputs { padding: clamp(56px, 7vw, 96px) 0; }
.files { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); }
.files li { border-top: 1px solid rgba(200, 160, 106, .45); padding: 18px 0 26px; display: grid; gap: 4px; }
.file-name { font-weight: 800; font-stretch: 122%; font-size: clamp(22px, 2vw, 28px); color: var(--birch); line-height: 1.1; }
.file-text { color: var(--on-dark-soft); font-size: 16px; max-width: 34ch; }
@media (max-width: 820px) { .files { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .files { grid-template-columns: 1fr; } }

/* light sections */
.light { background: var(--laminate); color: var(--ink); }
.light .muted, .light p { color: var(--ink-soft); }
.light h2, .light h3, .light h4 { color: var(--ink); }

/* screenshots */
.shot { border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(34, 27, 23, .1), 0 18px 40px -24px rgba(34, 27, 23, .45); }
.shot img { width: 100%; }

/* steps */
.steps { padding: clamp(64px, 8vw, 110px) 0; }
.step-list { list-style: none; margin: 56px 0 0; padding: 0; counter-reset: s; position: relative; }
.step { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-bottom: clamp(48px, 6vw, 84px); position: relative; }
.step:last-child { padding-bottom: 0; }
.step-copy { position: relative; padding-left: 68px; padding-top: 4px; }
.step-copy::before { content: ""; position: absolute; left: 21px; top: 52px; bottom: calc(-1 * clamp(48px, 6vw, 84px)); width: 2px; background: repeating-linear-gradient(180deg, var(--edge) 0 8px, transparent 8px 14px); }
.step:last-child .step-copy::before { display: none; }
.step-n { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--birch); display: grid; place-items: center; font-weight: 850; font-stretch: 120%; font-size: 19px; }
.step h3 { margin: 6px 0 12px; font-size: clamp(22px, 2vw, 28px); }
@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; gap: 20px; }
  .step-copy::before { display: none; }
}

/* features: pick one, see it */
.features { padding: clamp(64px, 8vw, 110px) 0; }
.explorer { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); margin-top: 48px; align-items: start; }
.ex-item { border-top: 1px solid rgba(239, 230, 218, .14); }
.ex-item:last-child { border-bottom: 1px solid rgba(239, 230, 218, .14); }
.ex-item h3 { font-size: clamp(19px, 1.5vw, 22px); }
.ex-item button {
  width: 100%; text-align: left; background: none; border: 0; color: var(--on-dark-soft); font: inherit; font-weight: 750; font-stretch: 110%;
  padding: 18px 36px 18px 0; cursor: pointer; position: relative; line-height: 1.2;
}
.ex-item button::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.ex-item.open button { color: var(--birch); }
.ex-item.open button::after { transform: translateY(-30%) rotate(225deg); }
.ex-body { display: none; padding: 0 0 22px; color: var(--on-dark-soft); }
.ex-item.open .ex-body { display: block; }
.ex-shot-inline { display: none; margin-top: 18px; }
.ex-shots { position: sticky; top: 96px; display: grid; }
.ex-shot { grid-area: 1 / 1; opacity: 0; transition: opacity .35s ease; background: #e9e5df; display: grid; place-items: center; aspect-ratio: 3 / 2; }
.ex-shot img { width: 100%; height: 100%; object-fit: contain; }
.ex-shot.on { opacity: 1; }
@media (max-width: 860px) {
  .explorer { grid-template-columns: 1fr; }
  .ex-shots { display: none; }
  .ex-shot-inline { display: block; }
}

/* CNC */
.cnc { background: var(--film); padding: clamp(64px, 8vw, 110px) 0; }
.cnc-in { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.cnc-copy .txt { margin-top: 20px; }
.cnc-copy .txt p { color: var(--on-dark-soft); }
.legend { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; font-size: 16px; }
.legend li { display: flex; align-items: center; gap: 12px; }
.key { width: 34px; height: 0; border-top: 3px solid; flex: none; }
.k-out { border-color: var(--cut-out); }
.k-slot { border-color: var(--cut-slot); }
.k-drill { width: 14px; height: 14px; border: 3px solid var(--cut-drill); border-radius: 50%; margin: 0 10px; }
.k-pocket { height: 14px; border: 0; background: repeating-linear-gradient(135deg, var(--cut-pocket) 0 3px, transparent 3px 6px); }
@media (max-width: 900px) { .cnc-in { grid-template-columns: 1fr; } }

/* branding */
.branding { padding: clamp(64px, 8vw, 110px) 0; }
.branding-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.branding-copy .txt { margin-top: 18px; }
.poa { font-weight: 800; font-stretch: 115%; color: var(--ink) !important; font-size: 19px; margin: 22px 0 18px !important; }
@media (max-width: 900px) { .branding-in { grid-template-columns: 1fr; } .branding-shot { order: 2; } }

/* the sliding layouts in "Shape each unit" */
.slider { position: relative; }
.slides { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 8px; background: #e7e2da; scrollbar-width: none; box-shadow: 0 0 0 1px rgba(34, 27, 23, .1), 0 18px 40px -24px rgba(34, 27, 23, .45); outline-offset: 4px; }
.slides::-webkit-scrollbar { display: none; }
.slides.dragging { scroll-snap-type: none; cursor: grabbing; }
.slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.slide img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
.steps .slide-cap { position: absolute; left: 14px; bottom: 14px; margin: 0; background: rgba(34, 27, 23, .86); color: var(--laminate); padding: 6px 13px; border-radius: 20px; font-size: 14.5px; font-weight: 650; max-width: calc(100% - 28px); }
.sl-btn { position: absolute; top: calc(50% - 41px); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(244, 244, 242, .94); color: var(--ink); font: inherit; font-size: 30px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .22); display: grid; place-items: center; padding: 0 0 4px; }
.sl-btn:hover { background: #fff; }
.sl-btn:disabled { opacity: 0; pointer-events: none; }
.sl-prev { left: 12px; } .sl-next { right: 12px; }
.sl-dots { display: flex; justify-content: center; gap: 2px; margin-top: 12px; }
.sl-dots button { width: 28px; height: 28px; border: 0; padding: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.sl-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 5px; background: #cfc7bb; transition: width .2s, background .2s; }
.sl-dots button[aria-current="true"]::before { width: 24px; background: var(--ink); }

/* your own hardware */
.custom { padding: 0 0 clamp(64px, 8vw, 110px); }
.custom-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.custom .wrap::before { content: ""; display: block; grid-column: 1 / -1; height: 1px; background: rgba(34,27,23,.12); margin-bottom: clamp(24px, 3vw, 40px); }
.custom-copy .txt { margin-top: 18px; }
.custom-note { margin-top: 14px; font-size: 16px; }
.hw { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.hw li { border-top: 2px solid var(--edge); padding: 16px 0 26px; }
.hw h3 { font-size: 20px; margin-bottom: 6px; }
.hw p { margin: 0; font-size: 16px; }
@media (max-width: 900px) { .custom-in { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .hw { grid-template-columns: 1fr; } }

/* gallery */
.gallery { padding: clamp(64px, 8vw, 110px) 0; }
.gal { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
.gal li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gal-btn { display: block; width: 100%; padding: 0; border: 0; background: #e7e2da; border-radius: 8px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gal li:nth-child(1) .gal-btn { aspect-ratio: auto; height: calc(100% - 34px); }
.gal-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gal-btn:hover img { transform: scale(1.03); }
.gal p { font-size: 14.5px; color: var(--on-dark-soft); margin: 10px 0 0; }
@media (max-width: 820px) { .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gal li:nth-child(1) { grid-row: auto; } .gal li:nth-child(1) .gal-btn { aspect-ratio: 16 / 10; height: auto; } }
@media (max-width: 480px) { .gal { grid-template-columns: 1fr; } .gal li:nth-child(1) { grid-column: auto; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); max-height: 92vh; color: var(--on-dark); }
.lightbox::backdrop { background: rgba(20, 15, 12, .9); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 6px; background: #e7e2da; }
.lightbox p { text-align: center; margin: 12px auto 0; }
.lb-close { position: fixed; top: 16px; right: 16px; background: var(--laminate); color: var(--ink); border: 0; border-radius: var(--r); padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; }

/* pricing */
.pricing { padding: clamp(64px, 8vw, 110px) 0 clamp(40px, 5vw, 64px); }
.pricing-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.big-price { margin: 26px 0 24px; font-size: 19px; color: var(--ink-soft); }
.big-price > span { display: block; font-size: clamp(64px, 8vw, 112px); line-height: .9; font-weight: 850; font-stretch: 120%; color: var(--ink); letter-spacing: -0.03em; margin-bottom: 8px; }
.big-price > span > span { display: inline; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .42em; width: 13px; height: 7px; border-left: 3px solid var(--edge-dark); border-bottom: 3px solid var(--edge-dark); transform: rotate(-45deg); }
.calc { background: #fff; border-radius: 10px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 0 0 1px rgba(34,27,23,.08), 0 24px 50px -30px rgba(34,27,23,.4); }
.calc h3 { font-size: 21px; }
.qty { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 10px; font-weight: 650; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid rgba(34,27,23,.18); border-radius: var(--r); }
.stepper button { width: 46px; height: 46px; border: 0; background: none; font: inherit; font-size: 22px; font-weight: 600; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: #f1eee9; }
.stepper button:disabled { color: #bbb; cursor: default; background: none; }
.stepper output { min-width: 46px; text-align: center; font-weight: 800; font-size: 20px; font-stretch: 112%; }
.sum { margin: 0 0 22px; }
.sum div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(34,27,23,.1); }
.sum dt { color: var(--ink-soft); }
.sum dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.sum .total dt, .sum .total dd { color: var(--ink); font-weight: 850; font-size: 21px; font-stretch: 110%; }
.sum .total { border-bottom: 0; }
.calc .btn { width: 100%; }
.brand-box { margin-top: 26px; padding-top: 22px; border-top: 1px dashed rgba(34,27,23,.2); }
.brand-box h4 { font-size: 17px; font-stretch: 110%; }
.brand-box p { font-size: 15.5px; margin: 6px 0 0; }
.brand-box .poa { margin: 8px 0 0 !important; font-size: 16px; }
@media (max-width: 900px) { .pricing-in { grid-template-columns: 1fr; } }

/* FAQ */
.faq { padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 110px); }
.faq-in { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.faq .wrap::before { content: ""; display: block; grid-column: 1 / -1; height: 1px; background: rgba(34,27,23,.12); margin-bottom: clamp(40px, 5vw, 64px); }
.qa details { border-bottom: 1px solid rgba(34,27,23,.12); }
.qa summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 720; font-stretch: 106%; font-size: 18.5px; position: relative; color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-52%); font-size: 26px; font-weight: 400; color: var(--edge-dark); }
.qa details[open] summary::after { content: "−"; }
.qa details .txt { padding: 0 0 20px; }
.qa .txt p { margin: 0 0 .8em; }
.qa .txt p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .faq-in { grid-template-columns: 1fr; } }

/* order */
.order { padding: clamp(64px, 8vw, 110px) 0; }
.order-in { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.order-copy > p, .order-copy .txt p { color: var(--on-dark-soft); }
.order-copy .txt, .order-copy > p { margin-top: 18px; }
.contact-line a { color: var(--birch); }
.form { display: grid; gap: 18px; background: var(--film); padding: clamp(22px, 3vw, 36px); border-radius: 10px; }
.form label { display: grid; gap: 6px; align-content: start; font-weight: 620; font-size: 15.5px; color: var(--on-dark); }
.form .opt { font-weight: 400; color: var(--on-dark-soft); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"], .form textarea {
  width: 100%; font: inherit; font-weight: 450; color: var(--ink); background: var(--laminate); border: 2px solid transparent; border-radius: var(--r); padding: 11px 13px; min-height: 48px;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--edge); }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: #e2603f; }
.form textarea { resize: vertical; min-height: 120px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.topic { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topic legend { font-weight: 620; font-size: 15.5px; margin-bottom: 8px; padding: 0; }
.topic label { display: inline-flex; align-items: center; gap: 8px; background: var(--film-2); padding: 9px 14px; border-radius: var(--r); cursor: pointer; font-weight: 600; }
.topic label:has(input:checked) { background: var(--edge); color: var(--ink); }
.topic input { accent-color: var(--ink); margin: 0; }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 450 !important; color: var(--on-dark-soft) !important; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--edge); flex: none; }
.check a { color: var(--birch); }
.form-total { margin: -4px 0 0; color: var(--birch); font-weight: 650; }
.form-error { background: #5a2a1f; color: #ffd9cc; border-radius: var(--r); padding: 10px 14px; margin: 0; }
.form-error p { margin: 0; }
.form-error ul { margin: 6px 0 0; padding-left: 20px; }
.form-error li + li { margin-top: 2px; }
.form-hint { display: block; margin: 0; font-size: 14px; font-weight: 400; line-height: 1.4; color: inherit; opacity: .92; }
.form-hint[hidden] { display: none; }
.form-hint-use { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: 0; margin-left: 4px; text-decoration: underline; cursor: pointer; }
.form-problems { margin: 8px 0 0; padding-left: 22px; }
.form-problems li + li { margin-top: 4px; }
.form .btn { justify-self: start; min-width: 200px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done { background: var(--film); border-radius: 10px; padding: clamp(22px, 3vw, 36px); }
.form-done h3 { color: var(--birch); margin-bottom: 10px; }
@media (max-width: 900px) { .order-in { grid-template-columns: 1fr; } }

/* footer */
.foot { background: #211a16; background: color-mix(in srgb, var(--phenolic) 82%, #000); padding: 48px 0 56px; font-size: 15px; color: var(--on-dark-soft); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot-brand { font-weight: 850; font-stretch: 125%; font-size: 19px; color: var(--on-dark); margin-bottom: 8px; }
.foot p { margin: 0 0 6px; }
.foot-small { text-align: right; max-width: 52ch; }
@media (max-width: 700px) { .foot-small { text-align: left; } }

/* simple pages (privacy, thanks) */
.page { padding: clamp(48px, 7vw, 96px) 0; min-height: 60vh; }
.page h1 { font-size: clamp(34px, 4.5vw, 56px); margin-bottom: 28px; }
.page h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 36px 0 12px; max-width: none; }
.page p, .page li { color: var(--ink-soft); max-width: 70ch; }
.page a:not(.btn) { color: var(--ink); }

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

/* the payment page (pay.php) */
.pay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: clamp(28px, 5vw, 64px); align-items: start; }
.pay h1 { margin-bottom: 18px; }
.pay-form { margin: 26px 0 14px; }
.pay-form .btn { font-size: 18px; min-height: 54px; padding: 14px 28px; }
.pay-tag { display: inline-block; margin: 0 0 12px; padding: 3px 12px; border-radius: 20px; font-weight: 750; font-size: 14px; }
.pay-ok { background: #d9efe0; color: #1f5534; }
.pay-wait { background: #f6efe2; color: #6b4a16; }
.pay-note { background: #f6efe2; color: #6b4a16; border-radius: var(--r); padding: 10px 14px; font-weight: 550; }
.pay-bad { background: #f8e3dd; color: #7d2614; }
.pay-alt { margin-top: 26px; font-size: 15px; }
.pay-sum { background: #fff; border-radius: 10px; padding: 22px 24px; box-shadow: 0 0 0 1px rgba(34,27,23,.08), 0 24px 50px -30px rgba(34,27,23,.4); }
.pay-sum h2 { font-size: 20px; margin: 0 0 12px; }
.pay-sum dl { margin: 0; }
.pay-sum dl div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid rgba(34,27,23,.1); }
.pay-sum dt { color: var(--ink-soft); }
.pay-sum dd { margin: 0; font-weight: 650; text-align: right; }
.pay-sum .total dt, .pay-sum .total dd { font-weight: 850; color: var(--ink); font-size: 19px; }
.page .pay-sum p.pay-state { margin: 14px 0 0; font-size: 15px; }
@media (max-width: 760px) { .pay { grid-template-columns: 1fr; } .pay-sum { order: -1; } }
