/* =========================================
   Phase 2 + 3 styles
   ========================================= */

/* ===== Section: What breaks (03) ===== */
.breaks {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.breaks-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.breaks-head .lead p {
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.breaks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.bcard {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px;
  background: var(--bg-2);
  min-height: 320px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.theme-light .bcard { background: var(--panel); }
.bcard:nth-child(2n) { border-right: none; }
.bcard:nth-child(n+3) { border-bottom: none; }
.bcard .label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 10px;
}
.bcard .label .acc { color: var(--green); }
.bcard h4 { font-size: 22px; line-height: 1.25; margin-bottom: 12px; }
.bcard p {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}
.bcard .blocks {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--mute);
  margin-top: 14px;
  letter-spacing: 0.06em;
}
.bcard .blocks code {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  color: var(--green);
  margin-right: 4px;
  margin-bottom: 4px;
  font-size: 10px;
}

/* illustration frame */
.bcard .illus {
  border: 1px solid var(--line);
  height: 200px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 11px;
}
.theme-light .bcard .illus { background: #FAFAF5; }
.bcard .illus::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(70, 228, 158, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 228, 158, 0.04) 1px, transparent 1px);
  background-size: 16px 16px;
}
.theme-light .bcard .illus::before {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* — illus: save tamper — */
.illus.save .file-list {
  position: absolute;
  top: 16px; left: 16px; right: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
}
.illus.save .file-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 8px;
  border-bottom: 1px dashed var(--line-2);
  color: var(--ink-2);
}
.illus.save .file-row.del {
  color: var(--mute);
  position: relative;
}
.illus.save .file-row.del::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px; background: var(--red);
}
.illus.save .file-row .meta { color: var(--mute); font-size: 10px; }
.illus.save .file-row.new { color: var(--green); }

/* — illus: dialogue rewrite — */
.illus.dialog .lines {
  position: absolute;
  inset: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-2);
}
.illus.dialog .lines .strike {
  color: var(--mute);
  position: relative;
}
.illus.dialog .lines .strike::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px; background: var(--red);
}
.illus.dialog .lines .new { color: var(--green); }
.illus.dialog .lines .narr {
  color: var(--mute);
  border-left: 2px solid var(--green);
  padding-left: 8px;
  margin-top: 6px;
  font-style: italic;
}

/* — illus: ui destroy — */
.illus.ui .frame {
  position: absolute;
  top: 24px; left: 24px; right: 24px; bottom: 24px;
  border: 1px solid var(--line-2);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 10px;
  gap: 6px;
}
.illus.ui .title { font-family: var(--f-mono); font-size: 10px; color: var(--mute); letter-spacing: 0.16em; text-transform: uppercase; }
.illus.ui .menu { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.illus.ui .menu .item {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
  padding: 2px 8px;
  border: 1px solid transparent;
}
.illus.ui .menu .item.gone {
  color: var(--mute);
  position: relative;
  opacity: 0.4;
}
.illus.ui .menu .item.gone::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 52%;
  height: 1px; background: var(--red);
}
.illus.ui .menu .item.kept { color: var(--green); border-color: var(--green); }

/* — illus: shader/fake-dialog — */
.illus.fake .scanline {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(70,228,158,0.07) 0 1px,
    transparent 1px 4px
  );
}
.illus.fake .alert {
  position: absolute;
  top: 36px; left: 24px; right: 24px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  font-family: var(--f-mono);
}
.theme-light .illus.fake .alert { background: var(--panel); }
.illus.fake .alert .bar {
  background: var(--violet);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
}
.illus.fake .alert .body {
  padding: 10px 12px;
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.5;
}
.illus.fake .alert .row {
  display: flex; gap: 6px; padding: 0 12px 10px;
}
.illus.fake .alert .row .b {
  flex: 1;
  font-size: 10px;
  text-align: center;
  padding: 4px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}
