/* sections.css — per-section layout for the One Shot Screen site.
   STRICT MONOCHROME. The six live demos style themselves (scoped .d-<name>__);
   here we size only their mount wrappers + lay out every non-demo section.
   Mobile-first; breakpoints at 640 / 860 / 1024. No hue anywhere. */

/* Push content below the fixed nav. */
main { padding-top: 0; }

/* ============================================================
   DEMO MOUNT WRAPPERS  (size per each builder's containerSizing)
   ============================================================ */
[data-demo] { width: 100%; }

/* hero capture — full content column, self-sizes (~520-620px tall) */
.hero__visual [data-demo="capture"] { width: 100%; }

/* popup — fixed 360px card, self-centers; just give it room */
[data-demo="popup"] { min-height: 380px; display: block; }

/* editor — wide landscape, aspect-driven by the module */
[data-demo="editor"] { width: 100%; }

/* stitch — tall scroll-driven rail; lives in a tall section */
[data-demo="stitch"] { width: 100%; }

/* redact — compact card, self-caps at 520px */
[data-demo="redact"] { width: 100%; }

/* export — medium card, self-caps at 560px, needs varied bg behind glass */
[data-demo="export"] { width: 100%; min-height: 320px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(120px, 18vh, 200px);
  padding-bottom: var(--section-pad);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -10%;
  left: 50%;
  width: min(1100px, 120vw);
  height: 700px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    50% 50% at 50% 35%,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.015) 38%,
    transparent 70%
  );
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero__copy { max-width: 560px; }
.hero h1 { margin-bottom: var(--space-5); }
.hero__lead { margin-bottom: var(--space-6); max-width: 520px; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.hero__fine {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.hero__visual {
  position: relative;
  min-width: 0;
}

/* ============================================================
   PROBLEM  (centered turn line + monochrome diff card)
   ============================================================ */
.problem__lead { margin-bottom: var(--space-5); }
.problem__sub { margin-bottom: var(--space-7); font-size: var(--fs-lead); }
.problem__diff {
  display: inline-flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: left;
  padding: var(--space-5) var(--space-6);
  font-size: var(--fs-small);
  border-radius: var(--radius-md);
}
.problem__diff .d-add { color: var(--text); }       /* brighter */
.problem__diff .d-rm { color: var(--text-muted); }  /* muted — contrast, not color */

/* ============================================================
   HOW IT WORKS  (stitch demo centerpiece + 3-up step grid)
   ============================================================ */
.how__stage {
  margin-bottom: clamp(48px, 7vh, 88px);
}
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.how__step { display: flex; flex-direction: column; }
.how__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.how__n {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.how__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--fill-subtle);
  border: 1px solid var(--edge-subtle);
  color: var(--text);
}
.how__ico svg { width: 22px; height: 22px; }
.how__step h3 { margin-bottom: var(--space-3); }
.how__step p { font-size: var(--fs-small); }

/* small per-card mocks, re-skinned monochrome */
.how__mock {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--bg-void);
  border: 1px solid var(--line);
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.how__mock--capture { position: relative; justify-content: flex-start; }
.how__mock--capture .frame {
  width: 26px;
  height: 40px;
  border-radius: 4px;
  background: linear-gradient(160deg, var(--glass-fill-top), var(--glass-fill-bottom));
  border: 1px solid var(--edge-subtle);
}
.how__mock--capture .how-seam {
  margin-left: auto;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-left: 1px dashed var(--border-strong);
  padding-left: var(--space-3);
}
.how__mock--edit { gap: var(--space-3); }
.how__mock--edit .t {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--fill-subtle);
  border: 1px solid var(--edge-subtle);
  color: var(--text-secondary);
}
.how__mock--edit .t svg { width: 18px; height: 18px; }
/* active tool = brighter GLASS highlight, not a white fill */
.how__mock--edit .t.is-on {
  background: linear-gradient(160deg, var(--glass-fill-light-top), var(--glass-fill-light-bottom));
  border-color: var(--glass-edge-light);
  color: var(--text);
}
.how__mock--export { gap: var(--space-3); }
.how__mock--export .fmt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--fill-subtle);
  border: 1px solid var(--edge-subtle);
  color: var(--text-muted);
}
.how__mock--export .fmt.is-on {
  background: linear-gradient(160deg, var(--glass-fill-light-top), var(--glass-fill-light-bottom));
  border-color: var(--glass-edge-light);
  color: var(--text);
}

