/* Shared design system for Daily Help for Seniors and Golden Daily Guide.
   Atkinson Hyperlegible is self-hosted under the SIL Open Font License.
   See fonts/OFL.txt. */

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}

:root {
  --bg: #fbf6ee;
  --bg-raised: #fffdf9;
  --ink: #1a2332;
  --ink-soft: #243044;
  --navy: #10243e;
  --navy-deep: #0b1a2e;
  --sage: #145c4a;
  --sage-deep: #0e4638;
  --gold: #6b4308;
  --gold-bright: #e2a23a;
  --line: #e0d2bf;
  --focus: #6b4308;
  --danger: #8c1d1d;
  --tint: #f4e7d4;
  --tint-sage: #e7f3ee;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(16, 36, 62, 0.07);
  --font: "Atkinson Hyperlegible", "Segoe UI", "Helvetica Neue", sans-serif;
  --wrap: 1120px;
  --space: 1.25rem;
  color-scheme: light;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

p,
li,
dd {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font);
  line-height: 1.2;
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.15rem, 1.2rem + 2.6vw, 3.35rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.2rem);
}

h3 {
  font-size: 1.4rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--sage-deep);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  background: var(--navy);
  color: #fbf6ee;
  padding: 0.8rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.4rem));
  margin-inline: auto;
}

.narrow {
  width: min(46rem, 100%);
}

.lede {
  font-size: clamp(1.25rem, 1.05rem + 0.5vw, 1.45rem);
  color: var(--ink);
  max-width: 40rem;
}

.eyebrow {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.family-bar {
  background: #10243e;
  color: #fbf6ee;
}

.family-bar ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0.2rem 0;
}

.family-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.35rem 0.75rem;
  color: #fbf6ee;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
}

.family-bar a:hover {
  color: #f3d7a1;
  text-decoration: underline;
}

.family-bar a[aria-current="page"] {
  color: #f3d7a1;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.22em;
}

.notice-bar {
  background: var(--navy);
  color: #fbf6ee;
  font-size: 1.125rem;
  line-height: 1.45;
}

.notice-bar .wrap {
  padding: 0.7rem 0;
}

.notice-bar a {
  color: #f3d7a1;
}

.site-header {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--navy);
  min-height: 48px;
}

.brand img {
  display: block;
  height: 88px;
  width: auto;
  max-width: min(420px, 70vw);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.55rem 1rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle-bars {
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0 0 0.85rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.4rem 0.75rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--tint);
  text-decoration: underline;
}

.site-nav .nav-cta {
  background: var(--sage);
  color: #fff;
  text-decoration: none;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta[aria-current="page"] {
  background: var(--sage-deep);
  color: #fff;
}

@media (max-width: 1040px) {
  html.js .nav-toggle {
    display: inline-flex;
  }

  html.js .site-nav {
    display: none;
  }

  html.js .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 1rem;
  }

  .site-nav a {
    width: 100%;
  }
}

.hero {
  padding: 2.2rem 0 1rem;
}

.hero-layout {
  display: grid;
  gap: 1.25rem;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.2rem 0 0.6rem;
}

.reassure,
.fine {
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--sage);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

.button:hover,
button:hover {
  background: var(--sage-deep);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.button-secondary:hover {
  background: var(--navy);
  color: #fbf6ee;
}

.button-gold {
  background: var(--gold);
  color: #fff;
}

.button-gold:hover {
  background: #4e3006;
  color: #fff;
}

.hero-banner {
  margin: 1.5rem 0 0;
}

.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--tint);
}

.section {
  padding: 3rem 0;
}

.section-tint {
  background: var(--tint);
}

.section-sage {
  background: var(--tint-sage);
}

.section h2 {
  max-width: 20ch;
}

.intro-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.intro-row h2 {
  margin: 0;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-layout.split {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 2rem;
  }
}

