/* Schemap Landing — complete redesign */

:root {
  --ink: #0e1014;
  --ink-soft: #1a1d24;
  --paper: #f6f3ed;
  --paper-deep: #ebe6dc;
  --clay: #3d3832;
  --muted: #6b6560;
  --amber: #c9923e;
  --amber-light: #e8b86a;
  --amber-glow: rgba(201, 146, 62, 0.35);
  --sage: #6d8f7a;
  --coral: #c96d52;
  --line: rgba(14, 16, 20, 0.08);
  --line-on-dark: rgba(246, 243, 237, 0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --max: 1140px;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --section: clamp(4rem, 10vw, 7rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--clay);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

.container {
  width: min(var(--max), 100% - var(--pad) * 2);
  margin-inline: auto;
}

/* —— Typography —— */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 52ch;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
  box-shadow: 0 8px 28px var(--amber-glow);
}

.btn-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-on-dark);
}

.btn-ghost:hover {
  background: rgba(246, 243, 237, 0.08);
  border-color: rgba(246, 243, 237, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-dark:hover {
  background: var(--ink-soft);
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.site-header.is-scrolled {
  background: rgba(14, 16, 20, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-on-dark);
  padding: 0.65rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--paper);
}

.brand img {
  width: 36px;
  height: 36px;
}

.badge-beta {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: var(--amber);
  color: var(--ink);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(246, 243, 237, 0.75);
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--paper);
}

.nav-desktop .btn {
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(14, 16, 20, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--paper);
}

.nav-mobile .btn {
  margin-top: 1rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(5rem + var(--pad)) 0 var(--section);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 90%;
  background: radial-gradient(ellipse at center, var(--amber-glow) 0%, transparent 65%);
  opacity: 0.9;
}

.hero-bg::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 55%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(109, 143, 122, 0.2) 0%, transparent 70%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-on-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-on-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
  opacity: 0.4;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  color: var(--paper);
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-style: italic;
  color: var(--amber-light);
}

.hero-lead {
  color: rgba(246, 243, 237, 0.72);
  max-width: 46ch;
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-on-dark);
}

.hero-proof li {
  font-size: 0.85rem;
  color: rgba(246, 243, 237, 0.55);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-proof li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.hero-visual,
.pillar-visual {
  display: flex;
  justify-content: center;
}

/* Sized to the mockup so floating tags stay anchored on wide layouts */
.phone-stage {
  position: relative;
  width: min(280px, 100%);
}

.phone-frame {
  position: relative;
  width: 100%;
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(145deg, #2a2d35, #14161c);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.phone-frame img {
  border-radius: 26px;
  width: 100%;
}

.phone-glow {
  position: absolute;
  inset: 20% -20%;
  background: radial-gradient(circle, var(--amber-glow), transparent 70%);
  z-index: -1;
  filter: blur(40px);
}

.phone-glow--map {
  background: radial-gradient(circle, var(--amber-glow), transparent 70%);
}

.phone-glow--act {
  background: radial-gradient(circle, rgba(109, 143, 122, 0.35), transparent 70%);
}

.phone-glow--goal {
  background: radial-gradient(circle, rgba(201, 109, 82, 0.35), transparent 70%);
}

.phone-glow--ai {
  background: radial-gradient(circle, rgba(139, 127, 168, 0.35), transparent 70%);
}

.floating-tag {
  position: absolute;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  /* Static only — motion caused visible jitter next to the phone mock */
}

.floating-tag--1 {
  top: calc(8% + 100px);
  left: -8%;
  transform: rotate(-2deg);
}

.floating-tag--2 {
  bottom: 18%;
  right: -12%;
  transform: rotate(2deg);
}

/* —— Act 2: Promise —— */
.promise {
  padding: var(--section) 0;
  background: var(--paper);
  text-align: center;
}

.promise-inner {
  max-width: 720px;
  margin-inline: auto;
}

.promise-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin: 0.75rem 0 1.5rem;
  font-style: italic;
}

.promise-lead {
  margin-inline: auto;
  text-align: center;
  font-size: 1.15rem;
}

.promise-lead strong {
  color: var(--ink);
  font-weight: 600;
}

/* —— Section shared —— */
.section-intro {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-intro.centered {
  text-align: center;
  margin-inline: auto;
  max-width: 640px;
}

.section-intro .display {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0.5rem 0 1rem;
}

/* —— Pillars —— */
.pillars {
  padding: var(--section) 0;
}

.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--line);
}

.pillar:last-child {
  border-bottom: none;
}

.pillar--reverse .pillar-visual {
  order: 2;
}

.pillar--reverse .pillar-content {
  order: 1;
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--paper-deep);
  margin-bottom: 0.5rem;
}

.pillar-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.pillar-content > p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 48ch;
}

.pillar-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pillar-steps li {
  display: grid;
  grid-template-columns: 6.75rem 1fr;
  gap: 0.5rem 1rem;
  align-items: start;
  font-size: 0.95rem;
  color: var(--clay);
}

.pillar-steps strong {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  padding-top: 0.2rem;
  line-height: 1.4;
}

.pillar-steps li span {
  min-width: 0;
  line-height: 1.6;
}

.pillar-tagline {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--paper-deep);
  border-left: 3px solid var(--amber);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--clay);
}

