/* ============================================================
   CLARITY — main.css
   ============================================================ */

:root {
  --blue:        #1A50D4;
  --blue-dark:   #1340AA;
  --blue-faint:  rgba(26, 80, 212, 0.08);
  --blue-border: rgba(26, 80, 212, 0.18);
  --blue-glow:   0 0 14px rgba(26,80,212,0.4), 0 0 28px rgba(26,80,212,0.18);

  --bg:          #FFFFFF;
  --bg-soft:     #FFFFFF;
  --text-primary:#0B0C14;
  --text-body:   #474A60;
  --text-muted:  #8C8FA8;
  --border:      rgba(0, 0, 0, 0.07);

  --font-display:'Nunito', sans-serif;
  --font-body:   'Nunito Sans', sans-serif;
  --nav-h:       70px;
  --radius:      14px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex; align-items: center;
  transition: box-shadow 0.25s ease;
}

/* Added by JS on scroll */
.nav.scrolled {
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 24px rgba(0,0,0,0.06);
}

/* Push all page content below the fixed nav */
body > header {
  height: var(--nav-h);
}

.nav-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 0 2.5rem; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.2rem; color: var(--text-primary);
  letter-spacing: -0.025em;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.75; }

.logo-mark {
  width: 34px; height: 34px;
  background: var(--blue);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Real logo image */
.logo-mark-img {
  width: 34px; height: 34px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-logo-img {
  width: 18px; height: 18px;
  border-radius: 5px;
  object-fit: cover;
  opacity: 0.7;
}

.nav-links { display: flex; align-items: center; gap: 2.25rem; list-style: none; }

.nav-links li a {
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-body);
  position: relative; padding-bottom: 3px;
  transition: color 0.2s, text-shadow 0.2s;
}

.nav-links li a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--blue); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--blue);
  text-shadow: var(--blue-glow);
}

.nav-links li a:hover::after,
.nav-links li a.active::after { transform: scaleX(1); }

.nav-pill {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.9rem; padding: 0.5rem 1.35rem;
  background: transparent; color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 100px;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.nav-pill:hover {
  background: var(--blue);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,80,212,0.25);
}
.nav-links li:last-child a::after { display: none; }
.nav-links li:last-child a:hover  { text-shadow: none; color: #ffffff; }

/* ============================================================
   MAIN
   ============================================================ */

main { flex: 1; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
  gap: 5rem;
}

.hero-left { display: flex; flex-direction: column; align-items: flex-start; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem; font-weight: 700;
  color: var(--blue);
  background: var(--blue-faint);
  border: 1px solid var(--blue-border);
  border-radius: 100px; padding: 0.32rem 0.9rem;
  margin-bottom: 2rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--blue); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.75); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  line-height: 1.1; letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 1.4rem;
}

.hero-title .accent { color: var(--blue); }

.hero-sub {
  font-size: 1.1rem; color: var(--text-body);
  line-height: 1.75; margin-bottom: 2.5rem; max-width: 440px;
}

.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }

.signup-label {
  font-size: 0.875rem; font-weight: 600;
  color: var(--text-body);
  margin-bottom: 0.6rem;
}

.signup-form {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1.5px solid var(--blue-border);
  border-radius: 100px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signup-form:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,80,212,0.1);
}

.signup-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.8rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: transparent;
  min-width: 0;
}

.signup-input::placeholder { color: var(--text-muted); }

.signup-btn {
  flex-shrink: 0;
  border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  padding: 0.75rem 1.4rem;
  background: var(--blue); color: #fff;
  border-radius: 100px;
  margin: 4px;
  transition: background 0.2s, transform 0.15s;
}
.signup-btn:hover {
  background: var(--blue-dark);
  transform: scale(1.02);
}
.signup-btn:active { transform: scale(0.98); }

.btn-hint { font-size: 0.8rem; color: var(--text-muted); padding-left: 0.25rem; }

/* ============================================================
   HERO RIGHT — mockup image (no frame)
   ============================================================ */

