/* ============================================================
   TrackMyApplication — Landing page
   Design tokens mirror the app (GmailParcer template palette).
   ============================================================ */

:root {
  --bg: #FAF9F7;
  --surface: #FFFFFF;
  --surface-2: #F1F0EC;
  --ink: #16140F;
  --ink-2: rgba(22, 20, 15, 0.64);
  --ink-3: rgba(22, 20, 15, 0.45);
  --hair: rgba(22, 20, 15, 0.10);
  --hair-strong: rgba(22, 20, 15, 0.18);

  --accent: #0C61FF;
  --accent-2: #0A4FD6;
  --accent-3: #0A3DA8;
  --accent-light: #5B92FF;
  --accent-soft: #E7F0FF;

  --pos: #07A26D;   --pos-bg: #E6FAF1;
  --neg: #E2445C;   --neg-bg: #FDECEF;
  --warn: #E08A19;  --warn-bg: #FFF4E0;
  --info: #2A7CF7;  --info-bg: #E6F0FE;

  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22,20,15,.05), 0 0 0 1px rgba(22,20,15,.03);
  --shadow-md: 0 10px 30px -12px rgba(22,20,15,.16);
  --shadow-lg: 0 30px 60px -20px rgba(10,61,174,.28);

  --maxw: 1140px;
}

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 102px; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

/* ─── Buttons ───────────────────────────────────────── */
.btn {
  --pad-y: 10px; --pad-x: 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 10px;
  font-family: var(--sans);
  font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-lg { --pad-y: 14px; --pad-x: 26px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, #3D82FF 0%, var(--accent) 55%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 6px 18px -6px rgba(12,97,255,.55);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 10px 26px -8px rgba(12,97,255,.65); transform: translateY(-1px); }

.btn-outline { background: var(--surface); color: var(--accent-2); border-color: var(--hair-strong); }
.btn-outline:hover { border-color: var(--accent); background: var(--accent-soft); }

.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }

.btn-light { background: #fff; color: var(--accent-2); }
.btn-light:hover { background: #f3efff; transform: translateY(-1px); }

.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); }

/* ─── Navbar ────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,244,252,.8);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-color: var(--hair); background: rgba(255,255,255,.85); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 90px; }

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 62px; width: auto; display: block; }

.nav-links { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.nav-links a { padding: 8px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ──────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 72px 0 90px; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 480px at 78% -8%, rgba(12,97,255,.14), transparent 60%),
    radial-gradient(700px 420px at 8% 12%, rgba(91,146,255,.18), transparent 55%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(22,20,15,.07) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
          mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 0.85fr 1.32fr; gap: 36px; align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .02em;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); color: var(--accent-2);
  border: 1px solid var(--hair-strong); box-shadow: var(--shadow-sm);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 3px var(--pos-bg); }

.hero-copy h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; margin: 20px 0 0; }
.hero-copy h1 .grad {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-3) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lede { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); margin-top: 20px; max-width: 540px; }
.lede strong { color: var(--ink); font-weight: 600; }

.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
.hero-trust svg { width: 18px; height: 18px; color: var(--pos); flex-shrink: 0; }

/* Dashboard image */
.hero-visual { position: relative; margin-right: -60px; }
.hero-visual::before {
  content: ""; position: absolute; z-index: 0;
  inset: -8% -5% -12% -5%;
  background: radial-gradient(55% 55% at 70% 28%, rgba(12,97,255,.20), transparent 70%);
  filter: blur(28px);
}
.dash-frame {
  position: relative; z-index: 1;
  border-radius: 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--hair);
  box-shadow: var(--shadow-lg);
  transform: perspective(1700px) rotateY(-6deg) rotateX(2deg);
  transform-origin: center center;
  animation: dashFloat 6s ease-in-out infinite;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.dash-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(12,97,255,.07), transparent 42%);
}
.dash-frame:hover {
  animation-play-state: paused;
  transform: perspective(1600px) rotateY(0deg) rotateX(0deg) scale(1.02);
}
.dash-img { width: 100%; height: auto; display: block; }

.dash-float {
  position: absolute; z-index: 2; bottom: -22px; right: -10px;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-md);
  animation: badgeFloat 4s ease-in-out infinite;
}
.dash-float .df-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; font-size: 18px; }
.dash-float b { display: block; font-size: 13px; }
.dash-float small { font-size: 11px; color: var(--ink-2); }

@keyframes dashFloat {
  0%,100% { transform: perspective(1700px) rotateY(-6deg) rotateX(2deg) translateY(0); }
  50%     { transform: perspective(1700px) rotateY(-6deg) rotateX(2deg) translateY(-12px); }
}
@keyframes badgeFloat { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-9px); } }

