/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --plum-950: #241022;
  --plum-900: #3b1638;
  --plum-800: #5b214f;
  --wine:     #7f1738;
  --rose:     #f2b9c7;
  --blush:    #fff3f6;
  --cream:    #fffaf3;
  --teal:     #0f8c88;
  --coral:    #ee5f75;
  --navy:     #1b3a6b;
  --ink:      #211827;
  --muted:    #6f6370;
  --line:     rgba(91, 33, 79, 0.18);
  --shadow:   0 24px 70px rgba(36, 16, 34, 0.24);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(238, 95, 117, 0.34), transparent 26rem),
    linear-gradient(145deg, var(--plum-950), var(--plum-800) 48%, var(--blush));
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, p { margin-top: 0; }

/* ============================================================
   PAGE SHELL
   ============================================================ */
.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.96), rgba(255, 243, 246, 0.9)),
    var(--cream);
  box-shadow: var(--shadow);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: min(210px, 58vw);
  height: auto;
  display: block;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--cream);
  background: var(--plum-800);
  font-weight: 800;
  white-space: nowrap;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding: clamp(12px, 2vw, 20px) clamp(20px, 5vw, 68px) clamp(34px, 7vw, 78px);
}

.hero-copy { max-width: 680px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 12px;
  color: var(--plum-900);
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.92;
  font-weight: 900;
}

.hero-logo-heading {
  font-size: 0;
  margin-bottom: 16px;
}

.hero-logo-img {
  width: min(520px, 90%);
  height: auto;
  display: block;
}

.tagline {
  max-width: 560px;
  margin-bottom: 24px;
  color: var(--plum-800);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.4;
  font-weight: 500;
  font-style: italic;
}

.intro {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.6;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  color: white;
  background: var(--coral);
}

.button.secondary {
  color: var(--plum-800);
  border-color: rgba(91, 33, 79, 0.34);
  background: rgba(255, 255, 255, 0.62);
}

/* ============================================================
   PHONE MOCKUP
   ============================================================ */
.phone-card {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 95, 117, 0.28) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.phone {
  width: min(300px, 100%);
  padding: 0 16px 22px;
  border: 8px solid var(--plum-950);
  border-radius: 40px;
  background: linear-gradient(180deg, var(--blush), #ffffff);
  box-shadow:
    0 32px 72px rgba(91, 33, 79, 0.32),
    0 0 0 1px rgba(91, 33, 79, 0.08);
  position: relative;
  z-index: 1;
  transform: rotate(1.5deg);
}

.phone-notch {
  width: 70px;
  height: 18px;
  background: var(--plum-950);
  border-radius: 0 0 12px 12px;
  margin: 0 auto 14px;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--plum-800);
  font-weight: 900;
  font-size: 0.88rem;
}

.phone-header img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.quote {
  margin-bottom: 12px;
  padding: 14px 16px;
  border-left: 4px solid var(--plum-800);
  border-radius: 12px;
  color: var(--plum-800);
  background: var(--rose);
  font-size: 0.98rem;
  line-height: 1.3;
  font-weight: 900;
  font-style: italic;
}

/* Stats: 3-column horizontal strip */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.stat-label {
  font-size: 0.54rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.stat-val {
  font-size: 0.76rem;
  font-weight: 900;
  color: var(--plum-800);
}

/* Calendar: proper 7-column grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-hdr {
  text-align: center;
  font-size: 0.54rem;
  font-weight: 800;
  color: var(--muted);
  padding-bottom: 4px;
  text-transform: uppercase;
}

.cal-grid span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  border-radius: 50%;
}

.cal-d      { color: var(--ink); }
.cal-e      { /* empty alignment cell */ }

.cal-period {
  background: rgba(242, 185, 199, 0.75);
  color: var(--wine);
}

.cal-today {
  background: var(--plum-800);
  color: white;
}

/* ============================================================
   TWO MODES SECTION
   ============================================================ */
.two-modes {
  margin-top: 18px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 24px;
  background: rgba(255, 250, 243, 0.94);
  box-shadow: 0 18px 48px rgba(36, 16, 34, 0.16);
}

.modes-header {
  text-align: center;
  margin-bottom: 28px;
}

