/* Insurance Hero: shared by the landing page (home.css) and the legal pages (legal.css).
   The look of a real office desk: white paper on a cool grey ground. No gradients. */

/* Self-hosted (roadmap Ν10): no request goes to Google Fonts. SIL OFL, see assets/fonts/OFL.txt. */
@font-face { font-family: 'Sofia Sans'; src: url('assets/fonts/SofiaSans-Greek.woff2') format('woff2'); font-weight: 1 1000; font-display: swap; unicode-range: U+0370-03FF; }
@font-face { font-family: 'Sofia Sans'; src: url('assets/fonts/SofiaSans-Latin.woff2') format('woff2'); font-weight: 1 1000; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
/* The app's own typeface, used only inside the phone demo so it matches the real product. */
@font-face { font-family: 'Commissioner'; src: url('assets/fonts/Commissioner-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --desk: #E4E8EC;
  --desk-2: #D7DDE3;
  --ink: #1B2430;
  --ink-2: #4B5663;
  --muted: #566170;
  --paper: #FFFFFF;
  --white: #FFFFFF;
  --line: #D2D8DF;
  --line-strong: #B7C0CC;
  --yellow: #FFD84A;
  --green: #BFE3B4;
  --pink: #F7CBD2;
  --manila: #E9CF9C;
  --pen: #1D3FA8;
  --red: #C8321F;

  /* Names used by the legal page rules */
  --accent: var(--red);
  --accent-text: #A92A1A;
  --ink-line: #36414F;
  --ink-muted: #B7C0CC;
  --display-axes: normal;

  --serif: 'Sofia Sans', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Sofia Sans', 'Helvetica Neue', Arial, sans-serif;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-pad: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --focus: var(--pen);
  --shadow: 0 1px 2px rgba(27, 36, 48, .14), 0 12px 24px -10px rgba(27, 36, 48, .26);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem;
  line-height: 1.5;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.display {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.04;
  text-wrap: balance;
}

.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; }

.skip-link { position: absolute; left: 12px; top: -64px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Buttons: the fill rises from below on hover. */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 28px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--yellow);
  transform: translateY(101%);
  transition: transform .4s var(--ease);
}
.btn:hover { color: var(--ink); border-color: var(--yellow); }
.btn:hover::before { transform: none; }
.btn--small { min-height: 42px; padding: 8px 18px; font-size: 1rem; }
.btn--line { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--ink-line); color: var(--white); }
.btn--ghost::before { background: var(--white); }
.btn--ghost:hover { border-color: var(--white); }

.text-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--line-strong); transition: text-decoration-color .2s; }
.text-link:hover { text-decoration-color: currentColor; }
.text-link--light { color: var(--white); text-decoration-color: var(--ink-muted); }

.quiet-link { text-decoration: none; font-weight: 600; }
.quiet-link:hover { text-decoration: underline; text-underline-offset: .3em; }

.caption { margin-top: 14px; font-size: .8125rem; line-height: 1.5; color: var(--muted); }

/* Header (legal pages: in the flow. Landing page: home.css makes it fixed.) */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header__inner { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand { flex: none; display: block; }
.brand img { width: auto; height: 34px; }
.site-header__actions { display: flex; align-items: center; gap: 20px; margin-left: auto; font-size: .9375rem; }

/* Footer */
.site-footer { --focus: var(--yellow); background: var(--ink); color: var(--white); overflow: hidden; }
.colophon { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px 40px; padding-block: 32px; font-size: 1rem; color: var(--ink-muted); }
.colophon > img { width: auto; height: 32px; }
.colophon__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.colophon__links a { color: var(--white); text-decoration: none; white-space: nowrap; }
.colophon__links a:hover { text-decoration: underline; text-underline-offset: .25em; }
.colophon__bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.made-by { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-muted); text-decoration: none; white-space: nowrap; transition: color .15s; }
.colophon .made-by img { width: auto; height: 28px; opacity: .72; transition: opacity .15s; }
.made-by:hover, .made-by:focus-visible { color: var(--white); }
.made-by:hover img, .made-by:focus-visible img { opacity: 1; }
.made-by:hover span { text-decoration: underline; text-underline-offset: .25em; }

@media (max-width: 640px) {
  .colophon { grid-template-columns: minmax(0, 1fr); }
  .colophon__bottom { flex-direction: column; align-items: center; text-align: center; }
  .colophon__links a { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
