/* homepage custom sections — no generic card grids */

/* S2 · Verdict: fanned report stack */
.s-verdict { padding: 100px 0; }
.v-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.v-copy h2 { font-size: clamp(32px, 3.6vw, 46px); font-weight: 900; letter-spacing: -0.025em; line-height: 1.08; }
.v-copy p { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 50ch; }
.v-copy .v-note { font-size: 15px; color: var(--faint); }
.v-stack { position: relative; min-height: 440px; }
.vpage {
  position: absolute; inset: 0; margin: auto;
  width: 320px; height: 420px;
  background: var(--card); border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.vpage.p3 { transform: rotate(7deg) translate(26px, 8px); opacity: 0.55; }
.vpage.p2 { transform: rotate(-5deg) translate(-22px, 4px); opacity: 0.75; padding: 26px 24px; }
.vpage.p1 { transform: rotate(0.5deg); padding: 26px 24px; }

/* interactive: the stack fans open on hover to reveal the case-against page */
.v-stack--live { cursor: pointer; }
.v-stack--live .vpage { transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), opacity 420ms ease-out, box-shadow 420ms ease-out; }
.v-stack--live:hover .vpage.p1 { transform: rotate(2.4deg) translate(150px, 18px); opacity: 0.9; }
.v-stack--live:hover .vpage.p2 { transform: rotate(-3deg) translate(-60px, -8px); opacity: 1; z-index: 3; box-shadow: 0 40px 90px -28px rgba(109,78,204,0.4), 0 0 0 1px rgba(109,78,204,0.12); }
.v-stack--live:hover .vpage.p3 { transform: rotate(10deg) translate(70px, 24px); opacity: 0.4; }
.vpage.p2 .vp-sec.against { color: var(--violet-deep); opacity: 0; transform: translateY(6px); transition: opacity 320ms ease-out 120ms, transform 320ms cubic-bezier(0.16,1,0.3,1) 120ms; }
.vpage.p2 .vp-line.aw { background: #EFEDF6; opacity: 0; transition: opacity 320ms ease-out 180ms; }
.v-stack--live:hover .vpage.p2 .vp-sec.against { opacity: 1; transform: none; }
.v-stack--live:hover .vpage.p2 .vp-line.aw { opacity: 1; }
.v-hint {
  position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: var(--faint);
  transition: opacity 300ms ease-out; z-index: 4;
}
.v-hint-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); animation: vhint 1.8s ease-out infinite; }
@keyframes vhint { 0% { box-shadow: 0 0 0 0 rgba(139,124,246,0.5); } 70% { box-shadow: 0 0 0 7px rgba(139,124,246,0); } 100% { box-shadow: 0 0 0 0 rgba(139,124,246,0); } }
.v-stack--live:hover .v-hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .v-stack--live:hover .vpage { transform: none; }
  .v-stack--live:hover .vpage.p2 .vp-sec.against, .v-stack--live:hover .vpage.p2 .vp-line.aw { opacity: 1; transform: none; }
}
.vp-head { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--faint); }
.vp-title { margin-top: 14px; font-size: 20px; font-weight: 900; letter-spacing: -0.01em; }
.vp-line { height: 7px; border-radius: 4px; background: #EFEDF6; margin-top: 12px; }
.vp-line.w80 { width: 80%; } .vp-line.w95 { width: 95%; } .vp-line.w70 { width: 70%; }
.vp-line.w90 { width: 90%; } .vp-line.w60 { width: 60%; }
.vp-sec { margin-top: 22px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.vp-stamp {
  position: absolute; bottom: 26px; left: 24px;
  font-size: 13px; font-weight: 900; letter-spacing: 0.06em;
  color: var(--violet-deep); border: 2px solid var(--violet-deep);
  padding: 7px 12px; border-radius: 8px; transform: rotate(-3deg);
}

/* S3 · pipeline */
.s-pipe { padding: 90px 0; }
.pipe {
  position: relative; margin-top: 56px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0;
}
.pnode { display: flex; flex-direction: column; align-items: center; text-align: center; width: 160px; flex-shrink: 0; }
.pdot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--card); border: 5px solid var(--violet);
  box-shadow: var(--shadow-sm);
}
.plabel { margin-top: 14px; font-size: 16px; font-weight: 700; }
.pdesc { margin-top: 4px; font-size: 13.5px; color: var(--faint); }
.pline { flex: 1; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--violet), rgba(139, 124, 246, 0.25)); margin-top: 8px; }
.pulse {
  position: absolute; top: 4px; left: 0;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--violet-deep);
  animation: ride 6s linear infinite;
  pointer-events: none;
}
@keyframes ride { 0% { left: 4%; } 100% { left: 95%; } }
.pipe-foot { margin-top: 40px; font-size: 15px; color: var(--faint); text-align: center; }

