@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ---- One Click Marketing design tokens ---- */
:root {
  --paper: #F5F6F9; --ink: #10122B; --ink-2: #4A4E6D;
  --indigo: #2F45E0; --electric: #5B6CFF; --win: #0FA968;
  --card: #FFFFFF; --line: #E3E6F2;
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  --step-5: clamp(2.75rem, 1.2rem + 6.5vw, 5.25rem);
  --step-4: clamp(2rem, 1.1rem + 3.5vw, 3.25rem);
  --step-1: 1.25rem; --step-0: 1.0625rem;
  --space-section: clamp(5rem, 12vw, 9rem);
  --measure: 72rem; --radius: 1.25rem;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
h1, h2, .price { font-family: var(--font-display); letter-spacing: -0.02em; }
h1 { font-size: var(--step-5); line-height: .97; font-weight: 800; }
h2 { font-size: var(--step-4); line-height: 1.05; font-weight: 700; }
em.hl { font-style: normal; color: var(--indigo); position: relative; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--electric); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 0; z-index: 10; }
.btn { display: inline-block; padding: .8rem 1.6rem; border-radius: 999px; text-decoration: none; font-weight: 600; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--indigo); }
.btn-ghost { border: 1.5px solid var(--line); background: var(--card); }
/* --electric on white text is 4.17:1, below the 4.5:1 threshold for normal text;
   --indigo passes at 6.89:1, so the resting state uses indigo and electric is
   reserved for hover, where the higher-contrast state is not required. */
.btn-electric { background: var(--indigo); color: #fff; }
.btn-electric:hover { background: var(--electric); }

/* ---- Public site header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1.05rem;
  text-decoration: none; color: var(--ink);
}
.wordmark-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--indigo); color: #fff;
  font-size: .85rem; line-height: 1;
}
.site-header nav {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 1.5rem; font-weight: 500;
}
.site-header nav a { text-decoration: none; }
@media (max-width: 40rem) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .site-header nav { width: 100%; gap: 1rem 1.25rem; }
}

/* ---- Public site footer ---- */
.site-footer {
  background: var(--ink); color: var(--paper);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  max-width: var(--measure);
  margin-inline: auto;
}
.footer-col .wordmark { color: var(--paper); }
.footer-strapline {
  margin: .75rem 0 0;
  color: rgb(245 246 249 / 65%);
  max-width: 28ch;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-nav a, .footer-contact a {
  color: var(--paper);
  text-decoration: none;
}
.footer-nav a:hover, .footer-contact a:hover {
  text-decoration: underline;
}
.footer-legal {
  margin: .75rem 0 0;
  color: rgb(245 246 249 / 55%);
  font-size: .9rem;
}
@media (max-width: 40rem) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  padding: var(--space-section) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
  max-width: var(--measure);
  margin-inline: auto;
}
.hero .eyebrow {
  grid-column: 1 / 12;
  font-family: var(--font-mono);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-2);
  margin: 0 0 1rem;
}
.hero h1 {
  grid-column: 1 / 12;
  margin: 0;
}
.hero-standfirst {
  grid-column: 7 / 13;
  grid-row: 3;
  align-self: start;
  max-width: 34ch;
  color: var(--ink-2);
  margin-top: 1.6rem;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 1.5rem;
}
@media (max-width: 56rem) {
  .hero .eyebrow, .hero h1, .hero-standfirst {
    grid-column: 1 / -1;
    max-width: none;
  }
}

em.hl {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 40 2, 80 10, 100 6 S 160 2, 198 7' fill='none' stroke='%235B6CFF' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100% .5em;
  padding-bottom: .08em;
}

/* ---- Ranking ticker (signature element) ---- */
.ticker {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 45s linear infinite;
}
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}
.ticker-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ticker-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.5rem;
  font-family: var(--font-mono);
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ticker .kw { color: var(--paper); }
.ticker .pos { opacity: .55; text-decoration: line-through; }
.ticker .pos.win { opacity: 1; text-decoration: none; color: var(--win); font-weight: 700; }
.ticker .arrow { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---- What you get ---- */
.what {
  padding-block: var(--space-section);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  max-width: var(--measure);
  margin-inline: auto;
}
.what h2 {
  max-width: 24ch;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
}
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(2rem, 5vw, 4rem);
  row-gap: clamp(2.5rem, 4vw, 3.5rem);
  margin: 0;
}
.service dt {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  margin: 0 0 .5rem;
}
.service dd {
  margin: 0;
  max-width: 30ch;
  color: var(--ink-2);
}
@media (min-width: 56.01rem) {
  .service:nth-child(odd) {
    transform: translateY(1.5rem);
  }
}
@media (max-width: 56rem) {
  .services {
    grid-template-columns: 1fr;
  }
}

