/* TrackIT website draft — DRAFT ONLY, not published.
   Brand palette from instagram-assets/_helpers.py + AppIcon:
   DEEP #132820 · GREEN #193228 · Accent #2d4a3e · OLIVE #adb569 · CREAM #f8f3e6 · SOFT #d6dcbe
   No external fonts, scripts, trackers or analytics. */

:root {
  --deep: #132820;
  --green: #193228;
  --green-mid: #2d4a3e;
  --green-soft: #3d5f4f;
  --olive: #adb569;
  --olive-dim: #8f9854;
  --cream: #f8f3e6;
  --soft: #d6dcbe;
  --ink: #14201a;
  --muted: #5c6b62;
  --line: rgba(19, 40, 32, 0.12);
  --paper: #f4f1e8;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(19, 40, 32, 0.28);
  --radius: 1.1rem;
  --max: 68rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--olive-dim); }
a:hover { color: var(--green-mid); }

.draft-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff4cc;
  color: #5a4a00;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid #e6d79a;
}

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

/* ——— Header ——— */
.site-header {
  position: relative;
  z-index: 20;
  background: rgba(19, 40, 32, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(248, 243, 230, 0.08);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--cream);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.brand span {
  font-weight: 500;
  color: rgba(248, 243, 230, 0.65);
  font-size: 0.92rem;
}

nav {
  display: flex;
  gap: 0.35rem 1.15rem;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: rgba(248, 243, 230, 0.78);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--cream);
}

nav .nav-cta {
  background: var(--olive);
  color: var(--deep) !important;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

nav .nav-cta:hover {
  background: #c0c87a;
  color: var(--deep) !important;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(173, 181, 105, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(45, 74, 62, 0.55), transparent 50%),
    linear-gradient(165deg, #0c1a14 0%, var(--deep) 40%, #1a372c 78%, #243f34 100%);
  color: var(--cream);
  padding: 3.5rem 0 4.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 14px,
      rgba(248, 243, 230, 0.015) 14px,
      rgba(248, 243, 230, 0.015) 15px
    );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 1rem;
}

.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: var(--olive);
  border-radius: 2px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 4.6vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 14ch;
}

.hero .subhead {
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.5;
  color: rgba(248, 243, 230, 0.78);
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
  margin-bottom: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--olive);
  color: var(--deep);
  text-decoration: none;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  background: #c0c87a;
  color: var(--deep);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.32);
}

.button svg { flex-shrink: 0; }

.button-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(248, 243, 230, 0.28);
  box-shadow: none;
}

.button-ghost:hover {
  background: rgba(248, 243, 230, 0.08);
  color: var(--cream);
  border-color: rgba(248, 243, 230, 0.45);
}

.cta-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  color: rgba(248, 243, 230, 0.55);
  font-size: 0.88rem;
}

.cta-meta strong {
  color: rgba(248, 243, 230, 0.85);
  font-weight: 600;
}

/* iPhone mockup */
.phone-stage {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  perspective: 1200px;
}

.phone {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 9 / 19.5;
  background: #0a0f0c;
  border-radius: 2.35rem;
  padding: 0.55rem;
  box-shadow:
    var(--shadow),
    inset 0 0 0 2px #2a3630,
    0 0 0 1px rgba(255,255,255,0.06);
  transform: rotateY(-8deg) rotateX(2deg) translateY(0.5rem);
  transition: transform 0.35s ease;
}

.phone:hover {
  transform: rotateY(-3deg) rotateX(0deg) translateY(0);
}

.phone::before {
  /* side button hint */
  content: "";
  position: absolute;
  right: -3px;
  top: 22%;
  width: 3px;
  height: 48px;
  background: #1c2621;
  border-radius: 2px 1px 1px 2px;
}

.phone-notch {
  position: absolute;
  top: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 1.05rem;
  background: #0a0f0c;
  border-radius: 999px;
  z-index: 3;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.85rem;
  overflow: hidden;
  background: #f2f2f7;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-glow {
  position: absolute;
  width: 70%;
  height: 50%;
  right: -10%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(173,181,105,0.35), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* ——— Trust strip ——— */
.trust {
  background: var(--green);
  color: rgba(248, 243, 230, 0.85);
  border-bottom: 1px solid rgba(248, 243, 230, 0.06);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.15rem 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.trust-row svg {
  opacity: 0.9;
  flex-shrink: 0;
}

/* ——— Feature rows ——— */
.features {
  padding: 4.5rem 0 2rem;
}

.section-intro {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section-intro h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--deep);
}

.section-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }

.feature-copy .kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive-dim);
  margin-bottom: 0.55rem;
}

.feature-copy h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
  color: var(--deep);
  line-height: 1.2;
}

.feature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 32rem;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.phone-sm {
  width: min(100%, 240px);
  aspect-ratio: 9 / 19.5;
  background: #0a0f0c;
  border-radius: 2rem;
  padding: 0.45rem;
  box-shadow:
    0 18px 44px rgba(19, 40, 32, 0.22),
    inset 0 0 0 1.5px #2a3630;
}

.phone-sm .phone-screen {
  border-radius: 1.6rem;
}

