:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #52637a;
  --blue: #2563eb;
  --pale: #eff6ff;
  --line: #dce6f2;
  --canvas: #f8fafc;
  font: 16px/1.5 Inter, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
a { color: #164dc0; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, p { margin: 0 0 .65rem; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.025em; }
h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.25rem, 2.8vw, 1.7rem); }
p { color: var(--muted); }
.top {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: .85rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line); background: #fff;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 750; line-height: 1.2; }
.brand small { display: block; margin-top: .2rem; font-weight: 500; color: var(--muted); }
.shield { display: inline-grid; place-items: center; flex: none; width: 2.75rem; height: 2.9rem; padding-bottom: .2rem; background: linear-gradient(145deg, #0ea5e9, #164dc0); color: #fff; clip-path: polygon(50% 0, 96% 16%, 90% 66%, 73% 86%, 50% 100%, 27% 86%, 10% 66%, 4% 16%); font-weight: 800; }
.top-actions, .actions, .heading, .filters { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.button, .outline { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; padding: .58rem .95rem; border: 1px solid var(--blue); border-radius: .65rem; font-weight: 650; cursor: pointer; }
.button { color: #fff; background: linear-gradient(120deg, #196dec, #1d4ed8); }
.outline { color: #164dc0; background: #fff; }
.button:hover, .outline:hover { filter: brightness(.94); text-decoration: none; }
.hero { background: radial-gradient(ellipse at 83% 47%, #b8ddfb, transparent 58%), linear-gradient(100deg, #f3f8ff, #e6f3ff); }
.hero-inner, .section { max-width: 75rem; margin: auto; padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 2.75rem); }
.hero-inner, .auth { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); }
.hero h1 { font-size: clamp(2.55rem, 5.1vw, 4.3rem); line-height: 1.03; margin: .75rem 0 1rem; }
.hero em { color: #1d4ed8; font-style: normal; }
.lead { font-size: 1.12rem; max-width: 34rem; }
.actions { margin: 1.35rem 0 .8rem; }
.tag { display: inline-block; padding: .25rem .65rem; color: #174693; background: #dcecff; border-radius: 2rem; font-size: .82rem; font-weight: 650; }
.trial-note { font-size: .88rem; }
.preview { overflow: hidden; border: 1px solid #a8c8ed; border-radius: 1.1rem; background: #f0f6ff; box-shadow: 0 1.5rem 4rem #17469330; }
.preview-top { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; background: #fff; border-bottom: 1px solid var(--line); }
.preview-top .shield { width: 1.8rem; height: 1.9rem; font-size: .75rem; }
.preview-top .tag { margin-left: auto; }
.preview-content { padding: 1rem; }
.preview-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1rem 0; }
.preview-metrics span { padding: .85rem .5rem; border-radius: .65rem; background: #d8eaff; font-weight: 650; font-size: .82rem; }
.preview-metrics span:nth-child(2) { background: #dcf6ee; }
.preview-metrics span:nth-child(3) { background: #ffefdc; }
.preview-panel { padding: .85rem; background: #fff; border-radius: .65rem; }
.preview-panel div { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .83rem; }
.section + .section { padding-top: 0; }
.section h2 { margin-bottom: 1.1rem; }
.grid { display: grid; gap: 1rem; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { min-width: 0; padding: clamp(.9rem, 2vw, 1.35rem); background: #fff; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 .25rem .85rem #1d46720c; }
.feature-icon { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: .65rem; border-radius: .65rem; color: var(--blue); background: var(--pale); font-size: 1.5rem; }
.plan { margin: .75rem 0; }
.plan ul { padding-left: 1.2rem; }
.plan li { margin: .4rem 0; }
.trial, .trial-status { background: #effcf4; border-color: #c9ecd6; }
.advance { background: #eff6ff; border-color: #a8c8ed; }
.price { color: var(--ink); font-size: 2rem; font-weight: 750; }
.price small { font-size: .85rem; font-weight: 500; }
.footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem clamp(1rem, 4vw, 3.5rem); border-top: 1px solid var(--line); color: var(--muted); background: #fff; }
.auth { max-width: 72rem; margin: auto; padding: clamp(1rem, 5vw, 4rem); }
.auth-intro { padding: clamp(1.25rem, 4vw, 3rem); border-radius: 1rem; background: linear-gradient(140deg, #e4f1ff, #f5faff); }
.auth-intro h1 { margin-top: 1rem; }
.form-card { width: 100%; max-width: 39rem; }
.fields { display: grid; gap: .85rem; margin: 1.15rem 0; }
.fields label { display: block; font-weight: 650; margin-bottom: .25rem; }
.fields label:has(+ input[type=checkbox]) { display: inline-block; }
.fields input:not([type=checkbox]), .fields textarea, .fields select, .filters input:not([type=hidden]) { width: 100%; padding: .58rem .72rem; color: var(--ink); border: 1px solid #bacbe1; border-radius: .55rem; background: #fff; }
.helptext, .muted { color: var(--muted); font-size: .88rem; }
.errorlist { color: #ab1e2b; padding-left: 1.25rem; margin: .3rem 0; }
.workspace { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); }
.sidebar { display: grid; align-content: start; gap: .35rem; padding: 1rem; background: #fff; border-right: 1px solid var(--line); }
.sidebar a, .filters a { padding: .55rem .7rem; border-radius: .55rem; }
[aria-current=page] { background: #e1efff; color: #164dc0; font-weight: 700; }
.work { min-width: 0; padding: clamp(1rem, 3vw, 2rem); }
.welcome { background: linear-gradient(115deg, #f2f8ff, #dceeff); padding: 1.4rem; border-radius: 1rem; margin-bottom: 1rem; }
.metrics { margin-bottom: 1rem; }
.metrics span { color: var(--muted); }
.metrics strong { display: block; font-size: 1.85rem; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, .28fr); gap: 1rem; }
.heading { justify-content: space-between; margin-bottom: .65rem; }
.quick { display: grid; align-content: start; gap: .65rem; }
.filters { margin-bottom: .8rem; }
.filters input:not([type=hidden]) { max-width: 16rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; text-align: left; }
th { background: var(--pale); }
th, td { padding: .58rem .68rem; white-space: nowrap; border-bottom: 1px solid var(--line); }
.empty { margin: .6rem 0 0; background: var(--canvas); padding: 1rem; border-radius: .55rem; }
@media (max-width: 950px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .desktop, .brand small, .top-actions > span { display: none; }
  .hero-inner, .auth, .three, .two, .workspace { grid-template-columns: 1fr; }
  .sidebar { display: flex; flex-wrap: wrap; gap: .15rem; border: 0; border-bottom: 1px solid var(--line); padding: .45rem; font-size: .9rem; }
  .top { padding: .6rem .75rem; }
  .top-actions { gap: .35rem; }
  .top-actions .button, .top-actions .outline { padding: .4rem .52rem; font-size: .87rem; }
  .footer { flex-wrap: wrap; }
}
