/* =========================================================================
   Secriiti — design system
   Security signals, not surveillance.
   Hand-built, no external dependencies. System font stack for speed + offline.
   ========================================================================= */

/* ----- Tokens ----------------------------------------------------------- */
:root {
  /* Brand */
  --brand:        #13c2a6;   /* signal teal */
  --brand-600:    #0fa791;
  --brand-700:    #0c8a78;
  --brand-2:      #6366f1;   /* indigo */
  --brand-2-600:  #4f46e5;

  /* Risk palette (used sparingly in signal visuals) */
  --ok:    #22c55e;
  --warn:  #f59e0b;
  --high:  #ef4444;

  /* Dark surfaces */
  --navy:     #0b1220;
  --navy-2:   #0e1730;
  --navy-3:   #14213f;

  /* Light surfaces */
  --paper:    #ffffff;
  --mist:     #f6f8fc;
  --mist-2:   #eef2f9;
  --border:   #e4e9f2;
  --border-strong: #d4dbe9;

  /* Text */
  --ink:        #0b1220;
  --text:       #283447;
  --text-muted: #5b6675;
  --on-dark:        #eaf1fb;
  --on-dark-muted:  #9fb1cd;

  /* Type */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Shape */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11,18,32,.06), 0 1px 3px rgba(11,18,32,.05);
  --shadow:    0 6px 24px rgba(11,18,32,.08);
  --shadow-lg: 0 24px 64px -24px rgba(11,18,32,.30);

  /* Layout */
  --maxw: 1140px;
  --gutter: 22px;

  --grad-signal: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
  --grad-dark:   radial-gradient(1200px 600px at 75% -10%, #1b2c54 0%, rgba(27,44,84,0) 60%),
                 radial-gradient(900px 500px at 0% 0%, #143b3a 0%, rgba(20,59,58,0) 55%),
                 var(--navy);
}

/* ----- 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; } }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, white); outline-offset: 2px; border-radius: 4px; }

/* ----- Layout helpers --------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 760px; }
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.center { text-align: center; }
.dark { background: var(--grad-dark); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark a:not(.btn) { color: var(--brand); }
.mist { background: var(--mist); }
.lead { font-size: 1.18rem; color: var(--text-muted); }
.dark .lead { color: var(--on-dark-muted); }
.eyebrow {
  font-family: var(--mono); font-size: .76rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-700);
  margin: 0 0 .8rem;
}
.dark .eyebrow { color: var(--brand); }
.maxw-prose { max-width: 720px; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: inherit; font-weight: 650; font-size: .98rem;
  padding: .72em 1.25em; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad-signal); color: #fff; box-shadow: 0 8px 22px -8px rgba(19,194,166,.7); }
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(19,194,166,.8); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-700); }
.dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.dark .btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { font-size: 1.05rem; padding: .85em 1.5em; }
.btn-block { width: 100%; justify-content: center; }

/* ----- Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 1.4rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--ink);
         letter-spacing: -.02em; font-size: 1.18rem; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.nav-links a:not(.btn) { color: var(--text); font-weight: 550; font-size: .96rem; }
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.nav-cta { margin-left: .4rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 18px; margin: 0;
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav-cta { margin: 12px 0 0; }
  .nav[aria-expanded="true"] .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav[aria-expanded="true"] .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav[aria-expanded="true"] .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ----- Hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 92px 0 96px; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { max-width: 38ch; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-note { margin-top: 1.1rem; font-size: .9rem; color: var(--on-dark-muted); }
.pill {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 600; font-family: var(--mono); letter-spacing: .04em;
  padding: .4em .9em; border-radius: var(--r-pill);
  background: rgba(19,194,166,.12); color: var(--brand);
  border: 1px solid rgba(19,194,166,.3); margin-bottom: 1.3rem;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(19,194,166,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(19,194,166,.55);} 70% { box-shadow: 0 0 0 8px rgba(19,194,166,0);} 100% { box-shadow: 0 0 0 0 rgba(19,194,166,0);} }
@media (prefers-reduced-motion: reduce) { .pill .dot { animation: none; } }

@media (max-width: 880px) {
  .hero { padding: 64px 0 68px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ----- Signal card (hero visual) ---------------------------------------- */
.signal-card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.signal-card .sc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.signal-card .sc-title { color: #fff; font-weight: 700; font-size: 1rem; }
.signal-card .sc-sub { color: var(--on-dark-muted); font-size: .82rem; font-family: var(--mono); }
.sig-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-sm);
           background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); margin-bottom: 10px; }
