/* Design Mi Casa — one stylesheet, mobile first.
   Palette: terracotta tile, olive night, saffron, clay blush, warm white. */

@font-face {
  font-family: 'Bricolage';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/bricolage.woff2') format('woff2');
  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;
}

:root {
  --clay: #C2502A;
  --clay-deep: #A23F1E;
  --clay-soft: #F6E7DC;
  --blush: #FBF1EA;
  --night: #16231D;
  --night-2: #213229;
  --olive: #4E6B57;
  --saffron: #F2B441;
  --paper: #FFFCF8;
  --ink: #16231D;
  --muted: #5B655F;
  --line: rgba(22, 35, 29, .12);
  --line-strong: rgba(22, 35, 29, .22);
  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 32px;
  --shadow: 0 1px 2px rgba(22,35,29,.06), 0 12px 32px -12px rgba(22,35,29,.18);
  --shadow-l: 0 2px 4px rgba(22,35,29,.05), 0 30px 60px -24px rgba(22,35,29,.35);
  --display: 'Bricolage', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(18px, 4.5vw, 40px);
  --section: clamp(64px, 10vw, 128px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 clamp(16px, 0.25vw + 15.2px, 17.5px)/1.65 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--clay); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(40px, 7.2vw, 92px); font-weight: 750; letter-spacing: -0.04em; line-height: .98; }
h2 { font-size: clamp(30px, 4.4vw, 56px); letter-spacing: -0.035em; }
h3 { font-size: clamp(20px, 1.6vw, 24px); letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(17px, 1.3vw, 20px); color: var(--muted); max-width: 60ch; line-height: 1.6; text-wrap: pretty; }
.muted { color: var(--muted); }
em.hl { font-style: normal; color: var(--clay); }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: calc(var(--section) / 2); }
.section:first-of-type { padding-top: var(--section); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--night); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 12px; }

/* ------------------------------------------------ eyebrow / kicker */
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font: 700 12.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--clay);
}
.kicker::before { content: ""; width: 18px; height: 18px; border-radius: 9px 9px 2px 2px; background: currentColor; opacity: .9; flex: none; }
.on-dark .kicker, .kicker.light { color: var(--saffron); }

/* ------------------------------------------------ buttons */
.btn {
  --b: var(--night); --f: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--b);
  background: var(--b); color: var(--f); text-decoration: none; cursor: pointer;
  font: 650 16px/1 var(--body); letter-spacing: -0.005em; white-space: nowrap;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { color: var(--f); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(22,35,29,.45); }