.card,
.step,
.plan,
.guide-card,
.callout,
.sample,
.faq details {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.guide-card,
.callout,
.sample {
  padding: 1.25rem 1.3rem 1.35rem;
}

.card h3,
.guide-card h3,
.plan h3,
.step h3 {
  margin-bottom: 0.35rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.step {
  padding: 1.2rem 1.2rem 1.3rem;
  border-top: 6px solid var(--sage);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fbf6ee;
  font-weight: 700;
}

.included {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.included li {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  min-height: 48px;
}

.included strong {
  color: var(--navy);
}

.space-top {
  margin-top: 1.25rem;
}

.pilot-band {
  background: var(--navy);
  color: #fbf6ee;
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}

.pilot-band h2,
.pilot-band h3 {
  color: #fbf6ee;
}

.pilot-band a {
  color: #f3d7a1;
}

.callout {
  border-left: 8px solid var(--gold-bright);
}

.callout h2,
.callout h3 {
  margin-top: 0;
}

.disclaimer {
  background: #fff8ea;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  color: var(--ink);
}

.disclaimer strong {
  color: var(--navy);
}

.sample {
  background: var(--navy);
  color: #fbf6ee;
  border: 0;
}

.sample h2,
.sample h3,
.sample p {
  color: #fbf6ee;
}

.bubble {
  background: #1c3b5e;
  border-radius: 16px 16px 16px 6px;
  padding: 0.9rem 1rem;
  margin: 0.4rem 0;
}

.bubble-reply {
  margin-left: 18%;
  border-radius: 16px 16px 6px 16px;
  background: var(--sage);
  font-weight: 700;
}

.plans {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.plan {
  padding: 1.3rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan .price {
  font-size: 2.6rem;
  line-height: 1;
  color: var(--navy);
  margin: 0.2rem 0;
}

.plan .price span {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.plan ul {
  padding-left: 1.2rem;
  margin: 0.4rem 0 1rem;
}

.plan li + li {
  margin-top: 0.35rem;
}

.plan .button {
  margin-top: auto;
}

.plan.featured {
  border: 3px solid var(--sage);
  background: #f3faf7;
}

.badge {
  display: inline-block;
  background: var(--sage);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 0.4rem;
}

@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.ladder li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.channels {
  display: grid;
  gap: 0.8rem;
}

.channel {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.channel h3 {
  margin-bottom: 0.2rem;
}

.tag {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--tint);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.35rem;
}

.faq details {
  margin-bottom: 0.75rem;
  box-shadow: none;
}

.faq summary {
  min-height: 48px;
  padding: 0.95rem 1.15rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

.faq details p,
.faq details ul {
  padding: 0 1.15rem;
}

.faq details p:last-child,
.faq details ul:last-child {
  padding-bottom: 1rem;
}

.prose {
  width: min(44rem, 100%);
}

.prose h2 {
  margin-top: 1.8rem;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.guide-card a {
  color: var(--navy);
  text-decoration: none;
}

.guide-card a:hover {
  text-decoration: underline;
}

.chapter-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

@media (min-width: 800px) {
  .chapter-links {
    grid-template-columns: 1fr 1fr;
  }
}

.chapter-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.55rem 0.2rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.guide-kicker {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.3rem;
}

.crumbs {
  font-size: 1.125rem;
  margin: 0 0 0.25rem;
  padding-top: 1.25rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-hero {
  padding: 2rem 0 0.5rem;
}

.stack-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.field label,
.choice,
fieldset legend {
  font-weight: 700;
  color: var(--navy);
}

.field {
  display: grid;
  gap: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid #5c6b7c;
  border-radius: 12px;
}

::placeholder {
  color: #3e4c5e;
  opacity: 1;
}

button:disabled {
  opacity: 0.7;
  cursor: wait;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 400;
  color: var(--ink);
  min-height: 48px;
  padding: 0.35rem 0;
}

.choice input {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.25rem;
  accent-color: var(--sage-deep);
  flex: 0 0 auto;
}

fieldset {
  border: 2px solid var(--line);
  border-radius: 14px;
  margin: 0;
  padding: 0.8rem 1rem 0.4rem;
}

fieldset legend {
  padding: 0 0.35rem;
}

.form-help,
.form-error {
  font-size: 1.125rem;
}

.form-error {
  color: var(--danger);
  font-weight: 700;
  margin: 0;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.signup-band {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}

.form-success {
  color: var(--ink);
  font-weight: 700;
  background: var(--tint-sage);
  border: 2px solid var(--sage-deep);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0;
}

.site-footer {
  background: var(--navy-deep);
  color: #f7f1e6;
  padding: 2.2rem 0 2.5rem;
  margin-top: 2rem;
}

.footer-signup {
  background: #fbf6ee;
  color: #1a2332;
  border-radius: 18px;
  padding: 1.2rem 1.2rem 1.35rem;
  margin-bottom: 1.6rem;
}

.footer-signup h2,
.footer-signup p,
.footer-signup label,
.footer-signup legend {
  color: #1a2332;
}

.footer-signup a {
  color: #0e4638;
}

.family-link {
  font-size: 1.25rem;
  margin: 0.4rem 0 0;
}

.family-link a {
  font-weight: 700;
}

.site-footer h2 {
  color: #f7f1e6;
  font-size: 1.35rem;
}

.site-footer a {
  color: #f3d7a1;
}

.site-footer .footer-signup h2,
.site-footer .footer-signup p,
.site-footer .footer-signup label,
.site-footer .footer-signup legend {
  color: #1a2332;
}

.site-footer .footer-signup a {
  color: #0e4638;
}

.site-footer .family-link a {
  color: #f3d7a1;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-logo {
  display: inline-block;
  background: var(--bg);
  border-radius: 14px;
  padding: 0.4rem 0.7rem;
  line-height: 0;
}

.footer-logo img {
  height: 56px;
  width: auto;
  max-width: min(260px, 70vw);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
}

.footer-disclaimer {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(247, 241, 230, 0.35);
  font-size: 1.125rem;
  line-height: 1.55;
  color: #f7f1e6;
}

.legal-flag {
  background: #fff4d8;
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.sheet .tick {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  border: 2px solid var(--navy);
  border-radius: 4px;
  margin-right: 0.55rem;
  vertical-align: -0.12em;
}

.write-line {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) 1fr;
  gap: 0.75rem;
  align-items: end;
  margin: 0.7rem 0;
  min-height: 48px;
}

.write-line .line {
  border-bottom: 2px solid var(--navy);
  min-height: 1.6rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  margin: 0.55rem 0;
}

.compare {
  display: grid;
  gap: 0.75rem;
}

.compare article {
  background: var(--bg-raised);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
}

.day {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.day li {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0.8rem;
  background: var(--bg-raised);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
}

.day time {
  font-weight: 700;
  color: var(--navy);
}

@media (max-width: 560px) {
  .day li,
  .write-line {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .brand img {
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .family-bar,
  .notice-bar,
  .site-header,
  .site-footer,
  .signup-band,
  .no-print,
  .skip,
  .crumbs {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .sheet {
    max-width: none;
  }
}

@media (max-width: 640px) { .brand img { height: 64px; } }
