/* MetaSynx home page (index.html): the sections of mock-up E on top of /site.css (tokens, header, buttons, .sec, ring,
   offer card, sign-up form, footer, contact modal). Source: docs/superpowers/mockups/2026-11-15-home/e.html styles.
   The phones are /home/phone.css (.ph, scaled with --ph-scale: 413 × 872 px at 1, bezel included). */


/* ── hero: one order, every account, all on the first screen ── */
.hero { padding: 68px 0 0; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 370px 296px; align-items: center; padding: 56px 0 84px; }
.hero h1 { font-size: clamp(30px, 3.1vw, 40px); line-height: 1.1; }
@media (min-width: 981px) { .hero h1 { white-space: nowrap; } }
.hero-copy { padding-right: 30px; }
.hero-copy p { color: var(--soft); font-size: 17.5px; margin-top: 20px; }
.hero-phone { position: relative; display: grid; place-items: center; height: 500px; }
.hero-phone .ph { --ph-scale: calc(222 / 413); z-index: 2; }

/* the wires from the phone to the board (home.js draws the paths: a faint line, a gradient comet, the line stays lit) */
.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 1; }
.wires .base { fill: none; stroke: rgba(255,255,255,.075); stroke-width: 1.25; }
.wires .trail { fill: none; stroke: url(#wg); stroke-width: 1.4; opacity: 0; transition: opacity .7s; }
.wires .trail.lit { opacity: .5; }
.wires .comet { fill: none; stroke: url(#wg); stroke-width: 2.6; stroke-linecap: round; filter: url(#wglow); }
.wires .node { fill: var(--ink); stroke: rgba(255,255,255,.2); stroke-width: 1.25; transition: stroke .3s, fill .3s; }
.wires .node.lit { fill: #00A1FF; stroke: #00A1FF; }
.wires .wring { fill: none; stroke: #00A1FF; stroke-width: 1.25; opacity: 0; transform-box: fill-box; transform-origin: center; }
.wires .wring.go { animation: wring .75s ease-out; }
@keyframes wring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(3.4); } }

/* the account board (live through MSX.live: data-e / data-p / data-pct, sign classes pos / neg / zero) */
.board { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px 18px; z-index: 2; font-variant-numeric: tabular-nums; }
.acct { margin: 0 -10px; padding: 11px 10px; border-top: 1px solid var(--line); transition: background .35s; }
.acct .l1 { display: flex; align-items: center; gap: 8px; }
.acct .l1 b { font-weight: 600; font-size: 15.5px; }
.board .kind { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; border: 1px solid; line-height: 1.5; }
.board .kind.mt4 { color: var(--blue); border-color: rgba(0,161,255,.45); }
.board .kind.mt5 { color: var(--green); border-color: rgba(0,224,138,.45); }
.acct .pl { margin-left: auto; font-weight: 600; font-size: 15px; }
.acct .l2 { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--mute); margin-top: 2px; }
.board .pos { color: var(--green); } .board .neg { color: var(--red); } .board .zero { color: var(--soft); }
.acct.hit { background: linear-gradient(90deg, rgba(0,224,138,.09), rgba(0,224,138,0)); }
.acct.hit .l2 { color: #fff; }
.acct.hit .l2 .res { color: var(--green); }
.acct.tot { border-top: 0; border-radius: 10px; margin-bottom: 2px; background: linear-gradient(90deg, rgba(0,224,138,.12), rgba(0,161,255,.07)); box-shadow: inset 2px 0 0 var(--green); }
.acct.tot + .acct { border-top: 0; }
.acct.tot .l1 b { font-size: 14px; font-weight: 500; color: var(--soft); }
.acct.tot .pl { font-size: 17px; color: var(--green); }

.facts { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, var(--green), var(--blue) 55%, transparent); opacity: .7; }
.facts div { padding: 20px 24px 26px 0; color: var(--soft); font-size: 15px; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line-soft); }
.facts b { display: block; width: fit-content; font-weight: 600; font-size: 16.5px; margin-bottom: 2px; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ── pinned phone tour ── */
.tour { overflow-x: clip; border-top: 1px solid var(--line-soft); background: linear-gradient(var(--surface), var(--ink) 380px); padding: 20px 0 40px; }
.tour-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 60px; }
.tour article { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; max-width: 33em; opacity: .3; transition: opacity .4s; }
.tour article.on { opacity: 1; }
.tour .eyebrow { display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.tour .eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(0,224,138,.6); }
.tour article > p { color: var(--soft); margin-top: 16px; font-size: 18px; }
.plain { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.plain li { position: relative; padding-left: 28px; color: var(--soft); font-size: 15.5px; }
.plain li::before { content: ''; position: absolute; left: 3px; top: 7px; width: 11px; height: 5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plain li b { color: #fff; font-weight: 600; }
.tour-phone { position: sticky; top: max(96px, calc(50vh - 270px)); align-self: start; display: flex; justify-content: center; align-items: center; }
.ringed { position: relative; display: grid; place-items: center; }
.ringed .ph { z-index: 2; }
.ringed .ring { left: 50%; top: 50%; width: 430px; height: 430px; margin: -215px 0 0 -215px; opacity: .45; will-change: transform; }
/* the pinned phone: one phone per step, stacked; the active step's is .on (E's screen views, cross-fading) */
.tour-stack { position: relative; z-index: 2; width: 234px; height: calc(872px * 234 / 413); }
.tour-stack > .ph { --ph-scale: calc(234 / 413); position: absolute; left: 0; top: 0; opacity: 0; visibility: hidden; transition: opacity .45s, visibility 0s .45s; }
.tour-stack > .ph.on { opacity: 1; visibility: visible; transition: opacity .45s; }
/* a phone that isn't on screen isn't rendered at all (no paint, no layers) */
.ph { content-visibility: auto; }
.inline-phone { display: none; }
.inline-phone .ph { --ph-scale: calc(240 / 413); }

/* ── the AI Copilot step ── */
.asks { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; max-width: 30em; }
.asks button { text-align: left; font: 500 16.5px/1.3 var(--body); color: var(--soft); padding: 14px 20px; border-radius: 28px; cursor: pointer; border: 1.5px solid var(--line); background: var(--ink-deep); transition: color .2s, border-color .2s; }
.asks button:hover { color: #fff; border-color: var(--mute); }
.asks button.on { color: #fff; border-color: transparent; background: linear-gradient(var(--ink-deep), var(--ink-deep)) padding-box, var(--grad) border-box; }
.sr-tag { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--green); background: rgba(0,224,138,.1); border: 1px solid rgba(0,224,138,.45); vertical-align: 1px; white-space: nowrap; }
.tour .opt { color: var(--soft); margin-top: 24px; font-size: 15.5px; }
.tour .opt b { color: #fff; font-weight: 600; }
/* was .legal until 18 Nov 2026: site.css .legal is the legal pages' two-column layout and squeezed this note into a 250px column */
.tour .ai-note { color: var(--soft); font-size: 14.5px; margin-top: 10px; }
.tour .ai-note a { color: var(--soft); }

/* ── also in the app: each with a small piece of the real thing ── */
#more h2 .grad-text { display: inline-block; } /* on a phone the second sentence takes its own line, never split */
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; border-top: 1px solid var(--line); }
.more-grid > div { padding: 26px 28px 28px 0; border-bottom: 1px solid var(--line); }
.more-grid > div:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.more-grid h3 { font-size: 18px; font-stretch: 106%; letter-spacing: -0.01em; }
.more-grid p { color: var(--soft); font-size: 15.5px; margin-top: 6px; }
.vg { height: 62px; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; font-variant-numeric: tabular-nums; }
.vg svg { height: 100%; width: auto; overflow: visible; }
.vg .chip { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--soft); white-space: nowrap; }
.vg .chip.gr { border-color: rgba(0,224,138,.5); color: var(--green); font-weight: 600; }
.vg .imp { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.vg.push { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; gap: 12px; max-width: 290px; }
.vg.push i { flex: none; width: 30px; height: 30px; border-radius: 8px; background: #0B0F15 url(app-ring.png) center / 80% no-repeat; } /* the logo ring, large in its square */
.vg.push b { display: block; font-size: 13px; } .vg.push span { color: var(--soft); font-size: 12.5px; }
.vg.sym { gap: 0; } .vg.sym svg { height: 100%; width: 34px; flex: none; }
.vg.sym .stack { display: flex; flex-direction: column; gap: 3px; } .vg.sym .stack .chip { padding: 2px 9px; font-size: 12px; border-radius: 6px; }
.vg .lock { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; border: 1px solid rgba(0,161,255,.5); background: rgba(0,161,255,.08); }
.vg .lock svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; }

#pricing .cta-row { margin-top: 34px; }

/* ── test it early (tester offer + the sign-up form from site.css) ── */
.beta { padding: 120px 0; position: relative; overflow: hidden; }
.beta .wrap { position: relative; z-index: 1; }
.beta-ring { right: -150px; top: 50%; width: 640px; height: 640px; margin-top: -320px; opacity: .5; }
/* the turning ring is a <div> around the <svg>: Chrome runs a transform animation on an <svg> on the main thread (every
   frame, ~160 ms/s on the A26, even off screen); on a <div> layer the compositor turns it (~10 ms/s) */
.beta-ring { will-change: transform; }
.beta-ring > svg { display: block; width: 100%; height: 100%; }
.beta h2 { font-size: clamp(30px, 3.6vw, 48px); }
.beta h2 .grad-text { display: block; width: fit-content; }
.beta-lede { color: var(--soft); max-width: 52ch; margin-top: 18px; }
.beta .offer { margin-top: 28px; }
.offer p.when a { color: var(--soft); white-space: nowrap; } /* the same link style as "How the AI Copilot works" */
.beta .signup-form { margin-top: 30px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; padding: 40px 0 30px; }
  .hero-copy { padding-right: 0; }
  .wires { display: none; }
  .hero-phone { height: auto; padding: 8px 0 12px; }
  .hero-phone .ph { --ph-scale: calc(250 / 413); }
  .board { display: none; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: 30px; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .tour-grid { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: minmax(0, 1fr); }
  /* a narrow phone (320) wraps a piece's chips onto a second line instead of pushing the page sideways */
  .vg { flex-wrap: wrap; height: auto; min-height: 62px; }
  .vg > svg { height: 62px; }
  .vg.sym { height: 62px; flex-wrap: nowrap; }
  .more-grid > div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .tour-phone { display: none; }
  .tour article { min-height: 0; padding: 64px 0 16px; opacity: 1; }
  .inline-phone { display: flex; justify-content: center; margin-top: 36px; }
  .inline-phone .ring { width: 420px; height: 420px; margin: -210px 0 0 -210px; opacity: .35; }
  .beta { padding: 84px 0; }
  .beta-ring { opacity: .22; right: -320px; }
}