.btn:active { transform: translateY(0); }
.btn-clay { --b: var(--clay); }
.btn-clay:hover { --b: var(--clay-deep); }
.btn-ghost { --b: transparent; --f: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { --f: var(--ink); background: #fff; border-color: var(--ink); }
.btn-light { --b: #fff; --f: var(--night); }
.btn-light:hover { --f: var(--night); }
.btn-store svg { width: 22px; height: 22px; margin-top: -3px; flex: none; }
.store-lines { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.store-lines small { font-size: 10.5px; font-weight: 500; opacity: .8; letter-spacing: .02em; }
.store-lines span { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.btn-arrow::after { content: "→"; transition: transform .2s; }
.btn-arrow:hover::after { transform: translateX(3px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: 12px; }
.nav {
  position: relative; display: flex; align-items: center; gap: 16px; height: 60px;
  padding: 0 10px 0 16px; border-radius: 999px; max-width: calc(1280px - 2 * var(--gutter));
  margin-inline: auto; width: calc(100% - 2 * var(--gutter));
  background: rgba(255, 252, 248, .78); border: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled .nav { box-shadow: var(--shadow); background: rgba(255, 252, 248, .92); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 750 20px/1 var(--display); letter-spacing: -0.04em; color: var(--ink); white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 1px rgba(22,35,29,.08); }
.brand b { color: var(--clay); font-weight: 750; }
.nav-links { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-links a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 550; font-size: 15px; color: var(--ink); }
.nav-links a:hover { background: var(--clay-soft); color: var(--ink); }
.nav-links .nav-links-cta { display: none; }
.nav-cta .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.nav-cta .btn-store svg { width: 18px; height: 18px; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 999px; background: var(--night); color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-l);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 14px 16px; font-size: 17px; border-radius: 14px; }
  .nav-links .nav-links-cta { display: block; padding: 8px 6px 4px; }
  .nav-links .nav-links-cta .btn { width: 100%; padding: 0 20px; color: #fff; }
  .nav-links .nav-links-cta .btn:hover { background: var(--clay-deep); }
}

/* ------------------------------------------------ hero */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 calc(var(--section) / 2); overflow: clip; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -20% -10% auto auto; width: min(780px, 90vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(242,180,65,.35), rgba(242,180,65,0)); pointer-events: none;
}
.hero-top { display: grid; gap: 28px; align-items: end; }
.hero h1 { margin: 0; max-width: 13ch; }
.hero h1 .arch-word { position: relative; display: inline-block; color: var(--clay); }
.hero h1 .arch-word::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: .02em; height: .12em; border-radius: 999px;
  background: var(--saffron); z-index: -1; transform-origin: left; animation: underline 1s .4s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes underline { from { transform: scaleX(0); } }
.hero-side .lede { margin-bottom: 24px; color: #46504a; }
.hero-note { display: block; margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero-stage { position: relative; margin-top: clamp(32px, 5vw, 56px); }
.hero-stage .compare { border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.hero-chip {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px;
  border-radius: 999px; background: rgba(255,252,248,.94); box-shadow: var(--shadow); font: 600 14px/1.2 var(--body);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none;
}
.hero-chip i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--clay-soft); font-style: normal; font-size: 15px; }
.hero-chip small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.hero-chip.c1 { left: clamp(12px, 3vw, 28px); bottom: clamp(56px, 7vw, 80px); }
.hero-chip.c2 { right: clamp(12px, 3vw, 28px); top: clamp(12px, 3vw, 28px); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: clamp(28px, 4vw, 44px); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--paper); padding: 20px 22px; }
.stat b { display: block; font: 750 clamp(26px, 3vw, 38px)/1 var(--display); letter-spacing: -0.04em; color: var(--ink); margin-bottom: 6px; }
.stat span { font-size: 14px; color: var(--muted); }
@media (min-width: 860px) {
  .hero-top { grid-template-columns: 1.25fr .9fr; gap: 56px; }
  .hero-side { padding-bottom: 8px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 559px) {
  .hero-chip.c2 { display: none; }
  .hero-chip.c1 { bottom: 52px; font-size: 13px; padding: 8px 12px 8px 8px; }
  .hero-chip i { width: 26px; height: 26px; }
  .hero .cta-row .btn { flex: 1 1 100%; }
}

/* ------------------------------------------------ compare */
.compare { --pos: 50%; position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--clay-soft); user-select: none; -webkit-user-select: none; isolation: isolate; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06); pointer-events: none; }
.compare-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316231D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E") center/22px no-repeat;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.compare-label { position: absolute; z-index: 3; top: 14px; padding: 7px 12px; border-radius: 999px; font: 700 11.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.compare-label.before { left: 14px; background: rgba(22,35,29,.78); color: #fff; }
.compare-label.after { right: 14px; background: var(--saffron); color: var(--night); }
.compare-range { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.compare:focus-within .compare-handle::after { outline: 3px solid var(--saffron); outline-offset: 2px; }

/* ------------------------------------------------ section heads */
.section-head { display: grid; gap: 8px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 820px; }
.section-head h2 { margin: 0; }
.section-head .lede { margin: 8px 0 0; }
.section-head.split { max-width: none; }
@media (min-width: 860px) {
  .section-head.split { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 48px; }
  .section-head.split .lede { margin: 0; }
}

/* ------------------------------------------------ how it works */
.steps { display: grid; gap: 20px; counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px; overflow: hidden; }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 22px 22px 6px 6px; background: var(--clay); color: #fff; font: 750 19px/1 var(--display); margin-bottom: 18px; }
.step:nth-child(2) .step-num { background: var(--olive); }
.step:nth-child(3) .step-num { background: var(--saffron); color: var(--night); }
.step h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 10px; }
.step > p { color: var(--muted); margin-bottom: 18px; }
.step-points { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 15px; }
.step-points li { position: relative; padding-left: 26px; }
.step-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 9px; border-left: 2.5px solid var(--clay); border-bottom: 2.5px solid var(--clay); transform: rotate(-45deg); }
.mock { margin-top: auto; border-radius: 22px; background: var(--blush); border: 1px solid var(--line); padding: 14px; font-size: 13px; }
.mock-file { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.mock-file img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.mock-file b { display: block; font-size: 14px; }
.mock-file span { color: var(--muted); }
.mock-file .ok { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--olive); flex: none; display: grid; place-items: center; }
.mock-file .ok::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.mock-bar { margin-top: 12px; height: 8px; border-radius: 99px; background: #fff; overflow: hidden; }
.mock-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--clay), var(--saffron)); }
.mock-btn { margin-top: 12px; text-align: center; padding: 12px; border-radius: 999px; background: var(--night); color: #fff; font-weight: 650; }
.mock-label { display: flex; justify-content: space-between; font-weight: 700; margin: 2px 2px 8px; }
.mock-label span { color: var(--clay); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 12.5px; }
.chip.on { background: var(--night); color: #fff; border-color: var(--night); }
.mock-styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mock-styles figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
.mock-styles img { width: 100%; height: 100%; object-fit: cover; }
.mock-styles figcaption { position: absolute; left: 4px; right: 4px; bottom: 4px; padding: 3px 4px; border-radius: 6px; background: rgba(255,255,255,.9); font-size: 10px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-styles figure.on { outline: 2.5px solid var(--clay); outline-offset: -2.5px; }
.mock-result { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 2; }
.mock-result img { width: 100%; height: 100%; object-fit: cover; }
.mock-result .tag { position: absolute; left: 8px; bottom: 8px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.92); font-weight: 700; font-size: 11.5px; }
.mock-actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.mock-actions span { display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border-radius: 12px; background: #fff; font-size: 10.5px; font-weight: 650; }
.mock-actions span.on { background: var(--clay); color: #fff; }
.mock-actions svg { width: 17px; height: 17px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 560px) and (max-width: 899px) {
  .step { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .step > * { grid-column: 1; }
  .step .mock { grid-column: 2; grid-row: 1 / span 5; align-self: center; margin: 0; }
}

/* ------------------------------------------------ before/after studio (tabs) */
.studio { display: grid; gap: 20px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: transparent; cursor: pointer; font-weight: 650; font-size: 15px;
  transition: background .2s, color .2s, border-color .2s;
}
.tab img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.panel { display: grid; gap: 24px; align-items: center; }
.panel[hidden] { display: none; }
.panel-copy h3 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.03em; }
.panel-copy p { color: var(--muted); }
.panel-copy dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 20px 0 0; font-size: 15px; }
.panel-copy dt { font-weight: 700; }
.panel-copy dd { margin: 0; color: var(--muted); }
.panel .compare { box-shadow: var(--shadow-l); border-radius: var(--radius-l); }
@media (min-width: 900px) { .panel { grid-template-columns: 1.6fr 1fr; gap: 48px; } }

/* ------------------------------------------------ style rail */
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 70%); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 20px; margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin; scrollbar-color: var(--clay) transparent; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--clay); border-radius: 9px; }
@media (min-width: 560px) { .rail { grid-auto-columns: minmax(240px, 40%); } }
@media (min-width: 900px) { .rail { grid-auto-columns: calc((100% - 3 * 16px - 2 * var(--gutter)) / 4); } }
.style-card { scroll-snap-align: start; position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; aspect-ratio: 4 / 5; background: var(--night); }
.style-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.style-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,35,29,0) 45%, rgba(22,35,29,.88)); }
.style-card:hover { color: #fff; }
.style-card:hover img { transform: scale(1.05); }
.style-card-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 20px; }
.style-card-body h3 { margin: 0 0 6px; color: #fff; font-size: 22px; }
.style-card-body p { margin: 0; font-size: 14px; line-height: 1.45; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail-nav { display: none; gap: 8px; }
.rail-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.rail-nav button:hover:not(:disabled) { background: var(--night); color: #fff; border-color: var(--night); }
.rail-nav button:disabled { opacity: .35; cursor: default; }
.rail-nav svg { width: 20px; height: 20px; }
@media (min-width: 860px) { .js .rail-nav { display: flex; } }
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }

/* ------------------------------------------------ feature bento */
.bento { display: grid; gap: 16px; }
.bento-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-l); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.bento-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--clay-soft); }
.bento-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.bento-card:hover .bento-media img { transform: scale(1.04); }
.bento-body { padding: 22px 24px 26px; }
.bento-body h3 { margin-bottom: 8px; }
.bento-body p { margin: 0; color: var(--muted); font-size: 15.5px; }
.bento-num { font: 700 12px/1 var(--body); letter-spacing: .12em; color: var(--clay); display: block; margin-bottom: 10px; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento-card { grid-column: span 2; }
  .bento-card.wide { grid-column: span 3; }
  .bento-card.hero-card { grid-column: span 4; grid-row: span 2; }
  .bento-card.hero-card .bento-media { aspect-ratio: auto; flex: 1; min-height: 360px; }
  .bento-card.hero-card .bento-body h3 { font-size: 30px; }
  .bento-card.tall .bento-media { aspect-ratio: auto; flex: 1; }
}
.bento-card.dark { background: var(--night); color: #fff; border-color: var(--night); }
.bento-card.dark p { color: rgba(255,255,255,.72); }
.bento-card.dark .bento-num { color: var(--saffron); }

/* ------------------------------------------------ dark band / CTA */
.on-dark { background: var(--night); color: #fff; }
.on-dark .lede, .on-dark p { color: rgba(255,255,255,.74); }
.band { position: relative; border-radius: var(--radius-l); padding: clamp(32px, 6vw, 72px); overflow: hidden; }
.band.on-dark::before {
  content: ""; position: absolute; right: -80px; bottom: -160px; width: 420px; height: 520px; border-radius: 210px 210px 0 0;
  background: var(--clay); opacity: .95; pointer-events: none;
}
.band.on-dark::after {
  content: ""; position: absolute; right: 50px; bottom: 120px; width: 150px; height: 150px; border-radius: 50%;
  background: var(--saffron); pointer-events: none;
}
.app-cta { display: grid; gap: 28px; align-items: center; }
.app-cta > * { position: relative; z-index: 1; }
.app-cta h2 { color: #fff; margin-bottom: 12px; }
.app-cta .lede { margin: 0; }
.app-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
@media (min-width: 900px) {
  .app-cta { grid-template-columns: auto 1fr auto; gap: 40px; padding-right: clamp(200px, 22vw, 320px); }
  .app-cta .btn { position: absolute; right: clamp(40px, 5vw, 80px); top: 50%; transform: translateY(-50%); z-index: 2; }
  .app-cta .btn:hover { transform: translateY(calc(-50% - 2px)); }
}
@media (max-width: 899px) { .band.on-dark::before { width: 260px; height: 320px; right: -90px; bottom: -200px; } .band.on-dark::after { width: 90px; height: 90px; right: -10px; bottom: 40px; } }

/* ------------------------------------------------ FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font: 650 clamp(16.5px, 1.3vw, 18.5px)/1.35 var(--display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--clay-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2502A' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .25s, background-color .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--saffron); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ------------------------------------------------ cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 899px) { .keep-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-6 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid-6 { grid-template-columns: repeat(6, 1fr); } }
.card { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow-l); }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--clay-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: 15.5px; }
.card-body .more { margin-top: auto; font-weight: 700; color: var(--clay); font-size: 15px; }
.card-body .more::after { content: " →"; }

.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; aspect-ratio: 1; background: var(--clay-soft); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.tile:hover img { transform: scale(1.05); }
.tile-name { position: absolute; left: 10px; bottom: 10px; padding: 7px 12px; border-radius: 999px; background: rgba(255,252,248,.94); color: var(--ink); font-weight: 700; font-size: 14px; }
.tile.wide { aspect-ratio: 3 / 2; }

/* ------------------------------------------------ inner pages */
.page-hero { padding: clamp(32px, 6vw, 72px) 0 calc(var(--section) / 2); }
.page-hero h1 { font-size: clamp(36px, 5.6vw, 72px); max-width: 18ch; }
.page-hero .lede { margin-bottom: 26px; }
.page-hero-media { margin-top: clamp(32px, 5vw, 52px); border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 3 / 2; box-shadow: var(--shadow-l); background: var(--clay-soft); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .page-hero-media { aspect-ratio: 21 / 9; } }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumb a { text-decoration: none; font-weight: 600; color: var(--clay); }

.article { display: grid; gap: 40px; }
@media (min-width: 1000px) { .article { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; } }
.prose { max-width: 70ch; font-size: clamp(16.5px, .3vw + 15.5px, 18px); }
.prose h2 { font-size: clamp(26px, 2.8vw, 36px); margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 10px; margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 11px; height: 11px; border-radius: 6px 6px 1px 1px; background: var(--clay); }
.prose a { color: var(--clay); font-weight: 600; }
.prose strong { color: var(--ink); }
.suits { padding: 18px 20px; border-radius: var(--radius); background: var(--blush); border-left: 4px solid var(--clay); margin-bottom: 1.6em; }
.aside { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 16px; }
.aside-card { border-radius: var(--radius-l); padding: 26px; background: var(--night); color: #fff; overflow: hidden; position: relative; }
.aside-card h3 { color: #fff; font-size: 24px; }
.aside-card p { color: rgba(255,255,255,.75); font-size: 15px; }
.aside-card .btn { width: 100%; margin-top: 6px; }
.aside-card img { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 16px; }
.aside-links { border-radius: var(--radius-l); padding: 22px 24px; border: 1px solid var(--line); background: #fff; }
.aside-links h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: var(--body); margin-bottom: 12px; }
.aside-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.aside-links a { display: block; padding: 6px 0; text-decoration: none; font-weight: 600; }
@media (max-width: 999px) { .aside { position: static; } }

.compare-feature { display: grid; gap: 28px; align-items: center; }
.compare-feature .compare { box-shadow: var(--shadow-l); border-radius: var(--radius-l); }
@media (min-width: 900px) { .compare-feature { grid-template-columns: 1.5fr 1fr; gap: 56px; } }

/* style index */
.style-list { display: grid; gap: 16px; }
.style-entry { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; padding: 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.style-entry .tile { border-radius: 14px; }
.style-entry h3 { margin-bottom: 4px; }
.style-entry p { margin: 0; color: var(--muted); font-size: 15px; }
.style-entry p a { color: var(--clay); font-weight: 650; display: inline-block; margin-top: 6px; }
.style-entry:target { border-color: var(--clay); box-shadow: 0 0 0 3px rgba(194,80,42,.2); }
@media (min-width: 560px) { .style-entry { grid-template-columns: 160px 1fr; gap: 24px; } }
@media (min-width: 1000px) { .style-list { grid-template-columns: 1fr 1fr; } }

.tint { background: var(--blush); }
.tint-band { padding-block: calc(var(--section) / 1.4); }

/* ------------------------------------------------ footer */
.site-footer { margin-top: calc(var(--section) / 2); background: var(--night); color: rgba(255,255,255,.78); padding: clamp(48px, 7vw, 88px) 0 28px; font-size: 15px; border-radius: var(--radius-l) var(--radius-l) 0 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--saffron); }
.footer-main { display: grid; gap: 40px; }
.footer-brand .brand { color: #fff; font-size: 24px; }
.footer-brand .brand b { color: var(--saffron); }
.footer-brand p { margin: 16px 0 20px; max-width: 34ch; font-size: 16px; }
.footer-download { display: inline-flex; gap: 6px; font-weight: 650; color: #fff; padding: 12px 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.25); }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.footer-links h4 { color: #fff; font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-word { margin: clamp(40px, 6vw, 72px) 0 0; font: 800 clamp(56px, 15.5vw, 220px)/.8 var(--display); letter-spacing: -0.06em; color: rgba(255,255,255,.06); white-space: nowrap; user-select: none; overflow: hidden; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.footer-legal { display: flex; gap: 20px; }
@media (min-width: 760px) { .footer-main { grid-template-columns: 1.2fr 1.8fr; } .footer-nav { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------ demo page */
.demo-video-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .demo-video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .demo-video-grid { grid-template-columns: repeat(4, 1fr); } }
.demo-video-card { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.demo-video-card video { width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: var(--night); }
.demo-video-copy { padding: 18px 20px 22px; }
.demo-video-copy p { color: var(--muted); font-size: 15px; margin: 0; }
.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--clay-soft); color: var(--clay); font-weight: 700; font-size: 12px; margin-bottom: 10px; }
.demo-steps { display: grid; gap: 12px; padding-left: 20px; }
.demo-note { margin-top: 18px; }

/* ------------------------------------------------ reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
}
@media print { .site-header, .nav-toggle, .compare-range, .rail-nav { display: none !important; } }

/* ------------------------------------------------ refinements */
.wordmark { display: inline; }
.hero-chip.c2 { top: auto; bottom: clamp(56px, 7vw, 80px); }
.bento-card.dark .bento-body { display: flex; flex-direction: column; height: 100%; }
.bento-card.dark .chip { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }
.prompt-mock { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 10px; }
.prompt-text { flex: 1; padding: 14px 18px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 15px; }
.prompt-text::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 3px; vertical-align: -3px; background: var(--saffron); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.prompt-send { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--saffron); color: var(--night); font-weight: 800; font-size: 20px; }
@media (min-width: 900px) {
  .band.on-dark::after { right: 70px; bottom: auto; top: 28px; width: 110px; height: 110px; }
}
@media (max-width: 559px) {
  .hero-stage .compare { aspect-ratio: 4 / 4.4; }
  .hero-chip.c2 { display: none; }
  .bento-media { aspect-ratio: 16 / 9; }
  .card { flex-direction: row; align-items: stretch; }
  .card-media { flex: none; width: 116px; aspect-ratio: auto; }
  .card-body { padding: 16px 16px 16px 18px; }
  .card-body h3 { font-size: 18px; margin-bottom: 4px; }
  .card-body p { font-size: 14.5px; margin-bottom: 8px; line-height: 1.45; }
  .card-body .more { font-size: 14px; }
  .panel .compare, .compare-feature .compare { aspect-ratio: 4 / 3.6; }
}
@media (max-width: 899px) { .app-cta .btn { justify-self: start; } }
.nav-links .nav-links-cta .btn { display: flex; min-height: 56px; }

/* seconds timer in the hero chip and upload mock */
.hero-chip i.timer { position: relative; background: conic-gradient(var(--clay) var(--t, 100%), var(--clay-soft) 0); animation: timer 3.2s 1s cubic-bezier(.4,0,.2,1) both; }
.hero-chip i.timer::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2502A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
@property --t { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
@keyframes timer { from { --t: 0%; } to { --t: 100%; } }
.mock-bar i { animation: bar 2.6s .6s cubic-bezier(.4,0,.2,1) both; transform-origin: left; }
@keyframes bar { from { transform: scaleX(.08); } }
.mock-eta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; font-weight: 650; color: var(--muted); }
.mock-eta span:last-child { color: var(--clay); }

/* legal pages */
.legal-hero h1 { max-width: none; }
.legal-date { font-size: 14px; color: var(--muted); font-weight: 600; margin: -10px 0 0; }
.legal { max-width: 76ch; }
.legal h2 { font-size: clamp(22px, 2.2vw, 28px); margin-top: 1.8em; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal h3 { font-size: 18px; margin-top: 1.2em; }
.legal-summary { padding: 22px 24px; border-radius: var(--radius); background: var(--blush); border-left: 4px solid var(--clay); margin-bottom: 2em; }
.legal-layout { display: grid; gap: 32px; }
.legal-toc { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); padding: 20px 22px; align-self: start; }
.legal-toc h4 { font: 700 12.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-bottom: 14px; }
.legal-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.legal-toc li::marker { color: var(--muted); font-weight: 600; }
.legal-toc a { text-decoration: none; font-weight: 600; }
.legal-toc a:hover { color: var(--clay); }
.legal .legal-summary + h2 { margin-top: 0; }
.legal h3 + p, .legal h3 + ul { margin-top: 0; }
.legal p:has(+ h3), .legal p:has(+ h2) { margin-bottom: 1em; }
@media (min-width: 1000px) {
  .legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; }
  .legal-toc { position: sticky; top: calc(var(--header-h) + 28px); }
}
.legal .basis { font-size: 14px; color: var(--muted); padding: 8px 14px; border-radius: 10px; background: rgba(22,35,29,.04); display: inline-block; }
.legal .basis strong { color: var(--ink); }
