/* ─── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  background-color: #C7C7C7;
  color: rgba(0,0,0,0.678);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Page-level background — the frosted SVG effect from Carrd */
body::before {
  content: '';
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(270deg, rgba(255,255,255,0.859) 57%, rgba(255,255,255,0.141) 100%),
    url('assets/bg.svg');
  background-position: 0% 0%, center;
  background-repeat: repeat, no-repeat;
  background-size: cover, cover;
}

/* ─── Typography ──────────────────────────────────────────────────────── */
h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 500; line-height: 1.4; }
p  { font-size: 1rem; line-height: 1.875; font-weight: 300; }
strong { font-weight: 700; }
a  { color: inherit; text-decoration: underline; transition: opacity .2s; }
a:hover { opacity: .75; }

/* ─── Layout Utilities ────────────────────────────────────────────────── */
.container { max-width: 75rem; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }
.container--narrow { max-width: 52rem; }
section { position: relative; z-index: 1; }

/* ─── Colours ─────────────────────────────────────────────────────────── */
:root {
  --blue:    #0055FA;
  --cyan:    #00FFE0;
  --btn-bg:  #426FC7;
  --hero-gradient: linear-gradient(135deg, rgba(0,85,250,.55) 0%, rgba(0,255,224,.45) 100%);
  --card-border: rgba(0,0,0,.11);
}

