/* Shared styles for the NagMeLater Reminder Library */
:root {
  --paper: #FFFDF8; --paper-deep: #F3EDE2; --ink: #1F2C24; --ink-soft: #52604F;
  --ink-faint: #8B9284; --teal: #075E54; --green: #0E7A43; --green-glow: #25D366;
  --sun: #FFC24B; --bubble-out: #D9FDD3; --line: rgba(31, 44, 36, .14);
  --shadow-card: 0 2px 4px rgba(31, 44, 36, .05), 0 14px 40px -12px rgba(31, 44, 36, .18);
}
* { margin: 0; padding: 0; box-sizing: border-box }
body {
  font-family: 'Nunito Sans', -apple-system, sans-serif; background: var(--paper); color: var(--ink);
  line-height: 1.65;
  background-image: radial-gradient(rgba(31, 44, 36, .035) 1px, transparent 1px); background-size: 22px 22px;
}
h1, h2, h3 { font-family: 'Baloo 2', sans-serif; font-weight: 600; line-height: 1.12; letter-spacing: -.01em }
a { color: inherit }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px }
.btn {
  display: inline-flex; align-items: center; gap: .6rem; background: var(--green-glow); color: #063C22; font-weight: 700;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1rem; padding: .8rem 1.5rem; border-radius: 999px; text-decoration: none; transition: transform .18s, background .18s;
  box-shadow: 0 3px 0 rgba(6, 60, 34, .28), 0 12px 28px -12px rgba(37, 211, 102, .55);
  border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); background: #3ADD78 }
.btn.big { font-size: 1.1rem; padding: 1rem 1.9rem }
header.hero { padding: 64px 0 40px; text-align: center }
.crumb {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--green);
  background: rgba(37, 211, 102, .12); border-radius: 100px; padding: 6px 14px; margin-bottom: 1.2rem;
}
.crumb a { color: inherit; text-decoration: none }
.crumb a:hover { text-decoration: underline }
@media(max-width:640px) { .crumb { display: inline-block; line-height: 1.6; padding: 6px 16px } }
.hero .big-emoji { font-size: 3rem; display: block; margin-bottom: .6rem }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 24ch; margin: 0 auto 1.2rem }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--green) }
.hero p { font-size: 1.12rem; color: var(--ink-soft); max-width: 44rem; margin: 0 auto 2rem }
.cta-note { font-size: .9rem; color: var(--ink-faint); margin-top: .9rem }
section { padding: 48px 0 }
.sec-title { font-size: clamp(1.7rem, 3.4vw, 2.3rem); text-align: center; margin-bottom: .6rem }
.sec-title em { font-style: italic; font-weight: 500; color: var(--green) }
.sec-sub { text-align: center; color: var(--ink-soft); max-width: 40rem; margin: 0 auto 2rem }
/* schedule picker */
.sched-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.3rem; max-width: 900px; margin: 0 auto }
.sched-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: .8rem;
}
.sched-card h3 { font-size: 1.15rem }
.sched-card > p { font-size: .92rem; color: var(--ink-soft) }
.msg-preview {
  background: var(--bubble-out); border-radius: 14px; border-bottom-right-radius: 4px;
  padding: .75rem 1rem; font-size: .93rem; font-weight: 500; box-shadow: 0 2px 6px rgba(31, 44, 36, .12);
  margin-top: auto;
}
.msg-preview small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: .25rem }
.sched-card .btn { justify-content: center }
/* why + facts cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.3rem }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.7rem 1.6rem; box-shadow: var(--shadow-card);
}
.card h3 { font-size: 1.15rem; margin-bottom: .5rem }
.card p { font-size: .95rem; color: var(--ink-soft) }
section.facts .card { background: var(--paper-deep); border-color: rgba(31,44,36,.08) }
/* how strip */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; max-width: 880px; margin: 0 auto }
@media(max-width:760px) { .how { grid-template-columns: 1fr } }
.how-step { text-align: center; padding: 1.2rem 1rem }
.how-step .n {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(37,211,102,.15); border: 1px solid rgba(14,122,67,.25); color: var(--green);
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.15rem; margin-bottom: .7rem;
}
.how-step h3 { font-size: 1.1rem; margin-bottom: .4rem }
.how-step p { font-size: .92rem; color: var(--ink-soft) }
/* FAQ */
.faq { max-width: 760px; margin: 0 auto }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: .8rem; box-shadow: var(--shadow-card) }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 1.05rem; padding: 1rem 1.3rem;
}
.faq summary::-webkit-details-marker { display: none }
.faq .fx { color: var(--green); font-size: 1.3rem; transition: transform .2s; flex: none }
.faq details[open] .fx { transform: rotate(45deg) }
.faq .faq-a { padding: 0 1.3rem 1.1rem; font-size: .95rem; color: var(--ink-soft) }
/* related + toolkit */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; max-width: 900px; margin: 0 auto }
.rel-card {
  display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow-card); text-decoration: none; transition: transform .2s;
}
.rel-card:hover { transform: translateY(-3px) }
.rel-card .re { font-size: 1.6rem; flex: none }
.rel-card b { font-size: .98rem; display: block }
.rel-card small { font-size: .82rem; color: var(--ink-faint) }
.browse-all { text-align: center; margin-top: 1.6rem; font-weight: 700 }
.browse-all a { color: var(--green); text-decoration: none }
.browse-all a:hover { text-decoration: underline }
/* final band */
.final { background: var(--teal); border-radius: 28px; color: var(--paper); text-align: center; padding: 64px 24px; position: relative; overflow: hidden; max-width: 900px; margin: 0 auto }
.final::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px); background-size: 24px 24px; border-radius: inherit }
.final > * { position: relative }
.final h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin-bottom: .8rem }
.final h2 em { font-style: italic; font-weight: 500; color: var(--green-glow) }
.final p { color: rgba(250, 245, 234, .78); max-width: 34rem; margin: 0 auto 1.8rem }
footer { padding: 2.4rem 24px; text-align: center; color: var(--ink-faint); font-size: .88rem }
footer a { color: var(--ink-soft) }
/* hub */
.hub-sec { padding: 40px 0 }
.hub-sec h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .3rem }
.hub-sec .cat-blurb { color: var(--ink-soft); margin-bottom: 1.5rem; max-width: 46rem }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem }
.hub-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.3rem 1.3rem 1.2rem;
  box-shadow: var(--shadow-card); text-decoration: none; display: block; transition: transform .2s, box-shadow .2s;
}
.hub-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(31,44,36,.05), 0 22px 44px -12px rgba(31,44,36,.22) }
.hub-card .he { font-size: 1.7rem; display: block; margin-bottom: .45rem }
/* Uniform card height: the title area always reserves 2 lines, the blurb is
   clamped to exactly 2 lines, so every card in the grid lines up. */
.hub-card h3 { font-size: 1.12rem; margin-bottom: .25rem; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.hub-card p { font-size: .85rem; color: var(--ink-faint); line-height: 1.45; height: 2.9em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
