/* Crisis Proof website. Brand Guide v4.0: one red (#E85A50), brand greys, black and white. */
:root {
  --red: #E85A50;
  --red-dark: #C9463D;
  --ink: #3A3A3A;        /* headlines: brand Dark Gray #4D4D4D, one step darker for contrast */
  --body: #5F5F5F;       /* body text: brand Gray #808080 darkened to pass WCAG AA on white */
  --muted: #808080;
  --line: #D1D1D1;
  --soft: #F5F5F5;
  --white: #FFFFFF;
  --black: #111111;
  --radius: 6px;
  --max: 1080px;
  --font: 'Calibri', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); }
a:hover { color: var(--red); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.site-header .logo img { width: 170px; }
.site-nav { display: flex; gap: 20px; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--red-dark); }
.site-nav .btn { color: var(--white); }
@media (max-width: 720px) { .site-nav a:not(.btn) { display: none; } .site-header .logo img { width: 140px; } }

/* Buttons and forms */
.btn {
  display: inline-block; background: var(--red); color: var(--white); border: 0; border-radius: var(--radius);
  padding: 12px 22px; font: 700 1.15rem/1.2 var(--font); text-decoration: none; cursor: pointer;
}
.btn:hover, .btn:focus { background: var(--red-dark); color: var(--white); }
.btn-small { padding: 9px 16px; font-size: 1rem; }

/* Sections */
.eyebrow { color: var(--red-dark); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .8rem; margin-bottom: .8em; }
section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.lead { font-size: 1.2rem; max-width: 46em; }

.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.launch-note { border-left: 3px solid var(--red); padding: 4px 0 4px 14px; color: var(--ink); font-weight: 600; margin-top: 1.4em; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 28px; }
.card .when { color: var(--red-dark); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.card .price { color: var(--ink); font-weight: 700; font-size: 1.3rem; margin: .2em 0 .5em; }
.card p:last-child { margin-bottom: 0; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 28px; }
.steps > div { counter-increment: step; }
.steps > div::before {
  content: counter(step); display: inline-flex; width: 38px; height: 38px; border-radius: 50%;
  align-items: center; justify-content: center; background: var(--ink); color: var(--white); font-weight: 700; margin-bottom: 12px;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

/* Waitlist form */
.signup { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.signup h2, .signup h3 { margin-bottom: .3em; }
.field { margin-bottom: 14px; }
.field label { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.ask { margin-top: 2em; }
.field textarea { resize: vertical; min-height: 6em; }
.field input[type=text], .field input[type=email], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; border: 1px solid #BDBDBD; border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; line-height: 1.45; margin: 6px 0 16px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--red); }
.form-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.form-status { margin-top: 12px; font-weight: 600; }
.form-status.error { color: #B3261E; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.updated { color: var(--muted); font-size: .95rem; }

/* Footer */
.site-footer { background: #1B1B1B; color: #CFCFCF; padding: 40px 0; font-size: .92rem; }
.site-footer a { color: #E8E8E8; }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer .safety { color: #A8A8A8; max-width: 52em; }
