/* The public product page uses the same copper identity as the portal. */
body { background: radial-gradient(ellipse at 75% 8rem, #f8e5c385, transparent 40rem), #fffdfa; }
.wrap { width: min(100% - 3rem, 79rem); }
.top { min-height: 5rem; }
.top nav { gap: clamp(.8rem, 3vw, 1.85rem); }
.mission {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(1.25rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(1.4rem, 5vw, 3rem) clamp(2.4rem, 7vw, 4.5rem);
}
.mission-copy h2 { color: #312015; font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: .985; letter-spacing: -.068em; }
.mission-copy h2 span { display: block; color: #934622; }
.mission-intro { max-width: 28rem; margin-block: 1.35rem 1.5rem; color: #614632; font-size: clamp(.99rem, 1.9vw, 1.16rem); line-height: 1.62; }
.mission-actions { display: flex; align-items: center; gap: .75rem 1.15rem; flex-wrap: wrap; }
.mission-primary { min-height: 3.05rem; background: #f1c16c; }
.move-link { color: #703919; text-underline-offset: .22rem; font-size: .91rem; font-weight: 690; }
.demo-workbench { padding: clamp(.85rem, 2.6vw, 1.35rem); border: 1px solid #ddbf90; border-radius: 1.35rem; background: #fffaf0; box-shadow: 0 20px 55px #82442124; }
.workbench-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .7rem; }
.workbench-head h2 { font-size: 1.26rem; letter-spacing: -.03em; }
.workbench-head > span { color: #704926; font-size: .75rem; padding: .22rem .48rem; border: 1px solid #ecd5b0; background: #fff1d9; border-radius: 2rem; font-weight: 650; }
.sector-pills { display: flex; flex-wrap: wrap; gap: .36rem; margin-top: .75rem; }
.sector-pills button, .segment button { color: #50351f; background: #fffaf1; border: 1px solid #e4cdac; border-radius: .55rem; padding: .38rem .58rem; cursor: pointer; font-size: .82rem; font-weight: 680; }
.sector-pills button[aria-pressed="true"] { background: #f4d699; border-color: #cb9956; }
.name-input { margin-top: .75rem; font-size: .8rem; }
#ime { min-height: 2.45rem; padding: .48rem .64rem; }
.preview-tools { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: space-between; margin-block: .65rem .5rem; }
.segment { display: inline-flex; flex-wrap: wrap; gap: .21rem; }
.segment button { padding: .29rem .42rem; background: transparent; border-color: transparent; }
.segment button[aria-pressed="true"] { background: #f5e6cc; border-color: #e0c198; }
[hidden] { display: none !important; }
.sample-viewport {
  --demo-accent: #535836;
  --demo-paper: #edeedb;
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: .42rem;
  border-radius: .82rem;
  background: #f2e8d9;
}
.sample-viewport[data-theme="studio"] { --demo-accent: #8b431f; --demo-paper: #f5ddba; }
.sample-viewport[data-theme="association"] { --demo-accent: #325b4d; --demo-paper: #e9efde; }
.sample-browser { width: 100%; max-width: 100%; min-width: 0; border: 1px solid #e3cdaa; border-radius: .65rem; background: #fffdf8; overflow: hidden; container-type: inline-size; transition: width .25s ease; }
.sample-viewport[data-device="mobile"]:not([data-mode="tools"]) .sample-browser { width: min(100%, 14rem); }
.sample-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.45rem; min-height: 2.05rem; padding: .35rem .62rem; color: #624833; font-size: .78rem; font-weight: 740; }
.sample-bar > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sample-dots { flex: none; width: .31rem; height: .31rem; border-radius: 50%; background: #a65a34; box-shadow: .46rem 0 #c58753, .92rem 0 #e0bb7c; }
.sample-site { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); min-height: 13rem; background: var(--demo-paper); }
.sample-site img { grid-column: 2; grid-row: 1; display: block; width: 100%; height: 100%; max-height: 16rem; object-fit: cover; object-position: 63% 48%; }
.sample-copy { grid-column: 1; grid-row: 1; align-self: center; padding: clamp(.75rem, 2.5vw, 1.25rem); }
.sample-copy h3 { font-size: clamp(1.02rem, 2.6vw, 1.7rem); line-height: 1.04; letter-spacing: -.044em; color: #2c3021; text-wrap: balance; }
.sample-copy p { margin-top: .36rem; color: #493f2f; font-size: .82rem; line-height: 1.42; }
.sample-action { display: inline-block; background: var(--demo-accent); color: #fffdf8; margin-top: .6rem; padding: .26rem .42rem; border-radius: .36rem; font-size: .72rem; font-weight: 680; }
@container (max-width: 380px) {
  .sample-site { grid-template-columns: minmax(0, 1fr); }
  .sample-site img { grid-column: 1; grid-row: 1; max-height: 9rem; }
  .sample-copy { grid-row: 2; }
}
.sample-tools { min-height: 13rem; padding: .75rem; background: #f8f0e2; }
.sample-tools h3 { font-size: .97rem; }
.tool-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 8.6rem), 1fr)); gap: .45rem; margin-top: .55rem; }
.tool-card { padding: .55rem; border: 1px solid #decaae; border-radius: .48rem; background: #fffcf5; }
.tool-card h4 { margin: 0; font-size: .83rem; }
.tool-card ul { padding-left: 1.05rem; margin-block: .3rem 0; font-size: .75rem; line-height: 1.5; color: #5e4a34; }
#modules-empty { color: #5e4a34; padding-top: .45rem; font-size: .82rem; }
.demo-options { padding-top: .58rem; }
.demo-options p { font-size: .79rem; font-weight: 680; }
.module-options { display: flex; align-items: center; flex-wrap: wrap; gap: .34rem .65rem; padding-top: .37rem; }
.add-module { display: inline-flex; align-items: center; gap: .22rem; font-size: .79rem; cursor: pointer; }
.add-module input { flex: none; width: .98rem; height: .98rem; margin: .13rem; padding: 0; border: 0; accent-color: #935026; }
.demo-note { margin-top: .65rem; color: #6d523c; font-size: .76rem; line-height: 1.4; }
.mission-section { border-top: 1px solid #ead8bd; padding-top: 1.4rem; scroll-margin-top: .7rem; }
.mission-section h2, .migration h2 { font-size: clamp(1.65rem, 4vw, 2.75rem); letter-spacing: -.054em; }
.why-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; padding-top: .8rem; }
.why-card { border: 1px solid #e7d1aa; background: #fff7e8; border-radius: .75rem; padding: clamp(.85rem, 2.5vw, 1.3rem); }
.why-card h3 { font-size: 1.01rem; letter-spacing: -.018em; }
.why-card p, .migration p { color: #614632; margin-top: .38rem; font-size: .91rem; line-height: 1.55; }
.migration { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; border-top: 1px solid #ead8bd; margin-block: 2.15rem; padding-top: 1.35rem; }
.migration p { max-width: 35rem; }
@media (max-width: 870px) {
  .wrap { width: min(100% - 2rem, 79rem); }
  .mission { grid-template-columns: minmax(0,1fr); }
  .mission-copy h2 { font-size: clamp(2.6rem,8.8vw,4.5rem); }
  .mission-copy h2 span { margin-top: .08em; }
  .demo-workbench { width: min(100%,41rem); justify-self: center; }
}
@media (max-width: 620px) {
  .why-grid { grid-template-columns: minmax(0,1fr); }
  .top nav { column-gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sample-browser { transition: none; }
}

/* Three-step story and builder */
.story { margin-top: 1.7rem; padding: .78rem; border: 1px solid #ead5b7; border-radius: .82rem; background: #fff9ef; }
.story-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem; }
.story-top h2 { font-size: .88rem; }
.story-toggle { border: 1px solid #e8cda4; border-radius: .4rem; color: #624326; background: #fffaf2; padding: .26rem .45rem; font-size: .75rem; cursor: pointer; }
.story-controls { display: flex; flex-wrap: wrap; gap: .22rem; margin-top: .5rem; }
.story-controls button { cursor: pointer; font-size: .74rem; border: 1px solid transparent; border-radius: .4rem; background: #f4ebdc; color: #684a2e; padding: .28rem .43rem; font-weight: 650; }
.story-controls button[aria-pressed="true"] { background: #f2ce8d; border-color: #c99253; }
.story-stage { display: flex; align-items: center; gap: .55rem; min-height: 4.55rem; margin-top: .45rem; padding: .65rem; overflow: hidden; border-radius: .55rem; background: #f8e9cf; }
.story-stage::after { content: ""; flex: none; width: 3.2rem; height: 2.35rem; border: 1px solid #ddaf72; border-radius: .32rem; background: linear-gradient(90deg, #fff8ea 0 42%, #eabb79 42%); transition: width .3s ease, height .3s ease; }
.story-stage[data-active="1"]::after { height: 2.15rem; background: repeating-linear-gradient(to bottom, #fff9ed 0 .48rem, #deaf6d .48rem .58rem); }
.story-stage[data-active="2"]::after { width: 1.62rem; height: 2.75rem; background: linear-gradient(#fff9ed 0 28%, #deaf6d 28% 75%, #fff9ed 75%); }
.story-frame { flex: 1 1 0; min-width: 0; animation: story-arrive .38s ease-out both; }
.story-frame strong { font-size: .85rem; }
.story-frame p { margin-top: .22rem; color: #62482f; font-size: .8rem; line-height: 1.4; }
@keyframes story-arrive { from { transform: translateX(.8rem); opacity: .35; } to { transform: translateX(0); opacity: 1; } }
.wizard-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; margin: .8rem 0; padding: 0; list-style: none; counter-reset: step; }
.wizard-progress li { display: flex; align-items: center; gap: .29rem; padding: .32rem .38rem; border: 1px solid #e6d6bd; border-radius: .42rem; color: #735438; font-size: .73rem; }
.wizard-progress li::before { counter-increment: step; content: counter(step); color: #8b4721; font-weight: 750; }
.wizard-progress li[aria-current="step"] { background: #f9e4be; border-color: #d8ac71; color: #432d1a; font-weight: 700; }
.wizard-actions { display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.wizard-actions .button { min-height: 2.5rem; padding: .4rem .75rem; font-size: .88rem; }
.sample-viewport[data-style="editorial"] { --demo-paper: #fff7eb; }
.sample-viewport[data-style="editorial"] .sample-copy h3 { font-family: Georgia, serif; font-weight: 500; letter-spacing: -.02em; }
.sample-viewport[data-style="editorial"] .sample-site img { grid-column: 1; }
.sample-viewport[data-style="editorial"] .sample-copy { grid-column: 2; }
.saved-site .sample-viewport { margin-top: 1rem; max-width: 48rem; }
.saved-site h1 { margin-top: .6rem; overflow-wrap: anywhere; }
.draft-modules { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.draft-chip { border: 1px solid #e8cda4; border-radius: .45rem; padding: .32rem .55rem; background: #fff5e4; }
@container (max-width: 380px) {
  .sample-viewport[data-style="editorial"] .sample-copy { grid-column: 1; }
}
@media (max-width: 550px) {
  .story { margin-top: 1rem; }
  .story-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .story-stage::after { transition: none; }
  .story-frame { animation: none; }
}

.name-input select { width: 100%; display: block; margin-top: .35rem; padding: .55rem .63rem; border: 1px solid #ddbf91; border-radius: .55rem; background: #fffaf1; color: #50351f; font: inherit; }

.editor-demo {
  display:grid;
  grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);
  align-items:center;
  gap:clamp(1.2rem,4vw,3rem);
  padding:clamp(1rem,3vw,2.2rem);
  margin:0 0 clamp(2rem,6vw,4.5rem);
  background:#fff2d8;
  border:1px solid #ead7b8;
  border-radius:1.3rem;
}
.editor-demo h2 {font-size:clamp(1.5rem,3.8vw,2.85rem);letter-spacing:-.052em;line-height:1.02}
.editor-demo p {margin:.65rem 0 0;color:#62472f;font-size:.98rem;line-height:1.5}
.editor-demo video {width:100%;display:block;aspect-ratio:16/9;border-radius:.7rem;background:#dcefe1}
@media (max-width:680px){.editor-demo{grid-template-columns:1fr;gap:.8rem}}