/* ---- How it works ---- */
.how {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  background: var(--card);
}
.how-inner {
  padding-block: var(--space-section);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  max-width: var(--measure);
  margin-inline: auto;
}
.how h2 {
  max-width: 24ch;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.step:nth-child(2) { margin-top: 2.5rem; }
.step:nth-child(3) { margin-top: 5rem; }
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 800;
  color: rgb(16 18 43 / 20%);
  line-height: 1;
  margin-bottom: .75rem;
}
.step h3 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  margin: 0 0 .5rem;
}
.step p {
  color: var(--ink-2);
  margin: 0;
  max-width: 28ch;
}
@media (max-width: 56rem) {
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(2), .step:nth-child(3) { margin-top: 0; }
}

/* ---- Pricing (the page's one symmetric, formal moment) ---- */
.pricing {
  padding-block: var(--space-section);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  max-width: var(--measure);
  margin-inline: auto;
  text-align: center;
}
.pricing h2 {
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  max-width: 24ch;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  text-align: left;
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.plan-featured {
  border: 2px solid var(--indigo);
  position: relative;
}
@media (min-width: 56.01rem) {
  .plan-featured {
    transform: translateY(-.75rem);
  }
}
.plan-badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 1rem;
  padding: .3rem .9rem;
  border-radius: 999px;
  background: rgb(47 69 224 / 12%);
  color: var(--indigo);
  font-size: .82rem;
  font-weight: 700;
}
.plan h3 {
  margin: 0 0 .5rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
}
.plan .price {
  margin: 0 0 .75rem;
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 1;
}
.plan .price .per {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: normal;
}
.plan-tagline {
  margin: 0 0 1.5rem;
  color: var(--ink-2);
}
.plan-features {
  flex: 1;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.plan-features li {
  padding-left: 1.6rem;
  position: relative;
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--indigo);
  font-weight: 700;
}
.plan-features li.plan-features-divider {
  padding-left: 0;
  margin-top: .25rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
  font-variant: small-caps;
  letter-spacing: .04em;
  color: var(--ink-2);
  font-weight: 600;
}
.plan-features li.plan-features-divider::before {
  content: none;
}
.plan .btn {
  text-align: center;
  margin-top: auto;
}
.pricing-note {
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  max-width: 46ch;
  color: var(--ink-2);
}
.pricing-note strong {
  color: var(--ink);
}
@media (max-width: 56rem) {
  .plans {
    grid-template-columns: 1fr;
  }
}

/* ---- FAQ ---- */
.faq {
  padding-block: var(--space-section);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  max-width: 48rem;
  margin-inline: auto;
}
.faq h2 {
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
}
.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-list details {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--indigo);
  font-weight: 700;
}
.faq-list details[open] summary::after {
  content: "–";
}
.faq-list details p {
  margin: 1rem 0 0;
  color: var(--ink-2);
  max-width: 60ch;
}

/* ---- Closing CTA band ---- */
.cta-band {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding-block: var(--space-section);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}
.cta-band h2 {
  margin: 0 auto 1rem;
}
.cta-standfirst {
  margin: 0 auto clamp(2rem, 4vw, 2.5rem);
  max-width: 40ch;
  color: rgb(245 246 249 / 75%);
}

/* ---- Motion: page-transitions + scroll reveal ---- */
@view-transition { navigation: auto; }
@supports (animation-timeline: view()) {
  .reveal { animation: rise both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}

/* ---- Auth pages ---- */
.auth {
  padding-block: var(--space-section);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  display: flex;
  justify-content: center;
}
.auth-card {
  width: 100%;
  max-width: 26rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 2.5rem);
}
.auth-card h1 {
  font-size: var(--step-1);
  margin: 0 0 1.5rem;
}
.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.auth-card label {
  display: block;
  font-weight: 600;
  margin-bottom: .4rem;
}
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}
.auth-card input:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 1px;
}
.auth-card .field-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 500;
}
.auth-card .btn {
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
  font: inherit;
}
.auth-card p {
  color: var(--ink-2);
  margin: 0 0 1.25rem;
}
.auth-card p.auth-switch {
  margin: 1.5rem 0 0;
  text-align: center;
  color: var(--ink-2);
}
.auth-switch a {
  color: var(--indigo);
  font-weight: 600;
  text-decoration: none;
}
.auth-switch a:hover {
  text-decoration: underline;
}

