/* bytesize site. Tokens follow docs/DESIGN.md. */
:root {
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --field: #86868b;
  --panel: #f5f5f7;
  --panel-hover: #ededf0;
  --paper: #ffffff;
  --copper: #b8541a;
  --copper-deep: #9a4413;
  --danger: #b42318;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 52px;
  --gutter: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.47 var(--font);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, fieldset { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--copper); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }

.visually-hidden, .skip:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 10px 16px; background: var(--paper); color: var(--ink); border-radius: 12px; }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav__inner {
  max-width: 980px; height: var(--nav-h); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { display: inline-flex; align-items: center; min-height: 44px; }
.nav__brand img { height: 22px; width: auto; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  font-size: 14px; color: var(--ink); text-decoration: none;
}
.nav__links a:hover { color: var(--copper); }
.nav__links a[aria-current="page"] { font-weight: 600; }
.nav--static { position: relative; top: auto; }
.nav__toggle { display: none; }

/* Buttons and links */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 980px;
  background: var(--copper); color: #fff;
  font: inherit; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease;
}
.button:hover { background: var(--copper-deep); }
.button[aria-busy="true"] { cursor: progress; }
.button--quiet { background: transparent; color: var(--copper-deep); box-shadow: inset 0 0 0 1px var(--copper-deep); }
.button--quiet:hover { background: var(--copper-deep); color: #fff; }
/* Visually 36px; the ::after keeps a 44px touch target. */
.button--small { position: relative; min-height: 36px; padding: 0 16px; font-size: 14px; }
.button--small::after { content: ""; position: absolute; inset: -4px 0; }
.more { display: inline-flex; align-items: center; gap: 0.2em; min-height: 44px; color: var(--copper); text-decoration: none; }
.more:hover { text-decoration: underline; }
.tile .more, .section--panel .more { color: var(--copper-deep); }

/* Hero */
.hero { max-width: 980px; margin: 0 auto; padding: clamp(72px, 11vw, 136px) var(--gutter) clamp(32px, 5vw, 72px); text-align: center; }
.hero__mark { width: clamp(64px, 7.5vw, 88px); margin: 0 auto 32px; fill: var(--ink); overflow: visible; }
h1 { font-size: clamp(48px, 7.2vw, 88px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
.hero__lede { max-width: 680px; margin: 24px auto 0; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; color: var(--ink-2); letter-spacing: -0.016em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; align-items: center; margin-top: 36px; }

/* Sections */
.section { padding: 120px var(--gutter); }
.section--panel { background: var(--panel); }
.section--flush { padding-top: 0; }
.section__more { margin-top: 32px; text-align: center; }
.section__head { max-width: 980px; margin: 0 auto 56px; text-align: center; }
h2 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.07; }
.section__head p { max-width: 680px; margin: 16px auto 0; font-size: clamp(19px, 2vw, 21px); line-height: 1.42; color: var(--ink-2); }

/* Product tiles */
.tiles { list-style: none; margin: 0 auto; padding: 0; max-width: 1200px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tile {
  display: flex; flex-direction: column; gap: 40px; min-height: 440px;
  padding: 48px 48px 56px; border-radius: 28px; background: var(--panel); overflow: hidden;
}
.tile--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; min-height: 420px; padding: 56px 72px; }
.tile h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.018em; line-height: 1.14; }
.tile p { max-width: 400px; margin-top: 10px; color: var(--ink-2); }
.tile .more { margin-top: 12px; }
.tile__art { width: min(100%, 340px); height: auto; margin: auto; }
.tile--wide .tile__art { width: min(48%, 400px); margin: 0; }

/* Steps */
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.step__mark { display: flex; gap: 4px; margin-bottom: 20px; }
.step__mark i { width: 12px; height: 12px; border-radius: 3px; background: var(--line); }
.step__mark i.on { background: var(--ink); }
.step__mark i.on:last-child { background: var(--copper); }
.step h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.012em; }
.step p { margin-top: 8px; color: var(--ink-2); }

/* Contact */
.contact { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.contact__intro p { margin-top: 20px; color: var(--ink-2); }
.contact__hints { list-style: none; margin-top: 16px; padding: 0; display: grid; gap: 10px; }
.contact__hints li { display: flex; gap: 12px; color: var(--ink-2); }
.contact__hints li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 2.5px; background: var(--ink); }

fieldset { border: 0; padding: 0; min-width: 0; display: grid; gap: 20px; }
fieldset:disabled { opacity: 0.7; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 14px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 16px;
  border: 1px solid var(--field); border-radius: 12px; background: var(--paper);
  color: var(--ink); font: inherit; font-size: 17px; letter-spacing: normal;
}
textarea { min-height: 168px; resize: vertical; line-height: 1.45; }
select {
  appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231d1d1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 2px; border-color: var(--ink); border-radius: 12px; }
