/* ============================================================
   EINIEX Pricing page — extends einiex.css + members/platform.
   Same tokens, same vocabulary. New compositions:
   free-to-join split, deal-type fee table, recurring cards,
   extras cards, the agreement block. Theme-agnostic (vars).
   Base state = visible (no-JS / reduced-motion safe); JS opts
   into the choreography by pre-hiding then animating.
   ============================================================ */

/* ---------- Intro heading: word-by-word reveal ---------- */
[data-words-reveal] { visibility: hidden; }
[data-words-reveal] .prc-word { display: inline-block; }
@media (prefers-reduced-motion: reduce) { [data-words-reveal] { visibility: visible !important; } }

/* ============================================================
   01 · FREE TO JOIN — two-column checklist split
   ============================================================ */
.prc-split { margin-top: 3rem; align-items: stretch; }
.prc-col { gap: 1.5rem; }
.prc-col--muted { background: var(--surface-2); }
.prc-list { gap: 0; }
.prc-li {
  display: flex; align-items: flex-start; gap: 0.85rem;
  padding: 0.95rem 0; font-size: 1rem; color: var(--text); line-height: 1.4;
  border-bottom: 0.0625rem solid var(--border);
}
.prc-li:last-child { border-bottom: 0; }
.prc-li > span:last-child { padding-top: 0.06rem; }
.prc-li--no { color: var(--text-2); }
.prc-check, .xmark {
  flex: 0 0 auto; width: 1.35rem; height: 1.35rem; display: grid; place-items: center;
  border-radius: 50%; color: var(--text);
}
.prc-check { background: color-mix(in srgb, var(--text) 9%, transparent); }
.prc-check svg, .xmark svg { width: 0.95rem; height: 0.95rem; }
.prc-check svg path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.xmark { color: var(--text-2); border: 0.0625rem solid var(--border); }
.xmark svg path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.prc-col__foot {
  margin-top: auto; padding-top: 0.5rem;
  font-family: var(--font-mono), monospace; font-size: 0.71875rem; letter-spacing: 0.04em;
  line-height: 1.5; color: var(--text-2);
}
.prc-col .split__tag { margin-bottom: 0.25rem; }

@media (max-width: 760px) { .prc-split { grid-template-columns: 1fr; } }

/* ---------- FOR COMPANIES — plus marker for the paid column ---------- */
.prc-plus {
  flex: 0 0 auto; width: 1.35rem; height: 1.35rem; display: grid; place-items: center;
  border-radius: 50%; color: var(--text);
  background: color-mix(in srgb, var(--text) 9%, transparent);
  font-family: var(--font-mono), monospace; font-size: 0.95rem; line-height: 1;
}
.prc-co-note { margin-top: 1.5rem; }

/* ---------- FOR COMPANIES — unified company-plan card ---------- */
.coplan {
  margin-top: 3rem; border: 0.0625rem solid var(--border); border-radius: 1.5rem;
  background: var(--surface); overflow: hidden;
}
.coplan__top {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center; padding: clamp(1.5rem, 3.5vw, 2.25rem) clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 0.0625rem solid var(--border); background: var(--surface-2);
}
.coplan__seatnum { display: flex; align-items: center; gap: 0.7rem; }
.coplan__seatnum b {
  font-family: var(--font-display), sans-serif; font-weight: 500;
  font-size: clamp(2.75rem, 6vw, 4rem); letter-spacing: -0.04em; line-height: 0.85;
}
.coplan__seatnum span {
  font-family: var(--font-mono), monospace; font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-2); line-height: 1.2;
}
.coplan__seatvis { display: flex; flex-direction: column; gap: 0.85rem; align-items: flex-start; }
.coplan__seatdots { display: flex; align-items: center; gap: 0.45rem; }
.coplan__seatdot { width: 1.85rem; height: 1.85rem; border-radius: 50%; background-size: cover; background-position: center; border: 0.0625rem solid var(--border); }
.coplan__seatadd {
  width: 1.85rem; height: 1.85rem; border-radius: 50%; display: grid; place-items: center;
  border: 0.0625rem dashed color-mix(in srgb, var(--text) 32%, transparent);
  color: var(--text-2); font-family: var(--font-mono), monospace; font-size: 0.95rem; line-height: 1;
}
.coplan__seatnote { font-size: 0.875rem; line-height: 1.5; color: var(--text-2); max-width: 40ch; }
.coplan__body { display: grid; grid-template-columns: 1fr 1fr; }
.coplan__col { padding: clamp(1.5rem, 3.5vw, 2.25rem); }
.coplan__col + .coplan__col { border-left: 0.0625rem solid var(--border); }
.coplan__col h4 {
  font-family: var(--font-mono), monospace; font-size: 0.6875rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); margin: 0 0 0.85rem;
}
.coplan__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.coplan__li {
  display: flex; align-items: flex-start; gap: 0.85rem; padding: 0.85rem 0;
  font-size: 1rem; color: var(--text); line-height: 1.4; border-bottom: 0.0625rem solid var(--border);
}
.coplan__li:last-child { border-bottom: 0; }
.coplan__marker { flex: 0 0 auto; width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border-radius: 50%; margin-top: 0.03rem; }
.coplan__marker--check { background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--text); }
.coplan__marker--plus { border: 0.0625rem solid var(--border); color: var(--text-2); font-family: var(--font-mono), monospace; font-size: 0.9rem; line-height: 1; }
.coplan__marker svg { width: 0.95rem; height: 0.95rem; }
.coplan__foot {
  display: flex; align-items: center; gap: 0.6rem; padding: 1.1rem clamp(1.75rem, 4vw, 2.75rem);
  border-top: 0.0625rem solid var(--border); background: var(--surface-2);
  font-family: var(--font-mono), monospace; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--text-2);
}
.coplan__foot .check { flex: 0 0 auto; width: 1rem; height: 1rem; color: var(--text); }
@media (max-width: 820px) {
  .coplan__top { grid-template-columns: 1fr; gap: 1.5rem; }
  .coplan__body { grid-template-columns: 1fr; }
  .coplan__col + .coplan__col { border-left: 0; border-top: 0.0625rem solid var(--border); }
}