/* ---- Blog index (editorial list, no card grid) ---- */
.blog-index {
  padding-block: var(--space-section);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  max-width: var(--measure);
  margin-inline: auto;
}
.blog-index h1 {
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
}
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-list-item {
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.post-list-item:last-child {
  border-bottom: 1px solid var(--line);
}
.post-date {
  display: block;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--ink-2);
  margin-bottom: .6rem;
}
.post-title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 .6rem;
}
.post-title a {
  text-decoration: none;
  color: var(--ink);
}
.post-title a:hover {
  color: var(--indigo);
}
.post-excerpt {
  color: var(--ink-2);
  margin: 0;
  max-width: 60ch;
}
.post-empty {
  color: var(--ink-2);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.pagination a {
  font-weight: 600;
  color: var(--indigo);
  text-decoration: none;
}
.pagination a:hover {
  text-decoration: underline;
}
.pagination .is-disabled {
  color: var(--ink-2);
  opacity: .5;
}
.pagination-status {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--ink-2);
}

/* ---- Blog post ---- */
.post {
  padding-block: var(--space-section);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}
.prose-wrap {
  max-width: 42rem;
  margin-inline: auto;
}
.post-meta {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--ink-2);
  margin: 0 0 .75rem;
}
.prose-wrap > h1 {
  font-size: var(--step-4);
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}
.prose {
  color: var(--ink);
}
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 1rem;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.75rem 0 .85rem;
}
.prose p {
  margin: 0 0 1.25rem;
}
.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}
.prose li {
  margin-bottom: .5rem;
}
.prose a {
  color: var(--indigo);
  text-decoration: underline;
}
.prose blockquote {
  margin: 1.75rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--line);
  color: var(--ink-2);
  font-style: italic;
}

/* ---- Dashboard shell ---- */
.dash-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.dash-header nav {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 1.5rem; font-weight: 500;
}
.dash-header nav a { text-decoration: none; }
.dash-header nav a[aria-current="page"] {
  color: var(--indigo);
  font-weight: 700;
}
.dash-user {
  display: flex; align-items: center; gap: 1rem;
  font-size: .9rem; color: var(--ink-2);
}
.dash-user form { margin: 0; }
.btn-logout {
  background: none; border: 1.5px solid var(--line); border-radius: 999px;
  padding: .45rem 1.1rem; font: inherit; font-size: .9rem; font-weight: 600;
  color: var(--ink); cursor: pointer;
}
.btn-logout:hover { border-color: var(--ink); }
@media (max-width: 40rem) {
  .dash-header { flex-direction: column; align-items: flex-start; }
}
.dash-main {
  max-width: var(--measure);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem) var(--space-section);
}
.dash-main > h1 {
  font-size: var(--step-4);
  margin: 0 0 .5rem;
}
.dash-lede {
  color: var(--ink-2);
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  max-width: 55ch;
}

/* ---- Dashboard cards ---- */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.25rem;
  padding: 0; margin: 0; list-style: none;
}
.dash-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.dash-card:hover {
  border-color: var(--indigo);
  transform: translateY(-2px);
}
.dash-card h2 {
  font-size: var(--step-1);
  margin: 0 0 .4rem;
}
.dash-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: .95rem;
}

/* ---- Panels (settings sections) ---- */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.panel-head h2 {
  font-size: var(--step-1);
  margin: 0;
}

/* ---- Status badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .75rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: .04em;
}
.badge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.badge-ok { background: #E4F7EE; color: #0B6B44; }
.badge-fail { background: #FDE8EA; color: #A11326; }
.badge-warn { background: #FFF3DC; color: #8A5A00; }
.badge-muted { background: #EDEFF5; color: var(--ink-2); }

/* ---- Dashboard forms ---- */
.form-stack {
  display: flex; flex-direction: column; gap: 1.25rem;
  max-width: 40rem;
}
.field label {
  display: block; font-weight: 600; margin-bottom: .4rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="url"],
