:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-alt: #f7faff;
  --line: #d8e1ef;
  --text: #132238;
  --muted: #67778f;
  --blue: #2f6cff;
  --blue-deep: #2051d6;
  --blue-soft: rgba(47, 108, 255, 0.12);
  --green: #18c57c;
  --amber: #f0af45;
  --red: #ff7171;
  --shadow: 0 20px 50px rgba(24, 38, 66, 0.08);
  --shadow-soft: 0 10px 26px rgba(24, 38, 66, 0.06);
  --radius: 24px;
  --radius-sm: 18px;
  --sans: "Aptos", "Segoe UI", sans-serif;
  --dark-bg: #020b1d;
  --dark-panel: #344761;
  --dark-panel-soft: #2e3f58;
  --dark-line: rgba(255, 255, 255, 0.08);
  --dark-text: #f5f8ff;
  --dark-muted: #b3bfd4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
}

a {
  color: inherit;
}

.landing-body {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 108, 255, 0.1), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(47, 108, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #fbfcff 0%, #f2f6fc 100%);
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(26px);
  pointer-events: none;
  z-index: 0;
}

.ambient-one {
  top: 80px;
  left: -90px;
  width: 260px;
  height: 260px;
  background: rgba(47, 108, 255, 0.12);
}

.ambient-two {
  top: 320px;
  right: -110px;
  width: 320px;
  height: 320px;
  background: rgba(77, 148, 255, 0.1);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 248, 252, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(216, 225, 239, 0.8);
}

.header-inner,
#app {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: white;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 24px rgba(47, 108, 255, 0.24);
}

.brand-copy {
  display: grid;
  gap: 0.12rem;
  color: inherit;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy small {
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.primary-button,
.ghost-button,
.toggle,
.link-button,
.nav-link-button,
.auth-text-button,
.dark-ghost {
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
  text-decoration: none;
}

.primary-button {
  padding: 0.82rem 1.22rem;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 12px 24px rgba(47, 108, 255, 0.24);
}

.ghost-button,
.toggle,
.link-button {
  padding: 0.82rem 1.18rem;
  color: var(--text);
  background: white;
  border-color: var(--line);
}

.nav-link-button {
  padding: 0.82rem 1.18rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toggle.active {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.primary-button:hover,
.ghost-button:hover,
.toggle:hover,
.link-button:hover,
.nav-link-button:hover,
.dark-ghost:hover,
.auth-text-button:hover {
  transform: translateY(-1px);
}

#app {
  padding: 44px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  gap: 28px;
  align-items: center;
}

.hero-copy {
  position: relative;
  padding: 12px 0;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -18px -22px -18px -18px;
  z-index: -1;
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18)),
    linear-gradient(135deg, rgba(47, 108, 255, 0.08), transparent 55%);
  border: 1px solid rgba(216, 225, 239, 0.55);
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--blue);
}

.hero h1,
.section-heading h2,
.entry-banner h2,
.auth-panel h1 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.hero-text,
.section-heading p,
.muted-copy,
.history-meta,
.policy-card p,
.feature-card p,
.demo-summary p,
.entry-banner p,
.hero-note p,
.step-card p,
.auth-subtitle,
.auth-aside-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 60ch;
  margin: 18px 0 0;
  font-size: 1.05rem;
}

.hero-actions,
.inline-actions,
.toggle-row,
.hero-audience,
.entry-actions,
.auth-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 24px;
}

.hero-audience {
  margin-top: 22px;
}

.hero-audience span,
.trust-strip span {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-note {
  margin-top: 24px;
  max-width: 540px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(216, 225, 239, 0.8);
  box-shadow: var(--shadow-soft);
}

.hero-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.hero-demo,
.feature-card,
.policy-card,
.entry-banner,
.step-card,
.auth-panel,
.auth-aside-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-demo {
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}

.hero-demo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%);
}

.demo-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 16px 18px;
  background: #152645;
  color: white;
}

.demo-label {
  font-weight: 700;
}

.demo-domain {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.demo-editor,
.demo-results {
  padding: 20px 22px;
}

.demo-editor {
  background: #f8fbff;
  border-bottom: 1px solid var(--line);
}

.demo-text {
  margin: 0;
  line-height: 1.75;
  color: #33415b;
}

.demo-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.demo-results h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.demo-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.demo-score-grid article,
.demo-summary {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.demo-score-grid article {
  padding: 16px;
}

.score-label {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.demo-score-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.demo-summary {
  margin-top: 12px;
  padding: 16px;
}

.trust-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.entry-banner,
.feature-section,
.policy-section {
  margin-top: 76px;
}

.entry-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 24px 26px;
  border-radius: 28px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(245, 249, 255, 0.92)),
    linear-gradient(135deg, var(--blue-soft), transparent 55%);
}

.entry-banner h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.entry-banner p {
  max-width: 62ch;
  margin: 10px 0 0;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.feature-grid,
.policy-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.feature-card,
.policy-card,
.step-card {
  padding: 22px;
  border-radius: var(--radius);
}

.feature-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.92));
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #7aa6ff);
}

.accent-card {
  background:
    linear-gradient(180deg, rgba(236, 244, 255, 0.98), rgba(247, 250, 255, 0.96));
}

.feature-card h3,
.policy-card h3,
.step-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.step-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.step-card p {
  margin: 0;
}

