:root {
  --red-700: #b3261e;
  --red-800: #8f1c16;
  --ink: #1c1917;
  --ink-soft: #4a4442;
  --paper: #fffaf9;
  --paper-alt: #fbeeec;
  --border: #ecdedc;
  --radius: 14px;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: var(--red-700);
}

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

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

header.site {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

nav.site {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav.site a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

nav.site .nav-sep {
  color: var(--border);
}

nav.site a:hover {
  color: var(--red-700);
}

.nav-toggle {
  display: none;
  position: relative;
}

.nav-toggle summary {
  list-style: none;
  cursor: pointer;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.nav-toggle summary::-webkit-details-marker {
  display: none;
}

.nav-toggle[open] summary {
  color: var(--red-700);
  border-color: var(--red-700);
}

.nav-toggle-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(28, 25, 23, 0.16);
  padding: 8px;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  z-index: 10;
}

.nav-toggle-menu a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav-toggle-menu a:hover {
  background: var(--paper-alt);
  color: var(--red-700);
}

@media (max-width: 640px) {
  header.site nav.site.nav-collapsible {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

.hero-banner {
  background: linear-gradient(135deg, var(--red-700), var(--red-800));
  color: #fff;
  padding: 64px 0;
  font-family: "DejaVu Sans", Arial, sans-serif;
}

.hero-banner-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-banner-text {
  flex: 1 1 320px;
  min-width: 280px;
}

.hero-banner-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 24px;
}

.hero-banner-icon img {
  width: 40px;
  height: 40px;
}

.hero-banner-text h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: 0;
  color: #fff;
}

.hero-banner-text p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 420px;
  margin: 0 0 24px;
}

.hero-banner .badge {
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-banner .badge .dot {
  background: #22c55e;
}

.phone-mock {
  flex: 0 0 auto;
  width: 220px;
  aspect-ratio: 9 / 18;
  background: #14100f;
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.phone-mock-screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(165deg, var(--red-700), var(--red-800));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 24px 18px;
}

.phone-mock-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.phone-mock-title {
  font-size: 1.6rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}

.phone-mock-btn {
  align-self: center;
  background: #000;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-alt);
  color: var(--red-800);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

a.badge:hover {
  border-color: currentColor;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-700);
}

.screenshots {
  padding: 8px 0 56px;
}

.screenshots h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 32px;
}

.screenshot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.screenshot-card {
  flex: 1 1 160px;
  max-width: 200px;
  margin: 0;
}

.screenshot-card img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 32px rgba(28, 25, 23, 0.16);
}

.screenshot-card figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

.features {
  padding: 40px 0 48px;
}

.features h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 40px;
}

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

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--paper);
}

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

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

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--paper-alt);
  color: var(--red-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

.privacy-note {
  background: var(--paper-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0 0 72px;
  text-align: center;
}

.privacy-note h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.privacy-note p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.button {
  display: inline-block;
  background: var(--red-700);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
}

.button:hover {
  background: var(--red-800);
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

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

footer.site a:hover {
  color: var(--red-700);
}

/* Legal document pages */
.legal {
  padding: 56px 32px 80px;
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.legal .updated {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.legal table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}

.legal th, .legal td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
  overflow-wrap: break-word;
}

.legal th:nth-child(2), .legal td:nth-child(2) {
  width: 54%;
}

.legal th:nth-child(1), .legal td:nth-child(1),
.legal th:nth-child(3), .legal td:nth-child(3) {
  width: 23%;
}

.legal th {
  background: var(--paper-alt);
}

.legal ul {
  padding-left: 20px;
}

/* FAQ page */
.faq-list {
  margin-top: 24px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  color: var(--red-700);
  font-weight: 700;
}

.faq-item[open] summary::before {
  content: "\2212";
}

.faq-item p {
  margin: 12px 0 0 1.1em;
  color: var(--ink-soft);
}
