/* ============================================================
   DoseDay Public Site — Shared Stylesheet
   dosedayglp1.com
   Color tokens:
     --teal:     #0E807D
     --deep:     #073F46
     --cream:    #F8F6F0
     --gold:     #C9A84C
     --card:     #F0F7F6
     --text:     #1f2937
     --muted:    #6b7280
   ============================================================ */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Base ───────────────────────────────────────────────────── */
:root {
  --teal:    #0E807D;
  --deep:    #073F46;
  --cream:   #F8F6F0;
  --gold:    #C9A84C;
  --card:    #F0F7F6;
  --text:    #1f2937;
  --muted:   #6b7280;
  --white:   #ffffff;
  --radius:  12px;
  --shadow:  0 4px 20px rgba(7,63,70,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Containers ─────────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(14,128,125,0.30);
}
.btn-primary:hover {
  background: var(--deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14,128,125,0.40);
  text-decoration: none;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-white {
  background: var(--white);
  color: var(--teal);
  box-shadow: 0 4px 14px rgba(14,128,125,0.20);
}
.btn-white:hover {
  background: var(--card);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--teal);
}

/* ── Top Nav ────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #e5e7eb;
  padding: 0 24px;
}

.site-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 12px;
}

.site-nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--deep);
  text-decoration: none;
  flex-shrink: 0;
}
.site-nav-logo:hover { text-decoration: none; color: var(--teal); }

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.site-nav-links a {
  color: var(--text);
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.site-nav-links a:hover {
  background: var(--card);
  color: var(--teal);
  text-decoration: none;
}

.nav-cta {
  flex-shrink: 0;
}

/* show first 2 nav links on small screens, hide the rest and the CTA */
@media (max-width: 700px) {
  .site-nav-links { display: flex; }
  .site-nav-links li:nth-child(n+3) { display: none; }
  .nav-cta { display: none; }
}

/* ── Mobile Sticky CTA ──────────────────────────────────────── */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--deep);
  padding: 12px 20px;
  text-align: center;
}
.mobile-cta-bar a {
  display: block;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
}

@media (max-width: 700px) {
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 72px; }
}

/* ── Section Spacing ────────────────────────────────────────── */
.section {
  padding: 80px 24px;
}
.section-alt {
  padding: 80px 24px;
  background: var(--cream);
}
.section-card {
  padding: 80px 24px;
  background: var(--card);
}

@media (max-width: 768px) {
  .section, .section-alt, .section-card { padding: 56px 20px; }
}

/* ── Section headings ───────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--deep);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-body {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.8;
}

.text-center { text-align: center; }
.text-center .section-body { margin: 0 auto; }

@media (max-width: 768px) {
  .section-title { font-size: 1.6rem; }
}

/* ── Hero Split ─────────────────────────────────────────────── */
.hero-split {
  padding: 72px 24px 64px;
  background: var(--cream);
}

.hero-split-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-split-text {}
.hero-split-text .section-label { margin-bottom: 12px; }

.hero-split-text h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--deep);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-split-text p {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-split-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-split-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

@media (max-width: 860px) {
  .hero-split-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-split-text h1 { font-size: 2rem; }
  .hero-split-img { max-width: 460px; margin: 0 auto; }
}

/* ── Mobile hero CTA alignment ──────────────────────────────── */
@media (max-width: 860px) {
  .hero-split-text { text-align: center; }
  .hero-split-ctas { justify-content: center; }
}

@media (max-width: 768px) {
  .page-hero-text { text-align: center; }
  .page-hero-text .btn { margin-left: auto; margin-right: auto; }
}

@media (max-width: 430px) {
  .hero-split-ctas { flex-direction: column; align-items: center; }
  .hero-split-ctas .btn,
  .page-hero-text .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}

/* ── Path Cards ─────────────────────────────────────────────── */
.path-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.path-card {
  background: var(--white);
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.path-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

/* desktop: uniform 16:9 crop, cropping from bottom */
.path-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cream);
}
.path-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* path-card-img: no direct aspect-ratio — controlled by wrapper */
.path-card-img {
  width: 100%;
  display: block;
}

.path-card-body {
  padding: 20px;
}

.path-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}

.path-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 8px;
}

.path-card-body p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.path-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.path-card-link:hover { text-decoration: underline; }

/* tablet/mobile: stack cards, full-image contain (no crop) */
@media (max-width: 900px) {
  .path-cards-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    gap: 22px;
  }
  .path-card { display: block; }
  .path-card-media {
    aspect-ratio: auto;
    overflow: visible;
  }
  .path-card-media img {
    height: auto;
    object-fit: contain;
    object-position: center top;
  }
}

/* ── Walkthrough Steps ──────────────────────────────────────── */
.walkthrough-step {
  max-width: 1080px;
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.walkthrough-step.rtl {
  direction: rtl;
}
.walkthrough-step.rtl > * {
  direction: ltr;
}

.walkthrough-step-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

.walkthrough-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.walkthrough-step-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 12px;
  line-height: 1.25;
}

.walkthrough-step-text p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.proof-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
}
.proof-bullets li {
  font-size: 0.95rem;
  color: var(--text);
  padding: 6px 0 6px 24px;
  position: relative;
  line-height: 1.5;
}
.proof-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

@media (max-width: 768px) {
  .walkthrough-step,
  .walkthrough-step.rtl {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 28px;
    margin-bottom: 56px;
  }
  .walkthrough-step-img { max-width: 400px; margin: 0 auto; }
}