/* ─── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  height: 3.25rem; padding: 0 2rem;
  font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 500;
  border-radius: .5rem; border: none; cursor: pointer;
  text-decoration: none; transition: transform .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: scale(1.04); }
.btn--primary {
  background-color: var(--btn-bg);
  background-image: linear-gradient(328deg, rgba(0,255,163,.451) 22%, rgba(66,111,199,.008) 80%);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}
.btn--dark {
  background: rgba(0,0,0,.85);
  color: #fff;
}
.btn--outline {
  background: transparent;
  color: rgba(0,0,0,.678);
  border: 1px solid var(--card-border);
}

/* ─── Nav ──────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.50);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem; padding: 0 2rem; max-width: 75rem; margin: 0 auto;
}
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.25rem; font-weight: 700; color: rgba(0,0,0,.85);
  text-decoration: none; letter-spacing: -.025em;
}
.nav-logo img { width: 2rem; height: 2rem; filter: drop-shadow(0 1px 4px rgba(0,20,80,0.28)); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .9rem; font-weight: 400; color: rgba(0,0,0,.55);
  text-decoration: none; padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: var(--blue); border-bottom-color: var(--blue); opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-signin {
  font-size: .9rem; color: rgba(0,0,0,.55); text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s, opacity .2s;
}
.nav-signin:hover { color: var(--blue); border-bottom-color: var(--blue); opacity: 1; }
@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background-color: #0d1a5c;
  background-image: var(--hero-gradient), url('assets/hero-bg.svg');
  background-position: 0% 0%, center;
  background-repeat: repeat, no-repeat;
  background-size: cover, cover;
  background-attachment: fixed, fixed; /* pin SVG to viewport — matches body::before */
  padding: 8rem 2rem 6rem;
}
.hero-inner {
  max-width: 75rem; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-text { color: #fff; }
.hero-text h1 { color: #fff; margin-bottom: 1.5rem; text-shadow: .1rem .07rem .125rem rgba(79,77,77,.6); }
.hero-text .sub {
  font-size: 1.3rem; font-weight: 300; color: rgba(255,255,255,.85);
  margin-bottom: .75rem; line-height: 1.5;
}
.hero-text .origin {
  font-size: 1rem; color: rgba(255,255,255,.65); font-style: italic;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  /* iOS doesn't support background-attachment:fixed on elements; revert to scroll */
  .hero, .final-cta { background-attachment: scroll, scroll; }
}

/* ─── Stats bar ─────────────────────────────────────────────────────────── */
.stats-bar {
  background: #ffffff80;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 2.5rem 2rem;
  position: relative; z-index: 1; /* sit above body::before fixed gradient */
}
.stats-inner {
  max-width: 52rem; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; text-align: center;
}
.stat-value { font-size: 2.25rem; font-weight: 700; color: #0d1a5c; line-height: 1; }
.stat-label { font-size: .85rem; color: rgba(0,0,0,.62); margin-top: .35rem; }
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ─── Section spacing ────────────────────────────────────────────────────── */
.section { padding: 6rem 2rem; }
.section--alt { background: #ffffff80; }
.section-label {
  font-size: .95rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #1e40af; /* passes 4.5:1 even on #C7C7C7 body bg (gradient transparent edge on mobile) */
  margin-bottom: 1rem;
}
.section-heading { margin-bottom: 1rem; }
.section-sub { font-size: 1.1rem; color: rgba(0,0,0,.68); max-width: 40rem; }

/* ─── Architecture diagram ────────────────────────────────────────────────────────────────── */
.arch-diagram {
  margin-top: 3.5rem;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  overflow: hidden;
}
.arch-diagram svg {
  width: 100%; height: auto; display: block;
  font-family: 'Inter', sans-serif;
}

/* ─── Pullquote ────────────────────────────────────────────────────────────────────────────────────── */
.pullquote {
  margin: 2.5rem 0;
  padding: 1.25rem 1.75rem;
  border-left: 4px solid var(--blue);
  background: rgba(0,85,250,.04);
  border-radius: 0 .5rem .5rem 0;
}
.pullquote p {
  font-size: 1.25rem; font-style: italic; font-weight: 300;
  color: rgba(0,0,0,.75); line-height: 1.6; margin-bottom: .5rem;
}
.pullquote cite {
  font-size: .85rem; font-style: normal; color: rgba(0,0,0,.45);
  letter-spacing: .02em;
}

/* ─── Problem cards ──────────────────────────────────────────────────────── */
.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 3rem;
}
.problem-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 2rem;
}
.problem-icon { font-size: 1.75rem; margin-bottom: 1rem; }
.problem-card h3 { color: rgba(0,0,0,.75); margin-bottom: .75rem; }
.problem-card p { color: rgba(0,0,0,.65); font-size: .95rem; }
@media (max-width: 768px) {
  .problem-grid { grid-template-columns: 1fr; }
}

/* ─── How it works ───────────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; margin-top: 3rem; }
.step {
  display: grid; grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem; padding-bottom: 2.5rem; position: relative;
}
.step:not(:last-child)::after {
  content: ''; position: absolute;
  left: 1.6rem; top: 3rem; bottom: 0;
  width: 2px; background: var(--card-border);
}
.step-number {
  width: 3.5rem; height: 3.5rem;
  background-image: var(--hero-gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.125rem; font-weight: 700;
  flex-shrink: 0; position: relative; z-index: 1;
}
.step-content h3 { margin-bottom: .5rem; padding-top: .6rem; }
.step-content p { color: rgba(0,0,0,.72); }

/* ─── Features ───────────────────────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 3rem;
}
.feature-card {
  background: #ffffff80;
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 2rem;
}
.feature-icon { font-size: 1.5rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.05rem; color: rgba(0,0,0,.75); margin-bottom: .6rem; }
.feature-card p { font-size: .9rem; color: rgba(0,0,0,.65); line-height: 1.7; }
.feature-card--hero {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, rgba(0,85,250,.04) 0%, #fff 60%);
  border: 1px solid rgba(0,85,250,.2);
  border-left: 4px solid var(--blue);
  border-radius: 1rem; padding: 2.5rem;
}
.feature-card--hero .feature-icon { font-size: 2rem; margin-bottom: .875rem; }
.feature-card--hero h3 { font-size: 1.375rem; font-weight: 600; color: var(--blue); margin-bottom: .875rem; }
.feature-card--hero p { font-size: 1rem; color: rgba(0,0,0,.7); line-height: 1.75; margin-bottom: .875rem; }
.feature-card--hero p:last-child { margin-bottom: 0; }
.feature-card--norisk {
  margin-top: 1.5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 1rem; padding: 2.5rem;
}
.feature-card--norisk h3 { font-size: 1.375rem; font-weight: 600; color: #16a34a; margin-bottom: 1.25rem; }
.feature-card--norisk ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 2rem; }
.feature-card--norisk li {
  font-size: .9375rem; color: rgba(0,0,0,.72); line-height: 1.6;
  display: flex; gap: .5rem; align-items: flex-start;
}
.feature-card--norisk li::before { content: '✓'; color: #16a34a; font-weight: 700; flex-shrink: 0; margin-top: .1rem; }
@media (max-width: 640px) { .feature-card--norisk ul { grid-template-columns: 1fr; } }

.feature-callout {
  margin-top: 2.5rem;
  /* Dark base required: gradient is semi-transparent; without it white text fails on white page bg */
  background-color: #0d1a5c;
  background-image: var(--hero-gradient);
  border-radius: 1rem; padding: 2.5rem;
  color: #fff;
}
.feature-callout strong { font-size: 1.2rem; display: block; margin-bottom: .75rem; }
.feature-callout p { color: rgba(255,255,255,.85); font-size: 1rem; }
@media (max-width: 980px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ─── Pricing toggle ──────────────────────────────────────────────────────────────────────── */
.pricing-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: .25rem; margin: 2rem 0 0;
  background: rgba(0,0,0,.05); border-radius: 99px;
  padding: .3rem; width: fit-content; margin-left: auto; margin-right: auto;
}
.pt-btn {
  padding: .5rem 1.25rem; border-radius: 99px; border: none;
  font-family: 'Inter', sans-serif; font-size: .9rem; font-weight: 500;
  cursor: pointer; background: transparent; color: rgba(0,0,0,.55);
  transition: background .2s, color .2s;
  display: flex; align-items: center; gap: .5rem;
}
.pt-btn--active { background: #fff; color: rgba(0,0,0,.85); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
#pt-annual:not(.pt-btn--active) { box-shadow: inset 0 0 0 2.5px rgba(255,255,255,.9); }
.pt-badge {
  font-size: .7rem; font-weight: 600;
  background: #dcfce7; color: #16a34a;
  padding: .15rem .55rem; border-radius: 99px;
}
.plan-price-sub {
  font-size: .875rem; color: #16a34a; font-weight: 500;
  min-height: 1.25rem; margin-top: .15rem;
}

/* ─── Pricing ────────────────────────────────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 3rem; align-items: stretch;
}
.pricing-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 2.25rem;
  position: relative;
  display: flex; flex-direction: column;
}
.pricing-card--featured {
  border: 2px solid var(--btn-bg);
  padding-top: 3rem; /* extra room above content for the floating badge */
}
.pricing-badge {
  position: absolute; top: -1rem; left: 50%; transform: translateX(-50%);
  background: var(--btn-bg); color: #fff;
  font-size: .75rem; font-weight: 600; letter-spacing: .05em;
  padding: .3rem 1rem; border-radius: 99px;
  white-space: nowrap;
}
.pricing-card--enterprise,
.pricing-card--outlined {
  border: 2px solid rgba(0,0,0,.3);
}
.pricing-card--enterprise {
  background: #f9f9f9;
}
.plan-name { font-size: 1.375rem; font-weight: 600; margin-bottom: .25rem; }
.plan-tagline { font-size: .85rem; color: rgba(0,0,0,.6); font-style: italic; margin-bottom: 1.25rem; }
.plan-price { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.plan-price span { font-size: 1rem; font-weight: 400; color: rgba(0,0,0,.55); }
.plan-desc { font-size: .875rem; color: rgba(0,0,0,.65); margin: .75rem 0 1.5rem; }
.plan-features { list-style: none; margin-bottom: 1.75rem; }
.plan-features li {
  padding: .5rem 0;
  font-size: .9rem; color: rgba(0,0,0,.75);
  border-top: 1px solid rgba(0,0,0,.06);
  display: flex; gap: .625rem; align-items: flex-start;
}
.plan-features li:first-child { border-top: none; }
.plan-features li::before { content: '✓'; color: var(--btn-bg); font-weight: 700; flex-shrink: 0; }
.plan-addons {
  background: rgba(0,85,250,.06); border-radius: .5rem;
  padding: .875rem 1rem; margin-bottom: 1.75rem;
  font-size: .8rem; color: rgba(0,0,0,.68); line-height: 1.7;
}
.plan-addons strong { color: rgba(0,0,0,.7); }
.pricing-card .btn { width: 100%; margin-top: auto; }
.pricing-note {
  text-align: center; margin-top: 2rem;
  font-size: .85rem; color: rgba(0,0,0,.62);
}
@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
}

/* ─── Requirements / Nuts & Bolts ────────────────────────────────────────────────────────── */
.req-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 3rem;
}
.req-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 1rem; padding: 1.75rem;
}
.req-card--limits {
  background: #fafafa;
  border-color: rgba(0,0,0,.18);
}
.req-icon { font-size: 1.5rem; margin-bottom: .875rem; }
.req-card h3 { font-size: 1rem; font-weight: 600; color: rgba(0,0,0,.8); margin-bottom: .875rem; }
.req-card ul { list-style: none; }
.req-card li {
  font-size: .875rem; line-height: 1.6; color: rgba(0,0,0,.7);
  padding: .35rem 0; border-top: 1px solid rgba(0,0,0,.05);
  display: flex; gap: .5rem; align-items: flex-start;
}
.req-card li:first-child { border-top: none; }
.req-yes::before  { content: '✓'; color: #16a34a; font-weight: 700; flex-shrink: 0; }
.req-no::before   { content: '✗'; color: #dc2626; font-weight: 700; flex-shrink: 0; }
.req-info::before { content: 'ℹ'; color: #2563eb; font-weight: 700; flex-shrink: 0; font-style: normal; }
.req-footer-note {
  margin-top: 2.5rem; text-align: center;
  font-size: .9rem; color: rgba(0,0,0,.65);
}
@media (max-width: 980px) { .req-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .req-grid { grid-template-columns: 1fr; } }

/* ─── FAQ ────────────────────────────────────────────────────────────────────────────────────── */
.faq { margin-top: 3rem; max-width: 48rem; }
details {
  border-top: 1px solid var(--card-border);
  padding: 1.25rem 0;
}
details:last-child { border-bottom: 1px solid var(--card-border); }
summary {
  font-weight: 500; font-size: 1rem; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem;
  color: rgba(0,0,0,.75);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; font-size: 1.25rem; font-weight: 300;
  color: rgba(0,0,0,.55); flex-shrink: 0; transition: transform .2s;
}
details[open] summary::after { transform: rotate(45deg); }
.faq-answer {
  padding-top: .875rem;
  font-size: .9375rem; color: rgba(0,0,0,.72); line-height: 1.8;
}

/* ─── Final CTA ──────────────────────────────────────────────────────────── */
.final-cta {
  background-color: #0d1a5c;
  background-image: var(--hero-gradient), url('assets/hero-bg.svg');
  background-position: 0% 0%, center;
  background-repeat: repeat, no-repeat;
  background-size: cover, cover;
  background-attachment: fixed, fixed;
  padding: 6rem 2rem;
  text-align: center; color: #fff;
}
.final-cta h2 { color: #fff; margin-bottom: 1.25rem; }
.final-cta p { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 40rem; margin: 0 auto 2.5rem; }
.final-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.final-cta .sub-note {
  font-size: .85rem; color: rgba(255,255,255,.6); margin-top: 1.25rem;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
footer {
  background: #fff;
  border-top: 1px solid var(--card-border);
  padding: 4rem 2rem 2rem;
  position: relative; z-index: 1;
}
.footer-grid {
  max-width: 75rem; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo {
  font-size: 1.25rem; font-weight: 700; letter-spacing: -.025em;
  color: rgba(0,0,0,.85); text-decoration: none; display: block;
  margin-bottom: .75rem;
}
.footer-brand p { font-size: .875rem; color: rgba(0,0,0,.6); line-height: 1.7; }
.footer-col h3 { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(0,0,0,.65); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { font-size: .875rem; color: rgba(0,0,0,.55); text-decoration: none; }
.footer-col a:hover { color: rgba(0,0,0,.85); }
.footer-bottom {
  max-width: 75rem; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--card-border); padding-top: 1.5rem;
  font-size: .8rem; color: rgba(0,0,0,.55);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
