/* Life Map — homepage. Light theme matching the app. Subpages keep styles.css. */
:root {
  --bg: #f4f8f5;
  --surface: #ffffff;
  --tint: #e6f2ea;
  --line: #d5e5da;
  --ink: #10291f;
  --ink-soft: #4a6156;
  --green: #1f8a5b;
  --green-dark: #166c47;
  --green-soft: #cfe8d9;
  --lime: #a5c33c;
  --red: #d64545;
  --rustore: #0077ff;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(16, 41, 31, 0.1);
  --font-head: "TT Rounds Neue", "Manrope", system-ui, sans-serif;
}

@font-face {
  font-family: "TT Rounds Neue";
  src: url("fonts/TTRoundsNeue-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--green);
}

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

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 248, 245, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  border-radius: 11px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav .nav-cta {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
}

.site-nav .nav-cta:hover {
  background: var(--green-dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: var(--tint);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 7rem;
  overflow: hidden;
  background: radial-gradient(circle at 85% 20%, var(--green-soft) 0, transparent 42%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.pill {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
}

.hero h1 span {
  color: var(--green);
}

.hero-lead {
  max-width: 520px;
  margin: 1.4rem 0 2rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.hero-note {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Store buttons */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 180px;
  min-height: 58px;
  padding: 0.5rem 1.4rem;
  border-radius: 16px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.store-btn small {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
}

.store-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 41, 31, 0.18);
}

.store-play {
  background: var(--ink);
}

.store-play:hover {
  background: #1b3d30;
}

.store-rustore {
  background: var(--rustore);
}

.store-rustore:hover {
  background: #2b8cff;
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  width: 280px;
  padding: 10px;
  border-radius: 42px;
  background: #0f1f18;
  box-shadow: 0 30px 70px rgba(16, 41, 31, 0.28);
  transform: rotate(-3deg);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.4rem 1rem 1.2rem;
  border-radius: 33px;
  background: linear-gradient(180deg, #d6ecdf 0%, #eef6f1 55%, #e3eee8 100%);
}

.app-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-top img {
  border-radius: 8px;
}

.app-top b,
.app-status b {
  display: block;
  font-size: 0.85rem;
  line-height: 1.2;
}

.app-top small,
.app-status small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 600;
}

.app-top small {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ring {
  position: relative;
  width: 168px;
  margin: 0.6rem auto 0.4rem;
}

.ring svg {
  display: block;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 9;
}

.ring-track {
  stroke: rgba(31, 138, 91, 0.15);
}

.ring-fill {
  stroke: var(--green);
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 90;
}

.ring-time {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-time b {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ring-time small {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 600;
}

.app-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.app-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 138, 91, 0.18);
}

.app-btn,
.app-sos {
  padding: 0.75rem;
  border-radius: 14px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.app-btn {
  margin-top: 0.3rem;
  background: linear-gradient(180deg, #26a06b, var(--green));
  color: #fff;
}

.app-sos {
  padding: 0.55rem;
  background: var(--surface);
  border: 1px solid #f1c9c9;
  color: var(--red);
  font-size: 0.75rem;
}

.app-tabs {
  padding: 1.6rem 0 1.4rem;
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
}

.notif {
  position: absolute;
  bottom: -2.25rem;
  left: -0.5rem;
  display: flex;
  gap: 0.75rem;
  max-width: 290px;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  animation: notif-in 0.8s 0.6s both cubic-bezier(0.2, 0.8, 0.2, 1);
}

.notif-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fdeaea;
}

.notif-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
}

.notif-head {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.notif-text {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
}

@keyframes notif-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

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

.section-head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}

.kicker {
  margin-bottom: 0.6rem;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.step {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.step p,
.feature p,
.person p {
  color: var(--ink-soft);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature {
  display: flex;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--tint);
}

.feature-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon-red svg {
  stroke: var(--red);
}

.feature h3 {
  margin-bottom: 0.3rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.feature p {
  font-size: 0.95rem;
}

/* Audience */
.audience {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.person {
  padding: 0.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

/* The frame clips the zoomed/parallaxed photo so it never covers the text */
.person-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: var(--tint);
  isolation: isolate;
  /* keeps the rounded clip intact while the card is tilted in 3D */
  transform: translateZ(0);
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(1.06) contrast(0.95);
}

/* Soft mint wash ties the photos to the page palette */
.person-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(207, 232, 217, 0.18) 0%, rgba(16, 41, 31, 0) 45%, rgba(16, 41, 31, 0.28) 100%),
    rgba(31, 138, 91, 0.08);
  pointer-events: none;
}

.person-tag {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  z-index: 1;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.person h3 {
  margin: 1rem 0.65rem 0.4rem;
  font-size: 1.15rem;
}

.person p {
  margin: 0 0.65rem 0.8rem;
  font-size: 0.95rem;
}

/* Quote */
.quote {
  padding: 5rem 0;
  background: var(--green-dark);
  color: #fff;
  text-align: center;
}

.quote-inner {
  max-width: 760px;
}

.quote h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.quote p {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
}

/* Pricing */
.price-card {
  max-width: 820px;
  padding: 2.5rem;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.price-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.price-steps li {
  position: relative;
  padding: 1.25rem;
  border-radius: 18px;
  background: var(--tint);
}

.price-steps li:first-child {
  background: var(--green);
  color: #fff;
}

.price-steps b {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1.1;
}

.price-steps b small {
  font-size: 1rem;
}

.price-steps li > span {
  font-size: 0.9rem;
  opacity: 0.8;
}

.price-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.price-list li {
  position: relative;
  padding-left: 1.75rem;
  font-weight: 600;
}

.price-list li::before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23166c47' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.price-note {
  margin-bottom: 1.75rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

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

.price-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.price-link:hover {
  text-decoration: underline;
}

/* FAQ */
.faq-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  border-radius: 18px;
  background: var(--surface);
}

.faq summary {
  position: relative;
  padding: 1.15rem 3.25rem 1.15rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 500;
  transform: translateY(-50%);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  padding: 0 1.4rem 1.25rem;
  color: var(--ink-soft);
}

/* Topographic texture */
.hero {
  background:
    url("images/contours.svg") center / cover no-repeat,
    radial-gradient(circle at 85% 20%, var(--green-soft) 0, transparent 42%);
}

.section-tint {
  background: var(--tint) url("images/contours.svg") center / cover no-repeat;
}

/* Floating chips around the phone */
.chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 700;
  animation: bob 5s ease-in-out infinite;
}

.chip b,
.chip small {
  display: block;
  line-height: 1.25;
}

.chip small {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
}

.chip-a {
  top: 14%;
  left: -1rem;
}

.chip-b {
  top: 44%;
  right: -1.5rem;
  color: var(--green-dark);
  animation-delay: -2.5s;
}

.chip-b svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chip-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #6aac52;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}

/* Key facts strip, overlapping the hero */
.facts {
  position: relative;
  z-index: 2;
  margin-top: -3rem;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.fact {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(16, 41, 31, 0.07);
}

.fact b {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--green);
  font-family: var(--font-head);
  font-size: 1.9rem;
  line-height: 1.1;
}

.fact span {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.4;
}

/* Section heads with a lead on the right */
.section-head.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  max-width: none;
}

.section-head.split > div {
  max-width: 600px;
}

.section-lead {
  max-width: 420px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Pricing + Guardian message preview */
.pricing-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  max-width: none;
}

.guardian {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 28px;
  background: #dcebe1 url("images/contours.svg") center / cover no-repeat;
}

.guardian-title {
  margin-bottom: 1rem;
  font-weight: 800;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(16, 41, 31, 0.08);
}

.chat-head img {
  border-radius: 50%;
}

.chat-head b,
.chat-head small {
  display: block;
  line-height: 1.2;
}

.chat-head small {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.bubble {
  position: relative;
  max-width: 92%;
  padding: 0.75rem 0.9rem 1.4rem;
  border-radius: 18px 18px 18px 6px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(16, 41, 31, 0.06);
  font-size: 0.9rem;
  line-height: 1.45;
}

.bubble b {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--red);
}

.bubble time {
  position: absolute;
  right: 0.8rem;
  bottom: 0.4rem;
  color: #8aa197;
  font-size: 0.7rem;
}

.bubble-map {
  padding: 0.4rem 0.4rem 1.4rem;
}

.bubble-map span {
  display: block;
  padding: 0.5rem 0.5rem 0;
  font-weight: 700;
}

.mini-map {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.map-pulse {
  transform-origin: 138px 74px;
  animation: map-pulse 2s ease-out infinite;
}

@keyframes map-pulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.guardian-note {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

/* FAQ side column */
.faq-side {
  position: sticky;
  top: 96px;
}

.support {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
}

.support-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--tint);
}

.support-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support h3 {
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}

.support p {
  margin-bottom: 0.9rem;
  color: var(--ink-soft);
}

.support a {
  font-weight: 800;
  text-decoration: none;
}

.support a:hover {
  text-decoration: underline;
}

/* Final call to action */
.cta-box {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3.5rem;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(135deg, #14603f 0%, #1f8a5b 60%, #3a9d55 100%);
  color: #fff;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/contours.svg") center / cover no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.35;
  pointer-events: none;
}

.cta-box::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 34px);
  animation: spin 40s linear infinite;
  pointer-events: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.cta-text,
.cta-box .store-buttons {
  position: relative;
  z-index: 1;
}

.cta-text {
  max-width: 560px;
}

.cta-text h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.cta-text p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
}

.cta-text .cta-mail {
  font-size: 0.95rem;
}

.cta-mail a {
  color: #fff;
  font-weight: 700;
}

.cta-box .store-play {
  background: #fff;
  color: var(--ink);
}

.cta-box .store-play:hover {
  background: #f1f7f3;
  color: var(--ink);
}

.site-footer {
  padding: 2.25rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--green);
  text-decoration: underline;
}

.operator {
  color: #7a8d84;
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid,
  .faq-wrap {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-text {
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .store-buttons {
    justify-content: center;
  }

  .steps,
  .features {
    grid-template-columns: 1fr;
  }

  .steps-track {
    display: none;
  }

  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head.split {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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

  .faq-side {
    position: static;
    margin-bottom: 1.5rem;
  }

  .faq-side .section-head {
    margin-bottom: 1.25rem;
  }

  .chip-a {
    left: 0;
  }

  .chip-b {
    right: 0;
  }

  .audience {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-wrap {
    gap: 0;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: -1rem;
    right: -1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(16, 41, 31, 0.08);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }

  .site-nav.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.8rem 0.25rem;
  }

  .site-nav .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .section {
    padding: 4rem 0;
  }

  .price-card {
    padding: 1.5rem;
  }

  .price-steps,
  .price-list {
    grid-template-columns: 1fr;
  }

  .notif {
    left: 0;
    right: 0;
    bottom: -2.25rem;
    margin: 0 auto;
  }

  .hero {
    padding-bottom: 6rem;
  }
}

@media (max-width: 560px) {
  .audience {
    grid-template-columns: 1fr;
  }

  .store-buttons .store-btn {
    flex: 1 1 140px;
    min-width: 0;
  }

  .price-actions .store-btn {
    flex: 1 1 100%;
  }

  .phone {
    width: 250px;
  }

  .chip {
    display: none;
  }

  .fact {
    padding: 1.1rem;
  }

  .fact b {
    font-size: 1.45rem;
  }

  .cta-box {
    padding: 2rem 1.5rem;
  }
}

/* Animations */
.site-header {
  transition: box-shadow 0.3s, background 0.3s;
}

.site-header.scrolled {
  background: rgba(244, 248, 245, 0.95);
  box-shadow: 0 8px 30px rgba(16, 41, 31, 0.08);
}

/* Soft drifting blobs behind the hero */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}

.hero::before {
  top: -120px;
  right: 8%;
  width: 380px;
  height: 380px;
  background: #b9e2c9;
  animation: drift 14s ease-in-out infinite alternate;
}

.hero::after {
  top: 30%;
  left: -140px;
  width: 260px;
  height: 260px;
  background: #e2efb8;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

@keyframes drift {
  to {
    transform: translate(60px, 40px) scale(1.15);
  }
}

/* Hero entrance */
.js .hero-text > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.js .hero-text > :nth-child(2) { animation-delay: 0.1s; }
.js .hero-text > :nth-child(3) { animation-delay: 0.2s; }
.js .hero-text > :nth-child(4) { animation-delay: 0.3s; }
.js .hero-text > :nth-child(5) { animation-delay: 0.4s; }

.js .hero-visual {
  animation: rise 1s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Phone floats gently */
.phone {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: rotate(-3deg) translateY(0);
  }
  50% {
    transform: rotate(-2deg) translateY(-12px);
  }
}

.ring-fill {
  transition: stroke-dashoffset 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-status i {
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 138, 91, 0.45);
  }
  100% {
    box-shadow: 0 0 0 9px rgba(31, 138, 91, 0);
  }
}

.app-btn {
  position: relative;
  overflow: hidden;
}

.app-btn.pressed {
  animation: press 0.5s ease;
}

.app-btn.pressed::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%);
  animation: ripple 0.7s ease-out forwards;
}

@keyframes press {
  40% {
    transform: scale(0.93);
  }
}

@keyframes ripple {
  to {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* Demo scene: the notification shows only during the alarm */
.demo-on .notif {
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  animation: none;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.demo-on .notif.show {
  opacity: 1;
  transform: none;
}

.phone-screen {
  transition: background 0.6s ease;
}

.phone-screen.ff .ring-fill {
  transition: none;
}

.phone-screen.ff .ring-time b {
  color: var(--ink-soft);
  filter: blur(0.4px);
}

.phone-screen.alarm {
  background: linear-gradient(180deg, #f7d3d3 0%, #fbeded 55%, #f4e3e3 100%);
}

.ring-fill,
.ring-track,
.ring-time b {
  transition-property: stroke-dashoffset, stroke, color;
  transition-duration: 0.9s, 0.4s, 0.4s;
}

.alarm .ring-fill {
  stroke: var(--red);
}

.alarm .ring-track {
  stroke: rgba(214, 69, 69, 0.18);
}

.alarm .ring-time b {
  color: var(--red);
}

.alarm .ring {
  animation: shake 0.6s ease;
}

.alarm .app-status {
  border-color: #f1c9c9;
}

.alarm .app-status i {
  background: var(--red);
  animation: pulse-red 1s ease-out infinite;
}

.alarm .app-btn {
  animation: glow 1.1s ease-in-out infinite;
}

@keyframes shake {
  20%, 60% {
    transform: translateX(-5px) rotate(-2deg);
  }
  40%, 80% {
    transform: translateX(5px) rotate(2deg);
  }
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(214, 69, 69, 0.55);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(214, 69, 69, 0);
  }
}

@keyframes glow {
  50% {
    box-shadow: 0 0 0 7px rgba(31, 138, 91, 0.25);
  }
}

/* Phone follows the cursor */
.phone-tilt {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s ease-out;
}

/* Typing headline */
.hero h1 span.typing {
  display: inline-block;
  min-height: 1.15em;
  padding-right: 0.06em;
  border-right: 0.08em solid var(--green);
  animation: caret 0.8s steps(1) infinite;
}

.hero h1 span.typed {
  border-right-color: transparent;
  animation: none;
}

@keyframes caret {
  50% {
    border-right-color: transparent;
  }
}

/* Steps progress line */
.steps-track {
  position: relative;
  height: 4px;
  margin: 0 16.6% 2rem;
  border-radius: 4px;
  background: var(--line);
}

.steps-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green), var(--lime));
  transition: width 0.25s linear;
}

.steps-track i {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--line);
  transform: translate(-50%, -50%);
  transition: border-color 0.3s, transform 0.3s;
}

.steps-track i:nth-child(1) { left: 0; }
.steps-track i:nth-child(2) { left: 50%; }
.steps-track i:nth-child(3) { left: 100%; }

.steps-track i.on {
  border-color: var(--green);
  transform: translate(-50%, -50%) scale(1.25);
}

.js .step .step-num {
  background: var(--tint);
  color: var(--green);
  transition: background 0.4s, color 0.4s, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .step.lit .step-num {
  background: var(--green);
  color: #fff;
  animation: num-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes num-pop {
  50% {
    transform: scale(1.25);
  }
}

/* Price counters */
.count {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.notif-icon {
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  0%, 60%, 100% {
    box-shadow: 0 0 0 0 rgba(214, 69, 69, 0);
  }
  10% {
    box-shadow: 0 0 0 0 rgba(214, 69, 69, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(214, 69, 69, 0);
  }
}

/* Scroll reveal (classes added by main.js) */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Hover effects */
.step,
.feature,
.person {
  transition: opacity 0.7s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s;
}

.price-card {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 3D tilt (class added by main.js on mouse devices) */
.tilt,
.tilt.is-visible {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
}

.tilt.reveal:not(.is-visible) {
  transform: translateY(32px);
}

.step:hover,
.feature:hover,
.person:hover {
  --ty: -6px;
  box-shadow: 0 18px 40px rgba(16, 41, 31, 0.12);
}

.step-num,
.feature-icon {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.step:hover .step-num,
.feature:hover .feature-icon {
  transform: rotate(-8deg) scale(1.1);
}

/* Photos: parallax via `translate` from main.js, zoom on hover via `scale` */
.person img {
  scale: 1.12;
  transition: scale 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.person:hover img {
  scale: 1.18;
}

.store-btn {
  position: relative;
  overflow: hidden;
}

.store-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
}

.store-btn:hover::after {
  animation: shine 0.8s ease;
}

@keyframes shine {
  to {
    left: 125%;
  }
}

.quote {
  background: linear-gradient(120deg, #166c47, #1f8a5b, #14603f, #166c47);
  background-size: 300% 300%;
  animation: gradient-shift 16s ease infinite;
}

@keyframes gradient-shift {
  50% {
    background-position: 100% 50%;
  }
}

.faq details[open] p {
  animation: faq-open 0.35s ease;
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
