/* repbunny.app marketing site (#58). Plain CSS, no build step.
   Tokens mirror src/style.css and docs/brand-identity.md. The site is dark
   plum in both light and dark system modes, the same as the app. */

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(/fonts/baloo2-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-latin.woff2) format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #17111c;
  --surface: #211829;
  --surface-2: #241a2c;
  --ring: #1c1523;
  --line: #2a2032;
  --border: #3a2c45;
  --border-strong: #4a3a56;
  --accent: #f2879c;
  --accent-hover: #f7a9b8;
  --accent-text: #17111c;
  --secondary: #b79cf0;
  --secondary-soft: #d9c8f7;
  --highlight: #f2c069;
  --success: #a9cb8d;
  --text: #f5edf2;
  --text-soft: #cdbfca;
  --text-muted: #bfb0bc;
  --text-faint: #a797a4;
  --font-display: 'Baloo 2', ui-rounded, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --page: 1120px;
  --gutter: 20px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

main {
  flex: 1;
}

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

a {
  color: var(--accent);
}
a:hover {
  color: var(--accent-hover);
}
a:focus-visible,
summary:focus-visible,
.carousel:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover {
  color: var(--text);
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
}
.site-nav {
  display: flex;
  gap: 24px;
}
.site-nav a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 4px;
}
.site-nav a[aria-current='page'] {
  color: var(--text);
}
/* Phone header keeps just Support; Privacy lives in the footer. */
.site-nav .nav-privacy {
  display: none;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 28px 24px 36px;
}
.pill {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-soft);
}
.pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
}
.hero-icon {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 12px var(--ring);
}
.hero-icon img {
  width: 150px;
  height: 150px;
  border-radius: 34px;
}
.hero h1 {
  margin-top: 8px;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.5px;
}
.hero h1 .accent {
  display: block;
  color: var(--accent);
}
.lede {
  margin: 0;
  max-width: 320px;
  font-size: 17px;
  color: var(--text-soft);
}
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.btn svg {
  flex-shrink: 0;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-text);
}
.btn-outline {
  border: 1.5px solid var(--border-strong);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* Section headings */
.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--secondary);
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.section-head h2 {
  font-size: 26px;
}
.section-head p {
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
}

/* Screenshot carousel */
.showcase {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 0 40px;
}
.showcase .section-head {
  padding: 0 24px;
}
.carousel {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 4px 24px 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.carousel li {
  flex: 0 0 240px;
  scroll-snap-align: start;
}
.carousel figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phone-frame {
  aspect-ratio: 240 / 399;
  border-radius: 38px;
  border: 7px solid #2c2236;
  background: var(--bg);
  overflow: hidden;
}
.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.carousel figcaption {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  text-align: center;
}
.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border-strong);
  transition: width 0.2s, background 0.2s;
}
.dots span.active {
  width: 22px;
  background: var(--accent);
}

/* Load types */
.load-types {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
}
.load-types .section-head {
  padding: 0 4px;
}
.load-types .section-head h2 {
  font-size: 28px;
}
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface);
}
.tile-icon {
  display: flex;
  color: var(--c);
}
.tile h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
}
.tile p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}
.tile-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

/* Promise card */
.promise {
  position: relative;
  padding-top: 70px;
  padding-bottom: 36px;
}
.promise-card {
  position: relative;
  border-radius: 26px;
  background: #2a1a24;
  border: 1px solid #4a2a3a;
  padding: 26px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.promise-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.promise-card .eyebrow {
  color: var(--accent);
}
.promise-card h2 {
  font-size: 32px;
  line-height: 1.02;
  max-width: 220px;
}
.promise-card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: #e1cfd8;
}
.promise-art-phone {
  z-index: 1;
  position: absolute;
  right: 18px;
  top: 0;
  width: 140px;
  height: auto;
}
.promise-art-wide {
  display: none;
}
.checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
}
.checklist svg {
  flex-shrink: 0;
  color: var(--success);
}

/* Feature cards */
.features {
  display: grid;
  gap: 12px;
  padding-bottom: 36px;
}
.feature {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
}
.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}
.feature p {
  margin: 4px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-faint);
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 22px;
  padding-bottom: 28px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-links a {
  text-decoration: none;
  font-weight: 600;
}
.site-footer p {
  margin: 0;
}

