/* ============================================================
   site.css — landing / marketing / auth / commerce pages
   ============================================================ */

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: 76px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.04fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 60px; line-height: 1.03; letter-spacing: -.03em; }
.hero h1 .accent { color: var(--coral-deep); font-style: italic; font-family: var(--font-body); font-weight: 600; }
.hero .serif-lead { margin: 26px 0 32px; max-width: 30ch; }
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-family: var(--font-ui); font-size: 13.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(900px 420px at 78% -8%, var(--coral-soft), transparent 62%),
  radial-gradient(700px 380px at 4% 108%, var(--blue-soft), transparent 60%); opacity: .8; }

/* live demo card in hero */
.demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.demo-top { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.tlight { width: 11px; height: 11px; border-radius: 99px; }
.demo-tabs { margin-left: auto; display: flex; gap: 4px; background: var(--surface-2); border-radius: 99px; padding: 3px; }
.demo-tabs button { font-family: var(--font-ui); font-weight: 600; font-size: 12px; border: 0; background: transparent; color: var(--ink-3); padding: 5px 12px; border-radius: 99px; cursor: pointer; transition: all .15s; }
.demo-tabs button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.demo-body { display: grid; grid-template-columns: 1fr 1fr; height: 384px; }
.demo-code { padding: 18px 20px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.85; overflow: auto; border-right: 1px solid var(--line); background: #fbfaf6; white-space: pre; color: var(--ink); }
.demo-flow { position: relative; background: radial-gradient(circle at center,#fff,#faf9f5); overflow: hidden; display: grid; place-items: center; }
.demo-flow svg { max-width: 92%; max-height: 92%; }
.demo-code .tok-kw { color:#b05a36; font-weight:600; } .demo-code .tok-def{color:#6a9bcc;font-weight:600;} .demo-code .tok-str{color:#788c5d;} .demo-code .tok-num{color:#c25e3f;} .demo-code .tok-com{color:#a8a496;font-style:italic;} .demo-code .tok-bi{color:#9a7bbf;}

/* ---- logos / trust strip ---- */
.trust { padding: 26px 0 8px; }
.trust-row { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; opacity: .7; }
.trust-row .lang { font-family: var(--font-ui); font-weight: 600; font-size: 15px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.trust-row .lang.soon { opacity: .55; }

/* ---- section scaffolding ---- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 54px; }
.sec-head h2 { font-size: 40px; letter-spacing: -.025em; }
.sec-head p { margin-top: 16px; font-size: 19px; color: var(--ink-2); }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; position: relative; box-shadow: var(--shadow-sm); }
.step .n { font-family: var(--font-display); font-weight: 700; font-size: 15px; width: 34px; height: 34px; border-radius: 99px; background: var(--ink); color: var(--bg); display: grid; place-items: center; margin-bottom: 20px; }
.step h3 { font-size: 21px; margin-bottom: 9px; }
.step p { font-size: 15.5px; color: var(--ink-2); margin: 0; }

/* ---- feature grid ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* ---- node legend ---- */
.legend { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: center; margin-top: 8px; }
.legend .item { display: flex; align-items: center; gap: 10px; font-family: var(--font-ui); font-size: 14px; color: var(--ink-2); }
.legend .sw { width: 34px; height: 22px; border: 1.6px solid; flex: none; }
.legend .sw.process { background:#fff; border-color:#cfc9ba; border-radius:6px; }
.legend .sw.decision { background:#faedd3; border-color:#cf9a3c; transform: rotate(45deg) scale(.74); }
.legend .sw.io { background:#e9eee0; border-color:#788c5d; transform: skewX(-18deg); }
.legend .sw.sub { background:#e6eef6; border-color:#6a9bcc; border-radius:4px; border-left-width:4px; border-right-width:4px; }
.legend .sw.term { background:#141413; border-color:#141413; border-radius:99px; }

/* ---- big CTA ---- */
.cta-band { background: var(--ink); border-radius: var(--r-xl); padding: 64px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--bg); font-size: 42px; letter-spacing: -.025em; }
.cta-band p { color: #c9c5b9; font-size: 19px; margin: 16px auto 30px; max-width: 46ch; }
.cta-band .glow { position: absolute; width: 460px; height: 460px; border-radius: 99px; background: radial-gradient(circle, rgba(217,119,87,.5), transparent 68%); top: -180px; right: -120px; }

/* ---- auth ---- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-aside { background: var(--ink); color: var(--bg); padding: 52px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-aside .glow { position: absolute; width: 520px; height: 520px; border-radius: 99px; background: radial-gradient(circle, rgba(217,119,87,.42), transparent 66%); bottom: -200px; left: -160px; }
.auth-main { display: grid; place-items: center; padding: 40px; }
.auth-card { width: 100%; max-width: 408px; }
.auth-card h1 { font-size: 30px; margin-bottom: 7px; }
.auth-card .sub { font-family: var(--font-ui); color: var(--ink-3); font-size: 14.5px; margin-bottom: 28px; }
.oauth { display: flex; gap: 10px; }
.oauth .btn { flex: 1; justify-content: center; }
.or-line { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-family: var(--font-ui); font-size: 13px; margin: 22px 0; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-quote { font-family: var(--font-body); font-style: italic; font-size: 26px; line-height: 1.45; margin-top: auto; }
.auth-quote .by { display: block; font-style: normal; font-family: var(--font-ui); font-size: 14px; color: #c9c5b9; margin-top: 18px; }

/* ---- pricing ---- */
.bill-toggle { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-ui); font-size: 14.5px; margin: 0 auto; }
.switch { width: 52px; height: 30px; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; border: 0; transition: background .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 99px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .22s; }
.switch.on { background: var(--coral); } .switch.on::after { transform: translateX(22px); }
.save-pill { background: var(--green-soft); color: #4f5d39; font-weight: 600; font-size: 12px; padding: 4px 10px; border-radius: 99px; }
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: start; margin-top: 50px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 30px; box-shadow: var(--shadow-sm); position: relative; }
.plan.pop { border-color: var(--coral); box-shadow: var(--shadow-md); }
.plan .tag { position: absolute; top: -13px; left: 30px; background: var(--coral); color: #fff; font-family: var(--font-ui); font-weight: 600; font-size: 12px; padding: 5px 13px; border-radius: 99px; }
.plan h3 { font-size: 22px; }
.plan .desc { font-family: var(--font-ui); font-size: 14px; color: var(--ink-3); margin: 6px 0 22px; min-height: 40px; }
.plan .price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.plan .price .amt { font-family: var(--font-display); font-weight: 700; font-size: 42px; letter-spacing: -.02em; }
.plan .price .per { font-family: var(--font-ui); font-size: 14px; color: var(--ink-3); }
.plan .feats { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.plan .feats li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); font-family: var(--font-ui); }
.plan .feats svg { flex: none; margin-top: 2px; }
.plan .btn { margin-top: 26px; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: 0; border: 0; padding: 22px 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-q .pm { color: var(--coral-deep); font-size: 22px; transition: transform .2s; flex: none; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 0 22px; margin: 0; color: var(--ink-2); font-size: 15.5px; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }

/* ---- checkout ---- */
.co-wrap { display: grid; grid-template-columns: 1fr 420px; gap: 0; min-height: calc(100vh - 68px); }
.co-main { padding: 56px 64px; }
.co-aside { background: var(--bg-2); border-left: 1px solid var(--line); padding: 56px 48px; }
.co-main { max-width: 620px; margin-left: auto; width: 100%; }
.steps-rail { display: flex; align-items: center; gap: 12px; margin-bottom: 38px; font-family: var(--font-ui); font-size: 13.5px; }
.steps-rail .s { display: flex; align-items: center; gap: 9px; color: var(--ink-3); }
.steps-rail .s .b { width: 24px; height: 24px; border-radius: 99px; border: 1.6px solid var(--line-2); display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.steps-rail .s.done .b { background: var(--green); border-color: var(--green); color: #fff; }
.steps-rail .s.active { color: var(--ink); font-weight: 600; } .steps-rail .s.active .b { background: var(--coral); border-color: var(--coral); color: #fff; }
.steps-rail .ln { flex: 1; height: 1.6px; background: var(--line); max-width: 48px; }
.co-section-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-methods { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 22px; }
.pay-method { border: 1.6px solid var(--line-2); border-radius: var(--r-md); padding: 13px; text-align: center; cursor: pointer; font-family: var(--font-ui); font-weight: 600; font-size: 13px; color: var(--ink-2); transition: all .15s; background: var(--surface); }
.pay-method.sel { border-color: var(--coral); background: var(--coral-soft); color: var(--coral-deep); }
.summary-line { display: flex; justify-content: space-between; font-family: var(--font-ui); font-size: 14.5px; color: var(--ink-2); padding: 9px 0; }
.summary-line.total { font-size: 20px; font-weight: 700; color: var(--ink); font-family: var(--font-display); padding-top: 16px; border-top: 1px solid var(--line); margin-top: 8px; }
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.promo { display: flex; gap: 8px; margin: 18px 0; }

/* ---- receipt ---- */
.receipt-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 56px 24px; }
.receipt { width: 100%; max-width: 540px; }
.check-burst { width: 78px; height: 78px; border-radius: 99px; background: var(--green-soft); display: grid; place-items: center; margin: 0 auto 24px; position: relative; }
.check-burst svg { width: 40px; height: 40px; }
.receipt-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.receipt-card .rc-head { padding: 26px 30px; border-bottom: 1px dashed var(--line-2); display: flex; justify-content: space-between; align-items: center; }
.receipt-card .rc-body { padding: 26px 30px; }
.rc-line { display: flex; justify-content: space-between; font-family: var(--font-ui); font-size: 14.5px; padding: 8px 0; color: var(--ink-2); }
.rc-line .lbl { color: var(--ink-3); }
.rc-line.total { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; }
.perf { height: 18px; background: radial-gradient(circle at 9px -3px, transparent 9px, var(--surface) 9px) repeat-x; background-size: 18px 18px; margin: 0 -1px; }

@media (max-width: 920px) {
  .hero-grid, .auth-wrap, .co-wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 42px; }
  .steps, .features, .plans { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .co-aside { border-left: 0; border-top: 1px solid var(--line); }
  .co-main { padding: 32px 22px; }
  .sec-head h2 { font-size: 30px; }
}
