:root {
  --brand: #1a66ff;
  --brand-2: #0a4de0;
  --brand-soft: rgba(26, 102, 255, .08);
  --ink: #0b1220;
  --text: #152033;
  --muted: #667085;
  --line: rgba(15, 23, 42, .08);
  --line-strong: rgba(15, 23, 42, .12);
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ok: #099250;
  --danger: #d92d20;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-btn: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .06);
  --shadow-lg: 0 8px 40px rgba(15, 23, 42, .1);
  --nav-h: 64px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --display: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --container: min(1120px, calc(100% - clamp(24px, 5vw, 48px)));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(26, 102, 255, .14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(14, 165, 233, .08), transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 60%, rgba(99, 102, 241, .05), transparent 45%),
    linear-gradient(180deg, #fafbfd 0%, var(--bg) 32%, #eef2f7 100%);
  pointer-events: none;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
code {
  font-family: var(--mono);
  font-size: .86em;
  background: #eef2f7;
  padding: .12em .4em;
  border-radius: 6px;
}
.container { width: var(--container); margin-inline: auto; }

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background .25s ease;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}
.nav-inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(145deg, #3b82f6, #1a66ff 55%, #0a4de0);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(26, 102, 255, .28);
}
.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(26, 102, 255, .22);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.nav-links a:hover {
  color: var(--ink);
  background: rgba(15, 23, 42, .04);
}
.user-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.chip {
  font-size: .75rem;
  font-weight: 600;
  color: var(--brand-2);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 6px 11px;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: .2s;
}
.nav-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 99;
  background: rgba(11, 18, 32, .32);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.nav-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer-panel {
  margin-left: auto;
  width: min(320px, 88vw);
  height: 100%;
  background: #fff;
  padding: 20px 18px calc(20px + var(--safe-b));
  box-shadow: var(--shadow-lg);
  transform: translateX(8%);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-drawer.is-open .nav-drawer-panel { transform: none; }
.nav-drawer a {
  display: block;
  padding: 14px 14px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.nav-drawer a:hover { background: var(--bg); }
.nav-drawer .drawer-actions {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-btn);
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  font-family: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #3b7dff 0%, var(--brand) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 20px rgba(26, 102, 255, .28);
}
.btn-primary:hover {
  color: #fff;
  background: linear-gradient(180deg, #2f73ff 0%, var(--brand-2) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 10px 24px rgba(26, 102, 255, .34);
}
.btn-ghost {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.btn-ghost:hover { background: #f8fafc; color: var(--ink); }
.btn-sm { min-height: 34px; padding: 0 10px; font-size: .75rem; border-radius: 9px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* —— Home hero —— */
.home-hero {
  padding: clamp(28px, 5vw, 52px) 0 clamp(12px, 2vw, 20px);
}
.home-hero-inner {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  animation: fadeUp .7s cubic-bezier(.22, 1, .36, 1) both;
}
.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}
.home-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .2);
  animation: pulse 2s ease infinite;
}
.home-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.18;
  color: var(--ink);
}
.home-hero h1 span {
  background: linear-gradient(105deg, #1a66ff, #0ea5e9 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-hero .lead {
  margin: 14px auto 0;
  max-width: 36em;
  font-size: clamp(.9rem, 2.2vw, 1.05rem);
  color: var(--muted);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, .08); }
}

/* —— Tool workspace —— */
#tool {
  scroll-margin-top: calc(var(--nav-h) + 12px);
  padding: 8px 0 28px;
}
.tool-shell {
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(12px);
  animation: fadeUp .75s cubic-bezier(.22, 1, .36, 1) .08s both;
}
.tool-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, .8);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tool-tabs::-webkit-scrollbar { display: none; }
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: .875rem;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: .15s;
}
.tab:hover { color: var(--ink); background: rgba(15, 23, 42, .04); }
.tab.active {
  color: var(--brand);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}
.tool-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 380px;
}
.tool-main,
.tool-side {
  padding: clamp(16px, 3vw, 24px);
}
.tool-main { border-right: 1px solid var(--line); }
.tool-side {
  background: #f8fafc;
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  gap: 12px;
}
.tool-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}
.tool-side-head h3 {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--display);
  letter-spacing: -.01em;
}
.tool-side-meta {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 500;
}
.dropzone {
  border: 1.5px dashed rgba(26, 102, 255, .28);
  border-radius: 16px;
  padding: clamp(32px, 6vw, 48px) 18px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(26, 102, 255, .06), transparent 55%),
    #f8fafc;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.dropzone:hover,
