/* =============================================
   Revest Analyzer — Marketing Site Styles
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green:        #2C5F2D;
  --green-dark:   #1e4220;
  --green-light:  #3d7a3e;
  --green-pale:   #e8f0e8;
  --green-text:   var(--green);
  --gold:         #FFD700;
  --gold-dark:    #e6c200;
  --bg:           #F8FAF5;
  --white:        #FFFFFF;
  --text:         #333333;
  --muted:        #5F7161;
  --border:       #dde8dd;
  --shadow-sm:    0 1px 4px rgba(44,95,45,0.08);
  --shadow-md:    0 4px 20px rgba(44,95,45,0.12);
  --shadow-lg:    0 8px 40px rgba(44,95,45,0.16);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    32px;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --transition:   0.2s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p {
  color: var(--muted);
  line-height: 1.7;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section--alt {
  background: var(--white);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-text);
  background: var(--green-pale);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green-text);
}

.btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--green-text);
  border-color: var(--green-text);
}

.btn--outline:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-1px);
}

.btn--large {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn--appstore {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  padding: 11px 22px;
  border-radius: var(--radius-md);
  gap: 10px;
}

.btn--appstore:hover {
  background: #111;
  border-color: #111;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--appstore .appstore-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn--appstore .appstore-text span:first-child {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.btn--appstore .appstore-text span:last-child {
  font-size: 1rem;
  font-weight: 700;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo svg {
  width: 36px;
  height: auto;
}

.nav__logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-text);
  line-height: 1.1;
}

.nav__logo-sub {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--muted);
  display: block;
  letter-spacing: 0.02em;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* --- Nav links (desktop only) --- */
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 28px;
}

.nav__links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
}

.nav__links a:hover {
  color: var(--green-text);
}

@media (max-width: 900px) {
  .nav__links { display: none; }
}

/* --- Hero Section --- */
.hero {
  padding: 80px 0 40px;
  background: linear-gradient(160deg, #f0f5ef 0%, var(--bg) 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(44,95,45,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__content {
  max-width: 540px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green-pale);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-text);
  margin-bottom: 22px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero h1 {
  margin-bottom: 18px;
  color: var(--text);
}

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

.hero__sub {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero__stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-text);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 3px;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__phone-wrap {
  position: relative;
  width: 280px;
  filter: drop-shadow(var(--shadow-lg));
}

.hero__phone-frame {
  background: #1a1a1a;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28), inset 0 0 0 1px rgba(255,255,255,0.08);
}

.hero__phone-screen {
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
  background: #f0f0f0;
}

.hero__phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__phone-screen--placeholder {
  background: linear-gradient(160deg, #e8f0e8 0%, #d4e4d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.hero__float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
}

.hero__float-card--left {
  left: -30px;
  top: 28%;
}

.hero__float-card--right {
  right: -30px;
  bottom: 28%;
}

.hero__float-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hero__float-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-text);
  line-height: 1.1;
}

.hero__float-sub {
  font-size: 0.7rem;
  color: var(--muted);
}

/* --- Android Waitlist Form --- */
.waitlist {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px 32px;
  margin-top: 16px;
}

.waitlist__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.waitlist__sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.waitlist__form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.waitlist__input {
  flex: 1;
  min-width: 200px;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition);
}

.waitlist__input::placeholder {
  color: #aab8aa;
}

.waitlist__input:focus {
  border-color: var(--green-text);
  background: var(--white);
}

.waitlist__btn {
  padding: 11px 20px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.waitlist__btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.waitlist__success {
  display: none;
  font-size: 0.85rem;
  color: var(--green-text);
  font-weight: 600;
  margin-top: 8px;
}

/* --- Features Section --- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-pale);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--green-pale);
  color: var(--green-text);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.92rem;
  line-height: 1.65;
}

.feature-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.feature-metric {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-text);
  background: var(--green-pale);
  border-radius: 100px;
  padding: 3px 10px;
}

/* --- Additional Features Grid --- */
.extra-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.extra-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.extra-feature__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--green-pale);
  color: var(--green-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.extra-feature h4 {
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.extra-feature p {
  font-size: 0.82rem;
}

/* --- Screenshots Section --- */
.screenshots__scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 16px 24px 32px;
  margin: 0 -24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.screenshots__scroll::-webkit-scrollbar {
  height: 4px;
}

.screenshots__scroll::-webkit-scrollbar-track {
  background: transparent;
}

.screenshots__scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.screenshot-item {
  flex-shrink: 0;
  width: 220px;
  scroll-snap-align: start;
}

/* Desktop: all six phones fit in one row, no scrolling */
@media (min-width: 1025px) {
  .screenshots__scroll {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    overflow: visible;
    margin: 0;
    padding: 16px 0 32px;
  }

  .screenshot-item {
    width: auto;
  }

  .screenshot-frame {
    border-radius: 30px;
    padding: 8px;
  }

  .screenshot-screen {
    border-radius: 23px;
  }
}

/* Narrower screens scroll sideways: fade the right edge so it's clear there's more */
@media (max-width: 1024px) {
  .screenshots__scroll {
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
}

.screenshot-frame {
  background: #1a1a1a;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-md);
}

.screenshot-screen {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
  background: var(--green-pale);
}

.screenshot-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-screen--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #e8f0e8 0%, #d4e4d4 100%);
}

.screenshot-placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.4;
}

.screenshot-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 14px;
}