.pillar--accent-map .pillar-tagline { border-left-color: var(--amber); }
.pillar--accent-act .pillar-tagline { border-left-color: var(--sage); }
.pillar--accent-goal .pillar-tagline { border-left-color: var(--coral); }
.pillar--accent-ai .pillar-tagline { border-left-color: #8b7fa8; }

.pillar-visual {
  position: relative;
}

/* —— Flow —— */
.flow {
  padding: var(--section) 0;
  background: var(--ink);
  color: var(--paper);
}

.flow .eyebrow { color: var(--amber-light); }

.flow .display {
  color: var(--paper);
  font-size: clamp(2rem, 4vw, 2.75rem);
}

/* Path headline: one line, full container width */
.flow .path-line {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35em;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  font-size: clamp(1rem, 2.8vw + 0.5rem, 2.75rem);
  white-space: nowrap;
  line-height: 1.2;
}

.flow .path-line > span:not(.path-arrow) {
  flex-shrink: 0;
}

.path-arrow {
  flex-shrink: 0;
  color: var(--amber-light);
  font-style: normal;
  font-weight: 400;
  opacity: 0.85;
}

/* Full-width header so path line is never clipped */
.flow .section-intro.centered {
  max-width: none;
  width: 100%;
  overflow: visible;
}

.flow .section-intro.reveal {
  transform: none;
}

.flow .section-intro.reveal:not(.is-visible) {
  opacity: 0;
}

.flow .lead {
  color: rgba(246, 243, 237, 0.65);
  margin-inline: auto;
  text-align: center;
  max-width: 42rem;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.flow-step {
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(246, 243, 237, 0.04);
  border: 1px solid var(--line-on-dark);
  transition: background 0.25s, border-color 0.25s;
}

.flow-step:hover {
  background: rgba(246, 243, 237, 0.08);
  border-color: rgba(201, 146, 62, 0.4);
}

.flow-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201, 146, 62, 0.15);
  color: var(--amber-light);
}

.flow-step h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
  color: var(--paper);
}

.flow-step p {
  font-size: 0.85rem;
  color: rgba(246, 243, 237, 0.55);
  line-height: 1.5;
}

.flow-arrow {
  display: none;
}

.ai-guided {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: rgba(246, 243, 237, 0.06);
  border: 1px solid var(--line-on-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.ai-guided .eyebrow {
  color: var(--amber-light);
  margin-bottom: 0.5rem;
}

.ai-guided-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--paper);
  margin-bottom: 0.75rem;
}

.ai-guided-copy p:last-child {
  color: rgba(246, 243, 237, 0.65);
  font-size: 0.975rem;
  line-height: 1.7;
  margin: 0;
}

.ai-guided-touchpoints {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ai-guided-touchpoints li {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(246, 243, 237, 0.04);
  border: 1px solid var(--line-on-dark);
  font-size: 0.9rem;
  color: rgba(246, 243, 237, 0.75);
  line-height: 1.5;
}

.ai-guided-touchpoints strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 0.25rem;
}

/* —— FAQ —— */
.faq {
  padding: var(--section) 0;
  background: var(--paper-deep);
}

.faq-list {
  max-width: 720px;
  margin: 3rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.faq-question svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--amber);
  transition: transform 0.3s var(--ease);
}

.faq-item.is-open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-item.is-open .faq-answer {
  max-height: 280px;
}

.faq-answer p {
  padding: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.75;
}

/* —— CTA —— */
.cta {
  padding: var(--section) 0;
  text-align: center;
}

.cta-card {
  padding: clamp(3rem, 8vw, 5rem) clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, var(--amber-glow), transparent 60%);
  pointer-events: none;
}

.cta-card .display {
  position: relative;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--paper);
  margin-bottom: 1rem;
}

.cta-card .lead {
  position: relative;
  color: rgba(246, 243, 237, 0.7);
  margin-inline: auto;
  text-align: center;
  margin-bottom: 2rem;
}

.cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.cta-note {
  position: relative;
  font-size: 0.85rem;
  color: rgba(246, 243, 237, 0.45);
}

/* —— Footer —— */
.footer {
  padding: 3rem 0 2rem;
  background: var(--ink);
  color: rgba(246, 243, 237, 0.6);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .brand {
  margin-bottom: 0.75rem;
}

.footer-brand p {
  max-width: 28ch;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(246, 243, 237, 0.65);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--paper);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-on-dark);
  text-align: center;
  font-size: 0.8rem;
}

.footer-bottom p + p {
  margin-top: 0.5rem;
  font-style: italic;
  opacity: 0.7;
}

.hero-lead strong {
  color: var(--paper);
  font-weight: 600;
}

/* —— Reveal animation —— */
.hero .reveal {
  opacity: 1;
  transform: none;
}

/* —— Reveal animation —— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .hero-layout,
  .pillar {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual,
  .pillar-visual {
    margin-inline: auto;
  }

  .phone-stage {
    max-width: 260px;
  }

  .floating-tag--1 { left: 0; }
  .floating-tag--2 { right: 0; }

  .pillar--reverse .pillar-visual,
  .pillar--reverse .pillar-content {
    order: unset;
  }

  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-guided {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }

  .hero-proof {
    flex-direction: column;
    gap: 0.75rem;
  }

  .flow-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}