.hero-right {
  display: flex; justify-content: center; align-items: center;
}

/* Drop your mockup image straight in — no wrapper needed.
   The image IS the phone. Size and shadow are handled here. */
.mockup-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  /* Blends the image's white background into the page — makes it invisible */
  mix-blend-mode: multiply;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Placeholder shown until you add your mockup */
.mockup-placeholder {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 19.5;
  background: var(--blue-faint);
  border: 2px dashed var(--blue-border);
  border-radius: 32px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.75rem; padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem; text-align: center;
}

/* ============================================================
   FEATURES
   ============================================================ */

.features { background: var(--bg-soft); padding: 4.5rem 2.5rem; }

.features-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem;
}

.feat {
  background: var(--bg); border-radius: var(--radius); padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(26,80,212,0.09);
}

.feat-icon {
  font-size: 1.4rem; width: 46px; height: 46px;
  background: var(--bg-soft); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feat-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--text-primary); margin-bottom: 0.45rem; letter-spacing: -0.01em;
}
.feat-desc { font-size: 0.875rem; color: var(--text-body); line-height: 1.65; }

/* ============================================================
   PAGE HEADER (Terms / Privacy)
   ============================================================ */

.page-header { background: var(--bg-soft); padding: 4.5rem 2.5rem 3.5rem; }
.page-header-inner { max-width: 760px; margin: 0 auto; }

.eyebrow {
  font-size: 0.72rem; font-weight: 700;
  color: var(--blue); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.75rem;
}
.page-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  letter-spacing: -0.035em; line-height: 1.15;
  color: var(--text-primary); margin-bottom: 0.6rem;
}
.page-date { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================================
   DOC BODY
   ============================================================ */

.doc-body { max-width: 760px; margin: 0 auto; padding: 3.5rem 2.5rem 6rem; }

.doc-body p {
  font-size: 0.95rem; color: var(--text-body);
  line-height: 1.85; margin-bottom: 1.1rem;
}
.doc-body h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--text-primary); letter-spacing: -0.02em;
  margin: 2.75rem 0 0.7rem;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body ul { list-style: none; padding: 0; margin-bottom: 1.1rem; }
.doc-body li {
  font-size: 0.95rem; color: var(--text-body); line-height: 1.8;
  padding-left: 1.3rem; position: relative; margin-bottom: 0.35rem;
}
.doc-body li::before {
  content: ''; position: absolute; left: 0; top: 0.68em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue); opacity: 0.4;
}
.doc-body a {
  color: var(--blue); text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(26,80,212,0.3);
  transition: text-decoration-color 0.2s;
}
.doc-body a:hover { text-decoration-color: var(--blue); }

/* ============================================================
   FOOTER
   ============================================================ */

.footer { border-top: 1px solid var(--border); background: var(--bg-soft); }

.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 2.25rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}

.footer-brand {
  display: flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.9rem; margin-bottom: 0.2rem;
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--blue); }

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-left > * { animation: fadeUp 0.55s ease both; }
.hero-badge    { animation-delay: .05s; }
.hero-title    { animation-delay: .13s; }
.hero-sub      { animation-delay: .21s; }
.hero-actions  { animation-delay: .29s; }
.hero-right    { animation: fadeUp 0.65s .15s ease both; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center; gap: 3rem;
    padding: 3rem 1.5rem; min-height: auto;
  }
  .hero-left   { align-items: center; }
  .hero-sub    { margin-left: auto; margin-right: auto; }
  .hero-actions{ align-items: center; }
  .hero-right  { order: -1; }
  .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav-inner { padding: 0 1.25rem; }
  .nav-links li:not(:last-child) { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   SIGNUP FEEDBACK STATES
   ============================================================ */

.signup-success {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: #16a34a;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 100px;
  padding: 0.7rem 1.25rem;
  max-width: 420px;
}

.signup-error {
  font-size: 0.82rem;
  color: #dc2626;
  padding-left: 0.25rem;
}
