/* =========================================================================
   Duobit — editorial / minimal design system
   Single stylesheet shared by every page. Class names are stable so the
   HTML and JS-rendered DOM need no changes.
   ========================================================================= */

:root {
  color-scheme: light;

  /* Neutral scale — near-black ink on a warm-cool off-white paper */
  --paper: #fbfbfc;
  --paper-2: #f5f6f8;
  --ink: #0e1116;
  --muted: #565d68;
  --faint: #8b93a1;
  --line: #e6e8ec;
  --line-strong: #d3d7de;
  --panel: #ffffff;
  --panel-soft: #f3f4f7;

  /* Single restrained high-saturation accent (indigo/electric blue) */
  --accent: #3b46f0;
  --accent-ink: #2b34c9;
  --accent-soft: #eef0fe;
  --accent-2: #b8341f;
  --accent-3: #9a6a12;

  --radius: 12px;
  --radius-sm: 9px;
  --radius-lg: 18px;
  --max: 1120px;

  --shadow-sm: 0 1px 2px -1px rgb(14 17 22 / .10), 0 2px 8px -6px rgb(14 17 22 / .12);
  --shadow-md: 0 10px 30px -18px rgb(14 17 22 / .35);
  --shadow-pop: 0 18px 48px -22px rgb(14 17 22 / .40);

  --ease: cubic-bezier(.22, .61, .36, 1);

  font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01";
}

* { box-sizing: border-box; }
html { min-height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
button, input { font: inherit; }
::selection { background: var(--accent-soft); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }

/* Navigation ------------------------------------------------------------- */
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 15px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; font-size: 16px; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav-center { justify-self: center; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.nav-center a { position: relative; text-decoration: none; color: var(--muted); padding: 7px 12px; border-radius: 999px; transition: color .18s var(--ease), background .18s var(--ease); }
.nav-center a:hover { color: var(--ink); background: var(--panel-soft); }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* Buttons ---------------------------------------------------------------- */
.link-button, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--ink);
  padding: 9px 15px; text-decoration: none; cursor: pointer;
  font-weight: 620; font-size: 14px; line-height: 1.2; letter-spacing: -.01em;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.link-button:hover, button:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--ink) 26%, var(--line-strong)); box-shadow: var(--shadow-sm); }
.link-button:active, button:active { transform: translateY(0); }
.link-button.ghost { background: transparent; color: var(--muted); border-color: transparent; }
.link-button.ghost:hover { color: var(--ink); background: var(--panel-soft); border-color: transparent; box-shadow: none; transform: none; }
.primary, .link-button.primary {
  border-color: transparent; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, white) 0%, var(--accent) 100%);
  box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, var(--shadow-sm);
}
.primary:hover, .link-button.primary:hover { border-color: transparent; box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 12px 26px -14px color-mix(in srgb, var(--accent) 80%, transparent); }

main { flex: 1; }
.hero, .page-hero, .product-hero, .band, .legal-page, .dashboard { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

/* Hero system ------------------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px; padding: 5px 11px 5px 9px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel);
  color: var(--accent-ink); font-size: 12px; font-weight: 640;
  text-transform: none; letter-spacing: .01em; box-shadow: var(--shadow-sm);
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
h1, h2, h3, p { margin-top: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 6vw, 64px); padding: clamp(56px, 9vw, 96px) 0 48px; align-items: center; }
.hero h1, .page-hero h1, .product-hero h1 { margin-bottom: 18px; max-width: 760px; font-size: clamp(34px, 5.4vw, 52px); line-height: 1.06; letter-spacing: -.025em; font-weight: 680; text-wrap: balance; }
.lede, .page-hero p, .product-hero p, .section-head p { color: var(--muted); max-width: 640px; text-wrap: pretty; }
.lede { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.7; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

/* Sections --------------------------------------------------------------- */
.band { padding: clamp(44px, 7vw, 76px) 0; }
.quiet-band { border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 28px; }
.section-head h1 { margin-bottom: 0; font-size: clamp(32px, 5vw, 46px); line-height: 1.06; font-weight: 680; letter-spacing: -.025em; }
.section-head.compact h2, .section-head h2 { max-width: 620px; font-size: clamp(24px, 3.4vw, 33px); line-height: 1.14; font-weight: 660; letter-spacing: -.02em; }

/* Cards & grids ---------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card, .detail-grid article, .process-grid article {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 22px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.detail-grid article:hover, .process-grid article:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.card h3, .detail-grid h3, .process-grid h3 { margin-bottom: 9px; font-size: 18px; font-weight: 640; letter-spacing: -.01em; }
.card p, .detail-grid p, .process-grid p { color: var(--muted); margin: 0; line-height: 1.7; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.process-grid article { position: relative; padding-top: 44px; }
.process-grid span { position: absolute; top: 20px; left: 22px; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 720; letter-spacing: 0; }

.page-hero { padding: clamp(52px, 8vw, 88px) 0 24px; }
.page-hero p { font-size: clamp(16px, 1.7vw, 18px); line-height: 1.7; }
.product-index { padding-top: 28px; }

/* Products showcase ------------------------------------------------------ */
.products-hero { padding-bottom: 8px; }
.product-showcase { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-panel {
  position: relative; overflow: hidden;
  min-height: 300px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--panel); padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.product-panel::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent)); opacity: 0; transition: opacity .2s var(--ease); }