/* ── Tracker Grid ───────────────────────────────────────────── */
.tracker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.tracker-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* desktop: uniform 16:9 crop */
.tracker-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cream);
}
.tracker-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* tracker-card-img: no direct aspect-ratio — controlled by wrapper */
.tracker-card-img {
  width: 100%;
  display: block;
}

.tracker-card-body {
  padding: 20px;
}

.tracker-card-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 6px;
}

.tracker-card-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .tracker-grid { grid-template-columns: 1fr; }
  .tracker-card-media {
    aspect-ratio: auto;
    overflow: visible;
  }
  .tracker-card-media img {
    height: auto;
    object-fit: contain;
    object-position: center top;
  }
}

/* ── Trust Cards ────────────────────────────────────────────── */
.trust-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.trust-card {
  background: var(--white);
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}

.trust-card-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  display: block;
}

.trust-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 6px;
  line-height: 1.3;
}

.trust-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .trust-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .trust-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ── Free Section / Value Ladder ────────────────────────────── */
.free-section-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.free-section-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--deep);
  margin-bottom: 16px;
}

.free-section-text p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.75;
}

.value-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.value-table th {
  background: var(--deep);
  color: var(--white);
  padding: 10px 14px;
  font-size: 0.85rem;
  text-align: left;
}
.value-table td {
  padding: 10px 14px;
  font-size: 0.9rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}
.value-table tr:last-child td { border-bottom: none; }
.value-table .yes { color: var(--teal); font-weight: 700; }
.value-table .trial { color: var(--gold); font-weight: 600; }

.free-section-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

@media (max-width: 768px) {
  .free-section-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .free-section-img { max-width: 400px; margin: 0 auto; }
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin: 40px auto 0;
}

details {
  border-bottom: 1px solid #e5e7eb;
}

details summary {
  padding: 18px 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--deep);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--teal);
  flex-shrink: 0;
  margin-left: 16px;
}
details[open] summary::after { content: "−"; }

details .faq-answer {
  padding: 0 0 18px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
}
details .faq-answer a { color: var(--teal); }

/* ── Final CTA Section ──────────────────────────────────────── */
.cta-final {
  background: linear-gradient(135deg, var(--teal) 0%, var(--deep) 100%);
  padding: 80px 24px;
}

.cta-final-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.cta-final-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}
.cta-final-text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  line-height: 1.75;
}

.cta-final-img {
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  width: 100%;
}

@media (max-width: 768px) {
  .cta-final-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .cta-final-img { max-width: 360px; margin: 0 auto; }
  .cta-final-text h2 { font-size: 1.7rem; }
}

/* ── Page Hero (subpages) ───────────────────────────────────── */
.page-hero {
  background: var(--cream);
  padding: 64px 24px 56px;
}

.page-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.page-hero-text .breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.page-hero-text .breadcrumb a { color: var(--teal); }

.page-hero-text h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--deep);
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero-text p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.page-hero-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

@media (max-width: 768px) {
  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .page-hero-text h1 { font-size: 1.75rem; }
  .page-hero-img { max-width: 400px; margin: 0 auto; }
}

/* ── Feature List (subpages) ────────────────────────────────── */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.feature-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.6;
}
.feature-list li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.feature-list li:last-child { border-bottom: none; }

/* ── Info Pair List: privacy/data definitions ───────────────── */
.info-pair-list {
  margin: 28px 0;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.info-pair {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 24px;
  padding: 18px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.info-pair:last-child { border-bottom: none; }
.info-pair dt {
  font-weight: 700;
  color: var(--deep);
  line-height: 1.4;
}
.info-pair dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
@media (max-width: 640px) {
  .info-pair {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 18px;
  }
  .info-pair dt { font-size: 0.98rem; }
  .info-pair dd { font-size: 0.93rem; }
}


.note-box {
  background: var(--card);
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  margin: 24px 0;
}
.note-box strong { color: var(--deep); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--deep);
  color: rgba(255,255,255,0.72);
  padding: 52px 24px 32px;
}

.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 64px;
  align-items: start;
}

.footer-brand-block {
  max-width: 560px;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-disclaimer {
  font-size: 0.85rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, auto));
  gap: 36px;
}

.footer-link-group h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}

.footer-link-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-link-group a {
  color: rgba(255,255,255,0.68);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-link-group a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-copy {
  max-width: 1080px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.56);
}

@media (max-width: 760px) {
  .site-footer {
    padding: 44px 24px 32px;
    text-align: left;
  }
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-copy {
    margin-top: 32px;
  }
}

@media (max-width: 420px) {
  .footer-nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ── Exports block ──────────────────────────────────────────── */
.exports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.export-card {
  background: var(--white);
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 24px 20px;
}
.export-card-icon { font-size: 1.6rem; margin-bottom: 10px; }
.export-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 6px;
}
.export-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 600px) {
  .exports-grid { grid-template-columns: 1fr; }
}

/* ── App Store badge ────────────────────────────────────────── */
.appstore-badge {
  display: inline-block;
  margin-top: 4px;
}
.appstore-badge img { height: 50px; }

/* ── Related pages grid ─────────────────────────────────────── */
.related-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.related-page-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 20px 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.related-page-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(7,63,70,0.10);
}
.related-page-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 6px;
}
.related-page-card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}
.related-page-card-arrow {
  font-size: 0.9rem;
  color: var(--accent);
  margin-top: 12px;
  font-weight: 700;
}
@media (max-width: 480px) {
  .related-pages-grid { grid-template-columns: 1fr 1fr; }
}