/* ─── Platforms strip ───────────────────────────────── */
.strip { padding: 30px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--surface); }
.strip-label { text-align: center; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.strip-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 30px; margin-top: 20px; }
.plogo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16.5px; color: var(--ink-2); letter-spacing: -.01em; opacity: .82; transition: opacity .2s, color .2s; }
.plogo:hover { opacity: 1; color: var(--ink); }
.plogo img { width: 22px; height: 22px; border-radius: 5px; object-fit: contain; background: #fff; }
.plogo-ico { width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; font-size: 13px; background: var(--accent-soft); color: var(--accent); }

/* ─── Sections ──────────────────────────────────────── */
.section { padding: 88px 0; }
.section-soft { background: var(--surface); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; margin: 12px 0 0; }
.section-head p { color: var(--ink-2); margin-top: 14px; font-size: 17px; }

/* ─── Feature grid ──────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--hair-strong); }
.fc-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.fc-ico.violet { background: var(--accent-soft); } .fc-ico.info { background: var(--info-bg); }
.fc-ico.pos { background: var(--pos-bg); } .fc-ico.warn { background: var(--warn-bg); }
.feature-card h3 { font-size: 18px; font-weight: 600; }
.feature-card p { color: var(--ink-2); margin-top: 10px; font-size: 14.5px; }

/* ─── Classification chips ──────────────────────────── */
.cat-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cat-chip {
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--hair);
  background: var(--bg);
}
.cat-chip.pos { color: var(--pos); } .cat-chip.neg { color: var(--neg); }
.cat-chip.warn { color: var(--warn); } .cat-chip.info { color: var(--info); }
.cat-chip.muted { color: var(--ink-3); } .cat-chip.neutral { color: var(--accent-2); }

/* ─── Product showcase ──────────────────────────────── */
.showcase-row { display: grid; grid-template-columns: 1.08fr .92fr; gap: 50px; align-items: center; margin-top: 64px; }
.showcase-row:first-of-type { margin-top: 0; }
.showcase-row.reverse .showcase-media { order: 2; }
.shot-frame {
  border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--hair); box-shadow: var(--shadow-lg);
  transition: transform .35s ease, box-shadow .35s ease;
}
.shot-frame:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -24px rgba(10,61,174,.30); }
.shot-img { width: 100%; height: auto; display: block; }
.showcase-text h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; margin: 12px 0 0; }
.showcase-text p { color: var(--ink-2); margin-top: 14px; font-size: 16px; }
.showcase-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.showcase-list li { position: relative; padding-left: 28px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.showcase-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230C61FF'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4l3.1 3.1 6.8-6.8a1 1 0 0 1 1.4 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ─── Steps ─────────────────────────────────────────── */
.steps { display: flex; align-items: stretch; justify-content: center; gap: 14px; flex-wrap: wrap; }
.step { flex: 1; min-width: 240px; max-width: 320px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.step-num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%); margin-bottom: 16px; }
.step h3 { font-size: 18px; font-weight: 600; }
.step p { color: var(--ink-2); margin-top: 8px; font-size: 14.5px; }
.step-arrow { display: flex; align-items: center; font-size: 26px; color: var(--accent-light); font-weight: 700; }
.how-cta { text-align: center; margin-top: 48px; }

/* ─── Pricing ───────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.price-card { position: relative; background: var(--bg); border: 1px solid var(--hair); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.section-soft .price-card { background: var(--bg); }
.price-card.featured { background: var(--surface); border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-8px); }
.pc-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%); padding: 5px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.pc-name { font-size: 20px; font-weight: 700; }
.pc-desc { color: var(--ink-2); font-size: 14px; margin-top: 6px; min-height: 40px; }
.pc-price { font-family: var(--mono); font-size: 34px; font-weight: 600; letter-spacing: -.04em; margin: 18px 0; }
.pc-price span { font-size: 14px; color: var(--ink-3); font-weight: 400; letter-spacing: 0; }
.pc-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; flex: 1; }
.pc-list li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--ink-2); }
.pc-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--pos-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2307A26D'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4l3.1 3.1 6.8-6.8a1 1 0 0 1 1.4 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center/13px no-repeat; }

/* ─── FAQ ───────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius-sm); padding: 4px 20px; box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); font-size: 22px; font-weight: 400; color: var(--accent); transition: transform .2s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-2); padding: 0 0 18px; font-size: 15px; }

/* ─── CTA band ──────────────────────────────────────── */
.cta-band { background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent-2) 55%, var(--accent) 100%); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.12) 1px, transparent 0); background-size: 24px 24px; opacity: .5; }
.cta-inner { position: relative; text-align: center; padding: 80px 24px; }
.cta-inner h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; }
.cta-inner p { color: rgba(255,255,255,.85); margin-top: 14px; font-size: 18px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* ─── Footer ────────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(242,238,254,.7); padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-wordmark { display: inline-block; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; color: #fff; }
.footer-wordmark em { font-style: italic; color: var(--accent-light); font-weight: 600; }
.footer-brand p { margin-top: 14px; font-size: 14px; max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); font-weight: 500; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 14px; color: rgba(242,238,254,.7); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 13px; gap: 12px; flex-wrap: wrap; font-family: var(--mono); color: rgba(242,238,254,.55); }
.footer-bottom a { color: var(--accent-light); font-weight: 500; transition: color .15s; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ─── Scroll reveal ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; max-width: 560px; margin: 0 auto; }
  .hero-visual::before { inset: -4%; }
  .dash-frame { transform: none; animation: none; }
  .dash-float { right: 0; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .showcase-row { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
  .showcase-row.reverse .showcase-media { order: 0; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-card.featured { transform: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: 90px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--hair);
    padding: 12px 24px 16px; box-shadow: var(--shadow-md);
  }
  .nav.open .nav-actions {
    display: flex; flex-direction: column; gap: 8px;
    position: absolute; top: calc(90px + 232px); left: 0; right: 0;
    background: var(--surface); padding: 0 24px 18px;
  }
  .nav.open .nav-actions .btn { width: 100%; }
  .section { padding: 64px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); }
  .steps { flex-direction: column; align-items: center; }
}

@media (max-width: 420px) {
  .nav.open .nav-actions { top: calc(90px + 240px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dash-frame, .dash-float { animation: none; }
}