.product-panel:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-pop); }
.product-panel:hover::after { opacity: 1; }
.product-panel-large { grid-column: span 2; min-height: 330px; }
.product-panel-mark { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--panel), var(--panel-soft)); }
.product-panel-mark img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
.product-panel h2 { margin: 14px 0 8px; font-size: 23px; line-height: 1.15; font-weight: 660; letter-spacing: -.02em; }
.product-panel p { margin: 0 0 18px; color: var(--muted); line-height: 1.7; }
.product-panel { cursor: pointer; }
.product-panel .text-link { display: inline-flex; width: max-content; position: static; }
/* stretched link: whole card is clickable via the "了解" link's overlay */
.product-panel .text-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.product-panel .text-link:focus-visible { outline: none; }
.product-panel:focus-within { border-color: var(--line-strong); box-shadow: var(--shadow-pop); }
.product-group { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); padding: 22px; display: grid; gap: 18px; }
.product-group-head { display: flex; align-items: center; gap: 14px; }
.product-group-head h2 { margin: 8px 0 0; font-size: 22px; line-height: 1.16; font-weight: 660; letter-spacing: -.02em; }
.product-group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.product-panel-plain { min-height: 230px; border-radius: var(--radius); background: var(--panel-soft); }
.product-panel-plain h3 { margin: 14px 0 8px; font-size: 20px; line-height: 1.18; font-weight: 660; letter-spacing: -.02em; }
.product-relation { margin-top: 8px; }
.product-relation .section-head { margin-bottom: 0; }

/* Product detail page ---------------------------------------------------- */
.product-hero { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 40px; align-items: center; padding: clamp(52px, 8vw, 88px) 0 32px; }
.product-mark { width: 116px; height: 116px; object-fit: contain; justify-self: end; border-radius: 24px; padding: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--panel-soft)); box-shadow: var(--shadow-sm); }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.workflow-list { margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: flow; }
.workflow-list li { position: relative; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 15px 16px 15px 52px; color: var(--muted); line-height: 1.6; }
.workflow-list li::before { counter-increment: flow; content: counter(flow); position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 720; }

