/* BlankBuilder website. One light theme with sage-green bands, one accent: the builder's green.
   Type: Geist (variable, self-hosted). Radius rule: buttons 10px, chips 12px, cards and frames 16px, round icon buttons full. */
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f7f9f6;            /* off-white with a green cast */
  --bg-2: #e3eee6;          /* the light sage bands (hero, footer) */
  --surface: #ffffff;
  --surface-2: #f1f4f0;
  --line: rgba(23, 40, 30, .10);
  --line-strong: rgba(23, 40, 30, .18);
  --ink: #434343;           /* text grey (the brand's, not black) */
  --muted: #5b675f;
  --faint: #8a958d;
  --accent: #557f69;        /* the builder's green */
  --accent-hover: #476d59;
  --accent-ink: #ffffff;
  --accent-soft: rgba(85, 127, 105, .12);
  --shadow: 0 1px 2px rgba(23, 40, 30, .06), 0 24px 60px rgba(23, 40, 30, .14);
  --r-btn: 10px; --r-chip: 12px; --r-card: 16px;
  --font: "Geist", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-weight: 650; letter-spacing: -.025em; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
.lead { color: var(--muted); margin: 8px 0 0; max-width: 60ch; }

/* icons: Phosphor (MIT) SVGs used as masks, so they take the text colour */
.ico { display: inline-block; width: 18px; height: 18px; flex: 0 0 auto; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r-btn);
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 600 15px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease); }
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn.lg { height: 50px; padding: 0 22px; font-size: 16px; }
.btn .ico { width: 15px; height: 15px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand b { color: var(--accent); font-weight: 700; }
.logo-art { height: 40px; width: auto; display: block; }   /* BlankBuilder logo (brand/BB_LOGO.eps) */
.logo-art .lg-ink { fill: #434343; } .logo-art .lg-acc { fill: var(--accent); }
.foot-line .logo-art { height: 30px; }
@media (max-width: 520px) { .top .logo-art { height: 26px; } .top-actions .btn.sm { padding-inline: 12px; } }   /* the logo and the CTA side by side on a phone */
.nav { display: flex; gap: 28px; font-size: 14.5px; }
.nav a, .link { color: var(--muted); text-decoration: none; transition: color .2s var(--ease); }
.nav a:hover, .link:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; font-size: 14.5px; }
@media (max-width: 820px) { .top .wrap { grid-template-columns: 1fr auto; } .nav { display: none; } .top-actions .link { display: none; } }

/* hero: a sage band holding the headline, the features, the editor picture and the three steps */
.hero { padding: clamp(36px, 5vw, 64px) 0 40px; background: var(--bg-2); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 72px); letter-spacing: -.045em; line-height: .834;   /* 60px at the full 72px size, and the same proportion on smaller screens */ font-weight: 750; }
.hero-main > p { font-size: 18px; line-height: 1.3; color: var(--ink); margin: 18px 0 22px; opacity: .85; }
.hero-main .note { color: var(--muted); font-size: 13.5px; margin: 12px 0 0; opacity: 1; }
.feats { list-style: none; margin: 0; padding: 0 0 0 40px; border-left: 1px solid var(--line-strong); display: grid; gap: 22px; }
.feats li { display: flex; gap: 18px; align-items: flex-start; }
.feats .ico { width: 40px; height: 40px; color: var(--ink); opacity: .85; }
.feats h3 { font-size: 18px; letter-spacing: -.02em; margin-bottom: 3px; }
.feats p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; max-width: 30ch; }
@media (min-width: 901px) { .hero h1 { white-space: nowrap; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .feats { padding: 0; border: 0; } }

/* the product, a real screenshot of the builder in a browser frame */
.shot { margin: 40px 0 0; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); }
.shot-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.shot-bar span { margin: 0 auto; padding: 3px 14px; border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 12.5px; }
.shot > img { width: 100%; height: auto; aspect-ratio: 2000 / 1150; }
/* the 3D turn plays inside the screenshot, exactly over its 3D Preview panel (panel at x 817–1630, y 126–1150 of 2000 × 1150) */
.shot-media { position: relative; }
.shot-media > img { display: block; width: 100%; height: auto; aspect-ratio: 2000 / 1150; }
.shot-3d { position: absolute; left: 40.85%; top: 10.957%; width: 40.65%; height: 89.043%; object-fit: cover; display: block; pointer-events: none; }