/* S4 · voice: plate + flow */
.s-voice { padding: 90px 0; }
.vc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.plate { position: relative; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-lg); }
.plate img { display: block; width: 100%; height: 100%; object-fit: cover; }
.plate figcaption { position: absolute; left: 18px; bottom: 18px; }
.playchip {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700;
  color: var(--ink); background: rgba(254, 254, 254, 0.92);
  backdrop-filter: blur(8px);
  padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: transform 140ms ease-out;
}
.playchip:active { transform: scale(0.96); }
.playchip:focus-visible { outline: 2px solid var(--violet-deep); outline-offset: 3px; }
.playchip .pc-ico { color: var(--violet-deep); font-size: 13px; }
.playchip.playing { color: var(--violet-deep); }
.vc-copy h2 { font-size: clamp(32px, 3.6vw, 46px); font-weight: 900; letter-spacing: -0.025em; line-height: 1.08; }
.vc-copy > p { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.flow { margin: 28px 0 0; padding: 0; list-style: none; }
.flow li {
  position: relative; padding: 16px 0 16px 34px;
  font-size: 16px; line-height: 1.55; color: var(--muted);
}
.flow li b { color: var(--ink); }
.flow li::before {
  content: ''; position: absolute; left: 6px; top: 24px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--violet);
}
.flow li:not(:last-child)::after {
  content: ''; position: absolute; left: 10px; top: 40px; bottom: -10px;
  width: 1.5px; background: rgba(139, 124, 246, 0.35);
}

/* S5 · hosting */
.s-host { padding: 90px 0; }
.h-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.h-copy h2 { font-size: clamp(32px, 3.6vw, 46px); font-weight: 900; letter-spacing: -0.025em; line-height: 1.08; }
.h-copy p { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 46ch; }
.chips { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-size: 14px; font-weight: 700; color: var(--violet-deep);
  background: var(--violet-soft); padding: 9px 16px; border-radius: 999px;
}
.plate.tall { max-height: 460px; }

/* S6 · gates path */
.s-gates { padding: 90px 0 70px; }
.gatepath { margin-top: 48px; position: relative; }
.gatepath::before {
  content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px;
  width: 2px; background: linear-gradient(180deg, var(--violet), rgba(139, 124, 246, 0.15));
}
.gate { position: relative; display: flex; gap: 30px; align-items: flex-start; padding: 22px 0; }
.g-dot {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%;
  background: var(--card); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px; color: var(--violet-deep);
  position: relative; z-index: 1;
}
.gate h3 { font-size: 20px; font-weight: 700; padding-top: 6px; }
.gate p { margin-top: 6px; font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 52ch; }
.more-link { display: inline-block; margin-top: 26px; font-weight: 700; font-size: 15px; color: var(--violet-deep); text-decoration: none; }
.more-link:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .v-grid, .vc-grid, .h-grid { grid-template-columns: 1fr; gap: 40px; }
  .v-stack { min-height: 470px; }
  .pipe { flex-direction: column; align-items: flex-start; gap: 26px; }
  .pnode { flex-direction: row; width: auto; gap: 14px; text-align: left; }
  .plabel { margin-top: 0; }
  .pline, .pulse { display: none; }
  .h-grid figure { order: -1; }
}

