/* ==========================================================
   drgily.com — 2026 redesign
   Palette: warm botanical green + cream + terracotta accent
   ========================================================== */

:root {
  --green-950: #16301f;
  --green-900: #1e3d2f;
  --green-700: #2d5a43;
  --green-600: #3b7a5b;
  --green-100: #e4efe6;
  --cream: #faf6ef;
  --cream-dark: #f1eadb;
  --terra: #c96a3b;
  --terra-dark: #b05a2f;
  --amber: #e8a24b;
  --ink: #26302b;
  --muted: #5f6b64;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(30, 61, 47, .10);
  --shadow-lg: 0 12px 40px rgba(30, 61, 47, .16);
  --font-head: "Lora", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--green-900); line-height: 1.25; }

a { color: var(--green-700); }

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

.section { padding: 72px 0; }
.section.alt { background: var(--white); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  font-family: var(--font-body);
}
.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--green-700); color: #fff; }
.btn-secondary:hover { background: var(--green-900); }
.btn-outline { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--cream-dark); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
}
/* NOTE: do not add backdrop-filter here. A filtered ancestor becomes the
   containing block for position:fixed descendants, which breaks the
   full-screen mobile menu (it would be trapped inside the 72px header). */
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--green-900); }
.brand-name small { display: block; font-family: var(--font-body); font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; list-style: none; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: .97rem;
  border-radius: 8px;
}
.main-nav > li > a:hover, .main-nav > li > a.active { color: var(--green-700); background: var(--green-100); }

.has-sub > a::after { content: " ▾"; font-size: .7em; color: var(--muted); }
.sub-nav {
  position: absolute;
  top: 100%; left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .18s ease;
}
.has-sub:hover .sub-nav, .has-sub:focus-within .sub-nav { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-nav a {
  display: block;
  padding: 9px 14px;
  text-decoration: none;
  color: var(--ink);
  font-size: .93rem;
  border-radius: 8px;
}
.sub-nav a:hover { background: var(--green-100); color: var(--green-900); }

.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--green-900); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero carousel ---------- */
.hero { background: linear-gradient(160deg, var(--green-950) 0%, var(--green-900) 55%, var(--green-700) 100%); color: #fff; overflow: hidden; }
.carousel { position: relative; }
.carousel-track { display: flex; transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.slide { min-width: 100%; padding: 64px 0 84px; }
.slide-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.slide h1, .slide .slide-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: #fff;
  line-height: 1.18;
  margin-bottom: 18px;
}
.slide .eyebrow {
  display: inline-block;
  background: rgba(232, 162, 75, .18);
  color: var(--amber);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.slide p.lead { font-size: 1.12rem; color: rgba(255, 255, 255, .85); margin-bottom: 26px; max-width: 540px; }
.slide .price-tag { font-weight: 700; color: var(--amber); }
.slide-visual { text-align: center; }
.slide-visual .visual-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 20px;
  padding: 36px 28px;
  backdrop-filter: blur(4px);
}
.slide-visual .visual-emoji { font-size: 4.2rem; line-height: 1; margin-bottom: 14px; }
.slide-visual h3 { color: #fff; font-size: 1.25rem; margin-bottom: 8px; }
.slide-visual p { color: rgba(255, 255, 255, .75); font-size: .95rem; }

.hero-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 480px; }
.hero-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 13px 18px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-family: var(--font-body);
}
.hero-form input[type="email"]:focus { outline: 3px solid var(--amber); }
.form-note { font-size: .82rem; color: rgba(255, 255, 255, .6); margin-top: 10px; }
.form-msg { font-size: .95rem; font-weight: 600; margin-top: 10px; color: var(--amber); }

.carousel-nav {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.carousel-dot {
  width: 34px; height: 5px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, .3);
  cursor: pointer;
  transition: background .2s;
}
.carousel-dot.active { background: var(--amber); }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
  transition: background .2s;
}
.carousel-arrow:hover { background: rgba(255, 255, 255, .25); }
.carousel-arrow.prev { left: 18px; }
.carousel-arrow.next { right: 18px; }

/* ---------- App icons & store badges ---------- */
.app-icon {
  width: 76px; height: 76px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  flex-shrink: 0;
}
.app-icon.sm { width: 58px; height: 58px; border-radius: 14px; }
.app-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.app-head .app-name { font-family: var(--font-head); font-size: 1.6rem; color: #fff; line-height: 1.2; }
.app-head .app-tagline { font-size: .92rem; color: rgba(255, 255, 255, .7); }

.store-badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .25);
  transition: transform .18s ease, opacity .18s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge .glyph { font-size: 1.5rem; line-height: 1; }