/* ——— Private band ——— */
.private-band {
  position: relative;
  margin: 1rem 0 0;
  padding: 4rem 0;
  background:
    radial-gradient(ellipse 60% 80% at 85% 50%, rgba(173, 181, 105, 0.12), transparent 55%),
    linear-gradient(135deg, var(--deep) 0%, #1a3329 55%, #243f34 100%);
  color: var(--cream);
  overflow: hidden;
}

.private-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(248,243,230,0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.private-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem 3rem;
  align-items: center;
}

.private-inner h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.private-inner > div > p {
  margin: 0 0 1.25rem;
  color: rgba(248, 243, 230, 0.75);
  font-size: 1.05rem;
  max-width: 34rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  background: rgba(248, 243, 230, 0.08);
  border: 1px solid rgba(248, 243, 230, 0.14);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--soft);
}

.private-card {
  background: rgba(248, 243, 230, 0.06);
  border: 1px solid rgba(248, 243, 230, 0.12);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  backdrop-filter: blur(8px);
}

.private-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  color: var(--olive);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.private-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.private-card li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(248, 243, 230, 0.08);
  font-size: 0.95rem;
  color: rgba(248, 243, 230, 0.85);
}

.private-card li:first-child { border-top: 0; padding-top: 0; }

.private-card li svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--olive);
}

/* ——— Icon grid (secondary features) ——— */
.grid-features {
  padding: 4rem 0 1rem;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.icon-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.icon-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(19, 40, 32, 0.1);
  border-color: rgba(45, 74, 62, 0.22);
}

.icon-card .icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, var(--green-mid), var(--deep));
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--cream);
}

.icon-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--deep);
}

.icon-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ——— FAQ ——— */
.faq {
  padding: 3.5rem 0 4rem;
}

.faq-list {
  max-width: 44rem;
  margin: 0 auto;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0;
  margin-bottom: 0.7rem;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq details[open] {
  border-color: rgba(45, 74, 62, 0.28);
  box-shadow: 0 8px 24px rgba(19, 40, 32, 0.06);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  padding: 1rem 1.15rem;
  color: var(--deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--green-mid);
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
}

/* ——— Final CTA ——— */
.final-cta {
  padding: 0 0 4.5rem;
}

.final-cta-inner {
  background:
    radial-gradient(ellipse 50% 80% at 0% 50%, rgba(173,181,105,0.2), transparent 55%),
    linear-gradient(120deg, var(--green) 0%, var(--deep) 100%);
  color: var(--cream);
  border-radius: 1.4rem;
  padding: 2.75rem 2rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(19, 40, 32, 0.18);
}

.final-cta-inner h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.final-cta-inner p {
  margin: 0 auto 1.4rem;
  max-width: 32rem;
  color: rgba(248, 243, 230, 0.75);
}

.final-cta-inner .cta-row {
  justify-content: center;
  margin-bottom: 0.85rem;
}

.final-cta-inner .cta-meta {
  justify-content: center;
}

/* ——— Inner pages ——— */
.page-hero {
  background:
    radial-gradient(ellipse 70% 80% at 80% 0%, rgba(173,181,105,0.14), transparent 50%),
    linear-gradient(165deg, #0c1a14 0%, var(--deep) 55%, #1a372c 100%);
  color: var(--cream);
  padding: 2.75rem 0 2.5rem;
}

.page-hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
}

.page-hero .lede {
  margin: 0;
  max-width: 36rem;
  color: rgba(248, 243, 230, 0.75);
  font-size: 1.08rem;
}

.page-body {
  flex: 1 0 auto;
  padding: 2.5rem 0 4rem;
}

.page-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.75rem 1.6rem;
  max-width: 46rem;
  box-shadow: 0 10px 30px rgba(19, 40, 32, 0.05);
}

.page-panel h2 {
  margin: 1.75rem 0 0.55rem;
  font-size: 1.12rem;
  color: var(--deep);
}

.page-panel h2:first-child { margin-top: 0; }

.page-panel p,
.page-panel li {
  color: var(--muted);
}

.page-panel ul {
  padding-left: 1.15rem;
}

.page-panel .note {
  background: linear-gradient(135deg, rgba(214,220,190,0.45), rgba(248,243,230,0.8));
  border: 1px solid rgba(45, 74, 62, 0.12);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  color: var(--green-mid);
  font-size: 0.95rem;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.button-on-light {
  background: var(--green);
  color: var(--cream);
}

.button-on-light:hover {
  background: var(--deep);
  color: var(--cream);
}

/* ——— Footer ——— */
.site-footer {
  margin-top: auto;
  background: var(--deep);
  color: rgba(248, 243, 230, 0.55);
  padding: 1.75rem 0 2.25rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(248, 243, 230, 0.06);
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: rgba(248, 243, 230, 0.7);
  text-decoration: none;
}

.site-footer a:hover { color: var(--cream); }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cream);
  font-weight: 650;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .hero-grid,
  .feature-row,
  .feature-row.reverse,
  .private-inner {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-visual {
    order: unset;
  }

  .hero {
    padding: 2rem 0 2.75rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.85rem, 7vw, 2.4rem);
  }

  .hero .subhead { margin-bottom: 1.25rem; }

  /* Text + CTA first on small screens so the fold isn't only the phone */
  .phone-stage {
    order: 2;
    margin-top: 0.5rem;
  }

  .phone {
    width: min(58vw, 220px);
    transform: none;
  }

  .phone:hover { transform: none; }

  .phone-sm { width: min(56vw, 210px); }

  .feature-row { margin-bottom: 3rem; gap: 1.35rem; }

  .trust-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

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

  .private-band { padding: 3rem 0; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 1.5rem, var(--max)); }

  .brand span { display: none; }

  nav .nav-cta { display: none; }

  .trust-row {
    grid-template-columns: 1fr 1fr;
    font-size: 0.82rem;
  }

  .final-cta-inner { padding: 2rem 1.25rem; }
}
