:root {
  --bg: #f6f7f2;
  --bg-soft: #eef1e8;
  --surface: #ffffff;
  --surface-tint: #f2f4ee;
  --ink: #1e2824;
  --ink-soft: #4a5751;
  --muted: #69756f;
  --line: #dfe4da;
  --line-soft: #ebefe7;

  /* Família Entre */
  --forest: #246350;
  --forest-hover: #1b4f3f;
  --forest-soft: #e2f2eb;

  /* 1. Entre Casas (Azul) */
  --casas: #114eb5;
  --casas-hover: #0d3e93;
  --casas-soft: #e5f0ff;
  --casas-ink: #114eb5;

  /* 2. Entre Contas (Verde) */
  --contas: #148446;
  --contas-hover: #0f6b38;
  --contas-soft: #e2f7eb;
  --contas-ink: #148446;

  /* 3. Entre Cuidados (Magenta) */
  --cuidados: #b5206b;
  --cuidados-hover: #941856;
  --cuidados-soft: #fde7f1;
  --cuidados-ink: #b5206b;

  --shadow-sm: 0 2px 10px rgba(24, 42, 33, 0.05);
  --shadow: 0 14px 36px rgba(24, 42, 33, 0.08);
  --shadow-lg: 0 28px 70px rgba(20, 34, 27, 0.14);
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

.dark-mode {
  --bg: #0e1310;
  --bg-soft: #141b17;
  --surface: #171f1b;
  --surface-tint: #1f2a24;
  --ink: #f2f6f3;
  --ink-soft: #cfdcd4;
  --muted: #98a99f;
  --line: #2d3a33;
  --line-soft: #232e28;

  --forest: #57c797;
  --forest-hover: #73d6ab;
  --forest-soft: #16362b;

  /* 1. Entre Casas (Azul escuro) */
  --casas: #60a5fa;
  --casas-hover: #7bb6fc;
  --casas-soft: #11223d;
  --casas-ink: #8bc1ff;

  /* 2. Entre Contas (Verde escuro) */
  --contas: #34d399;
  --contas-hover: #53dfb0;
  --contas-soft: #0e2b1d;
  --contas-ink: #6ee7b7;

  /* 3. Entre Cuidados (Magenta escuro) */
  --cuidados: #f472b6;
  --cuidados-hover: #f792c7;
  --cuidados-soft: #331124;
  --cuidados-ink: #f9a8d4;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.28);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 28px 75px rgba(0, 0, 0, 0.62);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2.5px solid var(--forest);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--forest);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus {
  left: 16px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Themed light/dark SVG icons */
.themed-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.themed-icon img {
  width: 100%;
  height: 100%;
  display: block;
}
.themed-icon .icon-dark { display: none; }
.dark-mode .themed-icon .icon-light { display: none; }
.dark-mode .themed-icon .icon-dark { display: block; }

.btn-icon { width: 22px; height: 22px; border-radius: 6px; overflow: hidden; }
.tag-icon { width: 18px; height: 18px; border-radius: 5px; overflow: hidden; }
.footer-logo { width: 34px; height: 34px; border-radius: 9px; overflow: hidden; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-copy small {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

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

.theme-toggle,
.menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.18s ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--muted);
}

.theme-toggle:active,
.menu-toggle:active {
  transform: scale(0.95);
}

.theme-toggle svg,
.menu-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-moon { display: none; }
.dark-mode .icon-sun { display: none; }
.dark-mode .icon-moon { display: block; }

.menu-toggle {
  display: none;
}

.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  padding-bottom: 18px;
}

.mobile-nav-inner > a {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.mobile-nav-inner > a:hover {
  background: var(--surface);
  color: var(--ink);
}

.mobile-nav-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.94rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-sm {
  padding: 9px 14px;
  font-size: 0.86rem;
  border-radius: 12px;
}

.btn-primary {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--forest) 26%, transparent);
}
.dark-mode .btn-primary {
  color: #0b1611;
}
.btn-primary:hover {
  background: var(--forest-hover);
}

.btn-casas {
  background: #114eb5;
  color: #fff;
  box-shadow: 0 10px 24px rgba(17, 78, 181, 0.24);
}
.btn-casas:hover {
  background: #0d3e93;
}