/* --- Comparison Feature Section --- */
.comparison {
  background: var(--green);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.comparison::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.comparison::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,0,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.comparison .container {
  position: relative;
  z-index: 1;
}

.comparison__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.comparison__content .section-label {
  background: rgba(255,255,255,0.15);
  color: #a8d5a9;
}

.comparison__content h2 {
  color: #fff;
  margin-bottom: 16px;
}

.comparison__content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.comparison__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comparison__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

.comparison__check {
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.7rem;
}

.comparison__visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comparison-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  backdrop-filter: blur(4px);
}

.comparison-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.comparison-card__name {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.comparison-card__score {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.comparison-card__score-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.comparison-card__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.comparison-metric {
  display: flex;
  flex-direction: column;
}

.comparison-metric__label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-metric__value {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

.comparison-card--winner {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,215,0,0.4);
  box-shadow: 0 0 0 2px rgba(255,215,0,0.15);
}

.comparison-card__badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--gold);
  color: #1a1a00;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.comparison-screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}

.comparison-screenshot-frame {
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.comparison-screenshot-screen {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 9/19.5;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-screenshot-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Pricing Section --- */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  /* Equal-height cards with the buttons lined up along the bottom */
  align-items: stretch;
  max-width: 1040px;
  margin-inline: auto;
}

.pricing__grid .pricing-card {
  display: flex;
  flex-direction: column;
}

.pricing__grid .pricing-cta {
  margin-top: auto;
}

.pricing-features {
  margin-bottom: 24px;
}

.pricing-alt-link {
  display: block;
  text-align: center;
  margin: 12px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-text);
}

.pricing-alt-link--note {
  font-weight: 500;
  color: var(--muted);
}

.pricing__grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin-inline: auto;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card--featured {
  border-color: var(--green-text);
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}

.pricing-card--featured:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__tier {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.pricing-card__amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.pricing-card__period {
  font-size: 0.85rem;
  color: var(--muted);
}

.pricing-card__note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 24px;
  min-height: 1.2em;
}

.pricing-card__note--savings {
  color: var(--green-text);
  font-weight: 700;
}

.pricing-card__trial {
  font-size: 0.8rem;
  color: var(--green-text);
  font-weight: 600;
  margin-bottom: 24px;
  margin-top: -18px;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 22px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
}

.pricing-features li .check {
  width: 18px;
  height: 18px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-text);
  font-size: 0.65rem;
  font-weight: 700;
}

.pricing-features li.muted-feature {
  color: var(--muted);
  text-decoration: line-through;
  opacity: 0.5;
}

.pricing-cta {
  display: block;
  text-align: center;
  padding: 13px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  font-family: var(--font);
  border: 2px solid var(--green);
  color: var(--green-text);
  background: transparent;
  text-decoration: none;
}

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

.pricing-cta--filled {
  background: var(--green);
  color: #fff;
}

.pricing-cta--filled:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.pricing-trial-note {
  text-align: center;
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- Footer --- */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
  padding: 52px 0 32px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 260px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo svg {
  width: 32px;
  height: auto;
}

.footer__logo-name {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.footer__tagline {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
}

.footer__links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__link-group h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: 14px;
}

.footer__link-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link-group a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer__link-group a:hover {
  color: #fff;
}

.footer__divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);
  transition: color var(--transition);
}

.footer__legal a:hover {
  color: rgba(255,255,255,0.8);
}

/* --- Privacy Page --- */
.privacy-hero {
  background: var(--green);
  padding: 64px 0 56px;
}

.privacy-hero h1 {
  color: #fff;
  margin-bottom: 8px;
}

.privacy-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}

.privacy-body {
  padding: 64px 0;
}

.privacy-content {
  max-width: 760px;
  margin: 0 auto;
}