/* three steps under the editor picture */
.strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 4px 0; font-size: 14px; color: var(--muted); }
.strip ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.strip li { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.strip .ico { color: var(--accent); }
@media (max-width: 860px) { .strip { flex-direction: column; align-items: flex-start; } .strip ul { flex-wrap: wrap; gap: 16px; } }

section { padding: 72px 0; }

/* every detail: two wide cards, a picture and its words side by side */
.details h2 { margin-bottom: 26px; font-size: clamp(30px, 3.8vw, 44px); letter-spacing: -.04em; }
.det-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }   /* three columns, two rows: picture on top, words under it */
.det { display: grid; grid-template-rows: auto 1fr; gap: 20px; align-content: start; }
.det img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); background: var(--surface-2); box-shadow: var(--shadow); }
.det h3 { font-size: 21px; letter-spacing: -.025em; margin-bottom: 8px; }
.det p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .det-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .det-grid { grid-template-columns: 1fr; } }

.gallery { background: var(--bg-2); }
/* gallery: a scroll-snap row that runs to the screen edge */
.gal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.round { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; transition: border-color .2s var(--ease); }
.round:hover { border-color: var(--accent); }
.track { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; padding: 0; cursor: grab; user-select: none; -webkit-user-select: none; }
.track.drag { cursor: grabbing; }
.track::-webkit-scrollbar { display: none; }
.track img { flex: 0 0 auto; width: clamp(280px, 42vw, 560px); aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); background: #d9dbd8; pointer-events: none; }
.progress { height: 3px; margin-top: 24px; background: var(--line); border-radius: 3px; overflow: hidden; max-width: 360px; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: transform .15s linear; }

/* pricing (kept as it was, in the new palette) */
.price-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.period { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.period button { border: 0; background: none; font: 600 14px var(--font); color: var(--muted); padding: 8px 16px; border-radius: 9px; cursor: pointer; }
.period button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.period small { font-weight: 600; opacity: .8; }
.plans { display: grid; gap: 16px; }
.plans.four { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 1060px) { .plans.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans.four { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.plan { cursor: pointer; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.plan.pro { border: 1.5px solid var(--accent); box-shadow: var(--shadow); }
.plan h3 { font-size: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.plan .blurb { color: var(--muted); font-size: 14px; margin: 6px 0 0; min-height: 2.6em; }
.plan .price { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin: 14px 0 2px; white-space: nowrap; }
.plan .price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.plan .price s { font-size: 15px; font-weight: 500; color: var(--faint); }
.plan .sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 8px 0 8px 28px; position: relative; font-size: 14.5px; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan li.no { color: var(--faint); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--faint) 60%, transparent); }
.plan li.no::before { border: 0; transform: none; width: 10px; height: 2px; top: 19px; background: var(--faint); }
.plan .btn { width: 100%; }
.tag { display: inline-block; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.fine.center { text-align: center; color: var(--muted); font-size: 13px; margin-top: 24px; }
.render-note { text-align: center; color: var(--muted); font-size: 14px; max-width: 64ch; margin: 8px auto 0; }

/* footer: the call to action on a sage band, then a quiet line */
.foot { background: var(--bg-2); border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: 14px; color: var(--muted); }
.foot-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line-strong); }
.foot-cta h2 { color: var(--ink); font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.035em; }
.foot-line { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 22px; }
.foot-line .brand { font-size: 17px; color: var(--ink); }
.foot nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .foot nav { margin-left: 0; width: 100%; } }

/* account: the log in / sign up dialog and the header chip */
html.au-open { overflow: hidden; }
.au-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(23, 32, 26, .38); backdrop-filter: blur(3px); animation: auFade .15s ease-out; }
@keyframes auFade { from { opacity: 0; } }
.au-card { position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); color: var(--ink);
  border-radius: 18px; padding: 28px; box-shadow: 0 30px 80px rgba(23, 40, 30, .28); animation: auUp .18s var(--ease); }