.dropzone.dragover {
  border-color: var(--brand);
  background: #eff6ff;
  transform: translateY(-1px);
}
.dropzone-ico {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--brand);
  box-shadow: var(--shadow);
}
.dropzone strong {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.dropzone span { font-size: .8rem; color: var(--muted); }
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.result-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  max-height: min(58vh, 520px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), var(--shadow);
  overflow: hidden;
}
.result-box {
  flex: 1;
  margin: 0;
  padding: 16px 18px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: .875rem;
  line-height: 1.7;
  white-space: normal;
  word-break: break-word;
}
.result-box.is-empty {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  background:
    radial-gradient(circle at 50% 30%, rgba(26,102,255,.04), transparent 55%),
    #fff;
}
.result-box.is-empty .result-empty-ico {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.result-box.is-empty strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}
.result-box.is-loading {
  color: var(--muted);
  white-space: pre-wrap;
  font-family: var(--font);
}
.result-box.is-ready {
  white-space: normal;
}
.result-box .rp-h {
  margin: 1.1em 0 .45em;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  padding-bottom: .3em;
  border-bottom: 1px solid var(--line);
}
.result-box .rp-h:first-child { margin-top: 0; }
.result-box .rp-p {
  margin: 0 0 .65em;
  color: #344054;
}
.result-box .rp-li {
  margin: 0 0 .35em;
  padding-left: .15em;
  color: #344054;
}
.result-box .rp-code {
  display: block;
  margin: .5em 0 .85em;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.55;
  color: #1e293b;
  white-space: pre-wrap;
  overflow-x: auto;
}
.result-box::-webkit-scrollbar { width: 8px; height: 8px; }
.result-box::-webkit-scrollbar-thumb {
  background: #d0d5dd;
  border-radius: 8px;
}
.result-box::-webkit-scrollbar-track { background: transparent; }

/* legacy plain pre usage on other pages */
pre.result-box {
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.55;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  max-height: 420px;
  overflow: auto;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* SEO landing */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 18px;
  font-size: .8rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.seo-page-hero { padding-top: 12px; }
.seo-page-hero .section-desc { max-width: 46em; }
.seo-article {
  max-width: 760px;
  margin-top: 8px;
}
.seo-article h2 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
  color: var(--ink);
  font-family: var(--display);
}
.seo-article p,
.seo-article li {
  color: #475467;
  font-size: .925rem;
  line-height: 1.75;
}
.seo-article ul,
.seo-article ol {
  margin: 0 0 12px;
  padding-left: 1.25em;
}
.seo-article li { margin: 6px 0; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: .9rem;
}
.faq-list details p {
  margin: 10px 0 0;
  font-size: .875rem;
}
.seo-related {
  margin-top: 28px !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .875rem !important;
}
.seo-feature-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.seo-feature-card h3 a:hover { color: var(--brand); }
.tool-anchor { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* —— Cases —— */
#cases {
  scroll-margin-top: calc(var(--nav-h) + 12px);
  padding: clamp(40px, 8vw, 72px) 0 calc(48px + var(--safe-b));
}
.cases-head {
  margin-bottom: 24px;
  animation: fadeUp .6s ease both;
}
.cases-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.cases-head p {
  margin: 8px 0 0;
  font-size: .9rem;
  color: var(--muted);
  max-width: 36em;
}
.case-list { display: flex; flex-direction: column; gap: 18px; }
.case-card {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(14px, 3vw, 20px);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.case-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.case-row {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: clamp(14px, 3vw, 22px);
  align-items: start;
}
.case-video {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #000;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 280px;
}
.case-body { min-width: 0; }
.case-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.case-eyebrow {
  margin: 0;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--brand);
  text-transform: uppercase;
}
.case-title {
  margin: 4px 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--display);
}
.case-note {
  margin: 10px 0 0;
  font-size: .78rem;
  line-height: 1.65;
  color: var(--muted);
}
.case-grid {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.case-grid > div {
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 12px;
  font-size: .78rem;
  line-height: 1.6;
  color: #475467;
}
.case-grid dt {
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.case-grid dd { margin: 4px 0 0; }
.case-grid .hl {
  background: var(--brand-soft);
  border-color: rgba(26, 102, 255, .12);
}
.case-prompt-wrap { position: relative; margin-top: 12px; }
.case-prompt {
  margin: 0;
  overflow: hidden;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 12px;
  padding: 14px;
  font-family: var(--mono);
  font-size: .75rem;
  line-height: 1.6;
  color: #344054;
  max-height: 14rem;
}
.case-prompt.is-open { max-height: none; }
.case-fade {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 4rem;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(to top, #f8fafc, rgba(248, 250, 252, .75), transparent);
}
.case-prompt.is-open + .case-fade { display: none; }
.case-expand {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  padding: 6px 0;
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
}
.case-expand svg { width: 14px; height: 14px; transition: transform .2s; }
.case-expand.is-open svg { transform: rotate(180deg); }
.cases-more {
  margin-top: 28px;
  text-align: center;
}
.cases-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: .2s;
}
.cases-more a:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* —— Generic pages —— */
.section { padding: clamp(28px, 5vw, 48px) 0; }
.page-hero {
  padding: clamp(24px, 4vw, 40px) 0 8px;
}
.page-hero .section-title,
.section-title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.section-desc {
  margin: 0 0 20px;
  font-size: .9rem;
  color: var(--muted);
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: .95rem; color: var(--ink); }
.card p { margin: 0; font-size: .875rem; color: var(--muted); }
.muted { color: var(--muted); }
.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 3px 9px;
}
.price-card { text-align: center; }
.price-card .price {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  margin: 8px 0;
  letter-spacing: -.03em;
  color: var(--ink);
}
.price-card .credits { color: var(--brand); font-weight: 600; font-size: .875rem; }

/* Pricing page */
.pricing-hero .section-desc {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 36em;
}
.pricing-hero .section-title { text-align: center; }
.pricing-section { padding-top: 8px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
  padding-top: 12px;
}
.price-card {
  position: relative;
  text-align: left;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.price-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 20px 20px;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.price-card:hover .price-card-inner {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.price-card.is-featured {
  z-index: 2;
}
.price-card.is-featured .price-card-inner {
  border-color: rgba(26, 102, 255, .35);
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: 0 12px 40px rgba(26, 102, 255, .16);
  transform: scale(1.03);
  padding-top: 28px;
}
.price-card.is-featured:hover .price-card-inner {
  transform: scale(1.03) translateY(-3px);
}
.price-ribbon {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  white-space: nowrap;
  background: linear-gradient(90deg, #1a66ff, #0ea5e9);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(26, 102, 255, .3);
}
.price-name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.price-pitch {
  margin: 6px 0 0;
  font-size: .8rem;
  color: var(--muted);
  min-height: 2.4em;
}
.price-amount {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  color: var(--ink);
  line-height: 1;
}
.price-amount .currency {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: .35em;
}
.price-amount .num {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -.04em;
}
.price-save {
  margin-top: 8px;
  font-size: .75rem;
  font-weight: 600;
  color: #067647;
  min-height: 1.2em;
}
.price-credits {
  margin-top: 14px;
  font-size: .95rem;
  color: var(--text);
}
.price-credits strong {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--brand);
  font-weight: 800;
}
.bonus-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #067647;
  font-size: .7rem;
  font-weight: 600;
  vertical-align: middle;
}
.price-unit {
  margin: 4px 0 0;
  font-size: .75rem;
  color: var(--muted);
}
.price-perks {
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  flex: 1;
}
.price-perks li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: .82rem;
  color: #475467;
}
.price-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bbf7d0;
  box-shadow: inset 0 0 0 2px #16a34a;
}
.price-perks b { color: var(--ink); font-weight: 700; }
.price-actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.pricing-note {
  margin-top: 28px;
}
.pricing-note h3 { margin: 0 0 12px; font-size: 1rem; }
.pricing-note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pricing-note-grid div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 4px;
}
.pricing-note-grid strong { font-size: .85rem; color: var(--ink); }
.pricing-note-grid span { font-size: .8rem; color: var(--muted); }

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
  .price-card.is-featured .price-card-inner {
    transform: none;
  }
  .price-card.is-featured:hover .price-card-inner {
    transform: translateY(-3px);
  }
  .pricing-note-grid { grid-template-columns: 1fr; }
}