/* ============================================================
   EDITOR SHOWCASE
   ============================================================ */
.editor__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}
.editor__stage { margin-block: clamp(40px, 6vh, 72px); }
.editor__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
.editor__copy { max-width: 760px; }
.editor__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-5);
}
.editor__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-small);
  color: var(--text-secondary);
}
.editor__list .ok { margin-top: 1px; }

/* ============================================================
   FEATURES BENTO
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  grid-auto-flow: dense;
}
.bento__tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 200px;
}
.bento__tile--wide { grid-column: span 2; }
.bento__tile h3 { margin-bottom: 2px; }
.bento__tile p { font-size: var(--fs-small); }
.bento__body { display: flex; flex-direction: column; gap: var(--space-3); }
.bento__badge { align-self: flex-start; }
.bento__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--fill-subtle);
  border: 1px solid var(--edge-subtle);
  color: var(--text);
  margin-bottom: var(--space-2);
}
.bento__ico svg { width: 23px; height: 23px; }
.bento__tile .tag { align-self: flex-start; margin-top: auto; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; }

/* wide stitch art strip (the "full page edge to edge" tile) */
.bento__art {
  margin-top: auto;
  border-radius: var(--radius-sm);
  background: var(--bg-void);
  border: 1px solid var(--line);
  padding: var(--space-4);
}
.bento__art--stitch {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.bento__art--stitch span {
  flex: 1;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--glass-fill-top), var(--glass-fill-bottom));
  border: 1px solid var(--edge-subtle);
}
.bento__art--stitch span:nth-child(1) { height: 44px; }
.bento__art--stitch span:nth-child(2) { height: 72px; }
.bento__art--stitch span:nth-child(3) { height: 56px; }
.bento__art--stitch span:nth-child(4) { height: 64px; }
.bento__art--stitch em {
  flex: none;
  width: 100%;
  margin-top: var(--space-3);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-style: normal;
}
/* the redact tile holds the live demo; give it room */
.bento__tile--redact .bento__demo,
.bento__tile--export .bento__demo { margin-top: var(--space-4); }

/* anchor "Private by design" tile — brighter glass emphasis, no hue */
.bento__tile--bronze {
  background: linear-gradient(160deg, var(--glass-fill-light-top), var(--glass-fill-light-bottom));
  border-color: var(--glass-edge-light);
}
.bento__ico--bronze { background: var(--fill-subtle-hover); border-color: var(--edge-hover); }
.bento__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--text);
  transition: gap var(--dur-fast) var(--ease-out);
}
.bento__link svg { width: 16px; height: 16px; stroke-width: 1.9; }
.bento__link:hover { gap: 10px; }

/* ============================================================
   POPUP / ONE CLICK  (two-column showcase)
   ============================================================ */
.popup__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.popup__copy { max-width: 480px; }
.popup__list { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); }
.popup__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-small);
  color: var(--text-secondary);
}
.popup__demo {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   TWO ENGINES
   ============================================================ */
.engines__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(20px, 3vh, 32px);
}
.engine__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.engine p { font-size: var(--fs-small); margin-bottom: var(--space-4); }
.engine code {
  font-size: 0.85em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--fill-subtle);
  border: 1px solid var(--edge-subtle);
  color: var(--text);
}
.engine__list { display: flex; flex-direction: column; gap: var(--space-2); }
.engine__list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}
.engine__list i {
  width: 16px;
  height: 16px;
  flex: none;
  background-color: var(--text-secondary);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m5 12 5 5L20 7'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m5 12 5 5L20 7'/></svg>") center / contain no-repeat;
}
.qa {
  padding: var(--space-6);
  border-radius: var(--radius-md);
}
.qa__title {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.qa__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-6);
}
.qa__list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.qa__list svg { width: 16px; height: 16px; color: var(--text); flex: none; }

/* ============================================================
   PRIVACY  (wide band: copy + code proof)
   ============================================================ */
