/* Complex Chamfer site. Plain CSS, no build step. Layout and type follow the
   restrained product-page style of CAD vendors: white ground, near-black type,
   square-cornered buttons, a dark hero, one accent blue from the icon. */

:root {
  --ink: #0f1012;
  --ink-2: #3c3f45;
  --muted: #666b73;
  --line: #d9dbdf;
  --line-2: #eceef1;
  --ground: #ffffff;
  --band: #f4f5f7;
  --night: #0b0c0e;
  --night-2: #17191d;
  --night-line: #2b2e34;
  --blue: #3496de;
  --blue-deep: #1c5896;
  --blue-ink: #1769b3;
  --ok: #1f8a4c;
  --display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --wrap: 76rem;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 20px 10px; border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--line); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.header-cta { display: flex; gap: 10px; flex: none; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); padding: 8px 10px; font: 600 0.9rem var(--body); cursor: pointer; }

@media (max-width: 920px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0 16px; }
  .menu-toggle { display: block; }
  .nav, .header-cta { display: none; width: 100%; }
  .site-header.open .nav { display: flex; flex-direction: column; padding-bottom: 8px; }
  .site-header.open .header-cta { display: flex; padding-bottom: 16px; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line-2); box-shadow: inset 3px 0 0 var(--ink); padding-left: 12px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 14px 22px; border-radius: 2px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:hover { background: #2a2c31; border-color: #2a2c31; color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { padding: 10px 16px; font-size: 0.92rem; }
.btn.blue { background: var(--blue-ink); border-color: var(--blue-ink); }
.btn.blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.on-dark .btn { background: #fff; color: var(--ink); border-color: #fff; }
.on-dark .btn:hover { background: #dfe1e5; border-color: #dfe1e5; }
.on-dark .btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.on-dark .btn.ghost:hover { background: #fff; color: var(--ink); }
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(3px); }

.eyebrow {
  display: inline-block; font: 600 0.8rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.on-dark .eyebrow { color: #9aa1ab; }

/* Hero */
.hero { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  /* a faint facet field, like a roof seen from above */
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background:
    linear-gradient(135deg, transparent 49.6%, var(--night-line) 49.6% 50.4%, transparent 50.4%) 0 0 / 120px 120px,
    linear-gradient(45deg, transparent 49.6%, var(--night-line) 49.6% 50.4%, transparent 50.4%) 0 0 / 120px 120px;
  mask-image: radial-gradient(ellipse 70% 80% at 85% 10%, #000 10%, transparent 70%);
}
.hero .wrap { position: relative; padding-block: clamp(56px, 9vw, 112px) clamp(150px, 22vw, 300px); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 800; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #c4c9d0; max-width: 40rem; margin: 24px 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .fine { color: #8d949e; font-size: 0.95rem; margin: 18px 0 0; }

.reveal { animation: rise 0.7s cubic-bezier(.2,.7,.2,1) both; }
.reveal.d1 { animation-delay: 0.08s; } .reveal.d2 { animation-delay: 0.16s; } .reveal.d3 { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } html { scroll-behavior: auto; } }

/* Video, pulled up into the hero */
.film { margin-top: calc(-1 * clamp(110px, 18vw, 250px)); position: relative; z-index: 2; }
.player {
  position: relative; background: #000; aspect-ratio: 1718 / 1080; max-width: 100%;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.player video { width: 100%; height: 100%; object-fit: contain; }
.player .play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55));
  color: #fff; font: 600 1rem var(--body);
}
.player .play span {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px 16px 18px;
  background: rgba(15, 16, 18, 0.86); border: 1px solid rgba(255,255,255,0.25);
}
.player .play svg { width: 28px; height: 28px; }
.player .play:hover span { background: var(--ink); border-color: #fff; }
.player.playing .play { display: none; }
.chapters { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-top: 0; background: #fff; }
.chapters button {
  flex: 1 1 150px; text-align: left; background: none; border: 0; border-right: 1px solid var(--line-2);
  padding: 14px 16px; cursor: pointer; font: 400 0.92rem/1.3 var(--body); color: var(--ink-2);
}
.chapters button:last-child { border-right: 0; }
.chapters button b { display: block; font: 600 0.78rem var(--mono); color: var(--blue-ink); margin-bottom: 3px; }
.chapters button:hover, .chapters button.now { background: var(--band); color: var(--ink); }
.chapters button.now { box-shadow: inset 0 3px 0 var(--ink); }

/* Sections */
section { padding-block: clamp(64px, 9vw, 120px); }
section.band { background: var(--band); }
section.dark { background: var(--night); color: #fff; }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; }
.section-head p { font-size: 1.15rem; color: var(--ink-2); margin-top: 18px; }
.dark .section-head p { color: #c4c9d0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-3 > * { background: var(--ground); padding: 32px 28px 36px; }
.band .grid-3 > * { background: var(--ground); }
.feature h3 { font-size: 1.3rem; font-weight: 700; margin: 18px 0 10px; }
.feature p { color: var(--ink-2); margin: 0; }
.feature .glyph { width: 44px; height: 44px; color: var(--blue-ink); }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; margin-bottom: 20px; }
.split p { color: var(--ink-2); font-size: 1.1rem; }
.dark .split p { color: #c4c9d0; }
.split figure { margin: 0; }
.split figure img { width: 100%; border: 1px solid var(--line); }
.split figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* Two figures side by side, each with a label above (chamfer in and out). */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0 0; }
.pair figure { margin: 0; }
.pair img { width: 100%; height: auto; border: 1px solid var(--line); display: block; }
.pair .label { display: flex; align-items: baseline; gap: 12px; font: 600 0.85rem var(--mono); color: var(--blue-ink); margin-bottom: 10px; }
.pair .label b { font: 700 1.15rem var(--display); color: var(--ink); }
.pair figcaption { font-size: 1rem; color: var(--ink-2); margin-top: 12px; }
@media (max-width: 720px) { .pair { grid-template-columns: 1fr; } }
.pair-caption { font-size: 1rem; color: var(--ink-2); margin: 12px 0 0; max-width: 60rem; }
#before-after .pair { margin-top: 32px; }
#before-after .pair:first-of-type { margin-top: 40px; }

/* One full-width figure (chamfer angles). */
.wide-figure { margin: 40px 0 0; }
.wide-figure img { width: 100%; height: auto; border: 1px solid var(--line); display: block; }
.wide-figure figcaption { font-size: 1rem; color: var(--ink-2); margin-top: 12px; }

/* Cross-section diagram (Ensure FDM extrude). */
.section-diagram { margin: 0; background: var(--ground); border: 1px solid var(--line); padding: 24px; }
.section-diagram svg { width: 100%; height: auto; display: block; }
.section-diagram figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 12px; }

.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px;
  border-left: 2px solid var(--blue-ink); border-bottom: 2px solid var(--blue-ink); transform: rotate(-45deg);
}
.dark .checks li { color: #c4c9d0; }
.dark .checks li::before { border-color: var(--blue); }

.strip { margin: 0; border: 1px solid var(--line); background: #fff; }
.strip img { width: 100%; }

/* Steps */
.steps { padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.steps li { list-style: none; padding: 24px 24px 8px 0; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 600 0.85rem var(--mono); color: var(--blue-ink); margin-bottom: 12px; }
.steps h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 1rem; margin: 0; }
.dark .steps { border-top-color: #fff; }
.dark .steps p { color: #c4c9d0; }
.dark .steps li::before { color: var(--blue); }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Origin mark */
.mark-visual { position: relative; }
.plate-wrap { position: relative; }
.mark-visual .plate { border: 1px solid var(--night-line); }
.lens {
  position: absolute; right: -2%; top: 55%; width: 40%; aspect-ratio: 1; border-radius: 50%;
  overflow: hidden; border: 3px solid #fff; box-shadow: 0 20px 50px -10px rgba(0,0,0,0.7);
  background: #1b1d22;
}
.lens img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); filter: saturate(0.9); }
.lens::after {
  /* the pattern you can't see: a keyed rhythm of hairlines, here made visible */
  content: ""; position: absolute; inset: 0; mix-blend-mode: screen; opacity: 0.75;
  background: repeating-linear-gradient(115deg, transparent 0 9px, rgba(52,150,222,0.55) 9px 10px, transparent 10px 17px, rgba(52,150,222,0.3) 17px 18px, transparent 18px 31px);
}
.readout {
  position: relative; margin-top: 22%; width: 66%; display: grid; grid-template-columns: max-content 1fr; gap: 0 18px; font: 500 0.88rem/1.7 var(--mono);
  background: var(--night-2); border: 1px solid var(--night-line); padding: 16px 18px; color: #c4c9d0;
}
.readout .cmd { grid-column: 1 / -1; margin-bottom: 4px; }
@media (max-width: 1100px) { .readout { width: 100%; margin-top: 30%; } }
.readout b { color: #fff; font-weight: 600; }
.readout .hit { color: #7fd1a1; }
.readout .none { color: #9aa1ab; }
.mark-table { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 1rem; }
.mark-table th, .mark-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--night-line); }
.mark-table th { font-weight: 600; color: #fff; }
.mark-table td { color: #c4c9d0; }
.pill { display: inline-block; font: 600 0.78rem/1 var(--body); letter-spacing: 0.04em; padding: 6px 9px; border: 1px solid currentColor; }
.pill.on { color: var(--blue); }
.pill.off { color: #9aa1ab; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; padding: 32px 28px; position: relative; }
.plan.featured { border: 2px solid var(--ink); padding: 31px 27px; }
.plan .tag { position: absolute; top: -1px; right: 24px; transform: translateY(-50%); background: var(--ink); color: #fff; font: 600 0.75rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 10px; }
.plan h3 { font-size: 1.45rem; font-weight: 800; }
.plan .for { color: var(--muted); margin: 6px 0 22px; min-height: 3.2em; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price b { font: 800 3rem/1 var(--display); letter-spacing: -0.03em; }
.price span { color: var(--muted); }
.price-note { color: var(--muted); font-size: 0.92rem; min-height: 1.6em; }
.plan .checks { margin: 22px 0 28px; flex: 1; align-content: start; font-size: 1rem; }
.plan .btn { width: 100%; }
.plan .after { font-size: 0.88rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 30rem; margin: 0 auto; } }

.compare-wrap { overflow-x: auto; margin-top: 56px; border: 1px solid var(--line); }
.compare { width: 100%; min-width: 600px; border-collapse: collapse; background: #fff; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.compare thead th { font: 700 1rem var(--display); background: var(--band); border-bottom: 1px solid var(--line); }
.compare tbody th { font-weight: 600; width: 28%; }
.compare tr:last-child > * { border-bottom: 0; }

.upgrade-box { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center; border: 1px solid var(--line); background: #fff; padding: clamp(24px, 4vw, 44px); }
.upgrade-box h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.upgrade-box p { color: var(--ink-2); margin: 0; }
@media (max-width: 820px) { .upgrade-box { grid-template-columns: 1fr; } }

.field label { display: block; font-weight: 600; margin-bottom: 8px; }
.field .row { display: flex; gap: 10px; flex-wrap: wrap; }
.field input {
  flex: 1 1 18rem; min-width: 0; font: 500 1.05rem var(--mono); letter-spacing: 0.03em; padding: 13px 14px;
  border: 1px solid #9ca1a9; border-radius: 2px; background: #fff; color: var(--ink);
}
.field input:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.field .hint { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.field .error { color: #b3261e; font-size: 0.92rem; margin-top: 8px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font: 700 1.12rem/1.35 var(--display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-75%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); max-width: 46rem; }

/* CTA band */
.cta-band { background: var(--blue-deep); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; max-width: 22ch; }
.cta-band p { color: #cfe3f5; margin: 10px 0 0; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Page header for inner pages */
.page-head { background: var(--night); color: #fff; }
.page-head .wrap { padding-block: clamp(48px, 7vw, 88px); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; max-width: 20ch; }
.page-head p { color: #c4c9d0; font-size: 1.15rem; max-width: 42rem; margin: 18px 0 0; }

.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { border: 1px solid var(--line); background: #fff; padding: 28px; }
.card h2, .card h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 10px; }
.card p { color: var(--ink-2); }
@media (max-width: 820px) { .cards-2 { grid-template-columns: 1fr; } }

.specs { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; }
.specs dt { font-weight: 600; }
.specs dd { margin: 0; color: var(--ink-2); }
@media (max-width: 520px) { .specs { grid-template-columns: 1fr; gap: 2px; } .specs dd { margin-bottom: 10px; } }

ol.install { padding-left: 1.3em; display: grid; gap: 10px; color: var(--ink-2); }
ol.install b { color: var(--ink); }
.kbd { font: 500 0.92em var(--mono); background: var(--band); border: 1px solid var(--line); padding: 1px 6px; }
.notice { border-left: 3px solid var(--blue-ink); background: #eef5fc; padding: 14px 18px; color: var(--ink-2); margin: 24px 0 0; }

/* Footer */
.site-footer { background: var(--night); color: #9aa1ab; font-size: 0.95rem; }
.site-footer .wrap { padding-block: 56px 36px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--night-line); }
.footer-top img { height: 24px; width: auto; filter: brightness(1.15); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.footer-cols h4 { color: #fff; font: 600 0.8rem var(--body); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #c4c9d0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal { padding-top: 24px; font-size: 0.85rem; line-height: 1.6; }
.footer-legal p { margin: 0 0 6px; }