.btn-contas {
  background: #148446;
  color: #fff;
  box-shadow: 0 10px 24px rgba(20, 132, 70, 0.24);
}
.btn-contas:hover {
  background: #0f6b38;
}

.btn-cuidados {
  background: #b5206b;
  color: #fff;
  box-shadow: 0 10px 24px rgba(181, 32, 107, 0.24);
}
.btn-cuidados:hover {
  background: #941856;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--muted);
}

/* Hero */
.hero {
  padding: 52px 0 64px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  border-radius: 99px;
  background: var(--forest-soft);
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.eyebrow-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.eyebrow-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.1vw, 3.2rem);
  line-height: 1.09;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 26px;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-highlights li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--forest-soft);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  inset: 8% 2%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 20% 45%, color-mix(in srgb, var(--casas) 18%, transparent), transparent 55%),
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--contas) 18%, transparent), transparent 55%),
    radial-gradient(circle at 82% 55%, color-mix(in srgb, var(--cuidados) 18%, transparent), transparent 55%);
  filter: blur(26px);
  pointer-events: none;
}

/* 3-Phone Hero Showcase */
.phone-trio {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: 540px;
  padding: 12px 0 20px;
}

.phone-mockup {
  margin: 0;
  position: relative;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  transition: transform 0.25s ease;
}

.phone-mockup:hover {
  transform: translateY(-5px);
}

.phone-frame {
  position: relative;
  width: 184px;
  aspect-ratio: 390 / 856;
  border-radius: 30px;
  padding: 13px 7px 7px;
  background: #1a211e;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 22px;
  background: #f6f7f2;
}

.phone-notch {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.24);
  z-index: 2;
}

.phone-left {
  transform: rotate(-4deg) translateY(-6px);
  margin-right: -20px;
  z-index: 1;
}
.phone-left:hover {
  transform: rotate(-2deg) translateY(-10px);
  z-index: 4;
}

.phone-center {
  transform: translateY(10px);
  z-index: 2;
}
.phone-center:hover {
  transform: translateY(4px);
  z-index: 4;
}

.phone-right {
  transform: rotate(4deg) translateY(-2px);
  margin-left: -20px;
  z-index: 3;
}
.phone-right:hover {
  transform: rotate(2deg) translateY(-7px);
  z-index: 4;
}

.phone-tag {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Sections */
.section {
  padding: 64px 0;
  scroll-margin-top: 84px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest);
  margin-bottom: 10px;
}

/* Story section */
.story-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(26px, 4vw, 48px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 32px;
}

.story-main h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.story-main p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 1.03rem;
  max-width: 76ch;
}

.story-main p:last-child {
  margin-bottom: 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.pillar-item {
  background: var(--surface-tint);
  border-radius: 18px;
  padding: 20px;
}

.pillar-icon {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.pillar-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}

.pillar-item p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--muted);
}

/* App Showcase Sections */
.app-section {
  position: relative;
}

.app-casas {
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--casas-soft) 55%, transparent) 18%, color-mix(in srgb, var(--casas-soft) 45%, transparent) 82%, transparent 100%);
}

.app-contas {
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--contas-soft) 55%, transparent) 18%, color-mix(in srgb, var(--contas-soft) 45%, transparent) 82%, transparent 100%);
}

.app-cuidados {
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--cuidados-soft) 55%, transparent) 18%, color-mix(in srgb, var(--cuidados-soft) 45%, transparent) 82%, transparent 100%);
}

.app-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.app-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 700px;
}

.app-icon-lg {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.app-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.badge-casas {
  background: var(--casas-soft);
  color: var(--casas-ink);
}

.badge-contas {
  background: var(--contas-soft);
  color: var(--contas-ink);
}

.badge-cuidados {
  background: var(--cuidados-soft);
  color: var(--cuidados-ink);
}

.app-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  margin: 0 0 8px;
}

.app-subtitle {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.app-showcase {
  display: grid;
  grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.app-showcase-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 390px);
}

.app-showcase-reverse .gallery-panel {
  order: 2;
}

.app-showcase-reverse .features-panel {
  order: 1;
}

/* Gallery Panel */
.gallery-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.phone-stage {
  display: flex;
  justify-content: center;
  width: 100%;
}

.phone-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone-showcase .phone-frame {
  width: 264px;
  border-radius: 38px;
  padding: 17px 9px 9px;
}

