/* Keystone marketing — "presidential seal": red, white & blue.
   Type: Playfair Display (serif display) + Source Sans 3 (sans body).
   Light-mode only, symmetric, generous spacing, thin blue rules.
   --blue is the mid-tone accent (rules/borders/numerals on white or navy);
   text sitting directly on the near-black --navy background uses the
   existing light #cdd8ee instead of --blue, for contrast (see usages). */
:root {
  --navy: #0b1e3b;
  --navy-800: #12294d;
  --paper: #fcfcfa;
  --white: #ffffff;
  --red: #b0141e;
  --red-700: #8f0f18;
  --blue: #2f5d94;
  --blue-line: rgba(47, 93, 148, 0.5);
  --ink: #0b1e3b;
  --body: #3a4763;
  --muted: #6b7890;
  --hairline: rgba(11, 30, 59, 0.12);

  --serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--paper);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, .serif { font-family: var(--serif); color: var(--ink); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* --- eyebrow + rules --- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 700; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red);
}
.rule-gold { height: 1px; background: var(--blue-line); border: 0; margin: 0; }
.rule-center { width: 64px; height: 2px; background: var(--blue); border: 0; margin: 1.5rem auto; }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.975rem; letter-spacing: 0.01em;
  padding: 0.8rem 1.5rem; border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-700); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--blue); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-800); transform: translateY(-1px); }
