/* CUBOLAR — folha de estilos
   Conceito: folha de desenho de arquitetura. Grelha editorial assimétrica,
   imagens a toda a largura, cotas em milímetros como motivo gráfico recorrente.
   Tema único claro (escolha deliberada da marca). */
:root {
  --forest: #263C32;
  --forest-2: #31493E;
  --sand: #E9E2D5;
  --paper: #F8F7F3;
  --ink: #292B28;
  --muted: #5D605A;
  --wood: #A8743F;
  --wood-text: #85572A;
  --line: rgba(41, 43, 40, .16);
  --line-strong: rgba(41, 43, 40, .42);
  --on-forest: #EEF0EA;
  --on-forest-muted: #B9C4BC;
  --error: #A3352B;
  --ok: #2F6B4A;

  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s-1: clamp(2.6rem, 1.4rem + 5vw, 5.6rem);
  --s-2: clamp(2rem, 1.2rem + 3vw, 3.4rem);
  --s-3: clamp(1.45rem, 1.1rem + 1.3vw, 2.05rem);
  --s-4: 1.2rem;
  --s-body: 1.0625rem;
  --s-small: .9rem;
  --s-label: .74rem;

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --max: 1320px;
  --header-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--s-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; }
::selection { background: var(--sand); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--s-1); letter-spacing: -0.035em; }
h2 { font-size: var(--s-2); letter-spacing: -0.03em; }
h3 { font-size: var(--s-3); line-height: 1.15; }
h4 { font-size: var(--s-4); line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.prose > * + * { margin-top: 1em; }
.prose { max-width: 62ch; }
.prose ul { padding-left: 1.1em; margin: 0; }
.prose li + li { margin-top: .35em; }
.lede { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.5; max-width: 52ch; }
.muted { color: var(--muted); }

.label {
  font-family: var(--f-mono);
  font-size: var(--s-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.on-forest .label { color: var(--on-forest-muted); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--forest); color: var(--paper); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.section { padding-block: clamp(64px, 9vw, 140px); }
.section-tight { padding-block: clamp(48px, 6vw, 88px); }
.on-sand { background: var(--sand); }
.on-forest { background: var(--forest); color: var(--on-forest); }
.on-forest .muted { color: var(--on-forest-muted); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
[class*="col-"] { grid-column: var(--start, auto) / span var(--span, 12); min-width: 0; }
.col-3 { --span: 3; } .col-4 { --span: 4; } .col-5 { --span: 5; } .col-6 { --span: 6; } .col-7 { --span: 7; } .col-8 { --span: 8; }
.start-6 { --start: 6; } .start-7 { --start: 7; } .start-8 { --start: 8; } .start-9 { --start: 9; } .start-10 { --start: 10; }
.align-end { align-self: end; } .align-center { align-self: center; }
@media (max-width: 860px) {
  .grid-12 > * { grid-column: 1 / -1 !important; }
}
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 860px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest); }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand-word { font-family: var(--f-display); font-weight: 650; font-size: 1.12rem; letter-spacing: .2em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-size: .94rem; padding: 8px 12px; color: var(--ink);
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--forest); border-bottom-color: var(--line-strong); }
.nav a[aria-current="page"] { color: var(--forest); border-bottom-color: var(--forest); }
.nav .btn { margin-left: 12px; }
.menu-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong);
  color: var(--ink); font: 500 .85rem var(--f-body); padding: 9px 14px; cursor: pointer;
  align-items: center; gap: 10px;
}
.menu-toggle .bars { width: 16px; height: 10px; position: relative; display: inline-block; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .2s;
}
.menu-toggle .bars::before { top: 1px; } .menu-toggle .bars::after { bottom: 1px; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  /* backdrop-filter cria um bloco de contenção que prende o painel fixo ao cabeçalho */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); bottom: 0;
    height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px)); z-index: 55;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--paper);
    padding: 12px var(--gutter-r) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gutter);
    overflow-y: auto; border-top: 1px solid var(--line);
  }
  .nav[data-open="false"] { display: none; }
  .nav a { font-family: var(--f-display); font-size: 1.6rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--wood-text); }
  .nav .btn { margin: 24px 0 0; text-align: center; font-family: var(--f-body); font-size: 1rem; }
}
@media (min-width: 1081px) { .nav[data-open] { display: flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 .95rem/1 var(--f-body); letter-spacing: .01em;
  padding: 15px 22px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--forest); background: var(--forest); color: var(--paper);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--forest-2); }