.phone-showcase .phone-frame img {
  border-radius: 27px;
  transition: opacity 0.2s ease;
}

.phone-showcase .phone-frame img.is-switching {
  opacity: 0.45;
}

.zoom-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 99px;
  background: var(--surface-tint);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.zoom-pill svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.gallery-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screen-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.screen-tab {
  border: 1px solid var(--line);
  background: var(--surface-tint);
  color: var(--ink-soft);
  padding: 7px 12px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.screen-tab:hover {
  border-color: var(--muted);
  color: var(--ink);
}

[data-gallery="casas"] .screen-tab.is-active {
  background: #114eb5;
  border-color: #114eb5;
  color: #fff;
}

[data-gallery="contas"] .screen-tab.is-active {
  background: #148446;
  border-color: #148446;
  color: #fff;
}

[data-gallery="cuidados"] .screen-tab.is-active {
  background: #b5206b;
  border-color: #b5206b;
  color: #fff;
}

.gallery-caption {
  margin: 0;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.48;
  color: var(--muted);
  min-height: 3.9em;
}

/* Features Panel */
.features-panel h3 {
  margin: 0 0 16px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-tint);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-card h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.feature-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.48;
}

.app-link-box {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.box-casas {
  border-color: color-mix(in srgb, #114eb5 34%, var(--line));
}

.box-contas {
  border-color: color-mix(in srgb, #148446 34%, var(--line));
}

.box-cuidados {
  border-color: color-mix(in srgb, #b5206b 34%, var(--line));
}

.link-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.link-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  color: var(--ink);
  word-break: break-all;
}

/* Guide & Future Section */
.section-intro {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  margin: 0 0 10px;
}

.section-intro p {
  margin: 0;
  color: var(--ink-soft);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--forest-soft);
  color: var(--forest);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--muted);
}

.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 18px;
}

.future-card,
.cta-card {
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--line);
}

.future-card {
  background: var(--surface-tint);
}

.future-pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 99px;
  background: var(--casas-soft);
  color: var(--casas-ink);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.future-card h3,
.cta-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 8px;
  line-height: 1.2;
}

.future-card p,
.cta-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cta-card {
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 42px;
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.footer-brand p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

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

/* Lightbox */
dialog.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  width: min(560px, calc(100% - 28px));
  max-width: 100%;
  max-height: calc(100dvh - 28px);
  margin: auto;
  overflow: visible;
}

dialog.lightbox::backdrop {
  background: rgba(10, 16, 13, 0.72);
  backdrop-filter: blur(6px);
}

.lightbox-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100dvh - 28px);
}

.lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lightbox-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-counter {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--surface-tint);
  color: var(--muted);
}

.lightbox-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-tint);
  cursor: pointer;
  font-weight: 700;
}

.lightbox-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.lightbox-body img {
  max-height: min(68dvh, 640px);
  width: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-nav.prev { left: 6px; }
.lightbox-nav.next { right: 6px; }

.lightbox-caption {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Subtle Reveal */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.48s ease, transform 0.48s ease;
}

.js-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .btn,
  .phone-mockup,
  .feature-card {
    transition: none !important;
  }
  .js-ready .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .app-showcase,
  .app-showcase-reverse {
    grid-template-columns: 1fr;
  }
  .app-showcase-reverse .gallery-panel,
  .app-showcase-reverse .features-panel {
    order: initial;
  }
  .final-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .main-nav,
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: inline-grid;
  }
  .pillars-grid,
  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 18px;
  }
  .hero {
    padding: 36px 0 48px;
  }
  .section {
    padding: 48px 0;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .phone-frame {
    width: 122px;
    border-radius: 22px;
    padding: 10px 4px 5px;
  }
  .phone-frame img {
    border-radius: 16px;
  }
  .phone-notch {
    width: 30px;
    height: 3.5px;
    top: 3.5px;
  }
  .phone-left {
    margin-right: -20px;
  }
  .phone-right {
    margin-left: -20px;
  }
  .phone-tag {
    font-size: 0.64rem;
    padding: 4px 8px;
    gap: 4px;
  }
  .phone-showcase .phone-frame {
    width: 236px;
  }
  .mobile-nav-links {
    grid-template-columns: 1fr;
  }
}