.btn-gold-ghost { background: transparent; color: #fff; border-color: var(--blue-line); }
.btn-gold-ghost:hover { border-color: var(--blue); background: rgba(47,93,148,0.16); }

/* --- header --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 252, 250, 0.9); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--blue-line);
}
.nav { display: flex; align-items: center; gap: 2rem; height: 72px; }
.brand { font-family: var(--serif); font-weight: 800; font-size: 1.35rem; letter-spacing: 0.02em; color: var(--navy); }
.brand .star { color: var(--red); }
.nav-links { display: flex; gap: 1.75rem; margin-left: 1rem; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--body); position: relative; }
.nav-links a:hover { color: var(--navy); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--blue); transition: width 0.2s var(--ease); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.nav-signin { font-weight: 600; font-size: 0.95rem; color: var(--navy); }

/* --- hero --- */
.hero { text-align: center; padding-block: clamp(3.5rem, 8vw, 7rem) 0; background:
  radial-gradient(120% 80% at 50% -10%, rgba(11,30,59,0.05), transparent 60%); }
.hero h1 { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem); font-weight: 800; margin: 1.25rem auto 0; max-width: 15ch; }
.hero .lede { max-width: 60ch; margin: 1.5rem auto 0; font-size: clamp(1.075rem, 1rem + 0.5vw, 1.3rem); color: var(--body); }
.hero-cta { display: flex; gap: 0.9rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.hero-note { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }

/* --- dashboard mock frame --- */
.mock-frame {
  margin: clamp(3rem, 6vw, 5rem) auto 0; max-width: 960px;
  border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6), 0 40px 80px -40px rgba(11,30,59,0.4), 0 0 0 1px var(--blue-line);
  background: var(--navy);
}
.mock-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1rem; background: #0a1834; border-bottom: 1px solid rgba(47,93,148,0.3); }
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #35507f; }
.mock-bar .addr { margin-left: 0.75rem; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.04em; color: #8fa6cf; }
.mock-body { padding: 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; background:
  linear-gradient(180deg, #0b1e3b, #0a1834); }
.mock-strip { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; border: 1px solid rgba(176,20,30,0.4); border-radius: 4px; background: rgba(176,20,30,0.12); color: #f2c9cc; font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; }
.mock-strip .pill { margin-left: auto; padding: 0.15rem 0.5rem; border-radius: 2px; background: var(--red); color: #fff; font-size: 0.65rem; }
.mock-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(143,166,207,0.16); border-radius: 4px; padding: 0.75rem; min-height: 96px; }
.mock-card .k { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: #7f97c4; }
.mock-card .v { font-family: var(--serif); font-size: 1.35rem; color: #fff; margin-top: 0.3rem; }
.mock-card .s { font-family: var(--sans); font-size: 0.62rem; color: #6f86b4; margin-top: 0.2rem; }
.mock-card .spark { margin-top: 0.5rem; height: 22px; background:
  linear-gradient(90deg, transparent, rgba(47,93,148,0.6)) bottom/100% 1px no-repeat;
  border-bottom: 1px solid rgba(143,166,207,0.25); position: relative; }
.mock-card .spark::before { content:""; position:absolute; inset:0; background:
  repeating-linear-gradient(90deg, rgba(47,93,148,0.4) 0 2px, transparent 2px 10px); mask: linear-gradient(180deg, transparent, #000); opacity: .6; }

/* --- generic section --- */
section { padding-block: var(--section-y); }
.section-head { text-align: center; max-width: 62ch; margin-inline: auto; }
.section-head h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); margin: 0.75rem 0 0; }
.section-head p { color: var(--body); font-size: 1.075rem; margin-top: 1rem; }
.tint-navy { background: var(--navy); color: #cdd8ee; }
.tint-navy h2, .tint-navy h3 { color: #fff; }
.tint-navy .eyebrow { color: #cdd8ee; }

/* --- boards grid --- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3.5rem; }
.card {
  background: var(--white); border: 1px solid var(--hairline); border-radius: 6px; padding: 1.75rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -32px rgba(11,30,59,0.45); border-color: var(--blue-line); }
.card .num { font-family: var(--serif); font-size: 0.95rem; color: var(--blue); }
.card h3 { font-size: 1.4rem; margin: 0.4rem 0 0.6rem; }
.card p { font-size: 0.96rem; margin: 0; color: var(--body); }
.card ul { margin: 0.9rem 0 0; padding-left: 1rem; font-size: 0.9rem; color: var(--muted); }
.card li { margin-bottom: 0.25rem; }

/* --- steps --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3.5rem; text-align: center; }
.step .n { width: 44px; height: 44px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--blue); color: var(--blue); font-family: var(--serif); font-size: 1.1rem; }
.step h3 { font-size: 1.25rem; }
.step p { font-size: 0.96rem; }

/* --- security list --- */
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 3rem; margin-top: 3rem; max-width: 900px; margin-inline: auto; }
.sec-item { display: flex; gap: 1rem; padding-block: 1rem; border-top: 1px solid rgba(47,93,148,0.4); }
.sec-item .mark { color: #cdd8ee; font-family: var(--serif); font-size: 1.1rem; }
.sec-item h3 { font-size: 1.1rem; margin: 0 0 0.25rem; }
.sec-item p { margin: 0; font-size: 0.92rem; }

/* --- pricing --- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 3.5rem; align-items: stretch; }
.tier { background: var(--white); border: 1px solid var(--hairline); border-radius: 6px; padding: 1.75rem 1.5rem; display: flex; flex-direction: column; }
.tier.featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue-line), 0 30px 60px -40px rgba(11,30,59,0.4); position: relative; }
.tier.featured::before { content: "Most popular"; position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%); background: var(--navy); color: #cdd8ee; font-family: var(--sans); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 2px; }
.tier h3 { font-size: 1.5rem; }
.tier .price { font-family: var(--sans); font-weight: 600; color: var(--muted); font-size: 0.95rem; margin: 0.25rem 0 1rem; }
.tier .feats { list-style: none; margin: 1rem 0 1.75rem; padding: 0; font-size: 0.92rem; border-top: 1px solid var(--hairline); }
.tier .feats li { padding: 0.55rem 0; border-bottom: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 1rem; }
.tier .feats li span:last-child { color: var(--navy); font-weight: 600; }
.tier .btn { margin-top: auto; width: 100%; }

/* --- CTA band --- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
.cta-band p { max-width: 52ch; margin: 1rem auto 2rem; color: #cdd8ee; }

/* --- footer --- */
.site-footer { background: #081530; color: #9fb0d0; padding-block: 4rem 2.5rem; border-top: 3px solid var(--red); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
.foot-brand .brand { color: #fff; }
.foot-brand p { font-size: 0.9rem; max-width: 34ch; margin-top: 0.75rem; color: #7f93b8; }
.foot-col h4 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #cdd8ee; margin: 0 0 1rem; }
.foot-col a { display: block; font-size: 0.92rem; padding: 0.3rem 0; color: #9fb0d0; }
.foot-col a:hover { color: #fff; }
.foot-base { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(47,93,148,0.3); font-size: 0.82rem; color: #6f86b4; flex-wrap: wrap; }

/* --- legal pages --- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-top: 3.5rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.5rem; }
.legal p, .legal li { color: var(--body); font-size: 1rem; }
.legal .updated { color: var(--muted); font-size: 0.9rem; }

/* --- responsive --- */
@media (max-width: 900px) {
  .grid-4, .tiers { grid-template-columns: repeat(2, 1fr); }
  .steps, .sec-grid, .foot-grid { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid-4, .tiers { grid-template-columns: 1fr; }
  .nav-signin { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto; } }

/* Contrast fix: section-head subhead on navy sections must be light. */
.tint-navy .section-head p { color: #cdd8ee; }