.sig-row:last-child { margin-bottom: 0; }
.sig-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; }
.sig-ico svg { width: 17px; height: 17px; }
.sig-body { flex: 1; min-width: 0; }
.sig-body .t { color: #fff; font-weight: 600; font-size: .92rem; }
.sig-body .d { color: var(--on-dark-muted); font-size: .8rem; }
.sev { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
       padding: .28em .6em; border-radius: var(--r-pill); font-family: var(--mono); }
.sev-high { background: rgba(239,68,68,.16); color: #fca5a5; border: 1px solid rgba(239,68,68,.35); }
.sev-med  { background: rgba(245,158,11,.16); color: #fcd34d; border: 1px solid rgba(245,158,11,.35); }
.sev-ok   { background: rgba(34,197,94,.16); color: #86efac; border: 1px solid rgba(34,197,94,.35); }
.ico-red  { background: rgba(239,68,68,.16); color: #fca5a5; }
.ico-amber{ background: rgba(245,158,11,.16); color: #fcd34d; }
.ico-green{ background: rgba(34,197,94,.16); color: #86efac; }
.ico-tide { background: rgba(19,194,166,.16); color: var(--brand); }

/* ----- Generic cards/grids ---------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h3 { margin-top: .4rem; }
.card p:last-child { margin-bottom: 0; }
.dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.10); }
.dark .card h3 { color: #fff; }
.dark .card p { color: var(--on-dark-muted); }

.feat-ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, white); color: var(--brand-700);
}
.feat-ico svg { width: 23px; height: 23px; }
.dark .feat-ico { background: rgba(19,194,166,.14); color: var(--brand); }

/* numbered steps */
.steps { counter-reset: step; }
.step .num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad-signal); color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 14px;
}

/* ----- "Never does" list ------------------------------------------------ */
.never-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .never-grid { grid-template-columns: 1fr; } }
.never-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px;
              border: 1px solid var(--border); border-radius: var(--r); background: var(--paper); }
.dark .never-item { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.10); }
.never-item .x { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
                 background: rgba(239,68,68,.12); color: var(--high); display: grid; place-items: center; }
.do-item .x { background: rgba(34,197,94,.14); color: var(--ok); }
.never-item .x svg { width: 14px; height: 14px; }
.never-item strong { color: var(--ink); } .dark .never-item strong { color: #fff; }
.never-item span.d { color: var(--text-muted); font-size: .92rem; }
.dark .never-item span.d { color: var(--on-dark-muted); }

/* ----- Pricing ---------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price { display: flex; flex-direction: column; }
.price.featured { border-color: var(--brand); box-shadow: 0 18px 50px -24px rgba(19,194,166,.5); position: relative; }
.price.featured::before {
  content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad-signal); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .35em .9em; border-radius: var(--r-pill);
}
.price .tier { font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.price .amt { font-size: 2.3rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin: .3rem 0 0; }
.price .amt small { font-size: .95rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.price .desc { color: var(--text-muted); font-size: .95rem; min-height: 2.8em; }
.price ul.checks { list-style: none; padding: 0; margin: 1.1rem 0 1.4rem; }
.price ul.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: .95rem; }
.price ul.checks svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--brand-700); margin-top: 3px; }
.price .btn { margin-top: auto; }

/* ----- FAQ -------------------------------------------------------------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
         font: inherit; font-weight: 650; color: var(--ink); font-size: 1.05rem;
         padding: 20px 40px 20px 0; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
                font-size: 1.5rem; color: var(--brand-700); font-weight: 400; transition: transform .2s; }
.faq-item.open .faq-q::after { content: "\2212"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--text-muted); }
.faq-a div { padding: 0 0 20px; }
.faq-item.open .faq-a { max-height: 480px; }

/* ----- Trust / integrations bar ---------------------------------------- */
.logo-row { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: center; }
.logo-chip { display: inline-flex; align-items: center; gap: .55em; font-weight: 650; font-size: .95rem;
             color: var(--text-muted); padding: 8px 6px; }
.dark .logo-chip { color: var(--on-dark-muted); }
.logo-chip svg { width: 20px; height: 20px; opacity: .85; }

/* ----- Stat strip ------------------------------------------------------- */
.stat { text-align: center; }
.stat .n { font-size: 2.2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.dark .stat .n { color: #fff; }
.stat .l { color: var(--text-muted); font-size: .95rem; } .dark .stat .l { color: var(--on-dark-muted); }

/* ----- CTA band --------------------------------------------------------- */
.cta-band { border-radius: var(--r-lg); padding: 48px; text-align: center; background: var(--grad-dark);
            border: 1px solid rgba(255,255,255,.1); }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: var(--on-dark-muted); max-width: 52ch; margin-inline: auto; }

/* ----- Waitlist form ---------------------------------------------------- */
.waitlist { max-width: 520px; margin: 1.4rem auto 0; }
.field-row { display: flex; gap: 10px; }
@media (max-width: 520px) { .field-row { flex-direction: column; } }
.field-row input[type="email"] {
  flex: 1; font: inherit; padding: .8em 1em; border-radius: var(--r-pill);
  border: 1px solid var(--border-strong); background: #fff; color: var(--ink); min-width: 0;
}
.dark .field-row input[type="email"] { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #fff; }
.dark .field-row input::placeholder { color: var(--on-dark-muted); }
.form-note { font-size: .82rem; color: var(--text-muted); margin-top: .8rem; }
.dark .form-note { color: var(--on-dark-muted); }
.form-success { display: none; padding: 14px 18px; border-radius: var(--r); background: rgba(34,197,94,.12);
                border: 1px solid rgba(34,197,94,.4); color: var(--ok); font-weight: 600; margin-top: 1rem; }
.form-success.show { display: block; }

/* ----- Article / prose -------------------------------------------------- */
.article { padding: 56px 0 72px; }
.article-head { max-width: 760px; margin: 0 auto 2.2rem; }
.article-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.meta { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; color: var(--text-muted);
        font-size: .9rem; margin-top: 1rem; }
.tag { font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
       padding: .3em .7em; border-radius: var(--r-pill); background: var(--mist-2); color: var(--brand-700); }
.prose { max-width: 720px; margin-inline: auto; font-size: 1.07rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.8rem; font-size: 1.22rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose blockquote { margin: 1.6rem 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand);
                    color: var(--ink); font-size: 1.12rem; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--mist-2); padding: .15em .4em; border-radius: 6px; }
.callout { border: 1px solid var(--border); background: var(--mist); border-radius: var(--r); padding: 18px 20px; margin: 1.6rem 0; }
.callout.disclaimer { border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.07); }
.callout .ct { font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: .5em; margin-bottom: .3rem; }
.callout p:last-child { margin-bottom: 0; }

/* post / case cards */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .tag { align-self: flex-start; margin-bottom: 14px; }
.post-card h3 { font-size: 1.2rem; }
.post-card .excerpt { color: var(--text-muted); font-size: .96rem; flex: 1; }
.post-card .read { font-weight: 650; color: var(--brand-700); font-size: .92rem; margin-top: 12px; }
.post-card:hover { text-decoration: none; }

.breadcrumb { font-size: .88rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--text-muted); } .breadcrumb a:hover { color: var(--ink); }

/* ----- Footer ----------------------------------------------------------- */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
                  font-family: var(--mono); font-weight: 600; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: var(--on-dark-muted); font-size: .95rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-about { max-width: 32ch; font-size: .95rem; margin: 1rem 0 0; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
                 border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px; font-size: .86rem; }

/* ----- Utility ---------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: var(--ink); padding: 10px 16px;
             border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }
.text-muted { color: var(--text-muted); }
.small { font-size: .9rem; }