.field textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field textarea.field-tall { min-height: 16rem; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 1px;
}
.field-hint { color: var(--ink-2); font-size: .85rem; margin: .35rem 0 0; }
.field-check {
  display: flex; align-items: center; gap: .5rem; font-weight: 500;
}
.field-row {
  display: flex; align-items: center; gap: .6rem;
}
.field-row input { flex: 1; }
.form-actions {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}

/* ---- Buttons (dashboard extras) ---- */
button.btn { border: none; cursor: pointer; font: inherit; font-weight: 600; }
.btn-sm { padding: .5rem 1.1rem; font-size: .9rem; }
.btn-danger { background: none; border: 1.5px solid #E5B4BB; color: #A11326; }
.btn-danger:hover { border-color: #A11326; background: #FDE8EA; }
.btn-quiet {
  background: none; border: 1.5px solid var(--line); color: var(--ink);
}
.btn-quiet:hover { border-color: var(--ink); }

/* ---- Alerts ---- */
.alert {
  padding: .9rem 1.2rem;
  border-radius: .75rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.alert-success { background: #E4F7EE; border: 1px solid #9ADBBC; color: #0B6B44; }
.alert-error { background: #FDE8EA; border: 1px solid #F0AEB6; color: #A11326; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th, .data-table td {
  text-align: left;
  padding: .85rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.data-table th {
  font-family: var(--font-mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-2);
  background: var(--paper);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table .row-actions {
  display: flex; align-items: center; gap: .75rem;
  justify-content: flex-end;
}
.data-table .row-actions a {
  font-weight: 600; color: var(--indigo); text-decoration: none;
}
.data-table .row-actions a:hover { text-decoration: underline; }
.link-danger {
  background: none; border: none; padding: 0; font: inherit;
  font-weight: 600; color: #A11326; cursor: pointer; text-decoration: none;
}
.link-danger:hover { text-decoration: underline; }

/* ---- 2FA setup ---- */
.qr-box {
  display: inline-block;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: .5rem 0 1rem;
}
.qr-key {
  font-family: var(--font-mono);
  font-size: .9rem;
  word-break: break-all;
  color: var(--ink-2);
}
.qr-key strong { color: var(--ink); }

/* ---- Selects ---- */
.field select, select.field-select {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}
.field select:focus-visible { outline: 3px solid var(--electric); outline-offset: 1px; }

/* ---- Activity feed ---- */
.activity-list {
  list-style: none; margin: 0; padding: 0;
}
.activity-list li {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}
.activity-list li:last-child { border-bottom: none; }
.activity-note { font-weight: 500; }
.activity-time {
  font-family: var(--font-mono); font-size: .8rem; color: var(--ink-2);
  white-space: nowrap;
}

/* ---- Plan feature list (customer dashboard) ---- */
.plan-feature-list {
  margin: .75rem 0 0; padding: 0; list-style: none;
  color: var(--ink-2); font-size: .95rem;
}
.plan-feature-list li {
  padding: .3rem 0 .3rem 1.4rem;
  position: relative;
}
.plan-feature-list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--win); font-weight: 700;
}

/* ---- Budget bar ---- */
.budget-bar {
  height: .6rem; border-radius: 999px; background: var(--paper);
  border: 1px solid var(--line); overflow: hidden;
}
.budget-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--indigo), var(--electric));
  border-radius: 999px;
  transition: width .3s ease;
}

/* ---- Notification bell + centre ---- */
.bell { position: relative; text-decoration: none; font-size: 1.15rem; line-height: 1; }
.bell-count {
  position: absolute; top: -.5rem; left: .8rem;
  background: #d1242f; color: #fff;
  font-size: .65rem; font-weight: 700; font-family: var(--font-mono);
  padding: .05rem .35rem; border-radius: 999px; line-height: 1.4;
}
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.notif:last-child { border-bottom: none; }
.notif-dot { width: .6rem; height: .6rem; border-radius: 50%; margin-top: .45rem; flex: none; background: var(--ink-2); }
.notif-success .notif-dot { background: #0FA968; }
.notif-error .notif-dot { background: #d1242f; }
.notif-warning .notif-dot { background: #E8A317; }
.notif-info .notif-dot { background: var(--electric); }
.notif-title { margin: 0 0 .25rem; font-weight: 600; }
.notif-text { margin: 0 0 .35rem; color: var(--ink-2); font-size: .95rem; }
.notif-meta { margin: 0; font-family: var(--font-mono); font-size: .78rem; color: var(--ink-2); }
.notif-meta a { color: var(--indigo); font-weight: 600; text-decoration: none; }

/* ---- Review queue ---- */
.review-item {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
}
.review-item:first-of-type { border-top: none; }
.review-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.review-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.decline-pop { display: inline-block; }
.decline-pop > summary { list-style: none; display: inline-block; }
.decline-pop > summary::-webkit-details-marker { display: none; }
.decline-form {
  margin-top: .6rem; padding: .85rem;
  background: #FDF6F6; border: 1px solid #F0AEB6; border-radius: .6rem;
  display: flex; flex-direction: column; gap: .5rem; max-width: 32rem;
}
.decline-form textarea { min-height: 3.5rem; }

/* ---- Report KPI row ---- */
.kpi-row {
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem;
}
.kpi-row li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; text-align: center;
}
.kpi-num { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1; color: var(--ink); }
.kpi-label { display: block; margin-top: .35rem; font-size: .8rem; color: var(--ink-2); }

/* ============================================================
   Homepage modern refresh
   ============================================================ */

/* ---- Hero: aurora backdrop + tighter type ---- */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto -10%;
  height: 130%;
  z-index: -1;
  background:
    radial-gradient(42rem 30rem at 78% -8%, rgba(91,108,255,.28), transparent 60%),
    radial-gradient(34rem 26rem at 8% 12%, rgba(47,69,224,.18), transparent 60%),
    radial-gradient(30rem 24rem at 60% 40%, rgba(15,169,104,.10), transparent 60%);
  filter: blur(6px);
  animation: aurora 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -1%, 0) scale(1.02); }
}
.hero h1 { text-wrap: balance; }
.hero-standfirst p:first-child { font-size: 1.15rem; }

