/* ============================================================
   COIProof landing — hand-rolled, no framework.
   Palette pulled from the logo: deep navy ink + teal shield.
   ============================================================ */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('fonts/bricolage-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink-950: #081527;
  --ink-900: #0d2038;
  --navy: #16365c;
  --navy-600: #1d4370;
  --teal-700: #0f7e86;
  --teal: #1ba7ac;
  --teal-300: #5ecacd;
  --paper: #f5f8fa;
  --card: #ffffff;
  --line: #e2e9f0;
  --body: #42566b;
  --head: #12294a;
  --amber: #b45309;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow-lg: 0 24px 80px -24px rgba(8, 21, 39, 0.35);
  --shadow-md: 0 10px 40px -14px rgba(8, 21, 39, 0.22);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  font-family: var(--text);
  color: var(--body);
  background: var(--card);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-700); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--head); line-height: 1.12; letter-spacing: -0.015em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--text); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 10px; border: 0; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--teal-300); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-700) 100%);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(15, 126, 134, 0.65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(15, 126, 134, 0.7); }
.btn-outline-light {
  background: transparent; color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
}
.btn-outline-light:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.9); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.92rem; }
.btn-big { padding: 17px 36px; font-size: 1.08rem; width: 100%; }

/* ---------------- nav ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background .3s ease, box-shadow .3s ease;
}
.nav-inner {
  max-width: 1220px; margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; gap: 40px;
}
.brand img { height: 30px; width: auto; transition: filter .3s ease; }
.nav:not(.scrolled) .brand img { filter: brightness(0) invert(1); }
.nav-links { display: flex; gap: 30px; margin-right: auto; }
.nav-links a {
  color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; font-weight: 500;
  transition: color .2s ease;
}
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.link-quiet { color: rgba(255, 255, 255, 0.85); font-weight: 500; font-size: 0.95rem; }
.link-quiet:hover { color: #fff; }

.nav.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.scrolled .nav-links a, .nav.scrolled .link-quiet { color: var(--body); }
.nav.scrolled .nav-links a:hover, .nav.scrolled .link-quiet:hover { color: var(--head); }

.nav-burger { display: none; }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  background: var(--ink-950);
  padding: 170px 28px 0;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: -8% 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.34;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(27, 167, 172, 0.16) 0%, rgba(8, 21, 39, 0) 55%),
    linear-gradient(180deg, rgba(8, 21, 39, 0.72) 0%, rgba(8, 21, 39, 0.86) 55%, var(--ink-950) 96%);
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 26px;
}
.hero-h1 {
  color: #fff;
  font-size: clamp(2.9rem, 7vw, 5.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.hero-line { display: block; }
.hero-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.16rem; line-height: 1.75;
  max-width: 720px; margin: 0 auto 38px;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; color: rgba(255, 255, 255, 0.5); font-size: 0.88rem; }

.hero-shot {
  position: relative; z-index: 2;
  max-width: 1120px; margin: 70px auto -170px;
}

/* browser frame */
.frame {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.frame-deep { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.08); border: 0; }
.frame-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 16px;
  background: #eef2f6; border-bottom: 1px solid var(--line);
}
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3dce5; }
.frame-url {
  margin: 0 auto; background: #fff; border: 1px solid var(--line);
  font-size: 0.72rem; color: #8aa0b5; padding: 3px 26px; border-radius: 99px;
}
.frame img { width: 100%; height: auto; }

/* ---------------- stats ---------------- */
.stats { background: var(--paper); padding: 240px 0 84px; border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px;
}
.stat-big {
  font-family: var(--display); font-weight: 700; color: var(--head);
  font-size: 2rem; letter-spacing: -0.02em; margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.stat p { font-size: 0.93rem; line-height: 1.55; }
.stat em { font-style: normal; color: var(--teal-700); font-weight: 600; }

/* ---------------- problem ---------------- */
.problem { padding: 120px 0; background: var(--card); }
.problem-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 72px; align-items: center;
}
.problem h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 650; margin-bottom: 26px; }
.problem p { max-width: 54ch; }
.problem p + p { margin-top: 18px; }
.problem-kicker { font-weight: 600; color: var(--teal-700); }
.problem-photo { position: relative; }
.problem-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3.4; object-fit: cover;
}
.problem-photo::after {
  content: ''; position: absolute; inset: 22px -22px -22px 22px;
  border: 1.5px solid var(--teal-300); border-radius: var(--radius);
  z-index: -1;
}

