/* InsertReady brand stylesheet — shared across all site pages */

:root {
  --navy:   #0d1b2e;
  --blue:   #185FA5;
  --sky:    #2d7dd2;
  --sky-2:  #60a5fa;
  --green:  #0f7c4a;
  --gold:   #c28a00;
  --teal:   #1FB8A6;
  --red:    #9e1c1c;
  --bg:     #f5f7fa;
  --bg-2:   #ffffff;
  --ink:    #1a2332;
  --ink-2:  #4a5a72;
  --muted:  #7a8aa0;
  --border: #d0d8e4;
  --shadow: 0 4px 16px rgba(13,27,46,.06);
  --radius: 8px;
  --maxw:   1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Top bar / nav ===== */
.topbar {
  background: var(--navy);
  border-bottom: 3px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.logo {
  font-size: 26px;
  font-weight: 800;
  color: white;
  letter-spacing: .02em;
  line-height: 1;
}
.logo span { color: var(--sky-2); }
@media (max-width: 720px) {
  .logo { font-size: 22px; }
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-left: auto;
}
.nav a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #7ca0c8;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: white; text-decoration: none; }
.nav a.active { color: white; border-bottom-color: var(--sky-2); }
.nav a.cta {
  background: var(--green);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  border-bottom: none;
}
.nav a.cta:hover { background: #0a5e37; }
.nav a.login {
  background: var(--green);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  border-bottom: none;
}
.nav a.login:hover { background: #0a5e37; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #122845 100%);
  color: white;
  padding: 72px 20px;
  text-align: center;
}
.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
.hero .lede {
  font-size: 19px;
  opacity: .92;
  max-width: 720px;
  margin: 0 auto 28px;
}
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== Containers / sections ===== */
.section { padding: 64px 20px; }
.section.alt { background: white; }
.container { max-width: var(--maxw); margin: 0 auto; }

.section h2 {
  font-size: 30px;
  color: var(--navy);
  margin-bottom: 12px;
  text-align: center;
}
.section .lede {
  text-align: center;
  color: var(--ink-2);
  max-width: 720px;
  margin: 0 auto 40px;
}

/* ===== Tiles grid (Features page — Item 5: colored + justified) ===== */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.tile {
  background: white;
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.tile.t-blue   { border-top-color: var(--blue); }
.tile.t-green  { border-top-color: var(--green); }
.tile.t-sky    { border-top-color: var(--sky); }
.tile.t-gold   { border-top-color: var(--gold); }
.tile.t-navy   { border-top-color: var(--navy); }
.tile.t-teal   { border-top-color: var(--teal); }

.tile .tag {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
/* a11y — tags use --navy uniformly so they meet 4.5:1 contrast on white.
   The colored tile-top border carries the visual variant affordance. */
.tile .tag { color: var(--navy); }

.tile h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 10px;
}
.tile p {
  color: var(--ink-2);
  text-align: justify;        /* Item 5: justify text inside tiles */
  hyphens: auto;
  font-size: 14px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn.primary { background: var(--blue); color: white; }
.btn.primary:hover { background: #134a82; box-shadow: 0 4px 12px rgba(24,95,165,.3); }
.btn.cta { background: var(--green); color: white; }
.btn.cta:hover { background: #0a5e37; box-shadow: 0 4px 12px rgba(15,124,74,.3); }
.btn.ghost {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,.4);
}
.btn.ghost:hover { background: rgba(255,255,255,.1); border-color: white; }
.btn.block { display: block; width: 100%; text-align: center; }

/* ===== Forms ===== */
.form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.form h3 { color: var(--navy); margin-bottom: 8px; font-size: 22px; }
.form .sub { color: var(--ink-2); margin-bottom: 22px; font-size: 14px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.field label .req { color: var(--red); margin-left: 2px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: white;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24,95,165,.12);
}
.field textarea { min-height: 110px; resize: vertical; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--red); }

.field-error {
  display: none;
  color: var(--red);
  font-size: 12px;
  margin-top: 6px;
  font-weight: 600;
}
.field.has-error .field-error { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-success,
.form-failure {
  display: none;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 18px;
}
.form-success { background: #e8f5ee; color: var(--green); border: 1px solid #b8dcc6; }
.form-failure { background: #fbecec; color: var(--red); border: 1px solid #e8c0c0; }
.form-success.show, .form-failure.show { display: block; }

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: #a8bdd5;
  padding: 40px 20px 24px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer h4 {
  color: white;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.footer a { color: #a8bdd5; display: block; padding: 4px 0; font-size: 14px; }
.footer a:hover { color: white; text-decoration: none; }
.footer .legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #1d2e48;
  font-size: 12px;
  color: #6c84a3;
  text-align: center;
}

/* ===== Misc ===== */
.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, var(--sky) 100%);
  color: white;
  padding: 56px 20px;
  text-align: center;
}
.cta-band h2 { color: white; font-size: 28px; margin-bottom: 12px; }
.cta-band p { font-size: 17px; opacity: .94; margin-bottom: 22px; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.step {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow);
}
.step .num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.step h3 { color: var(--navy); margin-bottom: 8px; font-size: 17px; }
.step p { color: var(--ink-2); font-size: 14px; }

.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.rate-table th,
.rate-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.rate-table th { background: var(--navy); color: white; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.rate-table tr:last-child td { border-bottom: none; }
.rate-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

.checklist { list-style: none; padding: 0; }
.checklist li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--ink-2);
}
.checklist li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  position: absolute;
  left: 0;
  top: 6px;
}

/* ===== Back-to-top (used on long pages — Item 8 placeholder hook) ===== */
.to-top {
  display: none;
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--blue);
  color: white;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(13,27,46,.25);
  z-index: 40;
}
.to-top.show { display: block; }

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .hero h1 { font-size: 30px; }
  .hero .lede { font-size: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .nav { margin-left: 0; gap: 12px; }
  .nav a { font-size: 11px; }
  .section { padding: 44px 16px; }
}

/* a11y — body paragraph links get an underline so they aren't color-only.
   Excludes navs and tile titles which use class-based affordance. */
.section p a, .container p a, .legal a, footer p a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* a11y — screen-reader-only utility class */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