@keyframes auUp { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.au-card h2 { font-size: 24px; margin: 0 0 14px; letter-spacing: -.03em; }
.au-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.au-x:hover { background: var(--surface-2); color: var(--ink); }
.au-muted { color: var(--muted); margin: -4px 0 16px; font-size: 14.5px; }
.au-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 18px; border-radius: 12px; background: var(--surface-2); }
.au-tabs button { height: 38px; border: 0; border-radius: 9px; background: none; font: 600 14.5px var(--font); color: var(--muted); cursor: pointer; }
.au-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(23, 40, 30, .14); }
.au-form { display: grid; gap: 14px; }
.au-form > label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.au-form input[type=email], .au-form input[type=password], .au-form input[type=text] { height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 12px; font: 15px var(--font); background: var(--surface); color: var(--ink); }
.au-form input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.au-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.au-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.au-check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.au-form > label.au-optin { display: flex; gap: 8px; font-weight: 500; color: var(--ink); }   /* sign-up: "Send me tips and product news" */
.au-optin input { flex: 0 0 auto; }
.au-err { color: #b3261e; font-size: 13.5px; margin: 0; }
.au-wide { width: 100%; height: 46px; }
.au-link { border: 0; background: none; padding: 0; color: var(--accent); font: 600 14px var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.au-faint { color: var(--muted); font-weight: 500; }
.au-center { justify-self: center; display: block; margin: 4px auto 0; }
.au-alt { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
.au-sent { text-align: center; padding: 6px 0 2px; }
.au-mail { font-size: 34px; color: var(--accent); }
.au-sent h3 { font-size: 20px; margin: 6px 0 6px; }
.au-sent p { color: var(--muted); margin: 0 0 8px; }
.au-me { position: relative; }
.au-avatar { width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font: 700 16px var(--font); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line-strong); }
.au-avatar:hover, .au-avatar[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }
.au-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(23, 40, 30, .18); display: grid; z-index: 20; }
.au-menu[hidden] { display: none; }
.au-menu p { margin: 0; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); display: grid; }
.au-menu small { color: var(--muted); font-size: 12px; }
.au-menu b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; color: var(--accent); }
.au-menu a, .au-menu button { display: block; text-align: left; padding: 9px 10px; border-radius: 8px; border: 0; background: none; font: 500 14px var(--font); color: var(--accent); text-decoration: none; cursor: pointer; }
.au-menu a:hover, .au-menu button:hover { background: var(--surface-2); }

/* motion: the hero rises in on load, sections fade up once; nothing moves with reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s var(--ease) both; }
  .hero-side.rise { animation-delay: .08s; } .starts.rise { animation-delay: .16s; } .shot.rise { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* legal pages */
