/* SOVO site styles: light, clean, blue-violet accent */
:root {
  --ink: #0f172a; --ink2: #334155; --muted: #64748b; --line: #e5e9f2; --bg: #ffffff; --soft: #f6f8fc;
  --a: #4f7cff; --b: #8b5cf6; --grad: linear-gradient(90deg, var(--a), var(--b));
  --deal: #f43f5e; --deal-bg: #fff1f3; --ok: #16a34a;
  --anthropic: #c96442; --openai: #10a37f;
  --r: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; }
h2.sec { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -.01em; margin-bottom: 8px; }
p.sub { color: var(--muted); margin-bottom: 28px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 6px 20px -8px rgba(79,124,255,.6); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }

/* top nav (standalone pages) */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; height: 60px; gap: 24px; }
.nav .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.nav .logo img { width: 28px; height: 28px; }
.nav .links { display: flex; gap: 20px; margin-left: auto; font-size: 14px; color: var(--ink2); }
.nav .links a { text-decoration: none; }
.nav .links a.on { color: var(--a); font-weight: 600; }
.nav .btn { padding: 8px 16px; font-size: 14px; }

/* hero */
.hero { padding: 72px 0 40px; text-align: center; background: radial-gradient(900px 380px at 50% -80px, #eef2ff 0%, transparent 70%); }
.deal-pill { display: inline-flex; gap: 14px; align-items: center; padding: 10px 20px; border-radius: 999px; background: var(--deal-bg); color: var(--deal); font-weight: 700; font-size: 15px; border: 1px solid #ffd5dc; }
.deal-pill b { font-size: 22px; }
.deal-pill i { width: 1px; height: 18px; background: #ffc2cc; }
.hero h1 { margin-top: 22px; font-size: clamp(34px, 5.4vw, 56px); line-height: 1.12; letter-spacing: -.02em; }
.hero .lead { margin: 18px auto 0; max-width: 640px; font-size: 18px; color: var(--muted); }
.hero .cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .fine { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* anchor strip */
.anchors { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 44px; text-align: left; }
.anchor { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; background: #fff; display: flex; align-items: center; gap: 14px; }
.anchor .m { font-weight: 600; font-size: 14px; }
.anchor .p { font-size: 13px; color: var(--muted); }
.anchor .p s { color: #94a3b8; }
.anchor .p b { color: var(--ink); font-size: 15px; }
.anchor .off { margin-left: auto; background: var(--deal); color: #fff; border-radius: 8px; padding: 4px 8px; font-weight: 700; font-size: 13px; white-space: nowrap; }

/* vendor tabs */
.tabs { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 24px; }
.tabs button { border: 0; background: none; padding: 9px 18px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.tabs button small { color: var(--deal); margin-left: 6px; }

/* model cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: #fff; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .2s, border-color .2s; }
.card:hover { border-color: #cfd8ee; box-shadow: 0 10px 30px -18px rgba(15,23,42,.35); }
.card-top { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.vendor { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; color: #fff; }
.v-anthropic { background: var(--anthropic); }
.v-openai { background: var(--openai); }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: #eef2ff; color: var(--a); }
.card h3 { font-size: 17px; margin-top: 4px; word-break: break-all; }
.card .desc { font-size: 14px; color: var(--ink2); min-height: 44px; }
.card .meta { font-size: 12px; color: var(--muted); }
.card .meta.note { color: #b45309; }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.now { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.now span { color: #cbd5e1; font-weight: 400; }
.was { font-size: 13px; color: #94a3b8; text-decoration: line-through; }
.unit { font-size: 12px; color: var(--muted); }
.badge { text-align: center; background: var(--deal); color: #fff; border-radius: 10px; padding: 6px 10px; line-height: 1.2; flex-shrink: 0; }
.badge b { display: block; font-size: 17px; }
.badge small { font-size: 11px; opacity: .9; }
.badge.plain { background: var(--soft); color: var(--muted); font-size: 13px; font-weight: 600; padding: 8px 10px; }
.copy { align-self: flex-start; margin-top: 4px; font-size: 13px; color: var(--a); background: none; border: 0; cursor: pointer; padding: 0; }
.more { text-align: center; margin-top: 24px; }

/* calculator */
.calc { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: linear-gradient(180deg, #fbfcff, #fff); }
.calc-form { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.calc-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.calc-form select, .calc-form input { font: inherit; font-size: 15px; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.calc-out div { border-radius: 12px; padding: 16px; background: var(--soft); }
.calc-out span { display: block; font-size: 13px; color: var(--muted); }
.calc-out span i { font-style: normal; }
.calc-out b { font-size: 24px; }
.calc-out b.strike { text-decoration: line-through; color: #94a3b8; }
.calc-out .save { background: var(--deal-bg); }
.calc-out .save b { color: var(--deal); }

/* steps + code */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.step { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 10px; }
.step h3 { font-size: 16px; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--muted); }
.code { background: #0f172a; border-radius: var(--r); overflow: hidden; }
.code-tabs { display: flex; gap: 2px; padding: 8px 8px 0; background: #111a2e; }
.code-tabs button { border: 0; background: none; color: #94a3b8; font-size: 13px; padding: 8px 14px; border-radius: 8px 8px 0 0; cursor: pointer; }
.code-tabs button.on { background: #0f172a; color: #fff; }
.code pre { color: #e2e8f0; padding: 18px 20px; overflow-x: auto; font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code .c { color: #64748b; } .code .add { color: #86efac; } .code .del { color: #fca5a5; } .code .k { color: #a5b4fc; }

/* features */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.feat .ic { font-size: 22px; }
.feat h3 { font-size: 16px; margin: 8px 0 4px; }
.feat p { font-size: 14px; color: var(--muted); }

/* faq */
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: '+'; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 10px; color: var(--ink2); font-size: 14px; }

/* bottom cta + footer */
.endcta { text-align: center; background: radial-gradient(700px 260px at 50% 120%, #eef2ff, transparent 70%); }
.endcta h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 10px; }
.foot { border-top: 1px solid var(--line); padding: 26px 0 34px; font-size: 13px; color: var(--muted); }
.foot .row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot .attr { margin-top: 8px; font-size: 12px; color: #94a3b8; }
.foot .attr a { color: #94a3b8; }

/* pricing table */
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ptable th { text-align: left; font-weight: 600; color: var(--muted); background: var(--soft); padding: 12px 14px; font-size: 13px; }
.ptable td { padding: 14px; border-top: 1px solid var(--line); vertical-align: top; }
.ptable td .was { text-decoration: line-through; }
.ptable td .now { font-size: 16px; }
.ptable .off { display: inline-block; background: var(--deal); color: #fff; border-radius: 6px; padding: 2px 8px; font-weight: 700; font-size: 13px; }
.ptable .off.plain { background: var(--soft); color: var(--muted); }
.ptable .sm { font-size: 12px; color: var(--muted); }
.notes { margin-top: 22px; font-size: 13px; color: var(--muted); }
.notes li { margin: 4px 0 4px 18px; }
.loading { color: var(--muted); padding: 30px 0; text-align: center; }

@media (max-width: 760px) {
  section { padding: 44px 0; }
  .calc-form, .calc-out, .steps, .feats { grid-template-columns: 1fr; }
  .nav .links a.hide-sm { display: none; }
  .ptable .hide-sm { display: none; }
}