.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--forest); border-color: var(--paper); }
.btn-light:hover { background: var(--sand); border-color: var(--sand); }
.btn-outline-light { background: transparent; color: var(--paper); border-color: rgba(248,247,243,.6); }
.btn-outline-light:hover { background: var(--paper); color: var(--forest); }
.nav .btn { padding: 11px 16px; color: var(--paper); border-bottom: 1px solid var(--forest); }
.nav .btn:hover { color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow {
  display: inline-flex; gap: 10px; align-items: center; font-weight: 600; text-decoration: none;
  color: var(--forest); border-bottom: 1px solid var(--line-strong); padding-bottom: 4px;
}
.link-arrow:hover { border-bottom-color: var(--forest); }
.on-forest .link-arrow { color: var(--paper); border-bottom-color: rgba(248,247,243,.4); }
.link-arrow span[aria-hidden] { transition: transform .2s; }
.link-arrow:hover span[aria-hidden] { transform: translateX(3px); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; color: var(--paper); background: var(--forest); overflow: hidden; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { object-fit: cover; object-position: 50% 62%; animation: hero-in 1.6s cubic-bezier(.2,.7,.2,1) both; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18,28,23,.62) 0%, rgba(18,28,23,.34) 38%, rgba(18,28,23,0) 66%),
    linear-gradient(180deg, rgba(18,28,23,.28) 0%, rgba(18,28,23,0) 30%, rgba(18,28,23,.1) 60%, rgba(18,28,23,.7) 100%);
}
.hero-inner {
  position: relative; z-index: 1; min-height: clamp(560px, 86vh, 900px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: 120px clamp(36px, 6vw, 72px);
}
.hero h1 { max-width: 11ch; color: var(--paper); text-shadow: 0 1px 24px rgba(18,28,23,.25); }
.hero .lede { color: rgba(248,247,243,.92); margin-top: 18px; }
.hero .btn-row { margin-top: 32px; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(40px, 6vw, 72px);
  padding-top: 16px; border-top: 1px solid rgba(248,247,243,.35);
  font-family: var(--f-mono); font-size: var(--s-label); letter-spacing: .12em; text-transform: uppercase;
  color: rgba(248,247,243,.85);
}
@keyframes hero-in { from { transform: scale(1.045); } to { transform: scale(1); } }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(56px, 8vw, 120px) clamp(36px, 5vw, 64px); }
.page-hero h1 { max-width: 16ch; margin-top: 18px; }
.page-hero .lede { margin-top: 24px; }
.crumbs { font-family: var(--f-mono); font-size: var(--s-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }

/* ---------- Figures ---------- */
figure { margin: 0; }
.fig { position: relative; overflow: hidden; background: var(--sand); }
.fig img { width: 100%; height: 100%; object-fit: cover; }
.fig.ratio-wide { aspect-ratio: 16 / 9; } .fig.ratio-3-2 { aspect-ratio: 3 / 2; }
.fig.ratio-4-5 { aspect-ratio: 4 / 5; } .fig.ratio-pano { aspect-ratio: 21 / 9; }
.fig.ratio-1 { aspect-ratio: 1 / 1; }
.fig, .fig img { max-width: 100%; }
figcaption {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 10px;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted);
}
.on-forest figcaption { color: var(--on-forest-muted); }
.zoomable { cursor: zoom-in; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.zoomable:hover img { transform: scale(1.015); }
.zoomable img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }

.bleed { width: 100%; }
.bleed .fig { aspect-ratio: 21 / 9; }
@media (max-width: 700px) { .bleed .fig { aspect-ratio: 4 / 3; } .fig.ratio-pano { aspect-ratio: 4 / 3; } }

