:root {
  --green: #385A21;
  --bg: #F6F6F6;
  --card: #ffffff;
  --text: #2b2b26;
  --muted: #6b6b62;
  --border: #e3e3e0;
  --max: 760px;
}

* { box-sizing: border-box; }

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

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

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

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.75;
}

nav a:hover, nav a.active {
  opacity: 1;
  color: var(--green);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.hero {
  text-align: center;
  padding: 40px 0 20px;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 12px;
  color: var(--green);
  line-height: 1.15;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 28px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--green);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}

.cta-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 56px 0;
}

.feature h3 {
  color: var(--green);
  margin: 0 0 6px;
  font-size: 1.05rem;
}

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

.feature .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  color: var(--green);
  display: block;
}

.feature .icon svg {
  width: 100%;
  height: 100%;
}

h1.page-title {
  color: var(--green);
  font-size: 2rem;
  margin-bottom: 4px;
}

.subtitle {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 32px;
}

h2 {
  color: var(--green);
  font-size: 1.25rem;
  margin-top: 36px;
}

article a {
  color: var(--green);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}

.card h3 {
  margin-top: 0;
  color: var(--green);
}

.updated {
  color: var(--muted);
  font-size: 0.85rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--muted);
}

/* Onboarding story strip */
.story {
  margin: 64px 0;
}

.story-header {
  text-align: center;
  margin-bottom: 24px;
}

.story-header h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.story-header p {
  color: var(--muted);
  margin: 0;
}

.story-strip {
  display: flex;
  /* Gap keeps the next panel's box-shadow from bleeding into view at the
     frame's edge -- without it, adjacent panels sit flush and the
     shadow/rounded corner of panel N+1 peeks through. */
  gap: 24px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Frame is capped to one panel's own width and centered, so only a
     single panel is ever in view at once instead of a multi-panel strip
     -- swiping snaps cleanly from one to the next. */
  max-width: 340px;
  margin: 0 auto;
}

.story-strip img {
  scroll-snap-align: start;
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

@media (max-width: 600px) {
  .story-strip { max-width: 88vw; }
}

/* How To tip grid */
.tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.tip-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.tip-card video {
  width: 100%;
  display: block;
  background: #000;
  aspect-ratio: 9 / 16;
}

.tip-card .tip-caption {
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Since only one panel shows at a time, these dots are what actually
   tells a visitor there's more than one to swipe through. */
.story-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.story-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background-color 0.2s ease;
}

.story-dot.active {
  background: var(--green);
}
