:root {
  --bg: #f8f5f0;
  --fg: #111111;
  --muted: #6b645c;
  --accent: #8a5a3a;
  --card: #ffffff;
  --border: #e8e1d8;
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 40px;
  background: rgba(248, 245, 240, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  justify-self: start;
}

.brand img {
  display: block;
}

.links {
  display: flex;
  gap: 32px;
  color: var(--muted);
  font-size: 15px;
}

.links a:hover {
  color: var(--fg);
}

.nav .btn-small {
  justify-self: end;
}

/* Layout */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 40px;
  padding: 64px 0 56px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(48px, 6.4vw, 84px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.hero h1 .accent {
  color: var(--accent);
  font-weight: 600;
}

.lead {
  margin-top: 24px;
  font-size: 19px;
  color: var(--muted);
  max-width: 480px;
}

.cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.fine {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--fg);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--fg);
  background: #fff;
}

.btn-small {
  padding: 9px 18px;
  font-size: 14px;
  background: #0071e3;
  color: #fff;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 901px) {
  /* Let the laptop render larger than its column, overflowing slightly into the gap. */
  .hero-image img {
    width: 118%;
    max-width: none;
    margin-left: -6%;
  }
}

/* Categories */
.categories {
  padding: 40px 0 88px;
}

.fan {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}

.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 10px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cat:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.cat strong {
  font-size: 15px;
  font-weight: 600;
  margin-top: 12px;
}

.cat small {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.chip {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.chip-red {
  background: linear-gradient(135deg, #ff6b6b, #e53935);
}
.chip-purple {
  background: linear-gradient(135deg, #b388ff, #7e57c2);
}
.chip-blue {
  background: linear-gradient(135deg, #64b5f6, #1e88e5);
}
.chip-green {
  background: linear-gradient(135deg, #81c784, #2e7d32);
}
.chip-orange {
  background: linear-gradient(135deg, #ffb74d, #ef6c00);
}
.chip-gray {
  background: linear-gradient(135deg, #bdbdbd, #757575);
}

/* Sections */
section h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 16px;
}

.features,
.pricing {
  text-align: center;
  padding: 72px 0;
}

.features p,
.pricing p {
  color: var(--muted);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.pricing .btn {
  margin-top: 28px;
}

.pricing .fine {
  margin-top: 16px;
}

.faq {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 0;
}

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

.faq summary {
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--muted);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin-top: 12px;
  color: var(--muted);
}

.footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  .nav {
    grid-template-columns: 1fr auto;
    padding: 14px 20px;
  }
  .links {
    display: none;
  }
  main {
    padding: 0 20px;
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .cta {
    justify-content: center;
  }
  .fan {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 560px) {
  .fan {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Fan layout (desktop only). Card positions are set by fan.js. */
@media (min-width: 901px) {
  /* Full-bleed band. Its bottom border is the horizon; cards are clipped at the same line. */
  .categories {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #d9d1c6;
  }

  .fan {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform-origin: 50% 0;
  }

  .fan .cat {
    position: absolute;
    left: 50%;
    top: 0;
    width: 176px;
    margin: 0;
    transition: none;
    /* Keep each rotated card on its own GPU layer so text doesn't re-rasterize every frame. */
    will-change: transform;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .cat,
  .categories .cat {
    transition: none;
  }

}