/* Dimension line motif */
.dim {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.dim::before, .dim::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.dim-ticks { position: relative; }
.dim-ticks::before, .dim-ticks::after { content: ""; position: absolute; top: 50%; width: 1px; height: 11px; background: var(--line-strong); transform: translateY(-50%); }
.dim-ticks::before { left: 0; } .dim-ticks::after { right: 0; }
.on-forest .dim { color: var(--on-forest-muted); }
.on-forest .dim::before, .on-forest .dim::after, .on-forest .dim-ticks::before, .on-forest .dim-ticks::after { background: rgba(238,240,234,.4); }

/* ---------- Content components ---------- */
.spec-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.spec-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.spec-list .k { color: var(--muted); font-size: var(--s-small); }
.spec-list .v { font-variant-numeric: tabular-nums; }
.on-forest .spec-list, .on-forest .spec-list li { border-color: rgba(238,240,234,.18); }

.figures-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.figures-row > div { padding: 18px 20px 0 0; }
.figures-row .n { font-family: var(--f-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.figures-row .n small { font-size: .45em; margin-left: 4px; letter-spacing: 0; }
.figures-row .label { margin-top: 10px; display: block; }
.on-forest .figures-row { border-color: rgba(238,240,234,.4); }

.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; }
.feature-list > article {
  padding: 28px 28px 32px 0; border-top: 1px solid var(--line-strong);
  display: flex; flex-direction: column; gap: 12px;
}
.feature-list > article .label { color: var(--wood-text); }
.on-forest .feature-list > article { border-color: rgba(238,240,234,.35); }
.on-forest .feature-list > article .label { color: #D6B48C; }
.feature-list p { color: var(--muted); }
.on-forest .feature-list p { color: var(--on-forest-muted); }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 9px; border: 1px solid var(--line-strong); color: var(--muted); width: fit-content;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.doc { color: var(--forest); border-color: rgba(38,60,50,.45); }
.status.define { color: var(--wood-text); border-color: rgba(133,87,42,.45); }
.status.opt { color: var(--muted); }
.on-forest .status.doc { color: #CFE0D4; border-color: rgba(207,224,212,.45); }
.on-forest .status.define { color: #E2C29C; border-color: rgba(226,194,156,.45); }

.legend { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }

.note {
  border-left: 2px solid var(--wood); padding: 4px 0 4px 16px;
  font-size: var(--s-small); color: var(--muted); max-width: 70ch;
}
.on-forest .note { color: var(--on-forest-muted); }

/* Room sections (product page) */
.room { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); align-items: center; }
.room + .room { margin-top: clamp(64px, 8vw, 120px); }
.room .media { grid-column: 1 / span 7; }
.room .text { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 16px; }
.room.flip .media { grid-column: 6 / span 7; grid-row: 1; }
.room.flip .text { grid-column: 1 / span 4; grid-row: 1; }
@media (max-width: 860px) {
  .room .media, .room .text, .room.flip .media, .room.flip .text { grid-column: 1 / -1; grid-row: auto; }
}
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.checklist li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: .98rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 19px; width: 9px; height: 1px; background: var(--wood); }
.checklist li .tag { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wood-text); margin-left: 6px; white-space: nowrap; }

/* Plan */
.plan-wrap { background: var(--paper); border: 1px solid var(--line); padding: clamp(14px, 3vw, 36px); }
.plan-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.plan-scroll svg { display: block; width: 100%; min-width: 720px; height: auto; }
.plan-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 24px; list-style: none; margin: 24px 0 0; padding: 0; font-size: .92rem; }
.plan-legend b { font-family: var(--f-mono); font-weight: 500; color: var(--wood-text); margin-right: 8px; font-variant-numeric: tabular-nums; }
.plan-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.gallery .g1 { grid-column: span 8; } .gallery .g2 { grid-column: span 4; }
.gallery .g3 { grid-column: span 4; } .gallery .g4 { grid-column: span 4; } .gallery .g5 { grid-column: span 4; }
.gallery .fig { height: 100%; }
.gallery .g1 .fig { aspect-ratio: 16/10; } .gallery .g2 .fig { aspect-ratio: auto; height: 100%; min-height: 240px; }
.gallery .g3 .fig, .gallery .g4 .fig, .gallery .g5 .fig { aspect-ratio: 4/3; }
@media (max-width: 760px) {
  .gallery .g1, .gallery .g2, .gallery .g3, .gallery .g4, .gallery .g5 { grid-column: 1 / -1; }
  .gallery .g2 .fig { aspect-ratio: 4/3; height: auto; }
}

/* Process steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps > li {
  display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr); gap: 24px;
  padding: 32px 0; border-top: 1px solid var(--line-strong); counter-increment: step;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--f-mono); font-size: .9rem; color: var(--wood-text); padding-top: 6px;
}
.steps > li:last-child { border-bottom: 1px solid var(--line-strong); }
.steps h3 { font-size: clamp(1.3rem, 1.05rem + .9vw, 1.75rem); }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps > li { grid-template-columns: 48px minmax(0, 1fr); } .steps > li > p, .steps > li > div.prose { grid-column: 2; } }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: baseline;
  padding: 22px 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.2rem; color: var(--wood-text); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 26px; max-width: 70ch; color: var(--muted); }
.faq .answer p + p { margin-top: .8em; }
.on-forest .faq, .on-forest .faq details { border-color: rgba(238,240,234,.35); }
.on-forest .faq .answer { color: var(--on-forest-muted); }

/* Materials board */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line); }
.board > article { padding: 28px 24px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.board .code { font-family: var(--f-mono); font-size: .74rem; color: var(--wood-text); letter-spacing: .08em; }
.board p { color: var(--muted); font-size: .97rem; }
.swatch { height: 64px; margin-bottom: 6px; border: 1px solid var(--line); }

/* CTA band */
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: end; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, .field legend { font-size: .9rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #FFFEFB;
  border: 1px solid var(--line-strong); border-radius: 0; padding: 13px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(38,60,50,.15); }
.field[data-invalid="true"] input, .field[data-invalid="true"] select, .field[data-invalid="true"] textarea { border-color: var(--error); }
.field .err { color: var(--error); font-size: .85rem; min-height: 0; }
.field .err:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-block; padding: 10px 14px; border: 1px solid var(--line-strong); cursor: pointer; font-size: .95rem; background: #FFFEFB;
}
.choice input:checked + span { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.choice input:focus-visible + span { outline: 2px solid var(--wood); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--forest); flex: none; }
.form-status { padding: 16px 18px; border: 1px solid var(--line-strong); font-size: .96rem; }
.form-status[data-kind="ok"] { border-color: var(--ok); color: var(--ok); }
.form-status[data-kind="error"] { border-color: var(--error); color: var(--error); }
.form-status[data-kind="pending"] { border-color: var(--wood); color: var(--ink); }
.form-status pre { white-space: pre-wrap; font-family: var(--f-mono); font-size: .8rem; background: var(--sand); padding: 12px; margin: 12px 0; max-height: 260px; overflow: auto; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D9DAD4; padding-block: 72px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.site-footer a { text-decoration: none; color: #D9DAD4; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font-family: var(--f-mono); font-size: var(--s-label); letter-spacing: .14em; text-transform: uppercase; color: #9FA29A; font-weight: 500; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #F2F1EC; }
.footer-claim { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.02em; color: #F2F1EC; margin-top: 20px; max-width: 16ch; }
.footer-bottom { margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(217,218,212,.18); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .82rem; color: #9FA29A; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(22, 26, 23, .94);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  color: #EEF0EA;
}
.lightbox[hidden] { display: none !important; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; }
.lb-stage { display: flex; align-items: center; justify-content: center; min-height: 0; overflow: auto; }
.lb-stage img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lb-stage.is-plan { background: var(--paper); align-items: flex-start; justify-content: flex-start; }
.lb-stage.is-plan svg { width: 1800px; max-width: none; height: auto; display: block; }
.lb-btn { background: none; border: 1px solid rgba(238,240,234,.4); color: #EEF0EA; font: 500 .85rem var(--f-body); padding: 9px 14px; cursor: pointer; }
.lb-btn:hover { background: rgba(238,240,234,.1); }
.lb-nav { display: flex; gap: 8px; }
.lb-caption { text-align: center; font-size: .9rem; padding-top: 10px; color: #C9CCC4; }

/* Utilities */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mt-64 { margin-top: clamp(40px, 6vw, 64px); }
.center-text { text-align: center; }
.edit-field { background: #FFF2C9; padding: 0 4px; font-family: var(--f-mono); font-size: .9em; }
.legal h2 { font-size: var(--s-3); margin-top: 2em; }
.legal h2:first-child { margin-top: 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; vertical-align: top; }
.table-scroll { overflow-x: auto; }

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