/* BuzzBee marketing/docs site — shared styles.
   Palette matches the app's real theme (src/constants/theme.ts). */

:root {
  --bg: #ededed;
  --ink: #2B2420;
  --ink-soft: #6B5D4F;
  --ink-faint: #9C8C7A;
  --card-bg: #FFFDF7;
  --track-off: #EDE2CE;
  --accent: #F5A623;
  --accent-deep: #E8790A;
  --white: #FFFFFF;
  --success: #3FAE5A;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 100px;

  /* Material weight scales with surface size — bigger surfaces read as thicker. */
  --shadow-card: 0 8px 24px rgba(43, 36, 32, 0.08);
  --shadow-card-hover: 0 16px 36px rgba(43, 36, 32, 0.14);
  --shadow-deep: 0 24px 60px rgba(43, 36, 32, 0.22);

  --max-width: 1080px;

  /* Critically damped by default; reserve bounce for momentum-driven moments. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.35, 0.4, 1);
  --dur-instant: 0.1s;
  --dur-fast: 0.22s;
  --dur-base: 0.4s;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Keep content clear of the sticky nav when jumping to an anchor. */
section[id],
main[id] {
  scroll-margin-top: 84px;
}

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Motion: reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    transform: none;
    transition: opacity var(--dur-fast) linear;
    transition-delay: 0s;
  }
  .hero-inner > *,
  .phone-mock,
  .mock-chip.active {
    animation: none !important;
  }
}

/* ---------- Top nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(237, 237, 237, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(43, 36, 32, 0);
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

/* Scroll-edge effect: chrome separates from content only once something is actually under it. */
.nav.is-scrolled {
  background: rgba(237, 237, 237, 0.86);
  border-color: var(--track-off);
  box-shadow: 0 8px 24px rgba(43, 36, 32, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: opacity var(--dur-instant) ease-out;
}

.brand:active {
  opacity: 0.6;
}

.brand img {
  width: 32px;
  height: auto;
}

.brand-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
  font-size: 14.5px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent-deep);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
}

/* Touch fires false hovers on tap — real devices only get the sweep. */
@media (hover: hover) and (pointer: fine) {
  .nav-links a:not(.btn) {
    transition: color var(--dur-fast) var(--ease-out);
  }
  .nav-links a:not(.btn)::after {
    transition: transform var(--dur-fast) var(--ease-out);
  }
  .nav-links a:not(.btn):hover {
    color: var(--ink);
  }
  .nav-links a:not(.btn):hover::after {
    transform: scaleX(1);
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-lg);
  font-weight: 800;
  font-size: 15.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}

/* :active (below) is the real touch feedback — :hover is mouse-only, so it never sticks after a tap. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
  }
  .btn-primary:hover {
    background: #f7b13f;
    box-shadow: 0 14px 32px rgba(245, 166, 35, 0.5);
  }
  .btn-outline:hover {
    border-color: var(--ink-faint);
  }
  .btn-white:hover {
    box-shadow: var(--shadow-card-hover);
  }
}

/* Feedback lands on press, not on release — the moment lag appears, directness dies. */
.btn:active {
  transform: scale(0.96) translateY(0);
  transition-duration: var(--dur-instant);
  transition-timing-function: ease-out;
}

.btn-primary {
  background: var(--accent);
  color: #2B2420;
  box-shadow: 0 10px 24px rgba(245, 166, 35, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--track-off);
}

.btn-white {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: var(--radius-md);
}