/* ============================================================
   02 · THE CUT — deal-type fee table
   ============================================================ */
.dtable {
  margin-top: 3rem; border: 0.0625rem solid var(--border); border-radius: 1rem; overflow: hidden;
  -webkit-clip-path: inset(0 round 1rem); clip-path: inset(0 round 1rem);
}
.dtable__headrow,
.dtable__row {
  display: grid; grid-template-columns: 2fr 1.05fr 1.05fr 0.8fr; align-items: center;
}
.dtable__headrow {
  padding: 0.95rem 1.5rem; border-bottom: 0.0625rem solid var(--border); background: var(--surface);
}
.dtable__headrow span {
  font-family: var(--font-mono), monospace; font-size: 0.6875rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-2);
}
.dtable__headrow span:nth-child(3), .dtable__headrow span:nth-child(4) { text-align: center; }
.dtable__row {
  padding: 1.35rem 1.5rem; border-bottom: 0.0625rem solid var(--border);
  background: var(--bg); transition: background 0.25s ease;
}
.dtable__row:last-child { border-bottom: 0; }
.dtable__row:hover { background: var(--surface); }
.dt-cell { min-width: 0; }
.dt-type { display: flex; flex-direction: column; gap: 0.18rem; padding-right: 1rem; position: relative; }
.dt-no {
  font-family: var(--font-mono), monospace; font-size: 0.625rem; letter-spacing: 0.14em;
  color: var(--text-2); opacity: 0.7;
}
.dt-name { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; }
.dt-desc { font-size: 0.8125rem; color: var(--text-2); line-height: 1.4; }
.dt-size, .dt-min {
  font-size: 0.875rem; color: var(--text); font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.dt-min { text-align: center; font-weight: 500; }
.dt-size { text-align: left; color: var(--text-2); }
.dt-rate { display: flex; justify-content: center; }
.dt-k { display: none; }

/* rate dots — 4 cells, N filled */
.rate { display: inline-flex; align-items: center; gap: 0.4rem; }
.rate i {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  border: 0.0625rem solid var(--text); opacity: 0.32;
  background: transparent; transition: opacity 0.3s ease, background 0.3s ease;
}
.rate i.on { background: var(--text); opacity: 1; }

.prc-tablenotes { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.5rem; }
.prc-tablenotes .prc-tablenote { margin-top: 0; }
.prc-tablenote { margin-top: 1.5rem; }
.prc-tablenote--sub { opacity: 0.66; }
.dt-mark { font-size: 0.65em; opacity: 0.6; font-weight: 400; }

/* stacked-card reflow on small screens + iPad portrait */
@media (max-width: 860px) {
  .dtable__headrow { display: none; }
  .dtable__row {
    grid-template-columns: 1fr 1fr; gap: 0.85rem 1.25rem; padding: 1.65rem 1.5rem;
  }
  .dt-type { grid-column: 1 / -1; padding-right: 0; gap: 0.28rem; }
  .dt-cell:not(.dt-type) { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .dt-cell.dt-rate { align-items: flex-end; text-align: right; }
  .dt-min { text-align: left; }
  .dt-no { font-size: 0.6875rem; }
  .dt-name { font-size: 1.3125rem; }
  .dt-desc { font-size: 0.9375rem; }
  .dt-size, .dt-min { font-size: 1.0625rem; }
  .rate { gap: 0.5rem; }
  .rate i { width: 0.625rem; height: 0.625rem; }
  .dt-k {
    display: block; font-family: var(--font-mono), monospace; font-size: 0.625rem;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); opacity: 0.75;
  }
}

/* ============================================================
   03 · RECURRING DEALS — three cards
   ============================================================ */
.rcards {
  margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.rcard {
  position: relative; border: 0.0625rem solid var(--border); border-radius: 1.125rem;
  padding: 2.25rem 2rem 2rem; background: var(--surface);
  display: flex; flex-direction: column; gap: 0.75rem; overflow: hidden;
}
.rcard__rule {
  position: absolute; top: 0; left: 0; right: 0; height: 0.1875rem;
  background: var(--text); transform: scaleX(1); transform-origin: left; opacity: 0.9;
}
.rcard--end .rcard__rule { opacity: 0.32; }
.rcard__year {
  font-family: var(--font-mono), monospace; font-size: 0.6875rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-2);
}
.rcard__rate {
  font-size: clamp(1.75rem, 3vw, 2.375rem); font-weight: 500; letter-spacing: -0.025em;
  line-height: 1.02; margin-top: 0.35rem;
}
.rcard__desc { font-size: 0.9375rem; color: var(--text-2); line-height: 1.55; max-width: 30ch; }
.prc-recur-note { margin-top: 1.75rem; max-width: 64ch; }

@media (max-width: 860px) { .rcards { grid-template-columns: 1fr; } }

/* ============================================================
   AGREEMENT BUTTON — prevent mid-word SplitText wrap on mobile
   ============================================================ */
@media (max-width: 600px) {
  .agreement { padding: 1.5rem; }
  .agreement__cta .button-004 { display: grid; width: 100%; font-size: 0.8125rem; }
  .agreement__cta .button-004__inner { justify-content: center; }
}

/* ============================================================
   04 · EXTRAS — two cards
   ============================================================ */
.xcards {
  margin-top: 3rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.xcard {
  border: 0.0625rem solid var(--border); border-radius: 1.125rem; padding: 2.25rem;
  background: var(--surface); display: flex; flex-direction: column; gap: 1rem;
}
.xcard__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.xcard__icon {
  width: 2.875rem; height: 2.875rem; border-radius: 0.75rem; border: 0.0625rem solid var(--border);
  display: grid; place-items: center; color: var(--text); background: var(--bg);
}
.xcard__icon svg { width: 1.375rem; height: 1.375rem; }
.xcard__per {
  font-family: var(--font-mono), monospace; font-size: 0.625rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-2);
}
.xcard__h { font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; }
.xcard__desc { font-size: 0.9375rem; color: var(--text-2); line-height: 1.55; max-width: 38ch; }
.xcard__chip {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.85rem;
  border: 0.0625rem solid var(--border); border-radius: 6.25rem;
  font-family: var(--font-mono), monospace; font-size: 0.65625rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-2);
}
.prc-extranote { margin-top: 1.75rem; }