.store-badge .txt { line-height: 1.15; }
.store-badge .txt small { display: block; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.store-badge .txt strong { font-size: .97rem; font-weight: 600; }
.store-badge.soon { opacity: .55; cursor: default; pointer-events: none; }
.store-badge.soon .txt strong::after { content: " — soon"; font-weight: 400; font-size: .8em; }
.store-note { font-size: .82rem; color: rgba(255, 255, 255, .6); margin-top: 12px; }
.plan-note {
  display: inline-block;
  font-size: .82rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .88);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Phone demo video ---------- */
.phone-demo {
  width: 232px;
  margin: 0 auto;
  border-radius: 30px;
  padding: 9px;
  background: #10171c;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: var(--shadow-lg);
}
.phone-demo { position: relative; }
.phone-demo video { width: 100%; border-radius: 22px; display: block; background: #000; }
.demo-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, transform .18s ease;
}
.sound-toggle:hover { background: rgba(0, 0, 0, .55); transform: translateY(-2px); }
.sound-toggle .icon { font-size: .95rem; }
.demo-caption { font-size: .85rem; color: rgba(255, 255, 255, .65); text-align: center; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--green-100); padding: 18px 0; }
.trust-items { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-items span { font-size: .93rem; color: var(--green-900); font-weight: 600; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 28px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.section.alt .card { background: var(--cream); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .card-icon { font-size: 2.2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; flex: 1; }
.card .card-link { margin-top: 18px; font-weight: 600; text-decoration: none; color: var(--terra); font-size: .95rem; }
.card .card-link:hover { color: var(--terra-dark); }

/* ---------- Program cards (products) ---------- */
.program-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.program-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.program-band { padding: 26px 32px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.program-band.t2d { background: linear-gradient(120deg, var(--green-900), var(--green-700)); }
.program-band.biblical { background: linear-gradient(120deg, #6b4a2b, #97683a); }
.program-band h3 { color: #fff; font-size: 1.35rem; }
.program-band .price { font-size: 1.5rem; font-weight: 700; font-family: var(--font-head); }
.program-band .price small { font-size: .75rem; font-weight: 500; display: block; opacity: .8; }
.program-body { padding: 28px 32px 32px; display: flex; flex-direction: column; flex: 1; }
.program-body ul { list-style: none; margin: 0 0 22px; }
.program-body li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--ink); font-size: .97rem; }
.program-body li::before { content: "✓"; position: absolute; left: 0; color: var(--green-700); font-weight: 700; }
.availability { font-size: .85rem; font-weight: 600; color: var(--terra); margin-bottom: 16px; }
.notify-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.notify-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--cream-dark);
  background: var(--cream);
  font-size: .97rem;
  font-family: var(--font-body);
}
.notify-form input[type="email"]:focus { outline: 2px solid var(--green-700); border-color: var(--green-700); }
.notify-form .form-msg { color: var(--green-700); width: 100%; }

/* honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Apps section ---------- */
.app-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.app-card {
  border-radius: 20px;
  padding: 40px 36px;
  color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.app-card.nutrirank { background: linear-gradient(135deg, var(--green-700), var(--green-950)); }
.app-card.vitalfill { background: linear-gradient(135deg, #2e5e6e, #16333d); }
.app-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 12px; }
.app-card p { color: rgba(255, 255, 255, .82); flex: 1; margin-bottom: 24px; }
.app-badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .15); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.about-photo img { border-radius: 20px; box-shadow: var(--shadow-lg); }
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.credentials { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 24px; }
.credential { background: var(--white); border-radius: 12px; padding: 14px 20px; box-shadow: var(--shadow); font-size: .9rem; font-weight: 600; color: var(--green-900); }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(160deg, var(--green-900), var(--green-700));
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  color: #fff;
}
.newsletter h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; }
.newsletter p { color: rgba(255, 255, 255, .8); max-width: 520px; margin: 0 auto 28px; }
.newsletter .hero-form { margin: 0 auto; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, .75); padding: 56px 0 28px; margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-family: var(--font-body); font-weight: 700; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: rgba(255, 255, 255, .7); text-decoration: none; font-size: .92rem; }
.footer-grid a:hover { color: var(--amber); }
.footer-about p { font-size: .92rem; margin-top: 12px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }
.footer-bottom a { color: rgba(255, 255, 255, .6); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .slide-inner, .program-grid, .app-row { grid-template-columns: 1fr; }
  .slide-visual { display: none; }
  .app-head .app-name { font-size: 1.35rem; }
  .app-icon { width: 62px; height: 62px; border-radius: 15px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 320px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    z-index: 1200;
    background: var(--cream);
    box-shadow: 0 12px 40px rgba(30, 61, 47, .18);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 24px 60px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform .28s ease;
    visibility: hidden;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  body.nav-open { overflow: hidden; }
  .main-nav > li > a { padding: 14px 10px; font-size: 1.05rem; border-bottom: 1px solid var(--cream-dark); border-radius: 0; }
  .sub-nav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    display: none;
    padding-left: 16px;
  }
  .has-sub.open .sub-nav { display: block; }
  .nav-cta { margin: 18px 0 0; text-align: center; }
  .section { padding: 52px 0; }
  .slide { padding: 48px 0 76px; }
  .carousel-arrow { display: none; }
  .newsletter { padding: 40px 24px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-items { gap: 16px; }
  .program-band { padding: 22px 24px; }
  .program-body { padding: 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { transition: none; }
}