/* ---- Hero trust chips (left column, top-aligned with the standfirst) ---- */
.hero-chips {
  grid-column: 1 / 6;
  grid-row: 3;
  align-self: start;
  display: flex; flex-direction: column; align-items: flex-start; gap: .6rem;
  list-style: none; margin: 1.6rem 0 0; padding: 0;
}
@media (max-width: 56rem) {
  .hero-chips {
    grid-column: 1 / -1;
    flex-direction: row; flex-wrap: wrap;
    margin-top: 1.25rem;
  }
}
.hero-chips li {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem;
  background: rgb(255 255 255 / 70%);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem; font-weight: 600;
  backdrop-filter: blur(6px);
}
.hero-chips li::before {
  content: "✓";
  color: var(--win); font-weight: 800;
}

/* ---- Ticker: soft edge fade so it reads as motion, not a bar ---- */
.ticker { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }

/* ---- Services as cards ---- */
.services { align-items: stretch; }
@media (min-width: 56.01rem) { .service:nth-child(odd) { transform: none; } }
.service {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.service::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--electric));
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.service:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 1rem 2.5rem rgb(16 18 43 / 10%);
}
.service:hover::before { transform: scaleX(1); }
.service dd { max-width: none; }

/* ---- How: gradient step numbers, clean aligned steps ---- */
.how { background: linear-gradient(180deg, var(--card), #eef0f8); }
.step-num {
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-image: linear-gradient(120deg, var(--indigo), var(--electric));
  opacity: 1;
}
.step { border-top-width: 2px; }
@media (min-width: 56.01rem) {
  .step:nth-child(2), .step:nth-child(3) { margin-top: 0; }
}

/* ---- Section headings: gradient accent on the highlight ---- */
.what h2, .how h2, .pricing h2, .faq h2, .cta-band h2 { text-wrap: balance; }

/* ---- Pricing: glow on the featured plan ---- */
.plan { transition: transform .18s ease, box-shadow .18s ease; }
.plan:hover { box-shadow: 0 1rem 2.5rem rgb(16 18 43 / 8%); }
.plan-featured {
  border-color: transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(135deg, var(--indigo), var(--electric)) border-box;
  box-shadow: 0 1.5rem 3rem rgb(47 69 224 / 18%);
}
.plan-featured:hover { box-shadow: 0 2rem 4rem rgb(47 69 224 / 24%); }

/* ---- Buttons: a touch of lift ---- */
.btn { transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn-primary:hover, .btn-electric:hover { transform: translateY(-2px); box-shadow: 0 .6rem 1.4rem rgb(47 69 224 / 28%); }

/* ---- Closing CTA: gradient instead of flat ink ---- */
.cta-band {
  background:
    radial-gradient(60rem 30rem at 50% -40%, rgba(91,108,255,.35), transparent 60%),
    linear-gradient(160deg, #14163a, var(--ink));
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

/* ---- Integration test result (inline, per box) ---- */
.test-result { margin: .85rem 0 0; min-height: 1.2em; font-weight: 600; }
.test-result.is-ok { color: #0B6B44; }
.test-result.is-fail { color: #A11326; }

/* ---- Chat thread ---- */
.chat { display: flex; flex-direction: column; gap: .75rem; max-height: 32rem; overflow-y: auto; padding: .25rem; }
.chat-msg { max-width: 80%; padding: .7rem 1rem; border-radius: 1rem; }
.chat-msg .chat-meta { display: block; font-size: .72rem; color: var(--ink-2); margin-top: .35rem; font-family: var(--font-mono); }
.chat-them { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: .3rem; }
.chat-me { align-self: flex-end; background: var(--indigo); color: #fff; border-bottom-right-radius: .3rem; }
.chat-me .chat-meta { color: rgb(255 255 255 / 70%); }
.chat-empty { color: var(--ink-2); text-align: center; padding: 1.5rem; }
.chat-compose { display: flex; gap: .6rem; margin-top: 1rem; }
.chat-compose textarea { flex: 1; min-height: 3rem; }

/* ---- Audit trail ---- */
.trail { list-style: none; margin: 0; padding: 0; }
.trail li { display: flex; gap: 1rem; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.trail li:last-child { border-bottom: none; }
.trail .trail-event { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.trail-time { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-2); white-space: nowrap; }

/* ============================================================
   Dashboard shell: top bar + tab strip
   ============================================================ */
.dash-shell {
  position: sticky; top: 0; z-index: 30;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.dash-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: .8rem clamp(1.25rem, 4vw, 3rem);
  max-width: var(--measure); margin-inline: auto;
}
.brand-tag {
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--indigo); background: rgb(47 69 224 / 10%);
  padding: .15rem .5rem; border-radius: 999px; margin-left: .15rem;
}
.dash-topbar .dash-user { display: flex; align-items: center; gap: 1rem; font-size: .9rem; color: var(--ink-2); }
.dash-topbar .dash-user form { margin: 0; }
.topbar-link { text-decoration: none; font-weight: 600; color: var(--ink-2); }
.topbar-link:hover { color: var(--ink); }
.topbar-user { color: var(--ink-2); }
@media (max-width: 44rem) { .topbar-user { display: none; } }

.dash-tabs {
  display: flex; gap: .1rem; flex-wrap: wrap;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  max-width: var(--measure); margin-inline: auto;
  overflow-x: auto;
}
.dash-tab {
  position: relative;
  padding: .85rem 1rem;
  text-decoration: none; white-space: nowrap;
  font-weight: 600; color: var(--ink-2);
  border-bottom: 2px solid transparent;
  display: inline-flex; align-items: center; gap: .45rem;
  transition: color .15s ease, border-color .15s ease;
}
.dash-tab:hover { color: var(--ink); }
.dash-tab[aria-current="page"] { color: var(--indigo); border-bottom-color: var(--indigo); }
.tab-count {
  background: #d1242f; color: #fff; font-size: .68rem; font-weight: 700;
  padding: .05rem .4rem; border-radius: 999px; line-height: 1.5;
}
/* A touch more breathing room now the nav is its own bar */
.dash-main { padding-top: clamp(1.75rem, 4vw, 2.5rem); }

/* ---- Integration help ---- */
.integration-help {
  background: var(--paper); border: 1px solid var(--line); border-radius: .75rem;
  padding: .9rem 1.1rem; margin-bottom: 1.25rem;
}
.integration-help p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.integration-links { margin-top: .6rem !important; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.integration-links a { color: var(--indigo); font-weight: 600; text-decoration: none; white-space: nowrap; }
.integration-links a:hover { text-decoration: underline; }