@media (max-width: 760px) { .xcards { grid-template-columns: 1fr; } }

/* ============================================================
   05 · THE AGREEMENT — single bordered block
   ============================================================ */
.agreement {
  margin-top: 1rem; border: 0.0625rem solid var(--border); border-radius: 1.375rem;
  background: var(--surface); padding: clamp(2rem, 5vw, 4rem);
  display: flex; flex-direction: column; gap: 1.75rem; position: relative; overflow: hidden;
}
.agreement::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(var(--border) 0.09375rem, transparent 0.09375rem);
  background-size: 1.5rem 1.5rem;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 88% 12%, #000 0%, transparent 62%);
  mask-image: radial-gradient(ellipse 70% 80% at 88% 12%, #000 0%, transparent 62%);
}
.agreement > * { position: relative; z-index: 1; }
.agreement__head { display: flex; flex-direction: column; gap: 1.25rem; }
.agreement__h {
  font-family: var(--font-display), sans-serif; font-weight: 500;
  font-size: clamp(1.875rem, 4vw, 3.25rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 16ch;
}
.agreement__body { font-size: clamp(0.9375rem, 1.6vw, 1.0625rem); line-height: 1.65; color: var(--text-2); max-width: 64ch; }
.agreement__bold {
  font-family: var(--font-display), sans-serif; font-weight: 500;
  font-size: clamp(1.125rem, 2.2vw, 1.625rem); line-height: 1.3; letter-spacing: -0.02em;
  max-width: 30ch; color: var(--text);
}
/* typewriter line-wipe: a block cover that retracts left→right (JS-driven width) */
.agreement__bold .typeline-wrap { position: relative; display: inline; }
.agreement__cta { margin-top: 0.5rem; }