.legal { padding: 56px 0 80px; }
.legal .doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(24px, 5vw, 56px); max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 8px; line-height: 1.15; }
.legal h2 { font-size: 21px; margin: 36px 0 8px; }
.legal h3 { font-size: 17px; margin: 24px 0 6px; }
.legal p, .legal li { color: var(--ink); }
.legal a { color: var(--accent); }
.legal .table { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14.5px; margin: 8px 0 16px; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* "Make every detail yours": the sleeve close-up beside a dark panel in the builder's own controls */
.det-ui { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); background: #232428; }
.det-ui img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; box-shadow: none; }
.det-ui .det-vid { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; background: #6f8f78; }
/* "Set the scene": the open light list, then the colour picker, both following the clip */
.sc-panel { position: relative; display: block; padding: 0; }
.sc-mode { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 14px 14px; opacity: 0; transition: opacity .35s; }
.sc-mode.on { opacity: 1; }
.sc-list { list-style: none; margin: 0; padding: 4px; border: 1px solid #3a3d42; border-radius: 9px; background: #1d1f23; }
.sc-list li { position: relative; padding: 3px 8px 3px 20px; border-radius: 6px; font-size: 11px; line-height: 1.35; color: #c9ccd1; white-space: nowrap; }
.sc-list li.cur { background: #557f69; color: #fff; }
.sc-list li.cur::before { content: ""; position: absolute; left: 7px; top: 50%; width: 3px; height: 6px; margin-top: -5px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.sc-sv { --h: 0; position: relative; display: block; height: 42%; border-radius: 8px; background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(var(--h) 100% 50%)); }
.sc-sv i { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 2px solid #e7e8ea; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); transition: left .15s, top .15s; }
.sc-hue { position: relative; display: block; height: 7px; border-radius: 99px; background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.sc-hue i { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #e7e8ea; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); transition: left .15s; }
.sc-cur { display: flex; align-items: center; gap: 8px; }
.sc-cur i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.sc-cur b { padding: 4px 8px; border: 1px solid #3a3d42; border-radius: 6px; font-size: 11px; font-weight: 600; color: #e7e8ea; letter-spacing: .03em; }
.sc-saved { display: flex; gap: 5px; }
.sc-saved i { width: 13px; height: 13px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
@media (max-width: 600px) { .sc-mode { padding: 10px; gap: 6px; } .sc-list li { padding: 2px 6px 2px 18px; font-size: 10.5px; line-height: 1.3; } }
.det-panel { display: flex; flex-direction: column; justify-content: center; gap: 11px; padding: 18px 16px; color: #e7e8ea; font-size: 12px; }
.dp-h { font-weight: 600; color: #e7e8ea; }
.dp-sw { display: flex; gap: 7px; margin-bottom: 4px; }
.dp-sw i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.dp-sw i.on { box-shadow: 0 0 0 2px #232428, 0 0 0 3.5px #8bb59c; }
.dp-row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; color: #a0a5ad; }
.dp-row i { position: relative; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) calc(var(--v) * 100%), #3a3d42 0); }
.dp-row i::after { content: ""; position: absolute; top: 50%; left: calc(var(--v) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #557f69; box-shadow: 0 0 0 2px #e7e8ea; }

/* password field with a hold-to-see eye */
.au-pw { position: relative; display: block; }
.au-pw input { width: 100%; box-sizing: border-box; padding-right: 46px; }
.au-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px;
  background: none; color: var(--muted); cursor: pointer; touch-action: none; user-select: none; }
.au-eye:hover, .au-eye.on { color: var(--accent); }

.au-opt { font-weight: 500; opacity: .7; }

/* "Not just a picture. Everything to make it.": the three things one project exports (render, print files, spec sheet) */
.vs-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 28px; }
.vs-head h2 { font-size: clamp(30px, 3.8vw, 44px); letter-spacing: -.04em; }
.vs-head .lead { margin: 0; }
.out-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.out-card { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.out-vis { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); }
.out-card figcaption { color: var(--muted); font-size: 15px; line-height: 1.5; }
.out-card figcaption b { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 650; color: var(--ink); }
.out-kind { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
/* print files: a ZIP listing in the builder's dark panel colours */
.out-zip { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 18px; background: #232428; color: #e7e8ea; font-size: 13px; }
.oz-head { margin-bottom: 8px; padding-bottom: 10px; border-bottom: 1px solid #3a3d42; font-weight: 600; }
.oz-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; min-width: 0; }
.oz-row:nth-child(2) { background: rgba(139, 181, 156, .14); }
.oz-row i { flex: none; width: 18px; height: 22px; border-radius: 3px; background: linear-gradient(135deg, #8bb59c 0 70%, #6f9a82 0); }
.oz-txt i { background: #6b7078; }
.oz-row em { margin-left: auto; padding-left: 8px; font-style: normal; color: #a0a5ad; font-family: inherit; white-space: nowrap; }
/* spec sheet: a crop of a real exported page */
.out-sheet { background: #fff; border: 1px solid var(--line); }
.out-sheet img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; display: block; }
@media (max-width: 900px) {
  .vs-head { grid-template-columns: 1fr; gap: 12px; }
  .out-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* questions */
.faq h2 { font-size: clamp(30px, 3.8vw, 44px); letter-spacing: -.04em; margin-bottom: 20px; }
.faq-list { max-width: 820px; 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; align-items: center; gap: 16px; padding: 18px 2px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--accent); font-weight: 500; font-size: 18px; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 2px 20px; color: var(--muted); max-width: 70ch; }


/* hero v2 (2026-10-15): centred headline, pain line on top, features in a row under the screenshot */
.hero-main { text-align: center; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-main > .hero-pain { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 14.5px; font-weight: 550; box-shadow: 0 1px 2px rgba(23, 40, 30, .06); }
.hero-pain i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero .hero-main h1 { font-size: clamp(46px, 7.4vw, 104px); line-height: .9; letter-spacing: -.055em; white-space: normal; }
.hero .hero-main h1 span { color: var(--accent); }
.hero-main > .hero-sub { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; color: var(--ink); opacity: .85; max-width: 44ch; margin: 22px auto 26px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-cta .btn:not(.primary) { background: var(--surface); }
.hero-main > .note { margin: 14px 0 0; }
.hero .shot { margin-top: 48px; }
.hero .feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 32px 4px 0; border: 0; }
.hero .feats .ico { width: 32px; height: 32px; }
.hero .feats p { max-width: 36ch; }
@media (max-width: 900px) { .hero .feats { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 520px) { .hero-cta { width: 100%; } .hero-cta .btn { flex: 1 1 100%; } .hero-main > .note { font-size: 13px; } }

/* FAQ centred, the round +/× drawn with lines so it sits dead centre */
.faq .wrap { display: flex; flex-direction: column; align-items: center; }
.faq h2 { text-align: center; }
.faq-list { width: 100%; }
/* the toggle is a sewing button: a rim and 4 holes; a click spins it and a thread stitches an × through the holes */
.faq summary::after { content: ""; width: 30px; height: 30px; border-color: var(--line-strong); background-color: var(--accent-soft);
  box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 4px var(--line);
  background-image:
    radial-gradient(circle, var(--accent) 1.7px, transparent 2.2px), radial-gradient(circle, var(--accent) 1.7px, transparent 2.2px),
    radial-gradient(circle, var(--accent) 1.7px, transparent 2.2px), radial-gradient(circle, var(--accent) 1.7px, transparent 2.2px);
  background-size: 6px 6px; background-repeat: no-repeat;
  background-position: calc(50% - 4px) calc(50% - 4px), calc(50% + 4px) calc(50% - 4px), calc(50% - 4px) calc(50% + 4px), calc(50% + 4px) calc(50% + 4px);
  transition: transform .5s var(--ease); }
.faq summary:hover::after { transform: rotate(30deg); }
.faq details[open] summary::after { transform: rotate(180deg);
  background-image:
    radial-gradient(circle, var(--accent) 1.7px, transparent 2.2px), radial-gradient(circle, var(--accent) 1.7px, transparent 2.2px),
    radial-gradient(circle, var(--accent) 1.7px, transparent 2.2px), radial-gradient(circle, var(--accent) 1.7px, transparent 2.2px),
    linear-gradient(45deg, transparent calc(50% - .8px), var(--accent) calc(50% - .8px), var(--accent) calc(50% + .8px), transparent calc(50% + .8px)),
    linear-gradient(-45deg, transparent calc(50% - .8px), var(--accent) calc(50% - .8px), var(--accent) calc(50% + .8px), transparent calc(50% + .8px));
  background-size: 6px 6px, 6px 6px, 6px 6px, 6px 6px, 11px 11px, 11px 11px;
  background-position: calc(50% - 4px) calc(50% - 4px), calc(50% + 4px) calc(50% - 4px), calc(50% - 4px) calc(50% + 4px), calc(50% + 4px) calc(50% + 4px), center, center; }
@media (prefers-reduced-motion: reduce) { .faq summary::after, .faq summary:hover::after { transition: none; transform: none; } }
@media (max-width: 520px) { .hero-main > .hero-pain { font-size: 12.5px; gap: 8px; padding: 6px 12px 6px 10px; } }

/* hero sub: the strong first line on its own row, in the accent green */
.hero-main > .hero-sub b { display: block; margin-bottom: 6px; color: var(--accent); font-weight: 700; font-size: 1.12em; letter-spacing: -.01em; opacity: 1; }
/* top menu: small caps style, bold, green on hover with a short underline */
.nav { gap: 34px; }
.nav a { position: relative; color: var(--ink); font-size: 12.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav a:hover { color: var(--accent); }
.nav a:hover::after { transform: scaleX(1); }
.top-actions .link { color: var(--ink); font-size: 12.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.top-actions .link:hover { color: var(--accent); }
/* phones and tablets: a menu button opens the main links in a panel under the header (up to 1140px: the French,
   Chinese and Russian menus with the language switcher need about that much room in one row) */
.menu-btn { display: none; }
.nav .nav-login { display: none; }
@media (max-width: 1140px) {
  .top:has(.menu-btn) .wrap { grid-template-columns: 1fr auto auto; gap: 10px; }
  .top:has(.menu-btn) .nav, .top:has(.menu-btn) .top-actions .link { display: none; }
  .menu-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: var(--surface); color: var(--ink); cursor: pointer; }
  .menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
  .menu-btn i { position: relative; }
  .menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; }
  .menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
  .top.open .menu-btn i { background: transparent; }
  .top.open .menu-btn i::before { transform: translateY(6px) rotate(45deg); }
  .top.open .menu-btn i::after { transform: translateY(-6px) rotate(-45deg); }
  .top.open .nav { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 4px 16px 12px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(23, 40, 30, .25); }
  .top.open .nav a { padding: 15px 2px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
  .top.open .nav a:last-child { border-bottom: 0; }
  .top.open .nav a::after { display: none; }
  html:not(.signed-in) .top.open .nav .nav-login { display: block; color: var(--accent); }
}
.hero-main > .hero-sub { max-width: 50ch; text-wrap: balance; }

/* hero: the three steps under the screenshot (01 → 02 → 03) */
.hero .steps { list-style: none; counter-reset: none; position: relative; }
.hero .steps li { align-items: flex-start; }
.hero .steps .ico { width: 22px; height: 22px; padding: 11px; box-sizing: content-box; border-radius: 50%; color: var(--accent); background-color: var(--accent); opacity: 1;
  -webkit-mask: none; mask: none; background: var(--accent-soft); position: relative; }
.hero .steps .ico::before { content: ""; position: absolute; inset: 11px; background: var(--accent); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.step-n { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent); margin-bottom: 4px; }
.hero .steps h3 { text-wrap: balance; }
.hero .steps p { text-wrap: pretty; }
/* the four steps: four equal columns across the screenshot, icon on top, same text width */
.hero .feats.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 32px 0 0; }
.hero .steps li { flex-direction: column; gap: 14px; }
.hero .steps li > div { min-width: 0; }
.hero .steps p { max-width: none; }
@media (max-width: 1100px) { .hero .feats.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 900px) { .hero .feats.steps { grid-template-columns: 1fr; gap: 20px; } .hero .steps li { flex-direction: row; gap: 18px; } }

/* cloud render: dark band like the builder's night theme */
.cloud { background: #262a28; color: #e6ece8; }
.cloud-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.cloud .eyebrow { margin: 0 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8dbba2; }
.cloud h2 { color: #f2f5f3; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.04em; }
.cloud .lead { color: #b9c5be; margin-top: 14px; max-width: 46ch; }
.cloud-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.cloud-points li { display: flex; gap: 14px; align-items: flex-start; color: #b9c5be; font-size: 15.5px; line-height: 1.45; }
.cloud-points b { color: #f2f5f3; font-weight: 650; }
.cloud-points svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: #8dbba2; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cloud-fine { margin: 24px 0 0; font-size: 13.5px; color: #93a19a; }
.cloud-card { background: #1b1f1d; border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-card); padding: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.cc-head { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: #e6ece8; margin-bottom: 12px; }
.cc-dot { width: 8px; height: 8px; border-radius: 50%; background: #8dbba2; box-shadow: 0 0 0 4px rgba(141, 187, 162, .18); }
.cloud-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.cc-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); margin: 14px 0 10px; overflow: hidden; }
.cc-bar i { display: block; height: 100%; width: 72%; border-radius: 6px; background: #8dbba2; }
.cc-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: #93a19a; }
@media (prefers-reduced-motion: no-preference) {
  .cloud.in .cc-bar i { animation: ccFill 3.2s var(--ease) infinite; }
  @keyframes ccFill { 0% { width: 8%; } 80%, 100% { width: 100%; } }
}
@media (max-width: 900px) { .cloud-grid { grid-template-columns: 1fr; gap: 32px; } }

/* "Design beyond the front": the inside neck label on the pattern beside the same label in live 3D */
.det-label { gap: 2px; background: #1d1f23; }
.dl-pane { position: relative; display: block; min-height: 0; overflow: hidden; }
.dl-pane b { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(29, 31, 35, .78); color: #f4f3f0; font-size: 12px; font-weight: 600; letter-spacing: .02em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
/* "Photos for your catalogue": the 4:5 studio render, framed on the print */
.det img.det-cat { object-position: 50% 28%; }
/* the wide card under the grid: fabric material and gradient (a 16:9 3D render and the builder's Material list and gradient bar) */
.det-wide { grid-column: 1 / -1; }
.det-wide p { max-width: 64ch; }
.det-mat { grid-template-columns: 1.9fr 1fr; aspect-ratio: 2.713; }   /* the picture column comes out exactly 16:9 */
.det-mat picture { display: block; min-height: 0; }
.det-mat img { object-position: 50% 50%; }
.mat-panel { gap: 10px; padding: 18px 22px; }
.mat-panel .sc-list { columns: 2; column-gap: 4px; }
.mat-panel .sc-list li { break-inside: avoid; }
.mat-fill { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.mat-seg { display: inline-flex; padding: 2px; border-radius: 8px; background: #1d1f23; border: 1px solid #3a3d42; }
.mat-seg b { padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 500; color: #a0a5ad; }
.mat-seg b.on { background: #3a3d42; color: #fff; }
.mat-grad { position: relative; display: block; height: 34px; margin: 0 7px; }
.mat-bar { position: absolute; left: -7px; right: -7px; top: 0; height: 16px; border-radius: 5px; background: linear-gradient(90deg, #375f4a, #78a481 49%, #ffffff); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.mat-stop { position: absolute; top: 21px; left: calc(var(--p) * 100%); width: 12px; height: 12px; margin-left: -6px; border-radius: 3px; background: var(--c); box-shadow: 0 0 0 1.5px #e7e8ea; }
.mat-mid { position: absolute; top: 17px; left: calc(var(--p) * 100%); width: 6px; height: 6px; margin-left: -3px; background: #e7e8ea; transform: rotate(45deg); }
@media (max-width: 620px) {   /* phones: the picture full width on top, the panel under it */
  .det-wide { grid-column: auto; }
  .det-mat { grid-template-columns: 1fr; aspect-ratio: auto; }
  .det-mat picture { aspect-ratio: 16 / 9; }
  .mat-panel { padding: 16px 16px 14px; }
}

/* ---------- language switcher: EN, FR, 中文, RU (src/assets/lang.js). Looks like the builder's #bLang. ---------- */
.lang-switch { width: auto; height: 32px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--muted); font: 500 13px var(--font); cursor: pointer; }
.lang-switch:hover { color: var(--ink); }
.lang-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav .nav-langs { display: none; }
@media (max-width: 1140px) {
  .top:has(.menu-btn) .top-actions .lang-switch { display: none; }   /* phones and tablets: the languages are in the menu */
  .top.open .nav .nav-langs { display: flex; gap: 8px; padding: 14px 0 4px; }
  .top.open .nav .nav-langs a { flex: 1; padding: 8px 0; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--muted); text-align: center; font-size: 13px; letter-spacing: .04em; }
  .top.open .nav .nav-langs a[aria-current] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
  .top.open .nav .nav-login { border-bottom: 1px solid var(--line); }
}
/* phones, signed in: the logo, the account button and the menu fill the header; "Open builder" is in the account menu */
@media (max-width: 520px) { html.signed-in .top-actions > .btn.sm { display: none; } }
/* legal pages: "English version is the legal one" for visitors from /fr/ /zh/ /ru/ */
.legal-lang { margin: 0 0 24px; padding: 10px 14px; border-radius: var(--r-chip); background: var(--accent-soft); color: var(--ink); font-size: 14px; }
