/* PackLog marketing — sage forest system (mirrors app tokens, elevated for web) */
:root {
  --sage: #5b7c6e;
  --sage-dark: #3e564b;
  --sage-deep: #1a2a22;
  --sage-ink: #122019;
  --mist: #e7efe9;
  --fog: #f4f7f4;
  --ink: #1f2a24;
  --muted: #5f6b64;
  --accent: #c4a574;
  --white: #ffffff;
  --line: rgba(31, 42, 36, 0.1);
  --shadow: 0 24px 60px rgba(18, 32, 25, 0.18);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --container: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 7.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--fog);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sage);
  text-decoration: none;
}

a:hover {
  color: var(--sage-dark);
}

.container {
  width: min(100% - (var(--pad) * 2), var(--container));
  margin-inline: auto;
}

/* —— Nav —— */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.nav.is-solid {
  background: rgba(244, 247, 244, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.nav--dark.is-solid {
  background: rgba(18, 32, 25, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-inner {
  width: min(100% - (var(--pad) * 2), var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav--hero:not(.is-solid) .brand,
.nav--dark:not(.is-solid) .brand {
  color: var(--white);
}

.nav--dark.is-solid .brand {
  color: var(--white);
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.nav--hero:not(.is-solid) .nav-links a,
.nav--dark:not(.is-solid) .nav-links a,
.nav--dark.is-solid .nav-links a {
  color: rgba(255, 255, 255, 0.82);
}

.nav-links a:hover {
  color: var(--sage);
}

.nav--hero:not(.is-solid) .nav-links a:hover,
.nav--dark .nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--sage);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--sage-dark);
  transform: translateY(-1px);
  color: var(--white) !important;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.45rem;
  border-radius: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--sage);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--sage-dark);
  color: var(--white);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--sage-dark);
  border-color: rgba(62, 86, 75, 0.28);
}

.btn-outline:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
  background: rgba(91, 124, 110, 0.08);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 28%;
  transform: scale(1.06);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 32, 25, 0.35) 0%, rgba(18, 32, 25, 0.15) 35%, rgba(18, 32, 25, 0.72) 72%, rgba(18, 32, 25, 0.92) 100%),
    linear-gradient(90deg, rgba(18, 32, 25, 0.55) 0%, rgba(18, 32, 25, 0.1) 55%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - (var(--pad) * 2), var(--container));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  max-width: 38rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-bottom: 1rem;
  animation: rise 0.9s var(--ease) both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 2.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 16ch;
  animation: rise 0.9s var(--ease) 0.08s both;
}

.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 34ch;
  margin-bottom: 1.75rem;
  animation: rise 0.9s var(--ease) 0.16s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s var(--ease) 0.24s both;
}

@keyframes hero-drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* —— Sections —— */
.section {
  padding: var(--section) 0;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--sage-ink);
  margin-bottom: 0.85rem;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 38rem;
  line-height: 1.65;
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section--mist {
  background: var(--mist);
}

.section--deep {
  background: var(--sage-ink);
  color: var(--white);
}

.section--deep .section-title {
  color: var(--white);
}

.section--deep .section-sub {
  color: rgba(255, 255, 255, 0.72);
}

.section--deep .section-label {
  color: var(--accent);
}

/* —— Feature rows —— */
.feature-rows {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.feature-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.feature-row:nth-child(even) {
  direction: rtl;
}

.feature-row:nth-child(even) > * {
  direction: ltr;
}

.feature-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--sage-ink);
}

.feature-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 36ch;
}

.phone-frame {
  width: min(100%, 280px);
  margin-inline: auto;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transform: translateY(0);
  transition: transform 0.5s var(--ease);
}

.phone-frame img {
  width: 100%;
  height: auto;
}

.reveal .phone-frame {
  animation: float-soft 5.5s ease-in-out infinite;
}

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

/* —— Capability grid —— */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 4vw, 2.75rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.capability-grid h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--sage-ink);
  margin-bottom: 0.4rem;
}

.capability-grid p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 32ch;
}

/* —— Showcase strip —— */
.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: end;
}

.showcase .phone-frame {
  width: 100%;
}

.showcase .phone-frame:nth-child(2) {
  transform: translateY(-1.25rem);
}

/* —— Privacy —— */
.privacy-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.privacy-points {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.privacy-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.privacy-points strong {
  color: var(--white);
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 600;
}

.privacy-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  background: rgba(196, 165, 116, 0.15);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.privacy-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* —— Download —— */
.download-panel {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 20%, rgba(91, 124, 110, 0.18), transparent 40%),
    linear-gradient(135deg, #ffffff 0%, var(--mist) 100%);
  border: 1px solid var(--line);
}

.download-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: var(--sage-ink);
}

.download-panel p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 38ch;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.download-aside {
  text-align: center;
  justify-self: center;
  width: min(100%, 240px);
}

.download-aside picture {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin: 0 auto 1rem;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--mist);
}

.download-aside img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.download-aside span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

/* —— Legal pages —— */
.legal-hero {
  padding: calc(var(--nav-h) + 3rem) 0 2.5rem;
  background: linear-gradient(180deg, var(--mist), var(--fog));
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  color: var(--sage-ink);
  margin-bottom: 0.5rem;
}

.legal-hero p {
  color: var(--muted);
}

.legal-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 var(--section);
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2.25rem 0 0.75rem;
  color: var(--sage-ink);
}

.legal-body p,
.legal-body li {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.legal-body ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.legal-body strong {
  color: var(--ink);
}

/* —— Footer —— */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  background: var(--fog);
}

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

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--sage-ink);
}

.footer-meta,
.footer-links {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--muted);
}

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

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .feature-row,
  .feature-row:nth-child(even),
  .privacy-grid,
  .download-panel {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .feature-row:nth-child(even) > * {
    direction: ltr;
  }

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

  .showcase {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-inline: auto;
  }

  .showcase .phone-frame:nth-child(2) {
    transform: none;
  }

  .showcase .phone-frame:nth-child(n + 2) {
    display: none;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .nav-cta {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
  }

  .nav-cta .nav-cta-full {
    display: none;
  }

  .nav-cta .nav-cta-short {
    display: inline;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

.nav-cta .nav-cta-short {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .reveal .phone-frame,
  .hero-brand,
  .hero h1,
  .hero-lead,
  .hero-actions {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .nav-cta:hover {
    transform: none;
  }
}