.btn-pill {
  border-radius: var(--radius-pill);
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.hero-glow-1 {
  width: 480px;
  height: 480px;
  background: rgba(245, 166, 35, 0.2);
  top: -220px;
  right: -160px;
}

.hero-glow-2 {
  width: 340px;
  height: 340px;
  background: rgba(232, 121, 10, 0.1);
  bottom: -180px;
  left: -120px;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-inner > * {
  animation: hero-rise 0.7s var(--ease-out) backwards;
}

.hero-art {
  animation-delay: 0.1s;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--track-off);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-weight: 800;
  font-size: 12.5px;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.pill-icon {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-size: clamp(2.25rem, 1.55rem + 3vw, 3.25rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}

.hero p.lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 0 32px;
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 700;
}

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

.phone-mock {
  width: 100%;
  max-width: 300px;
  background: var(--card-bg);
  border-radius: 40px;
  border: 8px solid var(--ink);
  box-shadow: var(--shadow-deep);
  padding: 22px 18px;
  aspect-ratio: 9 / 18.5;
  transition: transform var(--dur-base) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .hero-art:hover .phone-mock {
    transform: translateY(-4px) rotate(-0.6deg);
  }
}

.phone-mock .mock-hero {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  margin-top: 28px;
}

.mock-eyebrow {
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mock-time {
  font-size: 26px;
  font-weight: 800;
  margin-top: 6px;
}

.mock-sub {
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 700;
  margin-top: 4px;
}

.mock-chip-row {
  display: flex;
  gap: 6px;
  margin-top: 24px;
}

.mock-chip {
  flex: 1;
  height: 34px;
  border-radius: 10px;
  background: var(--track-off);
}

.mock-chip.active {
  background: var(--accent);
  animation: chip-settle 0.5s var(--ease-spring) 0.5s backwards;
}

@keyframes chip-settle {
  from { transform: scaleY(0.6); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

/* ---------- Section shells ---------- */

section {
  padding: 64px 0;
}

.section-label {
  font-weight: 800;
  font-size: 12.5px;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(1.6rem, 1.35rem + 1vw, 2rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  max-width: 640px;
}

.section-sub {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
  max-width: 620px;
  margin: 0 0 40px;
}

/* ---------- Mission grid ---------- */

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mission-grid .reveal:nth-child(1) { --reveal-delay: 0s; }
.mission-grid .reveal:nth-child(2) { --reveal-delay: 0.06s; }
.mission-grid .reveal:nth-child(3) { --reveal-delay: 0.12s; }
.mission-grid .reveal:nth-child(4) { --reveal-delay: 0.18s; }
.mission-grid .reveal:nth-child(5) { --reveal-delay: 0.24s; }
.mission-grid .reveal:nth-child(6) { --reveal-delay: 0.3s; }

.mission-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .mission-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
  }
  .mission-card:hover .mission-icon {
    transform: scale(1.08);
  }
}

.mission-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(245, 166, 35, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  transition: transform var(--dur-fast) var(--ease-spring);
}

.mission-card h3 {
  font-size: 15.5px;
  margin: 0 0 6px;
}

.mission-card p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
  font-weight: 600;
}

/* ---------- Feature rows ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-grid .reveal:nth-child(1) { --reveal-delay: 0s; }
.feature-grid .reveal:nth-child(2) { --reveal-delay: 0.08s; }
.feature-grid .reveal:nth-child(3) { --reveal-delay: 0.16s; }
.feature-grid .reveal:nth-child(4) { --reveal-delay: 0.24s; }

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
  }
  .feature-card:hover .icon-badge {
    transform: scale(1.08);
  }
}

.feature-card .icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(245, 166, 35, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform var(--dur-fast) var(--ease-spring);
}

.feature-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 600;
  margin: 0;
  line-height: 1.6;
}

/* ---------- Privacy strip ---------- */

.privacy-strip {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-deep);
}

.privacy-strip h2 {
  font-size: 26px;
  margin: 0 0 12px;
}

.privacy-strip p {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0;
}

.privacy-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.privacy-checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 700;
  font-size: 14.5px;
}

.privacy-checks .dot {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #2B2420;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 1px;
}

/* ---------- Final CTA ---------- */

.final-cta {
  text-align: center;
  padding: 72px 0;
}

.final-cta h2 {
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 16px;
}

.final-cta p {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 32px;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--track-off);
  padding: 48px 0 32px;
}

.footer-inner {
  text-align: center;
}

.footer-inner .brand {
  justify-content: center;
  margin-bottom: 6px;
}

.footer-tagline {
  color: var(--ink-faint);
  font-weight: 700;
  font-size: 13.5px;
  margin: 0 0 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 20px;
}

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

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

.footer-copy {
  color: var(--ink-faint);
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------- Legal / doc pages ---------- */

.doc-header {
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--track-off);
}

.doc-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.doc-header .effective-date {
  color: var(--ink-faint);
  font-weight: 700;
  font-size: 13.5px;
}

.doc-body {
  padding: 40px 0 80px;
  max-width: 760px;
  margin: 0 auto;
}

.doc-body h2 {
  font-size: 20px;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

.doc-body h2:first-child {
  margin-top: 0;
}

.doc-body p,
.doc-body li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 500;
}

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

.doc-body ul {
  padding-left: 20px;
}

.doc-body a {
  color: var(--accent-deep);
  font-weight: 700;
}

.callout {
  background: var(--card-bg);
  border: 1px solid var(--track-off);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 20px 0;
}

.callout p {
  margin: 0;
}

.placeholder {
  background: rgba(214, 69, 69, 0.12);
  color: #B23B3B;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95em;
}

/* ---------- Support page ---------- */

.faq-item {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
  transition: box-shadow var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .faq-item:hover {
    box-shadow: var(--shadow-card-hover);
  }
}

.faq-item h3 {
  font-size: 16.5px;
  margin: 0 0 10px;
}

.faq-item p {
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.7;
  margin: 0;
}

.contact-card {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  margin-top: 48px;
  box-shadow: var(--shadow-deep);
}

.contact-card h2 {
  font-size: 24px;
  margin: 0 0 10px;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  margin: 0 0 22px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
  }
  .phone-mock {
    max-width: 220px;
  }
  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .privacy-strip {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .nav-links {
    gap: 16px;
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links .hide-mobile {
    display: none;
  }
  .nav-inner {
    padding: 14px 20px;
  }
}