.illus.fake .alert .row .b.p { background: var(--green); color: #0A0B0F; border-color: var(--green); }

/* ===== Section: 30 Hooks (04) ===== */
.hooks {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
.hooks-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 40px;
}
.hooks-tabs {
  display: inline-flex;
  border: 1px solid var(--line);
  margin-bottom: 28px;
}
.hooks-tab {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  padding: 12px 20px;
  cursor: pointer;
  transition: all 120ms ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hooks-tab:last-child { border-right: none; }
.hooks-tab .count {
  font-size: 10px;
  padding: 1px 6px;
  border: 1px solid var(--line-2);
  color: var(--mute);
}
.hooks-tab.active {
  background: var(--bg-2);
  color: var(--green);
}
.hooks-tab.active .count { color: var(--green); border-color: var(--green); }
.theme-light .hooks-tab.active { background: var(--panel); }

.hooks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.hcard {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 22px 18px;
  background: var(--bg-2);
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-height: 200px;
}
.theme-light .hcard { background: var(--panel); }
.hooks-expand {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.hcard .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.hcard .top .id { color: var(--green); }
.hcard .top .tier {
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  color: var(--mute);
  font-size: 9px;
}
.hcard .name {
  font-family: var(--f-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.hcard .desc {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
}
.hcard .json {
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--ink-2);
  line-height: 1.5;
  white-space: pre-wrap;
  background: var(--bg);
  overflow-x: auto;
}
.theme-light .hcard .json { background: #FAFAF5; }
.hcard .json .k { color: var(--green); }
.hcard .json .s { color: var(--amber); }
.hcard .json .b { color: var(--violet); }
.hcard .json .n { color: var(--violet); }

/* hover: simulate an effect */
.hcard:hover {
  background: var(--bg);
  cursor: default;
}
.hcard:hover::after {
  content: "// hovered";
  position: absolute;
  top: 6px; right: 8px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--green);
  text-transform: uppercase;
  pointer-events: none;
  animation: glitchpulse 220ms steps(2) 3;
}
@keyframes glitchpulse {
  50% { transform: translateX(2px); opacity: 0.6; }
}

.hooks-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hooks-foot .acc { color: var(--green); }

/* ===== Section: Korean Tier Signal (05) ===== */
.korean {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  background: var(--bg-2);
}
.theme-light .korean { background: #ECECE5; }
.korean-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.korean h2 {
  font-family: var(--f-kr);
  font-weight: 600;
  font-size: 56px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.korean h2 .acc { color: var(--green); }
.korean .lead {
  font-family: var(--f-kr);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-top: 22px;
}
.korean .lead b { color: var(--ink); font-weight: 500; }
.korean .signals {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  max-width: 460px;
}
.korean .sig {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--f-kr);
  font-size: 14px;
  color: var(--ink-2);
}
.theme-light .korean .sig { background: var(--panel); }
.korean .sig .num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.1em;
}
.korean .sig .arrow {
  color: var(--mute);
  font-family: var(--f-mono);
  font-size: 11px;
}
.korean .sig b { color: var(--ink); font-weight: 600; }

.korean-side {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 28px;
  font-family: var(--f-kr);
}
.theme-light .korean-side { background: var(--panel); }
.korean-side .stamp {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.korean-side h4 {
  font-family: var(--f-kr);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}
.korean-side p {
  font-family: var(--f-kr);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}
.korean-side hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
.korean-side .qt {
  font-family: var(--f-kr);
  color: var(--ink-2);
  font-size: 14px;
  border-left: 2px solid var(--green);
  padding-left: 14px;
  font-style: italic;
  line-height: 1.6;
}
.korean-side .qt cite {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--mute);
  margin-top: 6px;
  font-family: var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== Section: Pricing (06) ===== */
.pricing {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
.pricing-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 40px;
}
.pricing-head h2 .acc { color: var(--green); }
.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.price-badge .dot {
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--amber);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.pcard {
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  padding: 32px 24px 28px;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 18px;
  position: relative;
  min-height: 460px;
}
.theme-light .pcard { background: var(--panel); }
.pcard:last-child { border-right: none; }
.pcard .label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}
.pcard .label .acc { color: var(--green); }
.pcard .name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
}
.pcard .price {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 44px;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.pcard .price .cur { font-size: 22px; vertical-align: 18px; color: var(--mute); margin-right: 2px; }
.pcard .price .per { font-size: 12px; color: var(--mute); letter-spacing: 0; font-weight: 400; margin-left: 6px; }
.pcard .future {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: -12px;
}
.pcard .desc {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.55;
}
.pcard ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.pcard li {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.45;
}
.pcard li::before {
  content: "+";
  color: var(--green);
  width: 12px;
  flex-shrink: 0;
}
.pcard li.x::before { content: "−"; color: var(--mute); }
.pcard li.x { color: var(--mute); }
.pcard .cta {
  text-align: center;
  margin-top: 4px;
}

/* ===== Dialogic 2 companion banner ===== */
.dialogic-banner {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
}
.dialogic-banner::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background-image:
    linear-gradient(135deg, rgba(167, 139, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.theme-light .dialogic-banner { background: var(--panel); }
.dialogic-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 40px 36px;
  border-left: 3px solid var(--violet);
  position: relative;
  z-index: 1;
}
.dlg-mark { color: var(--violet); flex-shrink: 0; }
.dlg-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--violet);
  margin-bottom: 6px;
}
.dlg-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.15;
}
.dlg-title b { color: var(--violet); font-weight: 600; }
.dlg-sub {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 720px;
}
.dlg-sub code {
  background: var(--bg-2);
  padding: 1px 6px;
  border: 1px solid var(--line);
  color: var(--violet);
  font-size: 12px;
  margin: 0 1px;
}
.theme-light .dlg-sub code { background: #FAFAF5; }
.dlg-actions { flex-shrink: 0; }

@media (max-width: 980px) {
  .dialogic-row { grid-template-columns: 1fr; gap: 16px; padding: 28px 20px; }
  .dlg-mark { display: none; }
}


.faq {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
.faq-head { margin-bottom: 36px; max-width: 720px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-family: var(--f-display);
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.015em;
  font-weight: 500;
}
.faq-q .num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.18em;
  margin-right: 22px;
  width: 36px;
  flex-shrink: 0;
}
.faq-q .q-text { flex: 1; }
.faq-q .toggle {
  width: 28px; height: 28px;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-family: var(--f-mono);
  color: var(--mute);
  flex-shrink: 0;
  font-size: 14px;
  margin-left: 16px;
}
.faq-q:hover .toggle { border-color: var(--green); color: var(--green); }
.faq-a {
  display: grid;
  grid-template-columns: 36px 1fr 28px;
  gap: 22px;
  padding: 0 0 22px;
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
}
.faq-a .spacer { grid-column: 1; }
.faq-a .body { grid-column: 2; max-width: 720px; }
.faq-a .body code {
  background: var(--bg-2);
  padding: 1px 6px;
  border: 1px solid var(--line);
  color: var(--green);
  font-size: 12px;
}

/* ===== Section: Community (08) ===== */
.community {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
.com-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
}
.ccard {
  border-right: 1px solid var(--line);
  padding: 28px 24px 24px;
  background: var(--bg-2);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  min-height: 240px;
}
.theme-light .ccard { background: var(--panel); }
.ccard:last-child { border-right: none; }
.ccard .ctype {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
}
.ccard h4 { font-size: 22px; line-height: 1.2; }
.ccard p {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}
.ccard .meta-line {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
}
.ccard .meta-line .acc { color: var(--green); }

/* ===== Footer ===== */
.foot {
  padding: 80px 0 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.theme-light .foot { background: #ECECE5; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.foot-col h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 16px;
  font-weight: 500;
}
.foot-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot-col a {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-2);
}
.foot-col a:hover { color: var(--green); }
.foot-brand .word {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: baseline;
}
.foot-brand .word .br {
  color: var(--green);
  display: inline-block;
  transform: translateY(-3px) rotate(-3deg);
  position: relative;
  margin-left: 1px;
}
.foot-brand .word .br::before {
  content: "";
  position: absolute;
  left: -3px; right: -1px; top: 50%;
  height: 1px; background: var(--green);
}
.foot-brand p {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-2);
  margin: 14px 0 0;
  max-width: 320px;
  line-height: 1.6;
}
.foot-bot {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mute);
  text-transform: uppercase;
}
.foot-bot .right { display: flex; gap: 24px; }
.foot-bot .acc { color: var(--green); }

@media (max-width: 980px) {
  .breaks-head, .hooks-head, .korean-grid, .pricing-head { grid-template-columns: 1fr; gap: 24px; }
  .breaks-grid { grid-template-columns: 1fr; }
  .bcard { grid-template-columns: 1fr; }
  .bcard:nth-child(2n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .hooks-grid { grid-template-columns: 1fr; }
  .hcard { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .hcard:nth-child(3n) { border-right: 1px solid var(--line); }
  .price-grid { grid-template-columns: 1fr; }
  .pcard { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .com-grid { grid-template-columns: 1fr; }
  .ccard { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