/* Pricing ---------------------------------------------------------------- */
.pricing-hero, .resources-hero { padding-top: clamp(48px, 7vw, 76px); padding-bottom: 8px; }
.pricing-hero .section-head, .resources-hero .section-head { margin-bottom: 0; flex-direction: column; align-items: start; gap: 14px; }
.pricing-band, .resources-band { padding-top: 20px; }
.pricing-groups { display: grid; gap: 40px; }
.pricing-group { display: grid; gap: 16px; }
.pricing-group > h2 { margin: 0; font-size: 15px; font-weight: 660; color: var(--faint); letter-spacing: .02em; text-transform: uppercase; }
.pricing-group .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.price { display: grid; gap: 12px; align-content: start; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.price:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.price strong { font-size: 32px; line-height: 1; letter-spacing: -.02em; font-weight: 680; }
.price small { color: var(--muted); font-weight: 620; }
.badge { display: inline-flex; align-items: center; width: max-content; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-soft); color: var(--muted); padding: 4px 10px; font-size: 12px; font-weight: 640; letter-spacing: 0; }
.price-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-head small { color: var(--muted); font-size: 12px; font-weight: 620; }
.price.is-current { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), var(--shadow-sm); background: linear-gradient(180deg, var(--accent-soft), var(--panel) 60%); }
.price.is-free { background: var(--panel-soft); }
.price.is-free.is-current { background: linear-gradient(180deg, var(--accent-soft), var(--panel-soft)); }
.badge.current { background: var(--accent); border-color: transparent; color: #fff; }

/* Skeletons -------------------------------------------------------------- */
.skeleton-card { pointer-events: none; overflow: hidden; }
.skeleton-card.price { min-height: 226px; }
.skeleton-stack { display: grid; gap: 12px; }
.skeleton-line { position: relative; display: block; width: var(--skeleton-width, 100%); max-width: 100%; height: 11px; overflow: hidden; border-radius: 999px; background: var(--panel-soft); }
.skeleton-line::after { content: ''; position: absolute; inset: 0; transform: translateX(-115%); background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, #ffffff 70%, var(--panel-soft)) 48%, transparent 100%); animation: skeleton-sweep 1.15s var(--ease) infinite; }
.skeleton-chip { height: 24px; }
.skeleton-meta { height: 12px; }
.skeleton-title { height: 20px; }
.skeleton-price { height: 32px; }
.skeleton-action { height: 36px; margin-top: 4px; border-radius: var(--radius-sm); }
.skeleton-pill { height: 25px; }
.skeleton-link { height: 14px; }
@keyframes skeleton-sweep { 100% { transform: translateX(115%); } }

/* Download --------------------------------------------------------------- */
.download-hero { padding-top: clamp(48px, 7vw, 76px); padding-bottom: 8px; }
.download-hero .section-head { margin-bottom: 0; flex-direction: column; align-items: start; gap: 14px; }
.download-band { padding-top: 20px; }
.download-layout { display: grid; gap: 34px; }
.download-group { display: grid; gap: 16px; }
.download-group-head { display: grid; gap: 10px; }
.download-group-head h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.16; font-weight: 660; letter-spacing: -.02em; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.download-grid.compact { grid-template-columns: minmax(280px, .5fr); }
.download-card {
  min-height: 230px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.download-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.download-platform { display: inline-flex; color: var(--accent-ink); font-size: 12px; font-weight: 720; letter-spacing: .04em; text-transform: uppercase; }
.download-card h3 { margin: 10px 0 8px; font-size: 20px; line-height: 1.2; font-weight: 660; letter-spacing: -.015em; }
.download-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.download-card button { width: max-content; }
.download-status {
  margin: 0; min-height: 48px; display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel-soft); color: var(--muted); padding: 12px 14px;
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.download-status[hidden] { display: none; }
.download-status.is-visible { border-color: color-mix(in srgb, var(--accent) 36%, var(--line)); background: var(--accent-soft); color: var(--accent-ink); }
/* Resources -------------------------------------------------------------- */
.resources-band { display: grid; gap: 20px; }
.resource-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.resource-tab { background: transparent; color: var(--muted); border-color: var(--line); border-radius: 999px; }
.resource-tab.active { border-color: transparent; background: var(--ink); color: var(--paper); }
.resource-tab.active:hover { transform: none; }
.resources-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.resource-card { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 230px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.resource-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.resource-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.resource-card-head small { color: var(--faint); font-weight: 620; font-size: 12px; }
.resource-card h3 { font-size: 18px; font-weight: 640; letter-spacing: -.01em; margin-bottom: 8px; }
.resource-card p { color: var(--muted); line-height: 1.7; margin: 0; }
.resource-meta { display: grid; gap: 10px; }
.resource-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.resource-tags span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; color: var(--muted); font-size: 12px; font-weight: 600; background: var(--panel-soft); }
.resource-source { color: var(--accent-ink); font-weight: 620; text-decoration: none; width: max-content; }
.resource-source:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Dashboard -------------------------------------------------------------- */
.dashboard { padding: clamp(40px, 6vw, 60px) 0 72px; }
.dashboard .section-head { margin-bottom: 24px; flex-direction: column; align-items: start; gap: 14px; }
.identity-panel { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.35fr); gap: 24px; align-items: end; margin-bottom: 14px; }
.identity-panel h3 { margin-bottom: 10px; font-size: 15px; color: var(--faint); font-weight: 620; letter-spacing: .02em; text-transform: uppercase; }
.identity-main { display: grid; gap: 10px; }
.identity-value { min-height: 42px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-soft); padding: 10px 12px; color: var(--ink); font-weight: 620; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
.identity-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.identity-summary > div { min-height: 66px; display: grid; align-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); padding: 12px; }
.identity-summary strong { font-size: 19px; line-height: 1.2; font-weight: 660; letter-spacing: -.01em; overflow-wrap: anywhere; }
.identity-summary button { min-height: 42px; }
.dashboard-stack { gap: 14px; }
.dashboard-pricing-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dashboard-pricing-link h3 { margin: 0; font-size: 17px; font-weight: 640; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field span { color: var(--muted); font-size: 13px; }
.field input { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--panel); transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 11px 8px; text-align: left; font-size: 14px; }
.table th { color: var(--faint); font-weight: 620; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.notice { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 14px 16px; color: var(--muted); background: var(--panel-soft); }
.stack { display: grid; gap: 14px; }
.card h3 { font-size: 17px; }

/* Legal ------------------------------------------------------------------ */
.legal-page { padding: clamp(48px, 7vw, 76px) 0 80px; max-width: 780px; }
.legal-page h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -.025em; font-weight: 680; margin-bottom: 8px; }
.legal-page > p { color: var(--faint); }
.legal-page section { border-top: 1px solid var(--line); padding: 24px 0; }
.legal-page h2 { margin-bottom: 10px; font-size: 20px; font-weight: 640; letter-spacing: -.01em; }
.legal-page p, .legal-page li { color: var(--muted); line-height: 1.75; }

/* Footer ----------------------------------------------------------------- */
.footer { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.footer-brand { font-size: 15px; color: var(--muted); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-ink); font-weight: 640; text-decoration: none; }
.text-link:hover { gap: 8px; text-decoration: underline; text-underline-offset: 4px; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; gap: 10px; }
  .nav-center { display: none; }
  .nav-actions { gap: 7px; flex-wrap: nowrap; }
  .nav-actions .link-button { padding: 8px 12px; }
  .hero, .product-hero, .grid, .pricing-group .grid, .resources-grid, .detail-grid, .process-grid, .download-grid, .download-grid.compact, .product-group-grid { grid-template-columns: 1fr; }
  .identity-panel { grid-template-columns: 1fr; align-items: start; }
  .product-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { display: grid; }
  .product-mark { justify-self: start; width: 88px; height: 88px; }
}
@media (max-width: 560px) {
  .hero, .page-hero, .product-hero, .band, .legal-page, .dashboard, .footer { width: min(100% - 30px, var(--max)); }
  .link-button, button { max-width: 100%; }
  .product-showcase { grid-template-columns: 1fr; }
  .product-panel-large, .product-group { grid-column: auto; }
  .product-panel { min-height: 0; }
  .identity-summary { grid-template-columns: 1fr; }
  .identity-summary button { width: 100%; }
  .dashboard-pricing-link { align-items: stretch; flex-direction: column; }
  .dashboard-pricing-link .link-button { justify-content: center; }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   Homepage-specific layout (.home-*)
   ========================================================================= */
.home-main { width: min(920px, calc(100% - 40px)); margin: 0 auto; }

.home-hero-panel { position: relative; padding: clamp(72px, 12vw, 132px) 0 clamp(48px, 8vw, 84px); border-bottom: 1px solid var(--line); }
.home-hero-panel::before {
  content: ''; position: absolute; inset: -80px -40vw auto -40vw; height: 520px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(720px 340px at 20% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(560px 320px at 84% 2%, color-mix(in srgb, var(--accent-3) 8%, transparent), transparent 72%);
}
.home-hero-panel > * { position: relative; z-index: 1; }
.home-hero-panel h1 { margin: 0 0 22px; max-width: 820px; font-size: clamp(38px, 6vw, 60px); line-height: 1.04; letter-spacing: -.03em; font-weight: 680; text-wrap: balance; }
.home-lede { margin: 0; max-width: 660px; color: var(--muted); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.7; text-wrap: pretty; }
.home-hero-panel .hero-actions { margin-top: 30px; }

.home-marquee { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(40px, 6vw, 60px); padding-top: 28px; border-top: 1px solid var(--line); }
.home-mark { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(180deg, var(--panel), var(--panel-soft)); text-decoration: none; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.home-mark img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.home-mark:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }

.home-section { display: grid; grid-template-columns: minmax(0, .82fr) minmax(280px, 1fr); gap: clamp(32px, 6vw, 72px); padding: clamp(52px, 8vw, 86px) 0; border-bottom: 1px solid var(--line); }
.home-kicker { margin: 0 0 16px; color: var(--accent-ink); font-size: 12px; font-weight: 680; letter-spacing: .08em; text-transform: uppercase; }
.home-section-copy h2 { margin: 0 0 16px; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.1; font-weight: 660; letter-spacing: -.025em; }
.home-section-copy p { margin: 0; color: var(--muted); line-height: 1.75; }
.home-lines { display: grid; gap: 0; border-top: 1px solid var(--line); }
.home-lines p { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; margin: 0; padding: 20px 12px 20px 0; border-bottom: 1px solid var(--line); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; transition: background .18s var(--ease), padding-left .18s var(--ease); }
.home-lines p:hover { background: var(--panel-soft); padding-left: 12px; }
.home-lines strong { position: relative; padding-left: 18px; font-size: 14px; font-weight: 680; color: var(--ink); }
.home-lines strong::before { content: ''; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }
.home-lines span { color: var(--muted); line-height: 1.7; }

.home-closing { padding: clamp(48px, 8vw, 80px) 0 clamp(56px, 9vw, 96px); }
.home-closing p { margin: 0 0 18px; max-width: 660px; font-size: clamp(22px, 3.2vw, 32px); line-height: 1.28; font-weight: 660; letter-spacing: -.025em; text-wrap: balance; }

@media (max-width: 760px) {
  .home-main { width: min(100% - 30px, 920px); }
  .home-section { grid-template-columns: 1fr; }
  .home-lines p { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .link-button:hover, button:hover, .home-mark:hover, .product-panel:hover, .card:hover, .price:hover, .resource-card:hover, .detail-grid article:hover, .process-grid article:hover { transform: none; }
}

