/* aliancelife.com - shared stylesheet. Light theme only. Mobile-first: base = 360px, then 480 / 768 / 1024. */

:root {
  color-scheme: only light;
  --ink: #1d2733;
  --muted: #4b5763;
  --paper: #ffffff;
  --teal: #0b7f85;
  --teal-deep: #075b60;
  --teal-bright: #19bcc1;
  --teal-tint: #e5f5f6;
  --teal-wash: #f1f9f9;
  --coral: #c9412b;
  --coral-deep: #a63320;
  --card: #e8edf3;
  --line: #d9e4e7;
  --side: max(16px, calc((100% - 940px) / 2));
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --pico-font-family: var(--font);
}

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

html:root {
  font-size: 16px;
  background-color: #ffffff;
  color: #1d2733;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #ffffff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; }

/* ---------- Masthead ---------- */
body > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 16px;
  background-color: #ffffff;
  color: var(--ink);
}
.brand {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--teal);
  text-decoration: none;
}
a.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color .2s ease;
}
a.brand:hover { color: var(--teal-deep); }
a.brand:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.tag {
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background-color: var(--teal-tint);
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* ---------- Article frame ---------- */
body > main {
  display: block;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: var(--ink);
}
main > article {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background-color: #ffffff;
  box-shadow: none;
  color: var(--ink);
}
main > article > section {
  margin: 0;
  padding: 40px var(--side);
  background-color: #ffffff;
  color: var(--ink);
}
main > article > section.tint { background-color: var(--teal-wash); }

main h1, main h2, main h3 {
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
main h2 {
  margin: 0 0 16px;
  font-size: clamp(23px, 5.6vw, 32px);
  font-weight: 700;
}
main h3 {
  margin: 0 0 10px;
  font-size: clamp(18px, 4.6vw, 21px);
  font-weight: 600;
}
main p, main ul, main ol, main dl { margin: 0 0 1.1em; }
main p, main li { color: var(--ink); }

main ul, main ol { padding-left: 1.3em; }
main li { margin: 0 0 .8em; padding-left: .2em; }
main li::marker { color: var(--teal); font-weight: 700; }
main li strong { color: var(--teal-deep); }

main > article > section > p,
main > article > section > ul,
main > article > section > ol { max-width: 720px; }

/* ---------- Top block: byline, H1, dek ---------- */
main > article > section.top {
  padding-top: 36px;
  padding-bottom: 28px;
  text-align: center;
}
.byline {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.byline > span:last-child { display: block; max-width: none; }
.seal {
  display: grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 60px;
  border: 3px solid var(--teal-bright);
  border-radius: 50%;
  background-color: var(--teal-tint);
}
.seal svg { width: 28px; height: 28px; }
main > article > section.top h1 {
  max-width: 880px;
  margin: 0 auto 14px;
  color: var(--teal);
  font-size: clamp(24px, 6.4vw, 38px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.dek {
  margin: 0 auto !important;
  max-width: 640px;
  font-size: clamp(16px, 4.2vw, 19px);
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- Figures ---------- */
main figure {
  display: block;
  margin: 0;
  padding: 0;
}
main figcaption {
  margin: 10px 0 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
main figure.hero {
  padding: 8px var(--side) 0;
  background-color: #ffffff;
}
main figure.hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
main figure img.still {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 14px;
}
.ratio {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background-color: #dfe8ea;
  aspect-ratio: 4 / 5;
}
.ratio.land { aspect-ratio: 1200 / 630; }
.ratio video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* ---------- Lead statement ---------- */
main > article > section.lead { padding-top: 40px; padding-bottom: 24px; }
main > article > section.lead > p.big {
  max-width: 900px;
  margin: 0 0 20px;
  font-size: clamp(21px, 5.2vw, 30px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
}
main > article > section.lead > p:not(.big):not(.cta-sub) { color: var(--ink); }

/* ---------- Calls to action ---------- */
.cta-wrap { margin: 0 0 8px; }
.cta-wrap.center { text-align: center; }
.cta-wrap p { margin: 0; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 28px;
  border-radius: 999px;
  background-color: var(--coral);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cta:hover, .cta:active {
  background-color: var(--coral-deep);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(166, 51, 32, .28);
}
.cta:focus-visible, .cta-text:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.cta-text {
  display: inline-block;
  padding: 10px 0;
  color: var(--teal);
  font-size: clamp(18px, 4.6vw, 22px);
  font-weight: 600;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color .2s ease;
}
.cta-text:hover { color: var(--teal-deep); }
.cta-sub {
  margin: 8px 0 0 !important;
  max-width: 46ch !important;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted) !important;
}
.cta-wrap.center .cta-sub { margin-left: auto !important; margin-right: auto !important; }

/* ---------- Pay card (rounded sheet) ---------- */
main > article > section.pay {
  padding-top: 48px;
  padding-bottom: 56px;
  background-color: var(--teal-wash);
}
main > article > section.pay h2 {
  max-width: 760px;
  margin: 0 auto 28px;
  color: var(--teal);
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.sheet {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 38px 18px 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background-color: #ffffff;
  box-shadow: 0 18px 50px rgba(8, 70, 76, .14);
  color: var(--ink);
  text-align: center;
}
.sheet::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  width: 44px;
  height: 4px;
  margin-left: -22px;
  border-radius: 4px;
  background-color: #cfdadd;
}
.sheet .sheet-cap {
  margin: 0 0 6px;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}
.sheet .sheet-big {
  margin: 0;
  font-size: clamp(32px, 9vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.sheet .sheet-sub {
  max-width: 34ch;
  margin: 12px auto 22px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--teal-deep);
}
.sheet-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 22px !important;
  padding: 10px;
  border-radius: 16px;
  background-color: #d8f1f2;
  text-align: left;
}
.sheet-facts div {
  padding: 12px 16px;
  border-radius: 10px;
  background-color: #ffffff;
}
.sheet-facts dt {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.sheet-facts dd {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.sheet .sheet-text {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  color: var(--ink);
}
.sheet .sheet-text strong { color: var(--teal-deep); }
.sheet .sheet-text:last-child { margin-bottom: 0; }

/* ---------- Myth vs reality table ---------- */
.band {
  max-width: none !important;
  margin: 0 0 14px !important;
  padding: 14px 16px;
  background-color: var(--coral);
  color: #ffffff !important;
  font-size: clamp(16px, 4.2vw, 21px);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
}
table.compare {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  border: 0;
  border-collapse: separate;
  background-color: #ffffff;
  color: var(--ink);
}
table.compare thead {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
table.compare tbody { display: block; }
table.compare tr { display: block; margin: 0 0 12px; }
table.compare th,
table.compare td {
  display: block;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}
table.compare td:first-child {
  border-radius: 12px 12px 0 0;
  background-color: var(--teal);
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
}
table.compare td:last-child {
  border-radius: 0 0 12px 12px;
  background-color: var(--teal-tint);
  color: var(--ink);
}
table.compare td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
table.compare td:first-child::before { color: #ffffff; }
table.compare td:last-child::before { color: var(--teal-deep); }

/* ---------- Split layout (text + media) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.split > div > :last-child { margin-bottom: 0; }
.split figure { width: 100%; max-width: 420px; margin: 0 auto; }

/* ---------- Accent: quote-style card grid ---------- */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 28px 0 0; }
.cards > div {
  padding: 26px 22px 24px;
  border-radius: 8px;
  background-color: var(--card);
  color: var(--ink);
  text-align: center;
}
.cards h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.cards .cards-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.cards p:not(.cards-label) { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }

/* ---------- Closing band ---------- */
main > article > section.closing {
  padding-top: 56px;
  padding-bottom: 60px;
  background-color: var(--teal);
  color: #ffffff;
  text-align: center;
}
main > article > section.closing h2 { max-width: 760px; margin: 0 auto 16px; color: #ffffff; }
main > article > section.closing p { margin-left: auto; margin-right: auto; color: #ffffff; }
main > article > section.closing .cta { background-color: #ffffff; color: var(--teal-deep); }
main > article > section.closing .cta:hover { background-color: var(--teal-tint); color: var(--teal-deep); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
main > article > section.closing .cta:focus-visible { outline-color: #ffffff; }
main > article > section.closing .cta-sub { color: #ffffff !important; }

/* ---------- Footer / colophon ---------- */
.colophon {
  margin: 0;
  padding: 44px var(--side) 56px;
  background-color: #ffffff;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.colophon .entity p, .colophon .publisher_note {
  margin: 0 0 8px;
  max-width: 820px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.colophon .entity strong { color: var(--ink); font-weight: 700; }
.colophon nav.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0 6px;
  margin: 12px 0 14px;
  padding: 0;
}
.colophon nav.legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0 10px 0 0;
  color: var(--teal-deep);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.colophon nav.legal a:hover { color: var(--coral-deep); }
.colophon nav.legal a:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 3px; }
.colophon .publisher_note { max-width: 820px; margin-bottom: 0; }

/* ---------- Document pages (about, legal) ---------- */
main.doc {
  padding: 24px var(--side) 56px;
  background-color: #ffffff;
  color: var(--ink);
}
main.doc h1 {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: clamp(26px, 6.6vw, 40px);
  font-weight: 600;
  line-height: 1.18;
}
main.doc .revision {
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
main.doc h1 { margin-bottom: 24px; }
main.doc h1 + .revision { margin-top: -14px; }
main.doc h2 { margin: 36px 0 12px; font-size: clamp(20px, 4.8vw, 25px); }
main.doc p, main.doc li { max-width: 720px; font-size: 17px; }
main.doc a { color: var(--teal-deep); text-underline-offset: 3px; }
main.doc a:hover { color: var(--coral-deep); }
main.doc a:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 3px; }

/* ---------- 480px ---------- */
@media (min-width: 480px) {
  body > header { padding: 16px 20px; }
  .brand { font-size: 24px; }
  .byline { flex-direction: row; gap: 18px; font-size: 16px; }
  .byline > span:last-child { text-align: left; }
  .seal { width: 72px; height: 72px; }
  .seal svg { width: 32px; height: 32px; }
  .sheet { padding: 40px 28px 30px; }
  .sheet-facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- 768px ---------- */
@media (min-width: 768px) {
  body { font-size: 18px; }
  body > header { padding: 20px 24px; }
  .brand { font-size: 28px; }
  main > article > section { padding-top: 56px; padding-bottom: 56px; }
  main > article > section.top { padding-top: 64px; padding-bottom: 36px; }
  .byline { margin-bottom: 44px; }
  .seal { width: 86px; height: 86px; }
  .seal svg { width: 38px; height: 38px; }
  main figure.hero { padding-top: 12px; }
  main > article > section.lead { padding-top: 56px; padding-bottom: 40px; }
  main > article > section.pay { padding-top: 64px; padding-bottom: 72px; }
  .sheet { padding: 44px 48px 36px; }
  .band { padding: 16px 24px; }

  table.compare { display: table; border-spacing: 0 8px; margin-top: -8px; }
  table.compare thead {
    position: static;
    display: table-header-group;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
  table.compare tbody { display: table-row-group; }
  table.compare tr { display: table-row; margin: 0; }
  table.compare th,
  table.compare td { display: table-cell; vertical-align: middle; }
  table.compare thead th {
    padding: 10px 20px;
    background-color: transparent;
    color: var(--teal-deep);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  table.compare td { padding: 20px; }
  table.compare td:first-child { width: 34%; border-radius: 12px 0 0 12px; }
  table.compare td:last-child { border-radius: 0 12px 12px 0; }
  table.compare td::before { display: none; }

  .split { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
  .split.flip { grid-template-columns: 320px minmax(0, 1fr); }
  .split.flip > figure { order: -1; }
  .split figure { margin: 0; max-width: none; }

  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .cards > div { padding: 30px 22px 28px; }

  main > article > section.closing { padding-top: 72px; padding-bottom: 76px; }
  .colophon { padding-top: 56px; padding-bottom: 72px; }
  main.doc { padding-top: 40px; padding-bottom: 80px; }
}

/* ---------- 1024px ---------- */
@media (min-width: 1024px) {
  main > article > section { padding-top: 64px; padding-bottom: 64px; }
  main > article > section.top { padding-top: 80px; }
  .split { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; }
  .split.flip { grid-template-columns: 360px minmax(0, 1fr); }
  .sheet { padding: 48px 56px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html:root { scroll-behavior: auto; }
  .cta, .cta-text, a.brand { transition: none; }
}