[aria-invalid="true"] { border-color: var(--danger); }
.field__hint { font-size: 14px; color: var(--muted); }
.field__error { font-size: 14px; color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__privacy { font-size: 14px; color: var(--muted); }
.form__privacy a { color: var(--copper); }
.form__status:empty { display: none; }
.form__status { padding: 14px 16px; border-radius: 12px; background: var(--panel); color: var(--ink); }
.form__status.is-error { color: var(--danger); }

.sent { padding: 48px 40px; border-radius: 28px; background: var(--panel); text-align: center; }
.sent:focus { outline: none; }
.sent__mark { width: 48px; margin: 0 auto 20px; fill: var(--ink); }
.sent h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.018em; }
.sent p { margin: 12px auto 28px; max-width: 420px; color: var(--ink-2); }
.sent__ref { color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* Product cards (catalog, home, related) */
.cards { list-style: none; margin: 0 auto; padding: 0; max-width: 1200px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 28px 24px; border-radius: 20px; background: var(--panel);
  transition: background-color 0.2s ease;
}
.card:hover { background: var(--panel-hover); }
.card:focus-within { outline: 2px solid var(--copper); outline-offset: 3px; }
.card__art { width: 100%; height: 132px; object-fit: contain; margin-bottom: 24px; }
.card__maker { font-size: 14px; color: var(--muted); }
.card__name { margin-top: 4px; font-size: 21px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.19; }
.card__name a { color: var(--ink); text-decoration: none; }
.card__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__name a:focus-visible { outline: none; }
.card__summary { margin-top: 8px; color: var(--ink-2); }
.card__more { margin-top: auto; padding-top: 16px; color: var(--copper-deep); }

/* Catalog */
.catalog-head { max-width: 980px; margin: 0 auto; padding: 72px var(--gutter) 8px; text-align: center; }
.catalog-head h1 { font-size: clamp(48px, 6vw, 72px); }
.catalog-head__lede { max-width: 680px; margin: 20px auto 0; font-size: clamp(19px, 2vw, 21px); line-height: 1.42; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 980px; box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink); font-size: 14px; text-decoration: none; transition: box-shadow 0.2s ease;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.catalog-line { max-width: 1200px; margin: 0 auto; padding: 72px var(--gutter) 0; }
.catalog-line__head { margin-bottom: 28px; }
.catalog-line__head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.catalog-line__head p { max-width: 680px; margin-top: 8px; color: var(--ink-2); }
.catalog-cta { text-align: center; }
.catalog-cta p { margin: 12px auto 28px; color: var(--ink-2); }

/* Consulting */
.services { list-style: none; margin: 0 auto; padding: 0; max-width: 1200px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service { display: flex; flex-direction: column; gap: 24px; padding: 48px; border-radius: 28px; background: var(--panel); }
.service__art { width: min(100%, 300px); height: auto; margin: 0 auto; }
.service h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.018em; line-height: 1.14; }
.service__rate { font-size: 17px; font-weight: 600; color: var(--ink); }
.service__summary { color: var(--ink-2); }
.service .more { margin-top: auto; color: var(--copper-deep); }
.consulting__note { max-width: 980px; margin: 24px auto 0; text-align: center; font-size: 14px; color: var(--muted); }
.tile .tile__rate { margin-top: 10px; font-size: 17px; font-weight: 600; color: var(--ink); }

/* Product page */
.localnav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.localnav__inner { max-width: 980px; height: var(--nav-h); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.localnav__title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 21px; font-weight: 600; letter-spacing: -0.012em; }
.crumbs { max-width: 980px; margin: 0 auto; padding: 12px var(--gutter) 0; font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.crumbs li + li::before { content: "›"; margin: 0 8px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--copper-deep); text-decoration: underline; }
.pdp { max-width: 980px; margin: 0 auto; padding: 32px var(--gutter) 72px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.pdp__maker { font-size: 17px; font-weight: 600; color: var(--muted); }
.pdp h1 { margin-top: 8px; font-size: clamp(40px, 5.6vw, 64px); line-height: 1.06; text-wrap: balance; }
.pdp__summary { max-width: 560px; margin-top: 20px; font-size: clamp(19px, 2vw, 21px); line-height: 1.42; color: var(--ink-2); }
.pdp__status { margin-top: 16px; font-size: 14px; color: var(--muted); }
.pdp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-top: 32px; }
.pdp__art { justify-self: center; width: auto; max-width: min(100%, 360px); max-height: 280px; }
.pdp--solo { grid-template-columns: minmax(0, 1fr); }
.figures { max-width: 980px; margin: 0 auto; padding: 0 var(--gutter); }
.figures__list { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; border-block: 1px solid var(--line); }
.figure { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding-block: 28px; }
.figure dd { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; font-variant-numeric: tabular-nums; }
.figure dt { font-size: 14px; color: var(--muted); }
.specs { max-width: 980px; margin: 0 auto; padding: 96px var(--gutter) 120px; }
.specs > h2 { margin-bottom: 40px; }
.spec-group { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px 40px; padding-block: 32px; border-top: 1px solid var(--line); }
.spec-group h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.19; }
.spec-group dl { margin: 0; display: grid; gap: 14px; }
.spec-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2px 24px; }
.spec-row dt { color: var(--muted); }
.spec-row dd { margin: 0; overflow-wrap: anywhere; }
.spec-group__source { margin-top: 16px; font-size: 14px; }
.specs__note { padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.specs__notes { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.contact__note { margin-top: 24px; font-size: 14px; color: var(--muted); }
.section--panel .sent { background: var(--paper); }
.related { max-width: 1200px; margin: 0 auto; padding: 96px var(--gutter) 120px; }
.related > h2 { margin-bottom: 32px; font-size: clamp(28px, 3.4vw, 40px); text-align: center; }

/* Footer */
.footer { background: var(--panel); border-top: 1px solid var(--line); padding: 48px var(--gutter) 28px; font-size: 14px; color: var(--muted); }
.footer__inner { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 32px 40px; }
.footer__brand p { max-width: 220px; margin-top: 12px; color: var(--ink-2); }
.footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.footer__title { font-size: 14px; font-weight: 600; letter-spacing: normal; color: var(--ink); }
.footer ul { list-style: none; margin: 4px 0 0; padding: 0; }
.footer li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.footer li a:hover { color: var(--copper-deep); text-decoration: underline; }
.footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; }

/* Not found */
.notfound { max-width: 680px; margin: 0 auto; padding: 120px var(--gutter); text-align: center; }
.notfound__mark { width: 64px; margin: 0 auto 32px; fill: var(--ink); }
.notfound h1 { font-size: clamp(40px, 5vw, 56px); }
.notfound p { margin-top: 16px; color: var(--ink-2); }

/* Motion: the hero cells settle in once. Static under reduced motion. */
@keyframes cell-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__mark rect { transform-box: fill-box; animation: cell-in 0.48s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i) * 45ms + 120ms); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Layout breakpoints */
@media (max-width: 1068px) {
  .tile--wide { padding: 48px; }
  .contact { gap: 48px; }
  .pdp { gap: 32px; }
  .figures__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 734px) {
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; margin-right: -10px; padding: 0 11px; border: 0; background: none; cursor: pointer;
  }
  .nav__toggle span { display: block; height: 1.5px; background: var(--ink); border-radius: 1px; transition: transform 0.2s ease; }
  .nav[data-open] .nav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav[data-open] .nav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; padding: 8px var(--gutter) 24px;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .nav[data-open] .nav__links { display: flex; }
  .nav__links a { min-height: 52px; font-size: 21px; font-weight: 600; padding: 0; }

  .section { padding: 72px var(--gutter); }
  .section__head { margin-bottom: 40px; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tile, .tile--wide { flex-direction: column; align-items: stretch; min-height: 0; padding: 36px 28px 40px; gap: 36px; }
  .tile--wide .tile__art, .tile__art { width: min(100%, 300px); margin: 0 auto; }
  .services { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .service { padding: 36px 28px 40px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .sent { padding: 40px 24px; }
  .crumbs li:last-child { display: none; }
  .pdp { grid-template-columns: minmax(0, 1fr); padding-bottom: 56px; }
  .pdp__art { grid-row: 1; max-height: 200px; }
  .localnav__title { font-size: 17px; }
  .specs { padding: 72px var(--gutter); }
  .spec-group { grid-template-columns: minmax(0, 1fr); }
  .spec-row { grid-template-columns: minmax(0, 1fr); }
  .related { padding: 72px var(--gutter); }
  .footer__inner, .footer__nav { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .nav, .localnav, .hero__actions, .pdp__actions, .contact__panel, #quote, .related { display: none; }
}

/* Policies */
.legal { max-width: 680px; margin: 0 auto; padding: 72px var(--gutter) 120px; }
.legal h1 { font-size: clamp(40px, 5vw, 56px); }
.legal__meta { margin-top: 20px; padding: 12px 16px; border-radius: 12px; background: var(--panel); font-size: 14px; color: var(--ink-2); }
.toc { margin-top: 40px; padding-block: 24px; border-block: 1px solid var(--line); }
.toc__title { font-size: 14px; font-weight: 600; }
.toc ol { list-style: none; margin: 8px 0 0; padding: 0; columns: 2; column-gap: 32px; font-size: 14px; }
.toc li { break-inside: avoid; }
.toc a { display: inline-block; padding-block: 6px; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--copper-deep); text-decoration: underline; }
.legal h2 { margin-top: 56px; font-size: 24px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.17; }
.legal h3 { margin-top: 28px; font-size: 19px; font-weight: 600; letter-spacing: -0.012em; }
.legal p, .legal li { color: var(--ink-2); }
.legal p { margin-top: 12px; }
.legal > ul, .legal > ol { margin-top: 12px; padding-left: 1.3em; display: grid; gap: 8px; }
@media (max-width: 734px) {
  .legal { padding-top: 56px; }
  .toc ol { columns: 1; }
}