.privacy-content h2 {
  font-size: 1.25rem;
  color: var(--text);
  margin: 40px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.privacy-content h2:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.privacy-content p {
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.75;
}

.privacy-content ul {
  color: var(--text);
  padding-left: 24px;
  margin-bottom: 14px;
  line-height: 1.75;
}

.privacy-content ul li {
  margin-bottom: 6px;
}

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

.privacy-content strong {
  color: var(--text);
  font-weight: 600;
}

/* --- Scroll animation utility --- */
html.js-anim .fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.js-anim .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1024px) {
  .hero__grid {
    gap: 40px;
  }

  .hero__float-card--left {
    left: -10px;
  }

  .hero__float-card--right {
    right: -10px;
  }

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

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

  .comparison__grid {
    gap: 48px;
  }

  .pricing__grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 52px 0 56px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__content {
    max-width: 100%;
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  /* Headline and download buttons first on phones; the screenshot follows */
  .hero__phone-wrap {
    max-height: 62vh;
    overflow: hidden;
  }

  .hero__phone-wrap {
    width: 220px;
  }

  .hero__float-card--left {
    left: 0;
    top: 20%;
  }

  .hero__float-card--right {
    right: 0;
    bottom: 20%;
  }

  .hero__badge {
    margin: 0 auto 22px;
  }

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

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

  .comparison__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .comparison__visual {
    order: -1;
  }

  .comparison-screenshots {
    max-width: 360px;
    margin: 0 auto 4px;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .pricing-card--featured {
    transform: none;
    order: -1;
  }

  .pricing-card--featured:hover {
    transform: translateY(-4px);
  }

  .footer__top {
    flex-direction: column;
    gap: 32px;
  }

  .footer__links {
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .waitlist__form {
    flex-direction: column;
  }

  .waitlist__input {
    min-width: unset;
    width: 100%;
  }

  .screenshot-item {
    width: 180px;
  }
}

@media (max-width: 640px) {
  /* Narrow screens: logo + Log In + App Store don't fit at full size, so drop the tagline
     and shrink the App Store button to its icon (aria-label still names it) */
  .nav__logo-sub {
    display: none;
  }

  .nav__logo-text {
    font-size: 0.95rem;
  }

  .nav__actions {
    gap: 8px;
  }

  .nav__actions .btn {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .nav__actions .btn--appstore {
    padding: 8px 10px;
  }

  .btn--appstore .appstore-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .hero {
    padding: 40px 0 48px;
  }

  .hero__phone-wrap {
    width: 200px;
  }

  .hero__float-card {
    display: none;
  }

  .nav__inner {
    height: 60px;
    gap: 12px;
  }


  .btn--appstore .appstore-text span:last-child {
    font-size: 0.9rem;
  }

  .section-header {
    margin-bottom: 36px;
  }
}

/* "A Trajectory Labs app" line under the footer tagline */
.footer__maker {
  margin-top: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

.footer__maker a,
.footer__copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__maker a:hover,
.footer__copy a:hover {
  color: #fff;
}

/* ─── Official App Store badge (#45) ─────────────────────────────── */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform var(--transition), opacity var(--transition);
}
/* The badge and the button beside it share one height: 48px in the header, 56px in the hero */
.appstore-badge img { display: block; height: 48px; width: auto; }
.hero__actions .appstore-badge img { height: 56px; }
.nav__actions .btn {
  height: 48px;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}
.hero__actions .btn {
  height: 56px;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}
.hero__actions { align-items: center; }
.appstore-badge:hover { transform: translateY(-1px); opacity: 0.92; }

/* ─── Footer fine print (#53) ───────────────────────────────────── */
.footer__fineprint { margin-bottom: 18px; }
.footer__disclaimer {
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.72);
  margin: 0 0 6px;
}

/* ─── Keyboard focus and skip link (#52) ────────────────────────── */
:focus-visible {
  outline: 2px solid var(--green-text);
  outline-offset: 2px;
}
.footer :focus-visible,
.comparison :focus-visible { outline-color: #fff; }
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ─── Small phones: screenshot strip lines up with the 18px page padding (#46) ─ */
@media (max-width: 480px) {
  .screenshots__scroll {
    margin: 0 -18px;
    padding: 16px 18px 32px;
  }
}

/* ─── Reduced motion: no smooth scrolling or lifts ──────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ─── Dark mode, following the device setting (#52) ─────────────── */
/* Same neutral grays as the app's dark mode; the brand green stays on buttons and the green
   sections, and a lighter green is used for text. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #121212;
    --white:      #1C1C1E;
    --text:       #F2F2F2;
    --muted:      #AEAEB2;
    --border:     #333336;
    --green:      #2F6B30;
    --green-dark: #1E4620;
    --green-pale: #1F2A1D;
    --green-text: #6FBF6B;
    --shadow-sm:  0 1px 4px rgba(0,0,0,0.4);
    --shadow-md:  0 4px 20px rgba(0,0,0,0.45);
    --shadow-lg:  0 8px 40px rgba(0,0,0,0.5);
  }
  .nav { background: rgba(18, 18, 18, 0.9); }
  .hero { background: linear-gradient(160deg, #18201A 0%, var(--bg) 60%); }
  .hero__phone-screen, .screenshot-screen { background: #242426; }
  .hero__phone-screen--placeholder, .screenshot-screen--placeholder { background: linear-gradient(160deg, #1F2A1D 0%, #18201A 100%); }
  .btn--outline:hover, .pricing-cta:hover { color: #fff; }
  .appstore-badge img { box-shadow: 0 0 0 1px rgba(255,255,255,0.18); border-radius: 7px; }
}

/* Phones: the header has no room for the full badge (Apple's artwork can't be cropped); the hero
   badge right under the headline covers it */
@media (max-width: 640px) {
  .nav__actions .appstore-badge { display: none; }
}
