
:root {
  --navy: #08151c;
  --navy-2: #10242b;
  --ink: #1a140e;
  --paper: #fff7ec;
  --sheet: #f6efe3;
  --lavender: #f3e6d4;
  --lavender-2: #e8d5b8;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(40, 28, 12, 0.12);
  --muted: rgba(255, 255, 255, 0.74);
  --muted-2: #6a5b4a;
  --eyebrow: #f0c27a;
  --green: #96bf48;
  --green-deep: #6f9a2f;
  --purple: #7a6cff;
  --focus: #7ee0c8;
  --header: 72px;
  --wrap: 1180px;
  --shadow: 0 24px 60px rgba(8, 21, 28, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
[id] { scroll-margin-top: calc(var(--header) + 12px); }
body {
  margin: 0;
  color: #fff;
  font-family: Inter, "Segoe UI", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  background-color: var(--navy);
  background-image:
    radial-gradient(1100px 640px at 8% -8%, rgba(240, 156, 64, 0.3), transparent 52%),
    radial-gradient(900px 520px at 96% 4%, rgba(46, 186, 168, 0.24), transparent 48%),
    radial-gradient(820px 540px at 78% 92%, rgba(132, 84, 255, 0.2), transparent 50%),
    radial-gradient(700px 380px at 38% 58%, rgba(150, 191, 72, 0.1), transparent 55%),
    linear-gradient(180deg, #0c1d26 0%, #08151c 46%, #0d1f1a 100%);
  background-size: 140% 140%, 130% 130%, 140% 140%, 120% 120%, 100% 100%;
  background-position: 0% 0%, 100% 0%, 80% 100%, 40% 50%, 0 0;
  animation: dusk-wash 32s ease-in-out infinite alternate;
}
@keyframes dusk-wash {
  to {
    background-position: 18% 12%, 72% 18%, 58% 82%, 52% 42%, 0 0;
  }
}
body.is-zh { font-weight: 420; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font-family: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.en, .zh { display: none; }
body:not(.is-zh):not(.is-i18n) .en { display: revert; }
body.is-zh .zh { display: revert; }
body:not(.is-zh):not(.is-i18n) .en.block, body.is-zh .zh.block { display: block; }
body.is-i18n .en { display: revert; }
body.is-i18n .en.block { display: block; }
body.is-i18n .zh { display: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -40px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.wrap-wide { width: min(1360px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  min-height: var(--header);
  height: auto;
  display: flex;
  align-items: center;
  background: rgba(8, 21, 28, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(240, 194, 122, 0.14);
}
.header-inner {
  width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header);
}
.solo-back {
  display: none;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid rgba(240, 194, 122, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
.solo-back:hover { background: rgba(240, 194, 122, 0.16); }
.solo-back .arrow { display: inline-block; }
html[dir="rtl"] .solo-back .arrow { transform: scaleX(-1); }
body.is-page .solo-back { display: inline-flex; }
@media (max-width: 640px) {
  .solo-back { padding: 7px 10px; }
  body.is-page .wordmark { display: none; }
  .solo-back .en,
  .solo-back .zh {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}
.solo-off { display: none !important; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex: 0 0 auto;
}
.mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(160deg, #b6e06a, var(--green) 45%, var(--green-deep));
  display: grid;
  place-items: center;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.mark svg { display: block; }
.wordmark {
  font-weight: 620;
  letter-spacing: -0.04em;
  font-size: 20px;
}
.wordmark span { font-weight: 450; opacity: 0.92; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}
.nav a { text-decoration: none; opacity: 0.92; overflow-wrap: anywhere; }
.nav a:hover { opacity: 1; }

.header-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang-toggle {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  overflow: hidden;
}
.lang-select-wrap {
  align-items: center;
  overflow: visible;
}
.lang-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  color: #fff;
  border: 0;
  padding: 7px 28px 7px 12px;
  font-size: 13px;
  min-width: 132px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  background-image: url("img/image-1.svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='white' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.lang-select-wrap select option {
  color: #111;
  background: #fff;
}
html[dir="rtl"] .lang-select-wrap select {
  padding: 6px 12px 6px 28px;
  background-position: left 10px center;
}
.text-btn {
  background: none;
  border: 0;
  color: #fff;
  font-size: 15px;
  padding: 8px 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  font-weight: 560;
  line-height: 1;
  white-space: nowrap;
}
.btn-light { background: #fff; color: #111; padding: 12px 22px; font-size: 16px; }
.btn-light:hover { transform: translateY(-1px); }
.btn-dark { background: #111; color: #fff; padding: 12px 18px; font-size: 15px; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.header-actions .btn-light { padding: 10px 18px; font-size: 15px; }
a.btn-dark,
a.btn-dark:visited,
.sheet a.btn-dark,
.sheet a.btn-dark:visited,
.reader a.btn-dark {
  background: #111;
  color: #fff;
}
a.btn-light,
a.btn-light:visited,
.sheet a.btn-light,
.bp-form a.btn-light,
.bp-result a.btn-light {
  background: #fff;
  color: #111;
}
.bp-form .btn-light,
.bp-result .btn-light,
.sheet .btn-light {
  border: 1px solid #1a1a1a;
  color: #111;
  background: #fff;
}
.bp-form .btn-dark,
.bp-result .btn-dark {
  color: #fff;
  background: #111;
}

.menu-btn {
  display: none;
  margin-inline-start: auto;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 12px;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  padding: 28px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 50% 12%, rgba(255, 184, 90, 0.2), transparent 58%),
    radial-gradient(520px 280px at 88% 78%, rgba(64, 210, 186, 0.14), transparent 52%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 52px 52px, 52px 52px;
}
.hero-stage { position: relative; height: 760px; }
.canvas {
  position: absolute;
  left: 50%;
  top: 86px;
  transform: translateX(-50%);
  z-index: 4;
  width: min(560px, calc(100% - 80px));
  border: 1px solid rgba(240, 194, 122, 0.42);
  border-radius: 14px;
  padding: 54px 48px 46px;
  text-align: center;
  background: rgba(7, 16, 22, 0.94);
  box-shadow: 0 0 0 8px rgba(240, 176, 90, 0.06);
}
.tag {
  position: absolute;
  top: -12px;
  inset-inline-end: 28px;
  background: #3a2a12;
  color: #f6ddb0;
  border-radius: 7px;
  font-size: 12px;
  padding: 3px 8px;
}
.eyebrow {
  color: var(--eyebrow);
  font-size: 15px;
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.display {
  font-weight: 330;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  overflow-wrap: anywhere;
}
.hero h1 { font-size: clamp(42px, 4.6vw, 64px); }
.sub {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 380;
}
.hero-cta { margin-top: 28px; }
.fine { margin: 14px 0 0; color: rgba(255, 255, 255, 0.62); font-size: 14px; }
.zh-line { color: #ddd8ff; }

.float {
  position: absolute;
  z-index: 1;
  background: rgba(14, 28, 32, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.swatch-card { width: 220px; left: 0; top: 48px; padding: 12px; }
.product-face {
  height: 168px;
  border-radius: 12px;
  background: #1a1d2e;
  position: relative;
  overflow: hidden;
}
.dots {
  position: absolute;
  left: 36px;
  bottom: -16px;
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 8px 10px;
  border-radius: 12px;
}
.dots i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: block;
}
.tile-row { position: absolute; z-index: 1; right: 0; top: 28px; display: flex; gap: 12px; }
.tile {
  width: 112px;
  height: 132px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #16182a;
  padding: 10px;
}
.tile .ph { height: 78px; border-radius: 10px; overflow: hidden; background: #16182a; }
.editor {
  left: 0;
  bottom: 28px;
  width: 220px;
  padding: 14px 14px 16px;
  color: #eceaf5;
  font-size: 14px;
}
.editor .label { color: #b7b3c9; font-size: 13px; margin: 8px 0; }
.editor .row { display: flex; gap: 8px; align-items: center; padding: 4px 0; }
.editor .add { color: #7ee0c8; }
.preview {
  right: 0;
  bottom: 46px;
  width: 200px;
  padding: 10px;
}
.jar {
  height: 150px;
  border-radius: 12px;
  background: #1a1d2e;
  position: relative;
  overflow: hidden;
}
.mini-btn {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: #6d63f6;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  padding: 6px 10px;
}

#models {
  background: radial-gradient(760px 300px at 0% 40%, rgba(46, 186, 168, 0.14), transparent 70%);
}
#builder {
  background: radial-gradient(820px 340px at 100% 0%, rgba(240, 156, 64, 0.16), transparent 66%);
}
#ready {
  background: radial-gradient(640px 280px at 50% 110%, rgba(150, 191, 72, 0.14), transparent 62%);
}
#library {
  background: radial-gradient(700px 260px at 80% 0%, rgba(132, 84, 255, 0.12), transparent 65%);
}
.section { padding: 88px 0; }
.section h2 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 330;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}
.lead { font-size: 18px; color: var(--muted); max-width: 720px; }
.lead a, .quiet a, .chapter a { color: #fff; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.ai { padding-top: 10px; }
.ai-panel {
  margin-top: 28px;
  border-radius: 28px;
  padding: 42px 24px 28px;
  background:
    radial-gradient(500px 180px at 86% 12%, rgba(255, 196, 110, 0.32), transparent 52%),
    radial-gradient(600px 240px at 12% 0%, rgba(46, 196, 182, 0.38), transparent 55%),
    linear-gradient(180deg, #1b4a44, #163048 42%, #1a1830);
  position: relative;
  overflow: hidden;
}
.prompt {
  width: min(640px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a1524;
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  border: 2px solid #ff4ad8;
  box-shadow: 0 0 24px rgba(255, 60, 200, 0.45);
}
.prompt input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 16px;
  outline: none;
}
.go {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #2a2438;
  color: #fff;
  font-size: 18px;
}
.plan {
  width: min(860px, calc(100% - 12px));
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}
.plan article, .ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px;
}
.plan h3 { margin: 0 0 6px; font-size: 16px; font-weight: 560; }
.plan p { margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 14px; }
.ghost { min-height: 92px; opacity: 0.7; }

.model-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.arrows { display: flex; gap: 8px; }
.arrows button, .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
}
.scroller {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.scroller::-webkit-scrollbar { height: 0; }
.model {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: #12222a;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
}
.model:hover, .model:focus-visible, .model.is-on {
  border-color: rgba(196, 191, 252, 0.55);
}
.model:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.model .shot { height: 168px; overflow: hidden; background: #0e1220; }
.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.06);
}
.pic {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  margin: 0 0 12px;
  background: #e8dcc8;
  filter: saturate(0.9) contrast(1.06);
}
.pic-wide { height: 200px; margin-bottom: 18px; }
.region .pic { height: 168px; margin-bottom: 14px; object-position: center; }
.story .pic { height: 176px; }
.faq .pic { height: 220px; margin: 8px 0 28px; border-radius: 18px; }
.outline .pic { height: 118px; margin: 0 0 12px; }
.chapter .pic { height: 210px; margin: 12px 0 16px; }
.calc-photo { min-height: 220px; height: 100%; margin: 0; border-radius: 16px; }
.bp-photo { height: 180px; margin: 0 0 18px; }
.drawer .pic { height: 110px; margin-bottom: 14px; }
#ready .pic { border: 1px solid rgba(255, 255, 255, 0.12); }
.model .meta { padding: 14px 14px 16px; }
.model h3 { margin: 0 0 4px; font-size: 18px; }
.model p { margin: 0; color: var(--muted); font-size: 14px; }
.pill {
  display: inline-flex;
  margin-top: 12px;
  background: #1f5a4e;
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}
.sheet {
  background:
    radial-gradient(700px 240px at 0% 0%, rgba(240, 176, 90, 0.22), transparent 55%),
    radial-gradient(520px 200px at 100% 0%, rgba(120, 186, 150, 0.16), transparent 50%),
    var(--paper);
  color: var(--ink);
  border-radius: 36px;
  margin: 8px 10px;
  padding: 28px 0 10px;
}
.sheet .lead, .sheet .quiet, .sheet .chapter p, .sheet li { color: #3c3944; }
.sheet a { color: #2f4a38; }
.split {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}
.feature-grid, .two, .three, .stories, .link-grid, .region-grid {
  display: grid;
  gap: 16px;
}
.two { grid-template-columns: 1fr 1fr; margin: 22px 0; }
.three { grid-template-columns: 1.2fr 1fr 0.8fr; }
.feature-grid { grid-template-columns: 1fr 1fr; }
.card, .outline, .story, .region, .faq details, .calc, .desk {
  border-radius: 22px;
}
.card {
  background: var(--lavender);
  color: var(--ink);
  padding: 18px;
}
a.tap {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
a.card.tap,
a.story.tap {
  color: var(--ink);
}
.sheet a.tap,
#ready a.tap,
#steps a.tap,
.hero a.tap {
  color: inherit;
}
a.tap:hover,
a.tap:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 18, 28, 0.16);
}
a.tap:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.hero a.tap:hover,
.hero a.tap:focus-visible {
  transform: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
#ready a.tap:hover,
#ready a.tap:focus-visible,
#steps a.tap:hover,
#steps a.tap:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.32);
}
.card h3, .outline h3, .story h3 { margin: 12px 0 6px; font-size: 22px; font-weight: 560; letter-spacing: -0.02em; }
.visual { height: 180px; border-radius: 16px; background: #ece8f4; position: relative; overflow: hidden; }

.marquee { overflow: hidden; margin: 28px 0; }
.marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: slide 42s linear infinite;
}
.logo-bit {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.04em;
}
@keyframes slide { to { transform: translateX(-50%); } }
.link-grid { grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.link-grid a { text-decoration: none; padding: 8px 0 16px; }
.link-grid h3 { margin: 0 0 4px; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.4); display: inline; }
.link-grid p { margin: 8px 0 0; color: var(--muted); }

.outline {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 22px;
  min-height: 160px;
  background: rgba(255, 255, 255, 0.02);
}
.num { color: #f0c27a; font-weight: 560; margin-inline-end: 8px; }
.step-row { display: flex; gap: 14px; overflow: hidden; }

.manual-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 90px;
  background: var(--lavender);
  color: var(--ink);
  border-radius: 18px;
  padding: 14px;
}
.toc b { display: block; margin-bottom: 8px; }
.toc a {
  display: block;
  text-decoration: none;
  color: #322b40;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 8px;
}
.toc a.active, .toc a:hover { background: #fff; }
.route {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 8px;
}
.route span, .chip {
  background: var(--lavender-2);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}
.chapter {
  padding: 28px 0;
  border-top: 1px solid var(--line-dark);
}
.chapter h3 { font-size: 32px; font-weight: 400; letter-spacing: -0.03em; margin: 6px 0 8px; }
.manual-layout > .toc.solo-off + div { grid-column: 1 / -1; }
.chapter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.chapter-list > .chapter.is-open { grid-column: 1 / -1; border-top: 0; }
.chapter.is-card {
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  background: #fffaf2;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.chapter.is-card:hover,
.chapter.is-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(111, 154, 47, 0.5);
  box-shadow: 0 14px 34px rgba(40, 28, 12, 0.14);
}
.chapter.is-card h3 { font-size: 24px; }
.chapter.is-card .pic { height: 150px; margin: 10px 0 4px; }
.chapter.is-card > .block,
.chapter.is-card > .calendar,
.chapter.is-card > .table-wrap { display: none !important; }
.chapter-more {
  margin-top: auto;
  padding-top: 14px;
  color: var(--green-deep);
  font-size: 14px;
  font-weight: 600;
}
.chapter:not(.is-card) .chapter-more { display: none; }
@media (max-width: 760px) {
  .chapter-list { grid-template-columns: 1fr; }
}
.kicker { color: #7a6a55; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.action {
  background: var(--lavender);
  color: var(--ink);
  border-radius: 16px;
  padding: 12px 14px;
  margin-top: 12px;
}
.note {
  font-size: 14px;
  color: var(--muted-2);
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 12px 0; }
.calendar div { background: var(--lavender); color: var(--ink); border-radius: 10px; padding: 8px; font-size: 12px; min-height: 64px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.tabs button {
  border: 1px solid #1a1a1a;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 560;
}
.tabs button[aria-selected="true"] { background: #111; color: #fff; border-color: #111; }
.region-grid { grid-template-columns: 1fr; }
.region { background: var(--lavender); color: var(--ink); padding: 16px 18px; }
.region h3 { margin-top: 0; color: var(--ink); }
.region p { color: #3c3328; }

.calc {
  background: var(--lavender);
  color: var(--ink);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.calc label,
.calc p,
.calc .note,
.calc .metric,
.calc .metric b {
  color: var(--ink);
}
.calc .metric span { color: #4a4036; }
label { display: grid; gap: 6px; font-size: 14px; margin-bottom: 10px; }
input[type="number"], input[type="text"], select {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 16px;
  color: #111;
}
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric { background: #fff; border-radius: 14px; padding: 12px; }
.metric b { display: block; font-size: 26px; letter-spacing: -0.03em; font-weight: 500; }
.metric span { color: #666; font-size: 13px; }

.bp-form, .bp-result {
  background: var(--lavender);
  color: #121212;
  border-radius: 22px;
  padding: 22px;
  margin-top: 22px;
}
.bp-form .fine, .bp-result .fine, #bp-progress { color: #5e5a66; }
#builder #bp-privacy.fine { color: rgba(255, 255, 255, 0.72); }
#builder .display, #builder .lead, .bp-result, .bp-toolbar .btn, .bp-toolbar .text-btn {
  overflow-wrap: anywhere;
}
.bp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
}
.bp-field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 10px;
}
.bp-field label { margin-bottom: 0; }
.bp-form input[type="text"],
.bp-form input[type="number"],
.bp-form select {
  width: 100%;
  max-width: 100%;
  padding-inline: 12px;
}
.bp-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-block-start: 8px;
}
.bp-toolbar .btn, .bp-toolbar .text-btn {
  white-space: normal;
  text-align: center;
}
.bp-reset { color: #2f4a38; }
.bp-output { overflow-wrap: anywhere; }
.bp-output h3, .bp-h {
  margin: 18px 0 8px;
  font-size: 20px;
  font-weight: 560;
  letter-spacing: -0.02em;
}
.bp-output p { margin: 0 0 10px; color: #3c3944; }
.bp-check-wrap { margin-top: 8px; }
#bp-status { min-height: 1.4em; color: var(--eyebrow); }
#builder #bp-privacy { margin-block-start: 12px; }
.bp-output .bp-note {
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  color: #3c3944;
}
.bp-errors { color: #8b1d3a; min-height: 1.2em; }
#bp-form [aria-invalid="true"] {
  outline: 2px solid #8b1d3a;
  outline-offset: 1px;
}
.bp-result-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.bp-result-bar .btn { white-space: normal; }
.bp-banner {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  color: #3c3944;
}
.bp-banner[hidden] { display: none; }
.bp-result-title {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.bp-block {
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px 8px;
  margin-bottom: 12px;
}
.bp-block h3, .bp-days h4 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 560;
  letter-spacing: -0.02em;
}
.bp-days h4 {
  margin-top: 12px;
  font-size: 15px;
  color: #5e5a66;
}
.bp-block p { margin: 0 0 10px; color: #3c3944; }
.bp-math p { font-variant-numeric: tabular-nums; }
.bp-fallback {
  display: block;
  width: 100%;
  min-height: 140px;
  margin-block-start: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-dark);
  font: inherit;
  color: #111;
}
.bp-fallback[hidden] { display: none; }

.stories { grid-template-columns: 1fr 1fr; }
.story { background: var(--lavender); color: var(--ink); padding: 18px; }
.story .who { color: #7a6a55; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.story h3, .card h3, .story p, .card p { color: var(--ink); }

.faq {
  background:
    radial-gradient(720px 280px at 82% 0%, rgba(46, 186, 168, 0.18), transparent 55%),
    radial-gradient(520px 220px at 8% 100%, rgba(240, 156, 64, 0.12), transparent 50%),
    linear-gradient(180deg, #06141a, #040c10);
  padding: 80px 0 40px;
}
.faq h2 { font-weight: 330; font-size: clamp(40px, 5vw, 64px); }
.faq details { border-bottom: 1px solid rgba(255, 255, 255, 0.16); padding: 6px 0; }
.faq summary { cursor: pointer; font-size: 20px; padding: 16px 36px 16px 0; padding-inline: 0 36px; list-style: none; position: relative; overflow-wrap: anywhere; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; position: absolute; inset-inline-end: 0; top: 12px; width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; display: grid; place-items: center; }
.faq details[open] summary:after { content: "–"; }
.faq details p { margin: 0 0 16px; color: rgba(255, 255, 255, 0.78); max-width: 760px; }

.site-footer {
  background:
    radial-gradient(600px 180px at 20% 0%, rgba(150, 191, 72, 0.1), transparent 60%),
    #061018;
  padding: 28px 0 20px;
  border-top: 1px solid rgba(240, 194, 122, 0.12);
}
.foot-grid { display: grid; grid-template-columns: 80px repeat(4, 1fr); gap: 18px; }
.site-footer h3 { margin: 0 0 10px; font-size: 16px; }
.site-footer a { display: block; text-decoration: none; color: rgba(255, 255, 255, 0.78); padding: 4px 0; font-size: 14px; }
.legal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 22px;
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}
.legal nav { display: flex; gap: 14px; flex-wrap: wrap; }

.reader-back {
  position: fixed;
  inset: 0;
  top: var(--header);
  background: rgba(4, 10, 14, 0.92);
  z-index: 80;
}
.reader {
  position: fixed;
  z-index: 81;
  top: calc(var(--header) + 12px);
  bottom: 12px;
  inset-inline: 0;
  margin-inline: auto;
  width: min(760px, calc(100% - 28px));
  max-height: none;
  overflow: auto;
  background:
    radial-gradient(520px 200px at 0 0, rgba(240, 176, 90, 0.14), transparent 55%),
    var(--paper);
  color: var(--ink);
  border-radius: 22px;
  padding: 18px 22px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.reader-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: -18px;
  margin: -18px -22px 12px;
  padding: 14px 22px 10px;
  background: var(--paper);
  z-index: 1;
}
.reader-bar .kicker { margin: 0; }
.reader .text-btn,
.reader-bar .text-btn {
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 560;
}
.reader .chapter {
  border: 0;
  padding: 0;
}
.reader .chapter a:not(.btn):not(.btn-dark):not(.text-btn) {
  color: #2f4a38;
}
.reader .chapter h3 { font-size: clamp(26px, 4vw, 34px); }
.reader .chapter .pic { height: 168px; }
.reader .action { margin-bottom: 4px; }
.reader .text-btn { color: #fff; }
.reader-wide {
  width: min(1040px, calc(100% - 12px));
  top: calc(var(--header) + 8px);
  bottom: 8px;
  max-height: none;
}
.reader-dark {
  background: #07141a;
  color: #fff;
}
.reader-dark .reader-bar { background: #07141a; }
.reader-dark .kicker { color: #f0c27a; }
.reader-dark .text-btn,
.reader-dark .reader-bar .text-btn {
  background: #fff;
  color: #111;
}
.reader-dark .card,
.reader-dark .story,
.reader-dark .region,
.reader-dark .calc,
.reader-dark .toc,
.reader-dark .action,
.reader-dark .chip,
.reader-dark .route span,
.reader-dark .calendar div,
.reader-dark .bp-form,
.reader-dark .bp-result,
.reader-dark .sheet,
.reader-dark .metric {
  color: var(--ink);
}
.reader-dark .card h3,
.reader-dark .card p,
.reader-dark .story h3,
.reader-dark .story p,
.reader-dark .region h3,
.reader-dark .region p,
.reader-dark .calc label,
.reader-dark .calc p,
.reader-dark .calc .note,
.reader-dark .calc .metric,
.reader-dark .calc .metric b,
.reader-dark .toc b,
.reader-dark .toc a,
.reader-dark .action,
.reader-dark .sheet,
.reader-dark .sheet h2,
.reader-dark .sheet h3,
.reader-dark .sheet p,
.reader-dark .sheet li,
.reader-dark .sheet a,
.reader-dark .sheet .lead,
.reader-dark .sheet .quiet,
.reader-dark .sheet .display,
.reader-dark .chapter,
.reader-dark .chapter h3,
.reader-dark .chapter p,
.reader-dark .chapter li,
.reader-dark .chapter a,
.reader-dark .bp-form,
.reader-dark .bp-form label,
.reader-dark .bp-field,
.reader-dark .bp-result,
.reader-dark .bp-output p,
.reader-dark .bp-result-title,
.reader-dark .metric b {
  color: var(--ink);
}
.reader-dark .story .who,
.reader-dark .sheet .kicker,
.reader-dark .chapter .kicker,
.reader-dark .calc .metric span,
.reader-dark .calc .note,
.reader-dark .bp-form .fine,
.reader-dark .bp-result .fine {
  color: #4a4036;
}
.reader-dark .btn-dark,
.reader-dark a.btn-dark,
.reader-dark .tabs button[aria-selected="true"] {
  color: #fff;
}
.reader-wide .hero {
  min-height: 0;
  padding: 8px 0 16px;
}
.reader-wide .hero-stage { height: auto; }
.reader-wide .canvas {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: auto;
  margin: 0;
  z-index: 1;
}
.reader-wide a.float.tap,
.reader-wide a.tile.tap,
.reader-wide .tile-row {
  display: none;
}
.reader-wide .section,
.reader-wide .sheet {
  margin: 0;
  border-radius: 12px;
}
.section-hold {
  visibility: hidden;
  pointer-events: none;
}
.drawer-back {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 60;
}
.drawer {
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  height: 100%;
  width: min(420px, 100%);
  background: #0c1c22;
  color: #fff;
  z-index: 70;
  padding: 22px;
  overflow: auto;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.35);
}
html[dir="rtl"] .drawer { box-shadow: 20px 0 60px rgba(0, 0, 0, 0.35); }
html[dir="rtl"] .arrows button { transform: scaleX(-1); }
html[dir="rtl"] body {
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Noto Sans Arabic", "Geeza Pro", "Noto Sans Hebrew", "David Libre", Inter, sans-serif;
}
.checks { list-style: none; padding: 0; margin: 12px 0; }
.checks li { padding: 6px 0; }
.checks label { display: flex; gap: 8px; align-items: flex-start; }
.hidden { display: none !important; }
body.reader-open { overflow: hidden; }

body.is-page .hero {
  min-height: 0;
}
body.is-page .hero-stage { height: auto; }
body.is-page .canvas {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: min(760px, calc(100% - 32px));
  margin: 28px auto 40px;
}
body.is-page a.float.tap,
body.is-page a.tile.tap,
body.is-page .hero-stage .tile-row {
  display: none;
}
body.is-page .sheet {
  margin: 0;
  border-radius: 0;
  min-height: calc(100vh - var(--header) - 80px);
}
body.is-page .section,
body.is-page .faq {
  min-height: calc(100vh - var(--header) - 80px);
}
body.is-page #nav a[aria-current="page"] {
  opacity: 1;
  color: #f0c27a;
}
.nav a[aria-current="page"] {
  opacity: 1;
}
.progress-line { height: 8px; background: #24283a; border-radius: 99px; overflow: hidden; }
.progress-line span { display: block; height: 100%; background: var(--green); width: 0; }

@media (max-width: 1240px) {
  .nav { gap: 14px; font-size: 14px; }
  .header-inner { gap: 16px; }
  a.float.tap,
  a.tile.tap,
  .hero-stage .tile-row {
    display: none;
  }
  .hero-stage { height: auto; }
  .canvas {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: min(760px, calc(100% - 32px));
    margin: 28px auto 24px;
  }
}
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .nav, .header-actions .text-btn { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: #08151c;
    padding: 16px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: flex-start;
    z-index: 95;
  }
  .reader,
  .reader-wide {
    width: calc(100% - 8px);
    top: calc(var(--header) + 6px);
    bottom: 6px;
    border-radius: 16px;
  }
  .hero-stage { height: auto; }
  .canvas { position: relative; left: auto; top: auto; transform: none; width: auto; margin: 28px 16px 24px; }
  .header-actions .text-btn { display: none; }
  .wordmark { font-size: 15px; }
  .header-inner { gap: 10px; width: calc(100% - 20px); }
  .header-actions { gap: 8px; }
  .header-actions .btn-sm { padding: 8px 12px; font-size: 13px; }
  a.float.tap,
  a.tile.tap,
  .hero-stage .tile-row {
    display: none;
  }
  .two, .feature-grid, .three, .plan, .link-grid, .manual-layout, .calc, .stories, .region-grid, .foot-grid, .step-row, .bp-grid {
    grid-template-columns: 1fr;
  }
  .step-row { display: grid; }
  .tile-row { position: static; }
  .split, .model-head { flex-direction: column; align-items: start; }
  .toc { position: static; }
}
@media (max-width: 520px) {
  .header-actions .btn-sm { display: none; }
  .lang-select-wrap select {
    min-width: 108px;
    max-width: 128px;
    font-size: 12px;
  }
  .wordmark { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  body { animation: none; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .site-footer, .skip, .drawer, .drawer-back, .reader, .reader-back,
  main > *:not(#builder),
  #builder .bp-form, #builder .bp-toolbar, #bp-privacy, #bp-status, .bp-fallback,
  .bp-result-bar, #bp-errors, #builder .pic {
    display: none !important;
  }
  body, #builder, .bp-result, .bp-output {
    background: #fff !important;
    color: #111 !important;
  }
  .bp-result { display: block !important; box-shadow: none; }
  .hidden { display: none !important; }
}

