/* Rapidd website
   Tokens mirror the app's Theme.swift and the Figma variables. */

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #ececec;
  --gray-300: #e1e1e1;
  --gray-600: #808080;
  --gray-700: #606060;
  --gray-800: #484848;

  --radius-md: 12px;
  --radius-pill: 100px;

  --shadow-sm: 0 1px 2px rgba(54, 55, 57, 0.05);
  --shadow-lg: 0 48px 56px -25px rgba(100, 112, 122, 0.15);

  --font-text: "Inter", system-ui, sans-serif;
  --font-button: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --font-logo: "Pirata One", serif;
}

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

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

body {
  margin: 0;
  background: var(--gray-50);
  color: var(--black);
  font-family: var(--font-text);
  font-optical-sizing: auto; /* Inter switches to its Display cut at large sizes */
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--black);
  color: var(--white);
  font-family: var(--font-button);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.85; }
.btn--muted { color: var(--gray-200); }
.btn--lifted { box-shadow: var(--shadow-lg); }

.badge-link { display: inline-block; transition: opacity 0.15s ease; }
.badge-link:hover { opacity: 0.8; }
.badge-link img { width: 119.664px; height: 40px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  background: var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  flex: 1;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-logo);
  font-size: 36px;
  line-height: normal;
  color: var(--black);
}

.site-nav { display: flex; gap: 24px; }
.site-nav a {
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-800);
  border-radius: 8px;
  transition: background 0.15s ease;
}
.site-nav a:hover { background: var(--gray-200); }
.site-nav a[aria-current="page"] { color: var(--black); font-weight: 500; }

/* ---------- Section basics ---------- */

.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 80px 20px 40px;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--gray-300);
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.pill strong { font-weight: 700; }

.headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 500;
  line-height: 1.1;
  font-size: 64px;
}
.headline--md { font-size: 48px; gap: 8px; }
.headline .muted { color: var(--gray-600); }

.lede {
  max-width: 600px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--gray-800);
}

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

.hero { padding-bottom: 40px; }
.hero-phone { width: 399px; height: 478px; margin: 0 auto; }
.hero-phone--mobile { display: none; }

/* ---------- Quote ---------- */

.quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: 40px 20px;
  text-align: center;
}
.quote blockquote {
  margin: 0;
  max-width: 700px;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--gray-600);
}
.quote blockquote span { color: var(--black); }
.quote figcaption { font-size: 20px; line-height: 1.5; }
.quote figcaption strong { display: block; font-weight: 600; }
.quote figcaption span { color: var(--gray-600); }

/* ---------- Features ---------- */

.features { scroll-margin-top: 64px; }

.feature-tabs {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-tabs__list { display: flex; gap: 8px; }

.feature-tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: none;
  font: inherit;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.feature-tab:hover { background: var(--gray-100); }
.feature-tab[aria-selected="true"] {
  background: var(--white);
  border-color: var(--gray-300);
}
.feature-tab__title { font-size: 16px; color: var(--black); }
.feature-tab__text { font-size: 14px; color: var(--gray-800); }

.feature-panel {
  width: 100%;
  aspect-ratio: 800 / 319;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.feature-panel img { width: 100%; height: 100%; object-fit: cover; }
.feature-panel[hidden] { display: none; }

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

.cta { padding: 80px 20px; }

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 80px 20px 40px;
}
.site-footer__row {
  flex: 1;
  max-width: 800px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  line-height: 1.5;
}
.site-footer__copy { color: var(--gray-600); }
.site-footer__links { display: flex; gap: 24px; color: var(--gray-800); }
.site-footer__links a:hover { color: var(--black); }

/* ---------- Support: FAQ ---------- */

.faq-section { padding: 80px 20px; display: flex; justify-content: center; }
.faq-layout {
  flex: 1;
  max-width: 800px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.faq-intro {
  flex: 0 0 322px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.faq-intro h2 { font-size: 48px; font-weight: 500; line-height: 1.1; }
.faq-intro p { font-size: 20px; line-height: 1.5; color: var(--gray-800); }

.faq-list { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.faq {
  background: var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary img { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.2s ease; }
.faq[open] summary img { transform: rotate(180deg); }
.faq p { margin-top: 10px; font-size: 16px; line-height: 1.5; }
.faq a { text-decoration: underline; }

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

.legal { padding: 40px 20px 80px; display: flex; justify-content: center; }
.legal__body {
  flex: 1;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.legal section { display: flex; flex-direction: column; gap: 12px; }
.legal h2 { font-size: 24px; font-weight: 500; line-height: 1.3; }
.legal h3 { font-size: 16px; font-weight: 600; line-height: 1.5; margin-top: 4px; }
.legal p, .legal li { font-size: 16px; line-height: 1.5; color: var(--gray-800); }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal a { color: var(--black); text-decoration: underline; }

/* ---------- Mobile (Figma: 350 wide frames) ---------- */

@media (max-width: 768px) {
  .site-header { padding: 0 20px; }
  .site-nav { display: none; }

  .section { padding: 40px 20px; }
  .hero { padding-top: 20px; }

  .headline { font-size: 42px; }
  .headline--md { font-size: 32px; }
  .lede { font-size: 16px; }

  .hero .btn,
  .btn--block { width: 100%; height: 44px; }

  .hero-phone--desktop { display: none; }
  .hero-phone--mobile { display: block; width: 344px; height: 412px; }

  .quote blockquote { font-size: 24px; }
  .quote figcaption { font-size: 16px; }

  /* The tabs become a plain list of cards; the screenshots are desktop only. */
  .feature-tabs__list { flex-direction: column; }
  .feature-tab,
  .feature-tab[aria-selected="true"] {
    background: var(--white);
    border-color: var(--gray-300);
    cursor: default;
  }
  .feature-panel { display: none; }

  .cta { padding: 80px 20px; }

  .site-footer {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 48px;
    padding: 80px 20px 40px;
  }
  .site-footer__row {
    width: 100%;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 24px;
  }

  .faq-section { padding: 40px 20px; }
  .faq-layout { flex-direction: column; }
  .faq-intro { flex: none; width: 100%; }
  .faq-intro .btn { width: 100%; height: 44px; }
  .faq-list, .faq-list .faq { width: 100%; }

  .legal { padding: 20px 20px 40px; }
}
