@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

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

:root {
  --bg:          #071F1C;
  --surface:     #0B2721;
  --border:      #163729;
  --accent:      #7CC397;
  --accent-dim:  rgba(124, 195, 151, 0.11);
  --text:        #ffffff;
  --muted:       #70A588; /* Elevated brightness for WCAG AA readability */
  --max-w:       1100px;
  --font-head:   'Manrope', sans-serif;
  --font-body:   'Inter', sans-serif;
  --r-sm:        8px;
  --r-md:        12px;
  --r-lg:        16px;
  --r-pill:      9999px;
}

html { scroll-behavior: smooth; }

/* Honeypot: visually hidden from real users, picked up by bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }


/* ─── NAV ─────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(7, 31, 28, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.nav-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease;
  position: relative;
  padding: 10px 0; /* Expanded touch target height for mobile */
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links a.active {
  color: var(--text);
}

.btn-nav {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #071F1C;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-nav:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(124, 195, 151, 0.2);
}
.btn-nav:active {
  transform: translateY(0.5px);
  box-shadow: 0 2px 8px rgba(124, 195, 151, 0.1);
}


/* ─── HERO ────────────────────────────────────────── */

.hero {
  padding: 96px 24px 0;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-logo {
  display: inline-block;
  width: 80px;
  height: 80px;
  border-radius: var(--r-lg);
  margin-bottom: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(124, 195, 151, 0.12);
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(124, 195, 151, 0.15);
}

.hero-sub {
  max-width: 520px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.badge-wrap { display: flex; justify-content: center; z-index: 5; position: relative; }

.store-badge-link {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s;
}
.store-badge-link:hover {
  transform: scale(1.025);
  filter: brightness(1.06);
}
.store-badge-link:active {
  transform: scale(0.975);
}
.store-badge-link img { height: 52px; width: auto; display: block; }


/* ─── PHONE ROW ───────────────────────────────────── */

.phone-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px 48px; /* 48px absorbs translateY overflow */
  position: relative;
}

/* Soft background radial glows */
.phone-row::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 195, 151, 0.07) 0%, rgba(7, 31, 28, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.phone {
  border-radius: 44px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

/* bezel overlay */
.phone::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 42px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 18%);
  pointer-events: none;
  z-index: 2;
}

/* glass sheen */
.phone::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 35%);
  pointer-events: none;
  z-index: 2;
}

.phone img { width: 100%; height: auto; display: block; }

.phone-side  { width: 210px; transform: translateY(48px); }
.phone-hero  { width: 252px; transform: translateY(-24px); }


/* ─── SHARED SECTION CHIP ─────────────────────────── */

.chip {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 14px;
}


/* ─── FEATURES ────────────────────────────────────── */

.features {
  padding: 80px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.features h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.section-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 460px;
  margin: 0 auto 48px;
  line-height: 1.65;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  text-align: left;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.feature-card:hover {
  border-color: rgba(124, 195, 151, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  font-size: 30px;
  display: block;
  margin-bottom: 16px;
  line-height: 1;
}

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.tag-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.tag-pill.aedp        { background: rgba(124, 195, 151, 0.12); color: #7CC397; }
.tag-pill.practice    { background: rgba(50, 180, 105, 0.12);  color: #32B469; }
.tag-pill.analytics   { background: rgba(188, 136, 248, 0.12); color: #bc88f8; }
.tag-pill.entries     { background: rgba(224, 168, 56, 0.12);  color: #E0A838; }
.tag-pill.evidence    { background: rgba(48, 160, 189, 0.12);  color: #30A0BD; }
.tag-pill.interactive { background: rgba(190, 74, 122, 0.12);  color: #BE4A7A; }


/* ─── SCREENSHOTS ─────────────────────────────────── */

.screenshots {
  padding: 0 24px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.screenshots h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 32px;
}

.ss-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.ss-row img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}


/* ─── PRIVACY STRIP ───────────────────────────────── */

.privacy-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 24px;
  text-align: center;
}

.privacy-strip-inner {
  max-width: 680px;
  margin: 0 auto;
}

.privacy-strip h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.pillar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(124, 195, 151, 0.07);
  border: 1px solid rgba(124, 195, 151, 0.14);
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--r-pill);
}

.privacy-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.82;
  transition: opacity 0.18s;
}
.privacy-link:hover { opacity: 1; }


/* ─── CTA ─────────────────────────────────────────── */

.cta {
  padding: 96px 24px;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.cta h2 {
  font-family: var(--font-head);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.cta .lead { margin-bottom: 36px; }


/* ─── FOOTER ──────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 0 24px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.footer-logo img {
  height: 24px;
  width: auto;
  display: block;
}

.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.18s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy { font-size: 13px; color: var(--muted); }


/* ─── PAGE HERO (support / privacy) ──────────────── */

.page-hero {
  padding: 88px 24px 64px;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}

.page-hero .sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.65;
}


/* ─── FAQ ─────────────────────────────────────────── */

.faq-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

details { border-bottom: 1px solid var(--border); }

details summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
  -webkit-user-select: none;
}
details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  width: 24px;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
details[open] summary::after {
  transform: rotate(135deg); /* spins the + smoothly into an x */
}

.faq-answer {
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
details[open] .faq-answer {
  animation: faqFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-answer p + p { margin-top: 10px; }
.faq-answer strong { color: rgba(255,255,255,0.75); font-weight: 600; }


/* ─── CONTACT BOX ─────────────────────────────────── */

.contact-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-box-header h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-box-header p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Contact Form Inputs ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.form-row input {
  flex: 1;
  min-width: 180px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 195, 151, 0.12);
}

.btn-submit {
  align-self: flex-start;
  background: var(--accent);
  color: #071F1C;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 26px;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}
.btn-submit:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(124, 195, 151, 0.2);
}
.btn-submit:active {
  transform: translateY(0.5px);
  box-shadow: 0 2px 8px rgba(124, 195, 151, 0.1);
}
.btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-success {
  padding: 20px 24px;
  background: rgba(124, 195, 151, 0.08);
  border: 1px solid rgba(124, 195, 151, 0.2);
  border-radius: var(--r-md);
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  text-align: center;
}

.form-error {
  color: #f87171;
  font-size: 14px;
  margin-top: 4px;
}


/* ─── PRIVACY PROSE ───────────────────────────────── */

.privacy-prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.last-updated-badge {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 44px;
}

.privacy-prose h2 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin: 44px 0 12px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.privacy-prose h2:first-of-type { margin-top: 0; border-top: none; }

.privacy-prose p,
.privacy-prose li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.privacy-prose ul { padding-left: 20px; margin-bottom: 12px; }
.privacy-prose li { list-style: disc; }

.privacy-prose strong { color: rgba(255,255,255,0.75); font-weight: 600; }

.privacy-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ─── RESPONSIVE ──────────────────────────────────── */

@media (max-width: 680px) {
  .nav-links { display: none; }

  .hero h1 { letter-spacing: -0.02em; }

  .phone-side { width: 130px; }
  .phone-hero { width: 160px; }

  .ss-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 16px 20px;
    margin: 0 -24px; /* bleed to screen edges */
    scrollbar-width: none;
  }
  .ss-row::-webkit-scrollbar {
    display: none;
  }
  .ss-row img {
    flex: 0 0 250px;
    scroll-snap-align: center;
  }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .contact-box { padding: 28px 20px; }
  .form-row { flex-direction: column; }
  .btn-submit { align-self: stretch; text-align: center; }
}

@media (max-width: 420px) {
  .phone-row { gap: 10px; }
  .phone-side { width: 95px; }
  .phone-hero { width: 120px; }
}