/* Text pages: privacy and support */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px var(--gutter) 48px;
}
.page-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.page-head h1 {
  font-size: 36px;
}
.page-head .meta {
  margin: 0;
  font-size: 14px;
  color: var(--text-faint);
}
.prose h2 {
  margin: 32px 0 8px;
  font-size: 22px;
}
.prose p,
.prose li {
  color: var(--text-soft);
}
.prose p {
  margin: 0 0 12px;
}
.prose ul {
  margin: 0 0 12px;
  padding-left: 22px;
}
.prose li {
  margin-bottom: 6px;
}
.prose strong {
  color: var(--text);
}
.short-version {
  padding: 20px 22px;
  border-radius: 20px;
  background: #1f2a1c;
  border: 1px solid #3b4f31;
}
.short-version h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--success);
}
.short-version ul {
  margin: 0;
}
.short-version li {
  color: var(--text);
}

.support-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 8px 0 12px;
}
.support-hero img {
  width: 150px;
  height: auto;
}
.support-hero h1 {
  font-size: 36px;
}
.support-hero p {
  margin: 0;
  max-width: 420px;
  color: var(--text-soft);
}
.support-hero .btn {
  width: 100%;
  max-width: 340px;
  margin-top: 6px;
}
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.faq details {
  border-radius: 18px;
  background: var(--surface);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.faq .answer {
  padding: 0 18px 16px;
}
.faq .answer p,
.faq .answer li {
  color: var(--text-soft);
  font-size: 15px;
}
.faq .answer p {
  margin: 0 0 10px;
}
.faq .answer ol {
  margin: 0 0 10px;
  padding-left: 20px;
}
.faq .answer :last-child {
  margin-bottom: 0;
}
.faq strong {
  color: var(--text);
}
.contact-card {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-align: center;
}
.contact-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
}
.contact-card p {
  margin: 0;
  color: var(--text-soft);
}

/* Desktop */
@media (min-width: 760px) {
  :root {
    --gutter: 32px;
  }
  .site-header {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .site-nav .nav-privacy {
    display: inline;
  }

  .hero {
    padding: 40px var(--gutter) 64px;
    gap: 22px;
  }
  .hero .pill {
    order: 1;
  }
  .hero-icon {
    order: 0;
    width: 220px;
    height: 220px;
    box-shadow: 0 0 0 14px var(--ring), 0 0 0 30px #1a1320;
    margin: 20px 0 16px;
  }
  .hero-icon img {
    width: 150px;
    height: 150px;
  }
  .hero h1,
  .hero .lede,
  .hero .cta-row {
    order: 2;
  }
  .hero h1 {
    font-size: 60px;
    letter-spacing: -1px;
  }
  .hero h1 .accent {
    display: inline;
  }
  .lede {
    max-width: 560px;
    font-size: 18px;
  }
  .cta-row {
    flex-direction: row;
    justify-content: center;
    width: auto;
  }

  .showcase {
    padding: 0 0 72px;
  }
  .showcase .section-head,
  .load-types .section-head {
    text-align: center;
    align-items: center;
  }
  .section-head h2,
  .load-types .section-head h2 {
    font-size: 34px;
  }
  .showcase .section-head {
    margin-bottom: 16px;
  }
  .carousel {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    max-width: var(--page);
    margin: 0 auto;
    width: 100%;
    padding: 0 var(--gutter);
    overflow: visible;
  }
  .phone-frame {
    border-radius: 30px;
    border-width: 6px;
  }
  .dots {
    display: none;
  }

  .load-types {
    gap: 24px;
    padding-bottom: 72px;
  }
  .tile-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }
  .tile {
    padding: 18px;
  }
  .tile-wide {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .promise {
    padding-top: 0;
    padding-bottom: 48px;
  }
  .promise-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    column-gap: 32px;
    align-items: center;
    padding: 44px 44px;
  }
  .promise-text {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .promise-card h2 {
    font-size: 44px;
    max-width: none;
  }
  .promise-card p {
    font-size: 17px;
  }
  .promise-art-phone {
    display: none;
  }
  .promise-art-wide {
    display: block;
    width: 280px;
  }
  .checklist {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 26px;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-bottom: 56px;
  }

  .site-footer .wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page {
    padding-top: 32px;
  }
  .page-head h1,
  .support-hero h1 {
    font-size: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dots span,
  .faq summary::after {
    transition: none;
  }
}
.faq .eyebrow {
  font-family: var(--font-body);
  line-height: 1.55;
}
/* .eyebrow is a <p>; keep it from picking up the surrounding paragraph styles. */
.section-head .eyebrow,
.promise-card .eyebrow,
.page-head .eyebrow {
  font-size: 13px;
  line-height: 1.55;
}
.section-head .eyebrow {
  color: var(--secondary);
}