/* ---------------- features ---------------- */
.features { padding: 30px 0 40px; background: var(--card); }
.feature {
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 76px; align-items: center;
  padding: 76px 28px;
}
.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-shot { order: 1; }
.feature + .feature { border-top: 1px solid var(--line); }

.feature-num {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-700); margin-bottom: 14px;
}
.feature h3 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 650; margin-bottom: 18px; }
.feature-copy > p { margin-bottom: 22px; }
.feature-copy em { font-style: normal; font-weight: 600; color: var(--head); }

.checks { list-style: none; }
.checks li {
  position: relative; padding-left: 34px; margin-bottom: 14px;
  font-size: 0.97rem; line-height: 1.6;
}
.checks li::before {
  content: ''; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 6px;
  background: rgba(27, 167, 172, 0.12);
}
.checks li::after {
  content: ''; position: absolute; left: 5px; top: 8px;
  width: 10px; height: 6px;
  border-left: 2px solid var(--teal-700); border-bottom: 2px solid var(--teal-700);
  transform: rotate(-45deg);
}

.feature-shot .frame img { width: 100%; }
.feature-shot.tall .frame { max-height: 590px; overflow: hidden; }
.feature-shot.crop-top .frame img { max-height: 430px; object-fit: cover; object-position: top; }

/* ---------------- portal ---------------- */
.portal {
  background: linear-gradient(180deg, #eef7f7 0%, #f5fafa 100%);
  border-top: 1px solid #dcecec; border-bottom: 1px solid #dcecec;
  padding: 110px 0;
}
.portal-head { max-width: 640px; margin-bottom: 48px; }
.portal-head h3 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 650; margin-bottom: 18px; }
.portal-shot img {
  border-radius: var(--radius);
  border: 1px solid #d3e7e7;
  box-shadow: var(--shadow-md);
}

/* ---------------- security ---------------- */
.security {
  position: relative; background: var(--ink-950); padding: 120px 0; overflow: hidden;
}
.security-bg { position: absolute; inset: 0; }
.security-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.14; }
.security::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--ink-950) 0%, rgba(8, 21, 39, 0.65) 50%, var(--ink-950) 100%);
}
.security .container { position: relative; }
.security-head { margin-bottom: 56px; max-width: 620px; }
.security-head h3 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 650; }
.security-head .feature-num { color: var(--teal-300); }

.security-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.sec-item {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 28px 26px;
  backdrop-filter: blur(4px);
}
.sec-item svg {
  width: 26px; height: 26px; margin-bottom: 16px;
  fill: none; stroke: var(--teal-300); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.sec-item h4 { color: #fff; font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; letter-spacing: 0; }
.sec-item p { color: rgba(255, 255, 255, 0.62); font-size: 0.9rem; line-height: 1.6; }

/* ---------------- how ---------------- */
.how { padding: 120px 0 100px; background: var(--card); }
.how-head { margin-bottom: 56px; max-width: 620px; }
.how-head h3 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 650; }
.how-steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px;
}
.how-steps li { position: relative; padding-top: 22px; }
.how-steps li::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1.5px; background: var(--line);
}
.how-steps li::after {
  content: ''; position: absolute; top: -1px; left: 0;
  width: 56px; height: 3.5px; border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-700));
}
.how-n {
  font-family: var(--display); font-weight: 700; font-size: 0.95rem;
  color: var(--teal-700); display: block; margin-bottom: 10px;
}
.how-steps h4 { font-size: 1.2rem; font-weight: 650; margin-bottom: 10px; }
.how-steps p { font-size: 0.95rem; }

/* ---------------- pricing ---------------- */
.pricing {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 120px 0;
}
.pricing-head { text-align: center; max-width: 560px; margin: 0 auto 52px; }
.pricing-head h3 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 650; margin-bottom: 12px; }

.price-card {
  max-width: 560px; margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 40px 44px 36px;
}
.price-toggle {
  display: inline-flex; background: var(--paper);
  border: 1px solid var(--line); border-radius: 99px; padding: 4px;
  margin-bottom: 30px;
}
.toggle-opt {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--text); font-size: 0.92rem; font-weight: 600; color: var(--body);
  padding: 8px 18px; border-radius: 99px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.toggle-opt.is-active {
  background: #fff; color: var(--head);
  box-shadow: 0 2px 8px rgba(8, 21, 39, 0.12);
}
.save-pill {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--teal-700); background: rgba(27, 167, 172, 0.13);
  padding: 2px 8px; border-radius: 99px;
}