.dark-eyebrow { color: var(--plum-800); }

h2 {
  margin-bottom: 10px;
  color: var(--plum-900);
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.1;
}

.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.mode-card {
  padding: clamp(20px, 3vw, 30px);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
}

.tracker-card {
  background: linear-gradient(160deg, #fff3f6, #ffe4ec);
  border: 1px solid rgba(91, 33, 79, 0.1);
}

.support-card {
  background: linear-gradient(160deg, #f0f4ff, #e5ecff);
  border: 1px solid rgba(27, 58, 107, 0.1);
}

.mode-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--plum-800);
  color: white;
  margin-bottom: 14px;
}

.support-badge { background: var(--navy); }

.mode-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 900;
  color: var(--plum-900);
}

.support-card h3 { color: var(--navy); }

.mode-card > p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.mode-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.mode-list li {
  padding: 5px 0 5px 18px;
  position: relative;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.4;
}

.mode-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 2px;
  border-radius: 1px;
}

.tracker-list li::before { background: var(--plum-800); }
.support-list li::before { background: var(--navy); }

/* Screenshot placeholder rectangles */
/* Staggered fan layout for tracker screenshots */
.screen-fan {
  position: relative;
  height: 340px;
  margin-top: 12px;
}

.fan-img {
  position: absolute;
  width: 52%;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(36, 16, 34, 0.22);
  display: block;
}

.fan-img--left {
  left: 0;
  top: 24px;
  transform: rotate(-9deg);
  z-index: 1;
  opacity: 0.82;
}

.fan-img--centre {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 3;
}

.fan-img--right {
  right: 0;
  top: 28px;
  transform: rotate(8deg);
  z-index: 1;
  opacity: 0.82;
}

/* Single centred screenshot for support card */
.screen-img--single {
  display: block;
  width: 58%;
  margin: 12px auto 0;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(27, 58, 107, 0.2);
}

/* ============================================================
   FEATURE BAND
   ============================================================ */
.feature-band {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 24px;
  background: rgba(255, 250, 243, 0.92);
  box-shadow: 0 18px 48px rgba(36, 16, 34, 0.16);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
}

.feature-band article {
  padding: 28px;
  background: rgba(255, 255, 255, 0.56);
}

.feature-band h2 { font-size: clamp(1.1rem, 1.8vw, 1.45rem); }

.feature-band p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  margin-top: 18px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 24px;
  background: rgba(255, 250, 243, 0.94);
  box-shadow: 0 18px 48px rgba(36, 16, 34, 0.16);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.contact-copy p:last-child {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: flex;
  flex-direction: column;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  transition: border-color 0.15s;
}

.contact-link:hover {
  border-color: var(--plum-800);
}

.contact-link-label {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-link-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--plum-800);
}

/* ============================================================
   DOWNLOAD SECTION
   ============================================================ */
.download-section {
  margin-top: 18px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 24px;
  background: rgba(255, 250, 243, 0.94);
  box-shadow: 0 18px 48px rgba(36, 16, 34, 0.16);
}

.download-header {
  margin-bottom: 28px;
}

.download-header h2 { margin-bottom: 6px; }

.download-header p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.download-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.download-card-copy { flex: 1; }

.download-card-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--plum-900);
  margin-bottom: 4px;
}

.download-card-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.download-btn.live {
  background: linear-gradient(135deg, var(--coral), var(--wine));
  color: white;
  box-shadow: 0 4px 18px rgba(238, 95, 117, 0.45);
}

.download-btn.live:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(238, 95, 117, 0.55);
}

.download-btn.soon {
  background: rgba(91, 33, 79, 0.08);
  color: rgba(91, 33, 79, 0.45);
  cursor: not-allowed;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 22px 4px 30px;
}

.footer-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  opacity: 0.7;
}

.footer-copy {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.footer-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-links a {
  color: var(--plum-800);
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-links a:hover { color: var(--plum-950); }

.footer-links span { color: rgba(255, 255, 255, 0.2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .page-shell {
    width: calc(100% - 18px);
    padding: 9px 0 0;
  }

  .hero {
    min-height: auto;
    border-radius: 22px;
  }

  .top-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

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

  .feature-band {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 480px) {
  h1 { font-size: 3rem; }
}