.auth-box {
  width: min(400px, calc(100% - 32px));
  margin: 40px auto 56px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
.auth-box h1 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin-top: 12px; }
.field label {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(26, 102, 255, .12);
}
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th, .table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
}
.table th { color: var(--muted); font-weight: 500; font-size: .75rem; }
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin: 0 0 14px;
  font-size: .875rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.alert-action {
  flex-shrink: 0;
  text-decoration: none;
}
.alert-error { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.alert-ok { background: #ecfdf3; border-color: #abefc6; color: #067647; }

/* —— Footer —— */
.footer {
  margin-top: 8px;
  padding: 48px 0 calc(28px + var(--safe-b));
  background: var(--ink);
  color: rgba(255,255,255,.62);
  font-size: .875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
}
.footer h4 {
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--display);
  font-size: .9rem;
  font-weight: 600;
}
.footer a {
  display: block;
  color: rgba(255,255,255,.58);
  margin: 8px 0;
  text-decoration: none;
  font-size: .84rem;
}
.footer a:hover { color: #fff; }
.footer-copy {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .75rem;
  opacity: .7;
}

/* —— Admin —— */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100dvh;
  background: var(--bg);
}
.admin-side {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 18px 12px;
}
.admin-side a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  margin-bottom: 2px;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
}
.admin-side a:hover,
.admin-side a.active {
  background: var(--brand-soft);
  color: var(--brand);
}
.admin-main { padding: 24px; }
.admin-main h1 {
  margin-top: 0;
  font-family: var(--display);
  font-size: 1.35rem;
}
.kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.kpi .card b { font-size: 1.4rem; display: block; color: var(--ink); }

/* —— Responsive —— */
@media (max-width: 960px) {
  .nav-links,
  .user-bar .btn-ghost:not(.nav-keep),
  .user-bar .chip { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-drawer { display: block; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-row { grid-template-columns: 120px 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .footer-grid, .form-row, .admin-layout, .kpi {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root { --nav-h: 58px; }
  .home-hero { padding-top: 22px; }
  .case-row { grid-template-columns: 1fr; }
  .case-video {
    max-width: 160px;
    max-height: 240px;
  }
  .tool-actions .btn { flex: 1 1 calc(50% - 5px); }
  .tool-actions .btn-primary { flex: 1 1 100%; }
  .user-bar .btn-primary { min-height: 38px; padding: 0 12px; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@supports (padding: max(0px)) {
  .nav { padding-top: env(safe-area-inset-top, 0px); }
}
