/* AgentKit Build Sprint K2 (solo builder) — additions on top of styles.css. Same tokens, same motion. */

/* hero: longer headline, so a smaller title than the B2B page; refund microline under the CTA */
.hero--k2 .hero__title { font-size: clamp(36px, 4.1vw, 60px); line-height: 1.06; }
.hero--k2 .hero__title--sig { font-size: clamp(36px, 7.6vw, 116px); line-height: 1; }
@media (max-width: 720px) { .hero--k2 .hero__title--sig { font-size: 12vw; } }
.hero--k2 .hero__sub { max-width: 720px; margin-top: 18px; font-weight: 400; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.35; color: #fff; text-wrap: balance; }
.js-reveal .hero--k2 .hero__sub { animation: rvUp 1.2s .65s var(--ease-out) both; }
/* Vietnamese headings: explicit <br> at phrase boundaries; .nw keeps compounds (sản phẩm, người dùng…) on one line */
.nw { white-space: nowrap; }
/* heading whose first phrase must stay on one line in a half-width column: sized so "Builder không chỉ build," fits at every width */
.h2--fit { font-size: clamp(32px, 3.85vw, 56px); }
@media (max-width: 720px) { .h2--fit { font-size: clamp(28px, 9vw, 40px); } }
.hero--k2 .hero__content { max-width: 780px; }
.hero--k2 .hero__lead { max-width: 660px; font-size: clamp(17px, 1.45vw, 21px); }
.hero__micro { font-weight: 300; font-size: 14px; line-height: 1.5; color: var(--slate); margin-top: -12px; }
.hero__micro b { font-weight: 500; color: var(--mint); }
.js-reveal .hero__micro { animation: rvUp 1.2s 1s var(--ease-out) both; }

/* flowing copy blocks */
.prose { display: flex; flex-direction: column; gap: 20px; font-weight: 300; font-size: 19px; line-height: 1.6; color: var(--text-2); }
.sec--dark .prose { color: var(--slate); }
.prose strong { font-weight: 500; color: var(--ink); }
.sec--dark .prose strong { color: #fff; }
.punch { font-weight: 300; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.3; letter-spacing: -.02em; max-width: 900px; }
.sec--dark .punch { color: #fff; }
.punch em { font-style: normal; color: var(--muted); }
.sec--dark .punch em { color: var(--dim); }

/* stand-alone diagram cards (same stage engine as the feature diagrams) */
.dgcard { position: relative; background: var(--card-dark); border-radius: 28px; padding: 28px 28px 22px; color: #fff; display: flex; flex-direction: column; gap: 14px; }
.dgcard__viz { position: relative; border-radius: 18px; background: #0A1016; border: 1px solid var(--line-dark); padding: 14px 12px 10px; }
.dgcard__cap { font-weight: 300; font-size: 14px; line-height: 1.5; color: var(--dim); padding: 0 4px; }
.dgcard.dg-done { cursor: pointer; }
.dgcard__viz::after {
  content: '↻ Xem lại'; position: absolute; right: 12px; top: 10px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; color: var(--dim); border: 1px solid var(--line-dark); background: rgba(10, 16, 22, .85);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.dgcard.dg-done:hover .dgcard__viz::after { opacity: 1; }
@media (hover: none) { .dgcard.dg-done .dgcard__viz::after { opacity: .8; } }
.dg .t-q { font-size: 13px; fill: var(--dim); }
.dg .t-rust { fill: var(--rust); }
.dg .flag { fill: var(--paper); }
.dg .agent { fill: #151230; stroke: #B9A4FF; stroke-opacity: .7; stroke-width: 1; }
.dg .t-violet { fill: #E4DCFF; }
.dg .ln-violet { fill: none; stroke: #B9A4FF; stroke-width: 1.4; stroke-opacity: .7; stroke-dasharray: 1; }
.dg .ln-rust { fill: none; stroke: var(--rust); stroke-width: 1.4; stroke-dasharray: 3 4; }

/* two-column text + media */
.media--side { min-height: 420px; border-radius: 28px; background: var(--card-dark-2); }
.media--build { background: var(--card-dark-2); }

/* K1 proof */
.k1-list { display: flex; flex-direction: column; gap: 12px; }
.k1-list__label { font-size: 15px; color: var(--muted); padding: 0 4px 4px; }
.k1-item { padding: 22px 26px; border: 1.5px solid var(--line); border-radius: 22px; font-weight: 300; font-size: 17px; line-height: 1.5; color: var(--text-2); }
.k1-item strong { display: block; font-weight: 500; font-size: 18px; color: var(--ink); margin-bottom: 2px; }
.criteria__list li .tick { margin-top: 0; }

/* five roles */
.roles { display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); }
.role { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.role__n { font-weight: 200; font-size: 15px; color: var(--mint); padding-top: 4px; }
.role__t { font-size: 21px; color: #fff; }
.role__d { font-weight: 300; font-size: 16px; line-height: 1.55; color: var(--slate); margin-top: 6px; }

/* what you hold */
.numlist--k2 li { align-items: flex-start; }
.numlist--k2 li > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.numlist__t { font-weight: 400; font-size: 19px; color: var(--ink); }
.numlist__d { font-weight: 300; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.criteria__ex { margin-top: 6px; padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(159, 232, 193, .35); font-weight: 300; font-size: 14.5px; line-height: 1.5; color: var(--fog); }
.criteria__ex b { font-weight: 500; color: var(--mint); }

/* method: "your product runs through the course" strip */
.session-parts__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.part__n--sm { font-size: 44px; color: var(--mint); }

/* behind the scenes */
.hint { padding: 22px 26px; border-left: 3px solid var(--mint); background: #fff; border-radius: 0 18px 18px 0; font-weight: 300; font-size: 19px; line-height: 1.55; color: var(--ink); }
.hint strong { font-weight: 500; }

/* method cards: title line + tag line, so the three bodies start at the same height */
.feature-row .feature__head { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 6px; }
.feature__tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* curriculum: 5 role tabs, dated sessions */
.phase-tabs--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.session__date { font-weight: 300; font-size: 13px; color: var(--muted); }
.session--gate .session__date { color: var(--dim); }
.session__ex { margin-top: 10px; font-weight: 300; font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* curriculum: 3 balanced tabs (4 / 4 / 3 sessions), 4 cards per row */
.phase-tabs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sessions--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sessions--4 .session { padding: 28px 26px; min-height: 0; gap: 12px; border-radius: 24px; }
.sessions--4 .session__title { font-size: 22px; }
.sessions--4 .session__out-text { font-size: 15px; }
.sessions--4 .session__kind { font-size: 13px; }

/* form: value stack instead of a ticket picker (price comes from the email) */
.stack { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; border-radius: 20px; background: var(--ink); color: #fff; }
.stack .label { color: var(--mint); }
.stack__list li { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-dark); font-weight: 300; font-size: 15px; line-height: 1.45; color: var(--mist); }
.stack__v { flex: none; color: var(--slate); font-variant-numeric: tabular-nums; }
.stack__own { font-style: normal; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--mint); color: var(--ink); font-size: 11px; font-weight: 500; }
.stack__sum { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line-dark); font-weight: 300; font-size: 14px; color: var(--slate); }
.stack__sum b { font-weight: 500; font-size: 16px; color: var(--mint); white-space: nowrap; }
.alumni-note.is-ok { background: #E3F7EC; border-color: #9FE8C1; color: #0F2A22; }

/* pricing */
.price-anchor { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; padding: 20px 26px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line-soft); font-weight: 300; font-size: 16px; line-height: 1.5; color: var(--text-2); }
.price-anchor strong { font-weight: 500; color: var(--ink); }
.price-anchor__sum { font-weight: 200; font-size: 34px; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.ticket__badge { align-self: flex-start; }
.ticket__partner { margin-top: -6px; font-weight: 400; font-size: 15px; color: var(--mint); }
.options--costs .options__row { grid-template-columns: 1.2fr 1.1fr 1.3fr; }
.alumni-note { font-weight: 300; font-size: 14px; line-height: 1.55; color: var(--text-2); padding: 12px 16px; border-radius: 14px; background: #EEF9F2; border: 1px solid #CFEFDC; }
.alumni-note.is-warn { background: #FFF4EC; border-color: #F5D2BE; color: #8A3D16; }

/* final CTA without a team photo: the solo-builder still sits right, text left */
.final--k2 .final__title { max-width: 900px; font-size: clamp(36px, 4.6vw, 66px); }

@media (max-width: 1024px) {
  .sessions--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase-tabs--3 { grid-template-columns: repeat(3, minmax(200px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .phase-tabs--5 { grid-template-columns: repeat(5, minmax(170px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .session-parts__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .session-parts__grid--4 .part:nth-child(3) { padding-left: 0; border-left: 0; }
  .media--side { min-height: 300px; }
}
@media (max-width: 720px) {
  .sessions--4 { grid-template-columns: minmax(0, 1fr); }
  .stack__sum { flex-direction: column; gap: 2px; }
  .stack__list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: start; }
  .stack__list li .stack__c { margin-top: 1px; }
  .stack__list li .stack__v { grid-column: 2; }
  .coin { right: auto; left: 40%; }
  .prose { font-size: 17px; }
  .role { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .dgcard { padding: 18px 14px 16px; border-radius: 24px; }
  .session-parts__grid--4 { grid-template-columns: minmax(0, 1fr); }
  .options--costs .options__row { grid-template-columns: minmax(0, 1fr); }
  .hint { font-size: 17px; }
}

/* summary: total saved = tuition saved + license value */
.saved { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(159, 232, 193, .3); background: rgba(159, 232, 193, .06); }
.saved__t { font-weight: 300; font-size: 15px; color: #fff; }
.saved__t b { font-weight: 500; color: var(--mint); white-space: nowrap; }
.saved__d { font-weight: 300; font-size: 13px; line-height: 1.45; color: var(--slate); }

/* value stack: rows tick in one by one when the form scrolls into view; licenses drop a coin, the counter adds up */
.stack__t { flex: 1; }
.stack__c { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--mint); }
.stack__c svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 0; }
.stack__sum b { display: inline-block; font-variant-numeric: tabular-nums; }
.stack__fx { font-weight: 300; font-size: 11.5px; color: var(--muted-2); margin-top: -4px; }
.stack--anim .stack__list li { opacity: .35; transition: opacity .35s ease; }
.stack--anim .stack__c { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-dark); transition: background .25s ease, box-shadow .25s ease; }
.stack--anim .stack__c svg { stroke-dashoffset: 16; transition: stroke-dashoffset .35s .1s var(--ease-out, ease-out); }
.stack--anim .stack__v { opacity: 0; transform: translateX(6px); transition: opacity .35s .15s ease, transform .35s .15s ease; }
.stack--anim .stack__list li.is-on { opacity: 1; }
.stack--anim li.is-on .stack__c { background: var(--mint); box-shadow: none; }
.stack--anim li.is-on .stack__c svg { stroke-dashoffset: 0; }
.stack--anim li.is-on .stack__v { opacity: 1; transform: none; }
.coin { position: absolute; right: 86px; top: 50%; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 16px; color: #FFD66B; pointer-events: none; animation: coinUp 1.1s var(--ease-out, ease-out) forwards; white-space: nowrap; }
.coin svg { width: 24px; height: 24px; }
@keyframes coinUp { 0% { opacity: 0; transform: translateY(-50%) scale(.7); } 20% { opacity: 1; transform: translateY(-80%) scale(1); } 100% { opacity: 0; transform: translateY(-260%) scale(1); } }
.stack__row--save b.is-bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.08); } }

/* stack total: value → saved → pay, so the eye lands on the price actually paid */
.stack__tot { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-dark); }
.stack__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-weight: 300; font-size: 14px; color: var(--slate); font-variant-numeric: tabular-nums; }
.stack__row > :last-child { white-space: nowrap; text-align: right; }
.stack__row--save b { display: inline-block; font-weight: 500; font-size: 16px; color: var(--mint); }
.stack__row--pay { padding-top: 10px; border-top: 1px dashed var(--line-dark); color: #fff; font-size: 16px; }
.stack__row--pay small { font-size: 12px; color: var(--muted-2); }
.stack__row--pay b { font-weight: 300; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.02em; color: #fff; }
.stack--anim .stack__row--pay { opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; }
.stack--anim.is-done .stack__row--pay { opacity: 1; transform: none; }
@media (max-width: 720px) {
  .stack__row--pay { flex-direction: column; align-items: flex-start; gap: 2px; }
  .stack__row--pay > :last-child { text-align: left; }
  .stack__row--pay b { font-size: 30px; }
}

/* K2 video dialog */
.btn--play { gap: 10px; }
.btn--play .play-ico { width: 26px; height: 26px; flex: none; }
.vmodal { width: min(1200px, 94vw); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.vmodal::backdrop { background: rgba(5, 9, 13, .86); backdrop-filter: blur(4px); }
.vmodal__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #05090d; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.vmodal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal__x { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; line-height: 44px; cursor: pointer; }
.vmodal__x:hover { background: rgba(255, 255, 255, .22); }

/* Fanpage: nav icon + footer */
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__fb { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: rgba(255, 255, 255, .85); border: 1.5px solid rgba(255, 255, 255, .28); transition: color .2s, border-color .2s; }
.nav__fb:hover { color: #fff; border-color: #fff; }
.nav__fb svg { width: 22px; height: 22px; }
.sitefoot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px; padding: 28px 20px; background: #05090d; color: #8a96a3; font-size: 15px; }
.sitefoot a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.sitefoot a:hover { color: var(--mint); }
.sitefoot svg { width: 20px; height: 20px; }
@media (max-width: 720px) { .nav__fb { width: 40px; height: 40px; } .sitefoot { padding-bottom: 104px; } }
@media (max-width: 480px) { .nav__fb { display: none; } }

/* group buy: pricing-section mention, seat stepper, people 2..N */
.ticket__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 16px; border-top: 1px solid var(--line-dark); font-weight: 300; font-size: 14.5px; line-height: 1.5; color: var(--fog); }
.ticket__group-btn { padding: 0; border: 0; background: none; font: 500 14.5px var(--font); color: var(--mint); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ticket__group-btn:focus-visible, .qty__btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.group { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line-soft); }
.group__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.group__row[hidden], .group__hint[hidden] { display: none; }
.group__hint { font-weight: 300; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.group__note { font-weight: 300; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.qty { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; border: 1.5px solid var(--line); background: #F9F8F5; }
.qty__btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font: 400 20px/1 var(--font); cursor: pointer; }
.qty__btn:disabled { background: var(--line-soft); color: var(--muted-2); cursor: default; }
.qty__val { min-width: 32px; text-align: center; font-weight: 500; font-size: 18px; font-variant-numeric: tabular-nums; }
.holders { display: flex; flex-direction: column; gap: 12px; padding: 18px 22px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line-soft); }
.holders[hidden] { display: none; }
.holders__lead { font-weight: 300; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.holders__blank { display: block; margin-top: 4px; color: var(--muted); }
.holders__list { display: flex; flex-direction: column; gap: 12px; }
.holder { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px 10px; }
.holder__n { grid-column: 1 / -1; font-weight: 500; font-size: 13px; }
.holder__err { grid-column: 1 / -1; font-weight: 300; font-size: 13px; color: var(--error); }
.holder__err:empty { display: none; }
.holder.is-bad .input.is-missing { border-color: var(--error); }
.summary.is-pending .summary__lines, .summary.is-pending .summary__amount { opacity: .45; transition: opacity .2s; }
@media (max-width: 720px) {
  .group, .holders { padding: 16px; }
  .holder { grid-template-columns: minmax(0, 1fr); }
}