.privacy__band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.privacy__copy { max-width: 480px; }
.privacy h2 { margin-block: var(--space-4) var(--space-4); }
.privacy__body { margin-bottom: var(--space-5); font-size: var(--fs-small); }
.privacy__diff { display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--fs-small); }
.privacy__diff .d-add { color: var(--text); }
.privacy__diff .d-rm { color: var(--text-muted); }
.privacy__proof {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-void);
  overflow: hidden;
}
.privacy__proof figcaption {
  padding: 10px 16px;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
  background: var(--fill-subtle);
}
.privacy__proof .code { padding: var(--space-5); margin: 0; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
  max-width: 920px;
  margin-inline: auto;
  align-items: start;
}
.price { display: flex; flex-direction: column; position: relative; }
.price--pro { overflow: visible; }
.price__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}
.price__head { margin-bottom: var(--space-5); }
.price__name {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.price__amt { display: flex; align-items: baseline; gap: var(--space-2); margin-block: var(--space-3) var(--space-2); }
.price__num { font-size: clamp(2.5rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: -0.04em; }
.price__per { font-size: var(--fs-small); }
.price__tag { font-size: var(--fs-small); }
.price__list { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); flex: 1; }
.price__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-small);
  color: var(--text-secondary);
}
.price__list .ok,
.price__list .ok--accent { margin-top: 1px; }
.price__note { margin-top: var(--space-3); font-size: 0.6875rem; letter-spacing: 0.03em; color: var(--text-muted); text-align: center; }

/* ============================================================
   GET / NOTIFY
   ============================================================ */
.get { position: relative; overflow: hidden; }
.get__inner { position: relative; text-align: center; }
.get__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  width: min(900px, 110vw);
  height: 600px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    50% 50% at 50% 40%,
    rgba(255, 255, 255, 0.055) 0%,
    rgba(255, 255, 255, 0.015) 40%,
    transparent 72%
  );
}
.get__inner > * { position: relative; z-index: 1; }
.get__lead { margin-block: var(--space-5) var(--space-7); }
.get__form {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
  margin-inline: auto;
}
.get__input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--fill-subtle);
  border: 1px solid var(--edge-subtle);
  color: var(--text);
  font-size: var(--fs-small);
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.get__input::placeholder { color: var(--text-muted); }
.get__input:focus-visible {
  outline: none;
  border-color: var(--edge-hover);
  background: var(--fill-subtle-hover);
}
.get__input[aria-invalid="true"] { border-color: var(--text-secondary); }
.get__form .btn { min-height: 52px; flex: none; }
.get__err { margin-top: var(--space-3); font-size: var(--fs-small); color: var(--text); }
.get__micro { margin-top: var(--space-4); font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--text-muted); }
.get__success {
  max-width: 480px;
  margin: var(--space-5) auto 0;
  border-radius: var(--radius-lg);
}
.get__success h3 { margin-block: var(--space-3) var(--space-2); }
.get__success p { font-size: var(--fs-small); }
.get__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin-inline: auto;
  background: linear-gradient(160deg, var(--glass-fill-light-top), var(--glass-fill-light-bottom));
  border: 1px solid var(--glass-edge-light);
  color: var(--text);
}
.get__check svg { width: 26px; height: 26px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 800px;
  margin-inline: auto;
}
.faq__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease-out);
}
.faq__item.is-open { border-color: var(--glass-edge-light); }
.faq__item h3 { margin: 0; font-size: 1.0625rem; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  text-align: left;
  padding: clamp(18px, 2.4vw, 24px) clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--text);
  min-height: 44px;
}
.faq__chev {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--text-secondary);
  transition: transform var(--dur) var(--ease-out);
}
.faq__item.is-open .faq__chev { transform: rotate(180deg); }
.faq__panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.faq__item.is-open .faq__panel { opacity: 1; }
.faq__a {
  padding: 0 clamp(20px, 2.6vw, 28px) clamp(20px, 2.4vw, 26px);
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: 1.6;
  max-width: 64ch;
}
.faq__a code {
  font-size: 0.85em;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--fill-subtle);
  border: 1px solid var(--edge-subtle);
  color: var(--text);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__tile--wide { grid-column: span 2; }
  .editor__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: clamp(40px, 6vh, 64px); }
  .hero__copy { max-width: 620px; }
  .popup__layout { grid-template-columns: 1fr; gap: clamp(32px, 5vh, 48px); }
  .privacy__band { grid-template-columns: 1fr; }
  .engines__grid { grid-template-columns: 1fr; }
  .how__grid { grid-template-columns: 1fr; }
  .qa__list { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 480px; }

  /* nav: hide inline links + show hamburger */
  .nav__links { display: none; }
  .nav__add { display: none; }
  .nav__toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento__tile--wide { grid-column: span 1; }
  .editor__list { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: var(--space-7); }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-4); }
  .hero__actions .btn { width: 100%; }
  .get__form { flex-direction: column; }
  .get__form .btn { width: 100%; }
  .problem__diff { width: 100%; }
}