.auth-body {
  min-height: 100vh;
  background: linear-gradient(90deg, #020916 0%, #020916 50%, #13235d 100%);
  color: var(--dark-text);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
}

.auth-panel,
.auth-aside {
  display: flex;
}

.auth-panel {
  flex-direction: column;
  justify-content: center;
  padding: 48px min(8vw, 72px);
  border: none;
  box-shadow: none;
  background: transparent;
}

.auth-brand {
  margin-bottom: 48px;
}

.auth-brand .brand-copy small,
.auth-brand .brand-copy strong {
  color: var(--dark-text);
}

.auth-copy-block h1 {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  color: var(--dark-text);
}

.auth-subtitle {
  margin: 14px 0 0;
  color: var(--dark-muted);
  font-size: 1.05rem;
}

.auth-form {
  max-width: 560px;
  margin-top: 18px;
}

.auth-body label {
  color: var(--dark-text);
  font-size: 0.94rem;
  font-weight: 700;
}

.auth-body input {
  min-height: 70px;
  padding: 0 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 28, 56, 0.96), rgba(10, 22, 45, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--dark-text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 28px rgba(0, 0, 0, 0.18);
}

.auth-body input:focus {
  outline: 2px solid rgba(47, 108, 255, 0.28);
  border-color: rgba(47, 108, 255, 0.55);
}

.auth-submit {
  width: 100%;
  justify-content: center;
}

.google-button {
  width: min(560px, 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  min-height: 64px;
  padding: 0.95rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(11, 23, 47, 0.98), rgba(8, 18, 40, 0.94));
  color: var(--dark-text);
  font: inherit;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.google-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: white;
  color: #4285f4;
  font-weight: 800;
}

.auth-divider {
  width: min(560px, 100%);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 6px;
  color: var(--dark-muted);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-switch-row {
  margin-top: 24px;
  color: var(--dark-muted);
}

.auth-text-button {
  padding: 0;
  background: transparent;
  color: #6ca1ff;
}

.auth-aside {
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: radial-gradient(circle at center, rgba(109, 142, 255, 0.12), transparent 40%);
}

.auth-aside-card {
  max-width: 520px;
  padding: 36px;
  border-radius: 28px;
  background: rgba(115, 128, 190, 0.28);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--dark-text);
}

.auth-aside-card h2 {
  margin: 0 0 14px;
  font-size: 2.2rem;
  line-height: 1.08;
}

.auth-aside-card p,
.auth-aside-card .eyebrow {
  color: var(--dark-muted);
}

.dashboard-body {
  background:
    radial-gradient(circle at top left, rgba(31, 91, 255, 0.2), transparent 20%),
    linear-gradient(180deg, #020917 0%, #06102b 100%);
  color: var(--dark-text);
}

.dashboard-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
}

.dashboard-sidebar {
  padding: 22px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  background:
    linear-gradient(180deg, rgba(2, 9, 23, 0.98), rgba(3, 12, 30, 0.95)),
    radial-gradient(circle at top, rgba(47, 108, 255, 0.18), transparent 28%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.dashboard-brand {
  margin-top: 6px;
}

.dashboard-brand .brand-mark {
  width: 54px;
  height: 54px;
}

.sidebar-create {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), #4d93ff);
  color: white;
  font-size: 2rem;
  box-shadow: 0 18px 28px rgba(47, 108, 255, 0.28);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.active-create {
  outline: 2px solid rgba(255, 255, 255, 0.22);
}

.sidebar-nav {
  display: grid;
  gap: 18px;
  width: 100%;
}

.sidebar-link {
  display: block;
  padding: 14px 10px;
  border-radius: 18px;
  color: var(--dark-muted);
  text-align: center;
  text-decoration: none;
  font-size: 0.92rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-link.active,
.sidebar-link:hover {
  background: linear-gradient(180deg, rgba(47, 108, 255, 0.22), rgba(47, 108, 255, 0.12));
  border-color: rgba(100, 145, 255, 0.18);
  color: white;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.16);
}

.dashboard-main {
  padding: 28px 30px 36px;
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 24px;
}

.dashboard-topcopy .eyebrow {
  color: #79a2ff;
}

.dashboard-topcopy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4rem);
  letter-spacing: -0.04em;
}

.dashboard-subtitle {
  margin: 10px 0 0;
  color: var(--dark-muted);
  font-size: 1.15rem;
}

.dashboard-topactions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.dark-ghost {
  color: #8fb3ff;
  background: transparent;
  border-color: rgba(70, 120, 255, 0.52);
}

.user-chip,
.usage-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--dark-text);
  font-size: 0.9rem;
  font-weight: 700;
}

.usage-chip {
  background: rgba(47, 108, 255, 0.16);
  color: #9ec0ff;
}

.dashboard-summary-row,
.dashboard-content-grid,
.dashboard-lower-grid {
  display: grid;
  gap: 20px;
}

.dashboard-summary-row {
  grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
  margin-bottom: 26px;
}