/* call visual — code-built, replaces photo */
.callviz { position: relative; display: flex; align-items: center; justify-content: center; min-height: 440px; }
.cv-ring { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.cv-ring span {
  position: absolute; width: 330px; height: 330px; border-radius: 50%;
  border: 1.5px solid rgba(139, 124, 246, 0.35);
  animation: ringout 3.6s ease-out infinite;
}
.cv-ring span:nth-child(2) { animation-delay: 1.2s; }
.cv-ring span:nth-child(3) { animation-delay: 2.4s; }
@keyframes ringout {
  0% { transform: scale(0.86); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}
.cv-card {
  position: relative; width: 360px;
  background: var(--card); border-radius: var(--r-card);
  box-shadow: var(--shadow-lg); padding: 24px;
}
.cv-top { display: flex; justify-content: space-between; align-items: baseline; }
.cv-status { font-size: 13px; font-weight: 700; color: var(--violet-deep); }
.cv-num { font-size: 13px; color: var(--faint); }
.cv-wave { margin-top: 18px; display: flex; align-items: center; gap: 4px; height: 34px; }
.cv-wave i { width: 5px; border-radius: 3px; background: var(--violet); opacity: 0.85; animation: wv 1.4s ease-in-out infinite; }
.cv-lines { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.cv-line { font-size: 13.5px; line-height: 1.45; padding: 9px 12px; border-radius: 12px; max-width: 92%; }
.cv-line.agent { background: #F3F1FA; color: var(--ink); border-bottom-left-radius: 5px; align-self: flex-start; }
.cv-line.caller { background: var(--violet); color: #FDFDFF; border-bottom-right-radius: 5px; align-self: flex-end; }
.cv-card .playchip { margin-top: 18px; box-shadow: none; background: var(--violet-soft); color: var(--violet-deep); }

/* plate caption */
.plate-cap {
  position: absolute; left: 18px; bottom: 18px;
  font-size: 13.5px; font-weight: 700; color: #FDFDFF;
  background: rgba(26, 23, 36, 0.55); backdrop-filter: blur(6px);
  padding: 8px 14px; border-radius: 999px;
}


/* products page: chat demo + embed line */
.s-chatprod { padding: 90px 0; }
.chatdemo { display: flex; justify-content: center; }
.chatdemo .chatcard { position: static; width: 360px; }
.embedrow { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.embedlabel { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink); }
.embedcode {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 13.5px; color: var(--violet-deep);
  background: var(--card); border-radius: 10px; padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}

/* method page: promise/refuse ledger, typographic, no boxes */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; position: relative; }
.ledger::before {
  content: ''; position: absolute; left: 50%; top: 8px; bottom: 8px;
  width: 1.5px; background: rgba(26, 23, 36, 0.09);
}
.ledger-col h3 { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 10px; }
.li-yes, .li-no {
  font-size: 16.5px; line-height: 1.5; color: var(--muted);
  padding: 15px 0 15px 34px; position: relative;
  border-top: 1px solid rgba(26, 23, 36, 0.07);
}
.li-yes:first-of-type, .li-no:first-of-type { border-top: 0; }
.li-yes::before, .li-no::before {
  content: ''; position: absolute; left: 0; top: 17px;
  width: 19px; height: 19px; border-radius: 50%;
}
.li-yes::before { background: var(--violet-deep); box-shadow: 0 0 0 4px var(--violet-soft); }
.li-no::before { background: #B0475A; box-shadow: 0 0 0 4px rgba(176, 71, 90, 0.12); }
.li-yes::after, .li-no::after {
  content: ''; position: absolute; left: 0; top: 17px;
  width: 19px; height: 19px;
  background: #fff;
  -webkit-mask-size: 58%; mask-size: 58%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.li-yes::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
}
.li-no::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}
@media (max-width: 960px) {
  .ledger { grid-template-columns: 1fr; gap: 40px; }
  .ledger::before { display: none; }
}

/* chatbot page */
h2 .vio { color: var(--violet-deep); }
.srcchip {
  display: flex; width: fit-content; align-items: center; gap: 7px;
  margin-top: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--violet-deep); background: #FDFDFF;
  border: 1px solid rgba(109, 78, 204, 0.25);
  padding: 4px 11px; border-radius: 999px;
}
.srcchip::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: currentColor; opacity: 0.7; }
.srcchip.hand { color: var(--muted); border-color: rgba(26, 23, 36, 0.16); }
.embedrow .chips { margin-top: 0; }

/* about page: essay rows, typographic */
.essay { max-width: 820px; }
.essay-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 36px;
  padding: 34px 0; border-top: 1px solid rgba(26, 23, 36, 0.08);
}
.essay-row:last-child { border-bottom: 1px solid rgba(26, 23, 36, 0.08); }
.essay-row h3 { font-size: 19px; font-weight: 900; letter-spacing: -0.01em; }
.essay-row p { font-size: 16.5px; line-height: 1.7; color: var(--muted); }
.essay-row a { color: var(--violet-deep); font-weight: 700; text-decoration: none; }
.essay-row a:hover { text-decoration: underline; }
@media (max-width: 960px) { .essay-row { grid-template-columns: 1fr; gap: 8px; } }

/* voice page */
.s-demos { padding: 90px 0; }
.demolist { margin-top: 48px; }
.demo {
  display: grid; grid-template-columns: 250px 1fr auto; gap: 28px; align-items: center;
  padding: 26px 6px; border-top: 1px solid rgba(26, 23, 36, 0.08);
}
.demo:last-child { border-bottom: 1px solid rgba(26, 23, 36, 0.08); }
.demo .d-name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.demo .d-tag { display: block; margin-top: 5px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--faint); }
.demo .d-note { font-size: 15.5px; line-height: 1.55; color: var(--muted); max-width: 52ch; }
.demo .playchip { background: var(--violet-soft); color: var(--violet-deep); box-shadow: none; }
.s-limits { padding: 90px 0; }
.s-hostfacts { padding: 90px 0 70px; }
.hostfoot { margin-top: 26px; font-size: 15px; color: var(--faint); }
@media (max-width: 960px) {
  .demo { grid-template-columns: 1fr; gap: 12px; justify-items: start; }
}

