/* ============================================================
   CircumFi — Early-Access Landing Page
   Brand: blue #1483BB, green #8CC63E
   ============================================================ */

:root {
  /* Brand */
  --blue: #1483BB;
  --blue-dark: #0F6A99;
  --blue-darker: #0B5076;
  --green: #8CC63E;
  --green-dark: #6FA82F;

  /* Ink / neutrals */
  --ink: #12293a;
  --ink-soft: #41586a;
  --muted: #64798a;
  --line: #dbe6ee;
  --line-soft: #eaf1f6;
  --surface: #ffffff;
  --surface-soft: #f4f8fb;
  --surface-blue: #eef6fb;

  /* Effects */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(18, 41, 58, .06), 0 1px 3px rgba(18, 41, 58, .08);
  --shadow-md: 0 10px 30px -12px rgba(18, 41, 58, .25);
  --shadow-lg: 0 24px 60px -20px rgba(11, 80, 118, .3);

  /* Layout */
  --maxw: 1140px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
a { color: var(--blue-dark); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; }
.section-intro { margin-top: .9rem; font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.fine-print { margin-top: 1.75rem; font-size: .9rem; color: var(--muted); max-width: 70ch; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: inherit; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; border-radius: 999px;
  padding: .8rem 1.5rem; cursor: pointer; text-decoration: none;
  transition: background-color .18s ease, transform .12s ease, box-shadow .18s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--btn-bg); filter: brightness(.95); }
.btn:active { transform: translateY(1px); }
.btn-primary { --btn-bg: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); filter: none; }
.btn-sm { padding: .55rem 1.1rem; font-size: .95rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .65; cursor: not-allowed; }

/* Spinner */
.btn-spinner { width: 1.05em; height: 1.05em; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  display: none; animation: spin .7s linear infinite; }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: .75rem; gap: 1rem; }
.brand img { height: 40px; width: auto; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--surface-blue), transparent 60%),
    linear-gradient(180deg, var(--surface-soft), var(--surface));
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line-soft);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700;
  color: var(--blue-dark); margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); font-weight: 800; }
.subhead { margin-top: 1.1rem; font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: var(--ink-soft); font-weight: 500; max-width: 32ch; }
.supporting { margin-top: 1.1rem; font-size: 1.075rem; color: var(--ink-soft); max-width: 46ch; }
.capability-line {
  list-style: none; margin: 1.75rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem .55rem;
}
.capability-line li {
  font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line);
  padding: .35rem .75rem; border-radius: 999px;
}

/* ---------- Form card ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
  scroll-margin-top: 90px;
}
.form-title { font-size: 1.4rem; font-weight: 800; }
.form-context { margin-top: .65rem; font-size: .975rem; color: var(--ink-soft); }
.form { margin-top: 1.25rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .925rem; margin-bottom: .4rem; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface-soft); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: .8rem .9rem;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
  min-height: 48px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus {
  border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(20,131,187,.15);
  outline: none;
}
.field input[aria-invalid="true"] { border-color: #c0392b; background: #fdf3f2; }
.field-help { margin-top: .4rem; font-size: .825rem; color: var(--muted); }
.field-error { margin-top: .4rem; font-size: .85rem; color: #c0392b; font-weight: 600; }

.privacy-note { margin-top: 1rem; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.noscript-note { margin-top: 1rem; font-size: .85rem; color: var(--ink-soft); }

/* Honeypot — visually hidden but present for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Turnstile spacing */
#turnstile-widget { margin-bottom: 1.1rem; min-height: 65px; }

/* Form status live region */
.form-status { font-size: .9rem; font-weight: 600; margin-bottom: .25rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: #c0392b; }
.form-status.is-success { color: var(--green-dark); }

/* Step two + success */
.step-two-wrap { animation: fade-in .35s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.success-banner {
  background: linear-gradient(180deg, #f1f9e7, #f7fcef);
  border: 1px solid #d6ecb8; border-radius: var(--radius-sm);
  padding: 1rem 1.1rem; margin-bottom: 1.25rem;
}
.success-msg { font-weight: 600; color: #46641b; }
.step-two-heading { font-size: 1.2rem; font-weight: 800; margin-bottom: 1rem; }
.final-confirmation {
  background: var(--surface-blue); border: 1px solid #cfe6f3;
  border-radius: var(--radius-sm); padding: 1.25rem; text-align: center;
}
.final-msg { font-weight: 600; color: var(--blue-darker); }

/* ---------- Card grids (problems / help) ---------- */
.problems { background: var(--surface-soft); }
.card-grid {
  margin-top: 2.25rem;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.problem-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem;
  border-left: 4px solid var(--blue);
  transition: box-shadow .18s ease, transform .18s ease;
}
.problem-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.problem-card h3 { font-size: 1.075rem; font-weight: 700; margin-bottom: .45rem; }
.problem-card p { font-size: .95rem; color: var(--ink-soft); }

.help-card {
  background: var(--surface-blue); border: 1px solid #d4e8f4;
  border-radius: var(--radius); padding: 1.5rem;
  border-top: 4px solid var(--green);
}
.help-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.help-card p { color: var(--ink-soft); }

/* ---------- Why ---------- */
.why { background: linear-gradient(180deg, var(--surface), var(--surface-soft)); }
.why-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.why-copy p { margin-top: 1rem; font-size: 1.1rem; color: var(--ink-soft); }
.why-tagline { font-weight: 700; color: var(--ink) !important; }
.why-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.why-points li {
  position: relative; padding-left: 2rem; font-weight: 500; color: var(--ink);
}
.why-points li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 75% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 75% no-repeat;
}

/* ---------- Founder ---------- */
.founder { background: var(--surface-soft); }
.founder-inner { display: grid; grid-template-columns: 280px 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.founder-photo img {
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  aspect-ratio: 1 / 1; object-fit: cover; width: 100%;
}
.founder-copy p { margin-top: 1rem; color: var(--ink-soft); }
.founder-copy .section-title { font-size: clamp(1.4rem, 3vw, 1.9rem); }

/* ---------- Final CTA ---------- */
.final-cta {
  background:
    radial-gradient(900px 400px at 50% 120%, rgba(140,198,62,.25), transparent 60%),
    linear-gradient(120deg, var(--blue-darker), var(--blue));
  color: #fff; text-align: center;
}
.final-cta-inner { max-width: 720px; margin-inline: auto; }
.final-cta h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
.final-cta p { margin-top: 1rem; font-size: 1.15rem; color: rgba(255,255,255,.9); }
.final-cta .btn {
  margin-top: 1.75rem; background: #fff; color: var(--blue-darker);
}
.final-cta .btn:hover { background: var(--green); color: #1a3409; }

/* ---------- Footer ---------- */
.site-footer { background: #0c2231; color: #cdd9e2; padding-block: 2.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.footer-brand img { height: 36px; width: auto; margin-bottom: .65rem; }
.footer-note { font-size: .875rem; color: #93a6b3; max-width: 36ch; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; font-size: .9rem; }
.footer-meta a { color: #cdd9e2; text-decoration: none; }
.footer-meta a:hover { color: #fff; text-decoration: underline; }
.copyright { color: #7d92a1; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .form-card { order: 2; }
  .why-inner { grid-template-columns: 1fr; }
  .founder-inner { grid-template-columns: 1fr; }
  .founder-photo { max-width: 220px; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand img { height: 34px; }
  .header-inner { gap: .5rem; }
  .btn-block { padding-block: .95rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