.summary-card,
.dashboard-card {
  border-radius: 28px;
  background: var(--dark-panel);
  border: 1px solid var(--dark-line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.summary-card {
  min-height: 190px;
  padding: 24px;
}

.summary-card-primary {
  background: linear-gradient(135deg, var(--blue), #1f53e1);
}

.summary-icon {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  margin-bottom: 26px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 1.5rem;
}

.summary-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.summary-card-primary h2 {
  font-size: 2rem;
}

.summary-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.summary-link {
  display: inline-flex;
  margin-top: 16px;
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-content-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.9fr);
  margin-bottom: 20px;
}

.dashboard-lower-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.plans-panel {
  margin-top: 20px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
}

.plan-card.current {
  background: linear-gradient(180deg, rgba(47, 108, 255, 0.16), rgba(255, 255, 255, 0.04));
}

.plan-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #9dc0ff;
  font-size: 0.8rem;
  font-weight: 700;
}

.plan-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.plan-price {
  margin: 10px 0 8px;
  color: white;
  font-size: 1.6rem;
  font-weight: 800;
}

.plan-copy {
  margin: 0;
  color: var(--dark-muted);
  line-height: 1.6;
}

.dashboard-card {
  padding: 24px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 18px;
}

.card-head h2 {
  margin: 0;
  font-size: 1.6rem;
}

.dashboard-card .eyebrow {
  color: #7ba4ff;
}

.scan-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.scan-overview-block {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.scan-overview-block strong {
  display: block;
  margin: 6px 0;
  font-size: 1.4rem;
}

.scan-overview-block p {
  margin: 0;
  color: var(--dark-muted);
  line-height: 1.5;
}

.mini-label {
  color: #92b2ff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.dashboard-card label {
  color: var(--dark-text);
}

.dashboard-card input,
.dashboard-card textarea {
  width: 100%;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 21, 42, 0.9);
  color: var(--dark-text);
  font: inherit;
}

.dashboard-card input:focus,
.dashboard-card textarea:focus {
  outline: 2px solid rgba(47, 108, 255, 0.28);
  border-color: rgba(47, 108, 255, 0.5);
}

.dashboard-card textarea {
  min-height: 320px;
  resize: vertical;
}

.source-panel {
  display: none;
}

.source-panel.active {
  display: block;
}

.dark-drop {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(143, 178, 255, 0.28);
  background: rgba(8, 17, 36, 0.62);
}

.dark-drop input {
  padding: 0;
  border: none;
  background: transparent;
}

.dark-drop small {
  color: var(--dark-muted);
}

.analysis-meter {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 8px;
  color: var(--dark-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.meter-track,
.usage-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.meter-fill,
.usage-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 240ms ease;
}

.meter-fill {
  background: linear-gradient(90deg, #2f6cff, #8db6ff);
}

.meter-fill.low {
  background: linear-gradient(90deg, #1ca06f, #59cb9c);
}

.meter-fill.medium {
  background: linear-gradient(90deg, #d08a18, #efb453);
}

.meter-fill.high {
  background: linear-gradient(90deg, #d84d4d, #f07b7b);
}

.meter-caption,
.usage-caption {
  margin-top: 8px;
  color: var(--dark-muted);
  font-size: 0.92rem;
}

.dark-surface,
.sentence-item,
.history-item {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--dark-panel-soft);
  padding: 16px;
}

.sentence-list,
.history-list {
  display: grid;
  gap: 12px;
}

.sentence-item strong {
  display: inline-flex;
  margin-bottom: 6px;
}

.sentence-item.high {
  border-left: 4px solid var(--red);
}

.sentence-item.medium {
  border-left: 4px solid var(--amber);
}

.sentence-item.low {
  border-left: 4px solid var(--green);
}

.dark-history-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.dark-history-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.history-meta {
  margin: 0;
  color: var(--dark-muted);
}

.history-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

.history-tag.low {
  color: var(--green);
}

.history-tag.medium {
  color: var(--amber);
}

.history-tag.high,
.history-tag.neutral {
  color: var(--red);
}

.usage-block {
  margin-bottom: 24px;
}

.usage-row,
.usage-stats div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.usage-row {
  margin-bottom: 10px;
}

.usage-track-alt {
  background: rgba(47, 108, 255, 0.16);
}

.usage-fill {
  width: 0;
  background: linear-gradient(90deg, #ffffff, #d9e5ff);
}

.usage-fill-alt {
  background: linear-gradient(90deg, #2f6cff, #5f97ff);
}

.usage-stats {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.usage-stats span {
  color: var(--dark-muted);
}

.risk-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.risk-pill.neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--dark-muted);
}

.risk-pill.low {
  background: rgba(24, 197, 124, 0.14);
  color: var(--green);
}

.risk-pill.medium {
  background: rgba(240, 175, 69, 0.14);
  color: var(--amber);
}

.risk-pill.high {
  background: rgba(255, 113, 113, 0.14);
  color: var(--red);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: 360px;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: #152645;
  color: white;
  box-shadow: var(--shadow);
}

.toast.hidden {
  display: none;
}

@media (max-width: 1200px) {
  .dashboard-summary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-content-grid,
  .dashboard-lower-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .hero,
  .feature-grid,
  .policy-grid,
  .steps-grid,
  .auth-shell,
  .scan-overview {
    grid-template-columns: 1fr;
  }

  .entry-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    max-width: 14ch;
  }
}

@media (max-width: 820px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: none;
  }
}

@media (max-width: 760px) {
  .header-inner,
  #app {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .demo-score-grid,
  .dashboard-summary-row {
    grid-template-columns: 1fr;
  }

  .dashboard-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Proofademic-inspired auth and app shell overrides */

.shield-mark {
  clip-path: polygon(50% 0%, 89% 18%, 89% 58%, 50% 100%, 11% 58%, 11% 18%);
  border-radius: 0;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(180deg, #4f96ff, #2051d6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 16px 28px rgba(24, 74, 212, 0.3);
}

.auth-shell-proof {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1fr);
}

.auth-shell-single {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 0.76fr);
}

.auth-shell-proof .auth-panel {
  padding: 34px 56px 34px min(8vw, 72px);
}

.auth-panel-inner {
  width: min(560px, 100%);
}

.auth-shell-proof .auth-brand {
  margin-bottom: 54px;
}

.auth-shell-proof .auth-brand .brand-copy strong {
  font-size: 1.05rem;
}

.auth-shell-proof .auth-copy-block {
  margin-bottom: 30px;
}

.auth-shell-proof .auth-copy-block .eyebrow {
  color: #89abff;
}

.auth-shell-proof .auth-copy-block h1 {
  font-size: clamp(3rem, 4vw, 4.25rem);
}

.auth-form-shell {
  max-width: 560px;
}

.auth-shell-proof .google-button {
  margin-top: 0;
  justify-content: flex-start;
  padding: 0 22px;
  font-weight: 700;
  font-size: 1.02rem;
}

.auth-shell-proof .google-mark {
  width: 34px;
  height: 34px;
  background: white;
  color: inherit;
}

.auth-shell-proof .google-mark svg {
  width: 18px;
  height: 18px;
}

.auth-field {
  display: grid;
  gap: 10px;
  margin: 0;
}

.auth-field[hidden] {
  display: none !important;
}

.auth-field-label {
  color: #c9d3e9;
  font-size: 0.98rem;
  font-weight: 600;
}

.auth-input-shell {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(13, 28, 56, 0.98), rgba(10, 22, 45, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 32px rgba(0, 0, 0, 0.16);
}

.auth-shell-proof .auth-body input,
.auth-shell-proof input {
  font-size: 1.08rem;
}

.auth-shell-proof .auth-input-shell input {
  min-height: 70px;
  padding: 0 22px;
  border-radius: 18px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  font-size: 1.08rem;
}

.auth-shell-proof .auth-input-shell input::placeholder {
  color: rgba(188, 200, 221, 0.52);
}

.auth-shell-proof .auth-input-shell:focus-within {
  border-color: rgba(78, 129, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 3px rgba(47, 108, 255, 0.14),
    0 20px 36px rgba(0, 0, 0, 0.2);
}

.auth-shell-proof input:-webkit-autofill,
.auth-shell-proof input:-webkit-autofill:hover,
.auth-shell-proof input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--dark-text);
  -webkit-box-shadow: 0 0 0 1000px #0b1730 inset;
  transition: background-color 9999s ease-in-out 0s;
  caret-color: var(--dark-text);
}

.auth-utility-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.auth-utility-link {
  padding: 0;
  border: none;
  background: transparent;
  color: #64a1ff;
  font: inherit;
  cursor: pointer;
}

.auth-shell-proof .auth-actions {
  margin-top: 8px;
}

.auth-shell-proof .auth-submit {
  min-height: 64px;
  font-size: 1.02rem;
  font-weight: 700;
}

.auth-shell-proof .auth-switch-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 28px;
  font-size: 1rem;
}

.auth-shell-proof .auth-text-button {
  color: #66a2ff;
  font-weight: 700;
}

.auth-shell-proof .auth-aside {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(circle at 22% 18%, rgba(64, 112, 255, 0.42), transparent 0 18%),
    linear-gradient(180deg, #12225e 0%, #162968 100%);
}

.auth-aside-orb {
  position: absolute;
  inset: auto auto 24% 22%;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: rgba(71, 116, 255, 0.3);
  filter: blur(60px);
}

.auth-shell-proof .auth-aside-card {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 72px));
  margin: auto;
  padding: 42px;
  border-radius: 30px;
  background: rgba(102, 121, 194, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.auth-shell-proof .auth-aside-card .eyebrow {
  color: #bcc8e1;
}

.auth-shell-proof .auth-aside-card h2 {
  font-size: clamp(2.2rem, 3vw, 3rem);
}

.proof-app-layout {
  grid-template-columns: 108px minmax(0, 1fr);
}

.proof-sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 22px 14px;
  gap: 24px;
  background:
    linear-gradient(180deg, rgba(2, 8, 22, 0.98), rgba(5, 12, 31, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(56, 110, 255, 0.18), transparent 24%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.03),
    16px 0 40px rgba(0, 0, 0, 0.16);
}

.proof-sidebar .dashboard-brand {
  margin-top: 4px;
}

.proof-sidebar .brand-mark {
  width: 56px;
  height: 56px;
  font-size: 1rem;
}

.proof-sidebar .sidebar-create {
  width: 62px;
  height: 62px;
  margin-top: 2px;
  font-size: 2.2rem;
}

.proof-sidebar .sidebar-nav {
  gap: 14px;
}

.sidebar-divider {
  width: 42px;
  height: 1px;
  margin: auto 0 10px;
  background: rgba(255, 255, 255, 0.14);
}

.proof-sidebar .sidebar-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 92px;
  padding: 10px 6px;
  border-radius: 22px;
  background: transparent;
}

.proof-sidebar .sidebar-link-icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #91a6cc;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.proof-sidebar .sidebar-link-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.proof-sidebar .sidebar-link svg {
  width: 23px;
  height: 23px;
}

.proof-sidebar .sidebar-link.active,
.proof-sidebar .sidebar-link:hover {
  background: rgba(48, 107, 255, 0.07);
}

.proof-sidebar .sidebar-link.active .sidebar-link-icon,
.proof-sidebar .sidebar-link:hover .sidebar-link-icon {
  color: #64a1ff;
  background: linear-gradient(180deg, rgba(47, 108, 255, 0.24), rgba(47, 108, 255, 0.12));
  border-color: rgba(121, 162, 255, 0.22);
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.proof-sidebar .sidebar-link.active .sidebar-link-label,
.proof-sidebar .sidebar-link:hover .sidebar-link-label {
  color: white;
}

.proof-sidebar .sidebar-link-static {
  cursor: default;
}

.proof-dashboard-main {
  position: relative;
  padding: 26px 30px 42px;
}

.proof-dashboard-main::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 46px;
  width: 380px;
  height: 220px;
  border-radius: 999px;
  background: rgba(47, 108, 255, 0.3);
  filter: blur(70px);
  pointer-events: none;
}

.dashboard-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.toolbar-button,
.toolbar-upgrade,
.toolbar-signout {
  min-height: 44px;
  padding: 0 16px;
}

.toolbar-usage {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.toolbar-usage-track {
  width: 340px;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(64, 97, 168, 0.4);
}

.toolbar-usage-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f6cff, #63a0ff);
}

.toolbar-usage span {
  color: #d9e5ff;
  font-size: 0.95rem;
  font-weight: 700;
}

.toolbar-profile {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.toolbar-profile-copy {
  display: grid;
  gap: 3px;
  text-align: right;
}

.toolbar-profile-copy strong {
  color: white;
  font-size: 0.95rem;
}

.toolbar-profile-copy small {
  color: var(--dark-muted);
  font-size: 0.82rem;
}

.user-avatar {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe27a, #f6c53d);
  color: #26304d;
  font-weight: 800;
  border: 3px solid rgba(170, 196, 255, 0.6);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.dashboard-hero {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.dashboard-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-plan-badge {
  background: #2f6cff;
  color: white;
  box-shadow: 0 14px 24px rgba(47, 108, 255, 0.24);
}

.proof-dashboard-main .dashboard-subtitle {
  color: #f1f5ff;
}

.proof-dashboard-main .dashboard-summary-row {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}

.proof-dashboard-main .summary-card,
.proof-dashboard-main .dashboard-card {
  border-radius: 26px;
  background: rgba(52, 71, 97, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 22px 34px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.proof-dashboard-main .summary-card {
  min-height: 224px;
  padding: 28px;
}

.proof-dashboard-main .summary-card-primary {
  background: linear-gradient(180deg, #2f6cff 0%, #1f53e1 100%);
}

.proof-dashboard-main .summary-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-dashboard-main .summary-icon svg {
  width: 24px;
  height: 24px;
}

.proof-dashboard-main .summary-card h2 {
  font-size: 1.45rem;
}

.proof-dashboard-main .summary-card-primary h2 {
  font-size: 1.95rem;
}

.proof-dashboard-main .summary-card p {
  max-width: 22ch;
  color: rgba(255, 255, 255, 0.8);
}

.proof-dashboard-main .summary-link {
  margin-top: 18px;
  font-size: 1rem;
}

.proof-dashboard-main .dashboard-lower-grid,
.proof-dashboard-main .dashboard-content-grid {
  position: relative;
  z-index: 1;
  gap: 24px;
}

.proof-dashboard-main .dashboard-card {
  padding: 28px;
}

.proof-dashboard-main .card-head {
  margin-bottom: 22px;
}

.proof-dashboard-main .card-head h2 {
  font-size: 1.9rem;
}

.proof-dashboard-main .history-list,
.proof-dashboard-main .sentence-list {
  gap: 14px;
}

.proof-dashboard-main .history-item {
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(39, 54, 77, 0.76);
}

.proof-dashboard-main .history-item strong {
  font-size: 0.98rem;
}

.proof-dashboard-main .history-tag {
  min-width: 112px;
  background: rgba(11, 52, 38, 0.34);
}

.proof-dashboard-main .usage-track {
  height: 16px;
  background: rgba(255, 255, 255, 0.16);
}

.proof-dashboard-main .usage-track-alt {
  background: rgba(47, 108, 255, 0.24);
}

.proof-dashboard-main .usage-fill {
  background: linear-gradient(90deg, #ffffff, #f3f7ff);
}

.proof-dashboard-main .usage-fill-alt {
  background: linear-gradient(90deg, #2f6cff, #4f8dff);
}

.proof-dashboard-main .usage-caption {
  font-size: 0.95rem;
}

.proof-dashboard-main .usage-stats {
  gap: 16px;
}

.proof-dashboard-main .usage-stats strong {
  font-size: 1.05rem;
}

.usage-actions {
  margin-top: 18px;
}

.usage-actions .ghost-button {
  min-height: 46px;
}

.proof-dashboard-main .plans-panel {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}

.proof-dashboard-main .plan-card {
  min-height: 210px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 12px;
}

.proof-dashboard-main .plan-card.current {
  background: linear-gradient(180deg, rgba(47, 108, 255, 0.22), rgba(255, 255, 255, 0.05));
}

.proof-dashboard-main .plan-price {
  font-size: 1.72rem;
}

.plan-select-button {
  margin-top: auto;
  min-height: 46px;
}

.plan-select-button:disabled {
  opacity: 0.72;
  cursor: default;
}

.proof-dashboard-main .plan-price span,
.tier-price span {
  font-size: 0.95rem;
  color: var(--dark-muted);
  font-weight: 600;
}

.tiers-section {
  margin-top: 76px;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.tier-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.tier-card-featured {
  background:
    linear-gradient(180deg, rgba(237, 244, 255, 0.98), rgba(245, 249, 255, 0.96)),
    linear-gradient(135deg, rgba(47, 108, 255, 0.12), transparent 55%);
  border-color: rgba(47, 108, 255, 0.18);
  transform: translateY(-6px);
}

.tier-tag {
  display: inline-flex;
  justify-self: flex-start;
  padding: 0.42rem 0.76rem;
  border-radius: 999px;
  background: rgba(47, 108, 255, 0.1);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tier-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.tier-price {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.tier-meta {
  margin: -6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.tier-limit {
  color: var(--blue-deep);
  font-size: 1rem;
}

.tier-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.tier-button {
  margin-top: auto;
}

.detector-hero {
  margin-bottom: 20px;
}

.detector-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.detector-editor-card .stack-form {
  gap: 18px;
}

.detector-field {
  display: grid;
  gap: 12px;
  color: var(--dark-text);
  font-weight: 600;
}

.detector-field span {
  color: #dce5f9;
}

.detector-toggle-row {
  padding: 6px;
  border-radius: 20px;
  background: rgba(9, 18, 37, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.detector-toggle-row .toggle {
  flex: 1;
  min-height: 52px;
  color: #b7c5dd;
  background: transparent;
  border-color: transparent;
}

.detector-toggle-row .toggle.active {
  background: linear-gradient(180deg, rgba(47, 108, 255, 0.24), rgba(47, 108, 255, 0.16));
  border-color: rgba(117, 155, 255, 0.24);
}

.detector-editor-card textarea {
  min-height: 360px;
}

.detector-actions {
  margin-top: 4px;
}

.detector-actions .primary-button,
.detector-actions .ghost-button {
  min-height: 52px;
}

.proof-dashboard-main .scan-overview-block {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.proof-dashboard-main .result-card-dark .dark-surface,
.proof-dashboard-main .sentence-item {
  background: rgba(39, 54, 77, 0.76);
}

.proof-dashboard-main .result-summary p {
  margin: 0 0 10px;
}

.proof-dashboard-main .result-summary p:last-child {
  margin-bottom: 0;
}

.proof-dashboard-main .analysis-meter {
  padding: 18px;
  border-radius: 20px;
}

.proof-dashboard-main .meter-track {
  height: 16px;
}

.proof-dashboard-main .risk-pill {
  min-height: 42px;
  padding: 0.4rem 1rem;
}

.proof-dashboard-main .dark-drop {
  padding: 28px;
  border-radius: 20px;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  border-style: solid;
  border-color: rgba(101, 144, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(10, 20, 40, 0.96), rgba(8, 16, 33, 0.92)),
    linear-gradient(180deg, rgba(47, 108, 255, 0.06), transparent);
}

.proof-dashboard-main .dark-drop strong {
  color: white;
  font-size: 1.05rem;
}

.proof-dashboard-main .dark-drop span {
  color: #c9d4e9;
}

.proof-dashboard-main .dark-drop small {
  max-width: 36ch;
}

.file-drop-icon {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(47, 108, 255, 0.12);
  color: #82adff;
  border: 1px solid rgba(101, 144, 255, 0.18);
}

.file-drop-icon svg {
  width: 28px;
  height: 28px;
}

.file-format-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.file-format-row span {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d7e3fb;
  font-size: 0.8rem;
  font-weight: 700;
}

.file-drop.selected {
  border-color: rgba(91, 153, 255, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 3px rgba(47, 108, 255, 0.12);
}

.file-drop.selected .file-drop-icon {
  background: rgba(47, 108, 255, 0.2);
  color: #cfe1ff;
}

.file-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 14px;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #d3def5;
  font-size: 0.92rem;
}

.proof-dashboard-main #file-panel {
  display: none;
}

.proof-dashboard-main #file-panel.active {
  display: block;
}

@media (max-width: 1200px) {
  .dashboard-toolbar {
    flex-wrap: wrap;
  }

  .toolbar-usage {
    order: 5;
    width: 100%;
    margin-left: 0;
  }

  .toolbar-usage-track {
    flex: 1;
  }
}

@media (max-width: 1024px) {
  .auth-shell-proof {
    grid-template-columns: 1fr;
  }

  .auth-shell-proof .auth-aside {
    min-height: 320px;
    padding: 40px 28px 56px;
  }

  .auth-shell-proof .auth-aside-card {
    width: min(100%, 620px);
  }

  .detector-grid {
    grid-template-columns: 1fr;
  }

  .tiers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .proof-app-layout {
    grid-template-columns: 1fr;
  }

  .proof-sidebar {
    display: none;
  }
}

@media (max-width: 760px) {
  .auth-shell-proof .auth-panel {
    padding: 28px 18px 36px;
  }

  .auth-panel-inner {
    width: 100%;
  }

  .toolbar-profile-copy,
  .toolbar-signout {
    display: none;
  }

  .toolbar-usage {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .toolbar-usage-track {
    width: 100%;
  }

  .dashboard-title-row {
    align-items: flex-start;
  }

  .tiers-grid {
    grid-template-columns: 1fr;
  }
}

.landing-body,
.public-page-body {
  color: var(--dark-text);
  background:
    radial-gradient(circle at top left, rgba(31, 91, 255, 0.2), transparent 20%),
    radial-gradient(circle at 85% 0%, rgba(83, 134, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #020917 0%, #06102b 100%);
}

.landing-body .ambient-one,
.public-page-body .ambient-one {
  background: rgba(47, 108, 255, 0.16);
}

.landing-body .ambient-two,
.public-page-body .ambient-two {
  background: rgba(78, 132, 255, 0.12);
}

.landing-body .site-header,
.public-page-body .site-header {
  background: rgba(3, 9, 24, 0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-body .brand-copy strong,
.public-page-body .brand-copy strong {
  color: var(--dark-text);
}

.landing-body .brand-copy small,
.public-page-body .brand-copy small,
.landing-body .main-nav a,
.public-page-body .main-nav a,
.landing-body .hero-text,
.landing-body .section-heading p,
.landing-body .feature-card p,
.landing-body .policy-card p,
.landing-body .entry-banner p,
.landing-body .hero-note p,
.landing-body .step-card p,
.landing-body .tier-meta,
.landing-body .tier-list,
.public-lead,
.public-copy-card p,
.public-copy-card li,
.site-footer p,
.site-footer a,
.site-footer small {
  color: var(--dark-muted);
}

.landing-body .eyebrow,
.public-page-body .eyebrow,
.landing-body .tier-limit,
.resource-tag,
.contact-address a {
  color: #8eb6ff;
}

.landing-body .ghost-button,
.landing-body .link-button,
.public-page-body .ghost-button {
  color: var(--dark-text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.landing-body .primary-button,
.public-page-body .primary-button {
  color: white;
}

.landing-body a.primary-button,
.public-page-body a.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(47, 108, 255, 0.24);
}

.landing-body .hero-copy::before {
  background:
    linear-gradient(160deg, rgba(9, 18, 39, 0.94), rgba(7, 15, 31, 0.84)),
    radial-gradient(circle at top right, rgba(47, 108, 255, 0.22), transparent 38%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
}

.landing-body .hero h1,
.landing-body .section-heading h2,
.landing-body .entry-banner h2,
.landing-body .feature-card h3,
.landing-body .policy-card h3,
.landing-body .step-card h3,
.landing-body .tier-card h3,
.public-page-body h1,
.public-page-body h2,
.public-page-body h3,
.resource-card h3,
.footer-column h3 {
  color: var(--dark-text);
}

.landing-body .hero-demo,
.landing-body .feature-card,
.landing-body .policy-card,
.landing-body .entry-banner,
.landing-body .step-card,
.landing-body .tier-card,
.resource-card,
.public-copy-card,
.public-cta-card,
.site-footer {
  background:
    linear-gradient(180deg, rgba(10, 20, 40, 0.96), rgba(8, 16, 33, 0.92)),
    linear-gradient(180deg, rgba(47, 108, 255, 0.06), transparent);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

.landing-body .accent-card,
.landing-body .tier-card-featured {
  background:
    linear-gradient(180deg, rgba(24, 49, 93, 0.92), rgba(9, 18, 38, 0.96)),
    radial-gradient(circle at top, rgba(97, 145, 255, 0.18), transparent 48%);
  border-color: rgba(101, 144, 255, 0.24);
}

.landing-body .hero-audience span,
.landing-body .trust-strip span,
.landing-body .hero-note,
.landing-body .demo-score-grid article,
.landing-body .demo-summary,
.public-hero-meta span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c9d4e9;
}

.landing-body .hero-note strong,
.landing-body .demo-label,
.landing-body .demo-results h2,
.landing-body .score-label,
.landing-body .demo-score-grid strong,
.landing-body .demo-summary strong {
  color: var(--dark-text);
}

.landing-body .demo-topbar {
  background: linear-gradient(180deg, rgba(8, 15, 30, 0.98), rgba(7, 13, 27, 0.95));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-body .demo-domain {
  color: #8eb6ff;
}

.landing-body .demo-editor {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-body .demo-text,
.landing-body .demo-meta {
  color: #c9d4e9;
}

.landing-body .feature-card::before {
  background: linear-gradient(90deg, #6f9fff, #d0e0ff);
}

.landing-body .tier-tag,
.resource-tag {
  display: inline-flex;
  justify-self: flex-start;
  padding: 0.42rem 0.76rem;
  border-radius: 999px;
  background: rgba(47, 108, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.landing-body .tier-price {
  color: var(--dark-text);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.public-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.resource-card,
.public-copy-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 28px;
  text-decoration: none;
}

.resource-card p {
  margin: 0;
  line-height: 1.7;
}

.public-shell,
.footer-inner,
.footer-bottom {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.public-shell {
  padding: 52px 0 84px;
}

.public-hero {
  display: grid;
  gap: 18px;
  padding: 34px;
  border-radius: 32px;
  background:
    linear-gradient(160deg, rgba(9, 18, 39, 0.94), rgba(7, 15, 31, 0.84)),
    radial-gradient(circle at top right, rgba(47, 108, 255, 0.22), transparent 38%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
}

.public-hero h1 {
  margin: 0;
  max-width: 16ch;
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
}

.public-lead {
  margin: 0;
  max-width: 68ch;
  line-height: 1.8;
  font-size: 1.03rem;
}

.public-hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.public-copy-stack {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.public-copy-card h2,
.resource-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.public-copy-card p {
  margin: 0;
  line-height: 1.75;
}

.public-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.public-cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-top: 32px;
  padding: 28px;
  border-radius: 28px;
}

.public-grid-wide .public-copy-card:first-child {
  grid-column: span 2;
}

.contact-address {
  font-size: 1.28rem;
  font-weight: 800;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 24px;
  padding: 28px 0 0;
  border-radius: 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(0, 1.6fr);
  gap: 32px;
  padding-bottom: 26px;
}

.footer-brand-block p {
  max-width: 34ch;
  margin: 16px 0 0;
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.footer-column {
  display: grid;
  gap: 10px;
}

.footer-column h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-column a {
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #95a6c4;
  font-size: 0.92rem;
}

@media (max-width: 1200px) {
  .resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand-block p {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .landing-body .hero,
  .resources-grid,
  .public-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .public-grid-wide .public-copy-card:first-child {
    grid-column: auto;
  }

  .public-cta-card,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .public-shell {
    padding-top: 32px;
  }

  .public-hero,
  .resource-card,
  .public-copy-card,
  .public-cta-card {
    padding: 22px;
  }

  .public-hero h1 {
    max-width: none;
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .landing-body .header-inner,
  .public-page-body .header-inner {
    align-items: flex-start;
  }

  .landing-body .main-nav,
  .public-page-body .main-nav {
    width: 100%;
    justify-content: flex-start;
  }
}

.site-menu-toggle,
.mobile-app-header,
.mobile-app-nav {
  display: none;
}

.site-menu-toggle {
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dark-text);
  cursor: pointer;
}

.site-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.site-menu-toggle[aria-expanded="true"] {
  background: rgba(47, 108, 255, 0.14);
  border-color: rgba(108, 157, 255, 0.26);
  box-shadow: 0 14px 28px rgba(4, 10, 24, 0.22);
}

.mobile-app-header {
  position: relative;
  z-index: 2;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(8, 18, 38, 0.96), rgba(6, 14, 30, 0.92)),
    linear-gradient(180deg, rgba(47, 108, 255, 0.06), transparent);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.mobile-app-brand .brand-mark {
  width: 44px;
  height: 44px;
}

.mobile-app-brand .brand-copy {
  gap: 2px;
}

.mobile-app-brand .brand-copy strong,
.mobile-app-brand .brand-copy small {
  color: var(--dark-text);
}

.mobile-app-brand .brand-copy small {
  color: var(--dark-muted);
}

.mobile-app-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mobile-app-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
}

.mobile-app-nav {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 50;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 26px;
  background: rgba(5, 12, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.mobile-app-link {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 64px;
  padding: 10px 6px;
  border-radius: 18px;
  text-decoration: none;
  color: #b4c2dc;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.mobile-app-link.active {
  color: white;
  background: linear-gradient(180deg, rgba(47, 108, 255, 0.22), rgba(47, 108, 255, 0.12));
}

.mobile-app-link-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-app-link.active .mobile-app-link-icon {
  background: rgba(255, 255, 255, 0.12);
}

.mobile-app-link svg {
  width: 20px;
  height: 20px;
}

#activity-panel,
#usage-panel,
#plans-panel,
#history-panel,
#result-panel,
#settings-panel,
#billing-card,
#security-card {
  scroll-margin-top: 92px;
}

.settings-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.settings-stack {
  display: grid;
  gap: 24px;
}

.settings-form {
  gap: 18px;
}

.settings-readonly-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.settings-readonly-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-readonly-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.08rem;
  color: white;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.settings-readonly-card p,
.settings-note,
.settings-help-list a,
.settings-help-list li,
.settings-security-copy {
  color: var(--dark-muted);
  line-height: 1.6;
}

.settings-input {
  min-height: 56px;
}

.settings-actions {
  margin-top: 2px;
}

.settings-actions .primary-button,
.settings-actions .ghost-button {
  min-height: 48px;
}

.settings-billing-stats {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.settings-billing-stats div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.settings-billing-stats span {
  color: var(--dark-muted);
}

.settings-billing-stats strong {
  color: white;
  text-align: right;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dce8ff;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-pill.status-active {
  background: rgba(24, 197, 124, 0.16);
  color: #8ef0bf;
}

.status-pill.status-trialing,
.status-pill.status-past_due {
  background: rgba(240, 175, 69, 0.16);
  color: #ffd48d;
}

.status-pill.status-canceled,
.status-pill.status-inactive {
  background: rgba(255, 113, 113, 0.16);
  color: #ffabab;
}

.settings-security-list {
  display: grid;
  gap: 14px;
}

.settings-security-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-security-item strong,
.settings-help-list strong {
  color: white;
}

.settings-security-item p,
.settings-help-list p {
  margin: 6px 0 0;
}

.settings-security-item .ghost-button,
.settings-security-item .primary-button {
  min-height: 44px;
  white-space: nowrap;
}

.settings-help-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.settings-help-list li {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-help-list p {
  margin: 6px 0 0;
}

@media (max-width: 820px) {
  .proof-dashboard-main {
    padding: 18px 16px 120px;
  }

  .proof-dashboard-main::before {
    left: 10px;
    top: -70px;
    width: 240px;
    height: 160px;
  }

  .dashboard-toolbar {
    display: none;
  }

  .mobile-app-header,
  .mobile-app-nav {
    display: grid;
  }

  .mobile-app-header {
    position: sticky;
    top: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    padding: 16px;
    backdrop-filter: blur(20px);
  }

  .mobile-app-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(360px, 100%);
  }

  .mobile-app-action {
    min-width: 0;
    padding: 0 10px;
    font-size: 0.86rem;
  }

  .mobile-app-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .mobile-app-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-app-link {
    flex: 1 0 78px;
    min-width: 78px;
    scroll-snap-align: center;
  }

  .proof-dashboard-main .dashboard-summary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .proof-dashboard-main .dashboard-summary-row .summary-card:first-child {
    grid-column: 1 / -1;
  }

  .proof-dashboard-main .summary-card {
    min-height: 0;
    padding: 22px;
  }

  .proof-dashboard-main .summary-card h2 {
    font-size: 1.24rem;
  }

  .proof-dashboard-main .summary-card-primary h2 {
    font-size: 1.72rem;
  }

  .dashboard-card,
  .summary-card {
    border-radius: 24px;
  }

  .dashboard-card,
  .summary-card,
  .resource-card,
  .public-copy-card,
  .public-cta-card,
  .entry-banner,
  .hero-note {
    padding-left: 18px;
    padding-right: 18px;
  }

  .settings-grid,
  .settings-readonly-grid {
    grid-template-columns: 1fr;
  }

  .proof-dashboard-main .dashboard-content-grid,
  .proof-dashboard-main .dashboard-lower-grid,
  .settings-grid,
  .settings-stack {
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .site-menu-toggle {
    display: inline-flex;
  }

  .site-nav-open {
    overflow: hidden;
  }

  .site-nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(1, 7, 20, 0.42);
    backdrop-filter: blur(10px);
  }

  .landing-body .header-inner,
  .public-page-body .header-inner {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .landing-body .main-nav,
  .public-page-body .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 31;
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(7, 16, 34, 0.98), rgba(5, 13, 28, 0.96)),
      linear-gradient(180deg, rgba(47, 108, 255, 0.08), transparent);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
      0 24px 44px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .landing-body .main-nav.is-open,
  .public-page-body .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .landing-body .main-nav a,
  .public-page-body .main-nav a {
    width: 100%;
  }

  .landing-body .main-nav > a:not(.nav-link-button),
  .public-page-body .main-nav > a:not(.nav-link-button) {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #d8e3f8;
  }

  .landing-body .main-nav > a.nav-link-button,
  .public-page-body .main-nav > a.nav-link-button {
    min-height: 52px;
    justify-content: center;
  }

  .landing-body .main-nav > a.nav-link-button:first-of-type,
  .public-page-body .main-nav > a.nav-link-button:first-of-type {
    margin-top: 4px;
  }

  #app,
  .public-shell,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .landing-body .hero {
    gap: 18px;
  }

  .landing-body .hero-copy {
    padding-top: 4px;
  }

  .landing-body .hero-copy::before {
    inset: -10px -10px -12px;
    border-radius: 26px;
  }

  .landing-body .hero-demo,
  .public-hero,
  .entry-banner,
  .tier-card,
  .resource-card,
  .public-copy-card,
  .public-cta-card {
    border-radius: 24px;
  }

  .landing-body .demo-topbar,
  .landing-body .demo-editor,
  .landing-body .demo-results,
  .public-hero {
    padding: 18px;
  }

  .landing-body .demo-score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-body .hero-note {
    padding: 16px;
  }

  .landing-body .tier-card-featured {
    transform: none;
  }

  .public-shell {
    padding: 30px 0 96px;
  }

  .hero-actions a,
  .entry-actions a,
  .public-cta-card .entry-actions a {
    width: 100%;
  }

  .hero-audience {
    gap: 8px;
  }

  .hero-audience span,
  .trust-strip span,
  .public-hero-meta span {
    font-size: 0.84rem;
  }

  .auth-shell-proof .auth-aside {
    display: none;
  }

  .auth-shell-proof {
    min-height: 100vh;
  }

  .auth-shell-proof .auth-panel {
    min-height: 100vh;
    justify-content: center;
  }

  .auth-shell-proof .google-button,
  .auth-shell-proof .auth-body input {
    min-height: 60px;
  }

  .public-hero h1 {
    max-width: none;
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .scan-overview {
    grid-template-columns: 1fr;
  }

  .detector-editor-card textarea {
    min-height: 260px;
  }

  .card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .settings-security-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .settings-security-item .ghost-button,
  .settings-security-item .primary-button {
    width: 100%;
  }

  .detector-actions .primary-button,
  .detector-actions .ghost-button,
  .settings-actions .primary-button,
  .settings-actions .ghost-button {
    width: 100%;
  }

  .dark-history-item,
  .usage-row,
  .settings-billing-stats div {
    flex-direction: column;
    align-items: flex-start;
  }

  .history-tag {
    align-self: flex-start;
  }

  .settings-billing-stats strong {
    text-align: left;
  }

  .file-status-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .usage-row,
  .footer-bottom {
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .mobile-app-header {
    grid-template-columns: 1fr;
    top: 8px;
  }

  .mobile-app-actions {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .mobile-app-action {
    justify-content: center;
  }

  .mobile-app-action:last-child {
    grid-column: 1 / -1;
  }

  .mobile-app-nav {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 8px;
  }

  .mobile-app-link {
    min-height: 60px;
    padding: 8px 4px;
    font-size: 0.72rem;
    min-width: 72px;
  }

  .mobile-app-link-icon {
    width: 34px;
    height: 34px;
  }

  .dashboard-topcopy h1,
  .landing-body .hero h1 {
    font-size: clamp(2.1rem, 13vw, 3.2rem);
  }

  .summary-card,
  .dashboard-card {
    padding: 18px;
  }
}