/* contact page */
.s-contact { padding: 70px 0 90px; }
.c-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.c-copy h2 { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.c-direct { margin-top: 30px; font-size: 15.5px; color: var(--muted); }
.c-direct a { color: var(--violet-deep); font-weight: 700; text-decoration: none; }
.c-direct a:hover { text-decoration: underline; }
.c-form {
  background: var(--card); border-radius: var(--r-card);
  box-shadow: var(--shadow-lg); padding: 38px;
  display: flex; flex-direction: column;
}
.c-form label { font-size: 13.5px; font-weight: 700; margin: 18px 0 7px; }
.c-form label:first-child { margin-top: 0; }
.c-form input, .c-form select, .c-form textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: #F7F6FB; border: 1.5px solid transparent; border-radius: 12px;
  padding: 13px 15px; transition: border-color 140ms ease-out;
}
.c-form input:focus-visible, .c-form select:focus-visible, .c-form textarea:focus-visible {
  outline: none; border-color: var(--violet);
}
.c-form textarea { resize: vertical; }
.c-form .btn { margin-top: 26px; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.c-note { margin-top: 14px; font-size: 13px; color: var(--faint); }
@media (max-width: 960px) { .c-grid { grid-template-columns: 1fr; gap: 40px; } }

/* document pages (legal / writing) */
.doc-body { max-width: 760px; padding-bottom: 40px; }
.doc-body h2 { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; margin: 44px 0 14px; }
.doc-body h3 { font-size: 19px; font-weight: 700; margin: 30px 0 10px; }
.doc-body p, .doc-body li { font-size: 16px; line-height: 1.75; color: var(--muted); }
.doc-body ul, .doc-body ol { padding-left: 24px; margin: 12px 0; }
.doc-body li { margin: 6px 0; }
.doc-body a { color: var(--violet-deep); font-weight: 700; text-decoration: none; }
.doc-body a:hover { text-decoration: underline; }
.doc-body strong { color: var(--ink); }
.doc-meta { font-size: 13.5px; color: var(--faint); margin-top: 14px; }
.doc-body table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 15px; }
.doc-body th, .doc-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(26,23,36,0.08); color: var(--muted); }
.doc-body th { color: var(--ink); font-weight: 700; }

/* writing index */
.postlist { max-width: 820px; }
.post-row { display: block; text-decoration: none; color: inherit; padding: 28px 0; border-top: 1px solid rgba(26,23,36,0.08); transition: opacity 140ms ease-out; }
.post-row:last-child { border-bottom: 1px solid rgba(26,23,36,0.08); }
.post-row:hover h3 { color: var(--violet-deep); }
.post-row h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; transition: color 140ms ease-out; }
.post-row p { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 64ch; }
.post-row .pr-meta { margin-top: 8px; font-size: 13px; color: var(--faint); }

/* labs index */
.labgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 1000px; }
.lab-row { display: block; text-decoration: none; color: inherit; padding: 26px 22px; border-top: 1px solid rgba(26,23,36,0.08); }
.lab-row:hover { background: rgba(254,254,254,0.7); border-radius: 14px; }
.lab-row h3 { font-size: 19px; font-weight: 700; }
.lab-row p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.lab-row .ext { font-size: 12.5px; font-weight: 700; color: var(--violet-deep); margin-top: 10px; display: inline-block; }
@media (max-width: 960px) { .labgrid { grid-template-columns: 1fr; } }