.price-line { display: flex; align-items: baseline; gap: 12px; }
.price-amount {
  font-family: var(--display); font-weight: 750; font-size: 3.6rem;
  color: var(--head); letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.price-per { color: var(--body); font-size: 1.05rem; }
.price-note { font-size: 0.9rem; margin: 6px 0 26px; color: #6b809a; }

.price-list { list-style: none; border-top: 1px solid var(--line); padding-top: 26px; margin-bottom: 30px; }
.price-list li {
  position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 0.96rem;
}
.price-list li::before {
  content: ''; position: absolute; left: 2px; top: 7px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--teal-700); border-bottom: 2px solid var(--teal-700);
  transform: rotate(-45deg);
}
.price-list .muted { color: #8aa0b5; font-size: 0.86rem; }
.price-fine { font-size: 0.82rem; color: #8aa0b5; text-align: center; margin-top: 14px; }
.price-error {
  margin-top: 14px; text-align: center; font-size: 0.9rem;
  color: #b0393e; background: #fdf1f1; border: 1px solid #f3d5d6;
  border-radius: 8px; padding: 10px 14px;
}

/* ---------------- faq ---------------- */
.faq { padding: 120px 0; background: var(--card); }
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
.faq-head h3 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 650; }
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: 1.08rem; color: var(--head);
  padding: 20px 44px 20px 0;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ''; position: absolute; right: 6px; top: 50%;
  width: 12px; height: 12px; transform: translateY(-50%);
  background:
    linear-gradient(var(--teal-700), var(--teal-700)) center / 12px 2px no-repeat,
    linear-gradient(var(--teal-700), var(--teal-700)) center / 2px 12px no-repeat;
  transition: transform .25s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 20px 22px 0; font-size: 0.97rem; max-width: 62ch; }

/* ---------------- final cta ---------------- */
.cta-final {
  background:
    radial-gradient(70% 90% at 50% 110%, rgba(27, 167, 172, 0.22) 0%, rgba(8, 21, 39, 0) 60%),
    var(--ink-950);
  padding: 130px 0;
  text-align: center;
}
.cta-shield { height: 60px; width: auto; margin: 0 auto 28px; }
.cta-final h2 {
  color: #fff; font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 18px;
}
.cta-final > .container > p {
  color: rgba(255, 255, 255, 0.72); font-size: 1.1rem; margin-bottom: 36px;
}

/* ---------------- footer ---------------- */
.footer { background: var(--card); border-top: 1px solid var(--line); padding: 56px 0 48px; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; align-items: start;
}
.footer-brand img { display: inline-block; vertical-align: middle; }
.footer-word {
  font-family: var(--display); font-weight: 500; font-size: 1.3rem; color: var(--navy);
  margin-left: 10px; vertical-align: middle; letter-spacing: -0.01em;
}
.footer-word b { font-weight: 750; }
.footer-brand p { margin-top: 14px; font-size: 0.9rem; max-width: 34ch; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--body); font-size: 0.92rem; }
.footer-links a:hover { color: var(--teal-700); }
.footer-meta { font-size: 0.85rem; color: #8aa0b5; }
.footer-meta p + p { margin-top: 6px; }
.footer-meta a { color: #8aa0b5; text-decoration: underline; }

/* ---------------- responsive ---------------- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 40px; padding: 60px 28px; }
  .feature.flip .feature-copy { order: 1; }
  .feature.flip .feature-shot { order: 2; }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: 1fr; gap: 48px; }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .how-steps { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .nav-links, .nav-cta .link-quiet { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 40px; height: 40px; align-items: center;
    background: transparent; border: 0; cursor: pointer;
  }
  .nav-burger span {
    display: block; width: 20px; height: 2px; border-radius: 2px;
    background: #fff; transition: transform .25s ease, opacity .25s ease, background .3s ease;
  }
  .nav.scrolled .nav-burger span { background: var(--head); }
  .nav.nav-open .nav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.nav-open .nav-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav.nav-open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 12px; right: 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 14px; box-shadow: var(--shadow-md);
  }
  .nav.nav-open .nav-links a { color: var(--head); padding: 10px 12px; border-radius: 8px; }
  .nav.nav-open .nav-links a:hover { background: var(--paper); }

  .hero { padding-top: 130px; }
  .hero-shot { margin: 50px auto -90px; }
  .stats { padding: 150px 0 60px; }
  .stats-grid { grid-template-columns: 1fr; gap: 30px; }
  .problem, .portal, .security, .how, .pricing, .faq { padding: 76px 0; }
  .security-grid { grid-template-columns: 1fr; }
  .price-card { padding: 30px 24px; }
  .price-amount { font-size: 2.9rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .problem-photo::after { display: none; }
  .feature-shot.tall .frame { max-height: 440px; }
}

/* ---------------- motion safety ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
