/* ---------- Tokens ---------- */
:root {
  /* Palette — warm Welsh-hill sunset */
  --paper:        #fdf8ee;
  --paper-warm:   #f7ecd6;
  --ink:          #1a2a26;
  --ink-soft:     #4a5854;
  --rule:         #e8dfca;

  /* Accent hues */
  --moss:         #4a6f5a;
  --moss-deep:    #3d5a48;
  --heather:      #8e6f9d;
  --heather-soft: #b8a3c4;
  --ochre:        #c8995a;
  --ochre-soft:   #f5d896;
  --slate:        #3d4f59;

  /* Layout */
  --measure:      40rem;
  --measure-wide: 64rem;
  --radius:       12px;
  --radius-sm:    6px;
  --shadow-soft:  0 1px 2px rgba(26, 42, 38, 0.04), 0 8px 24px rgba(26, 42, 38, 0.06);
  --shadow-lift:  0 2px 4px rgba(26, 42, 38, 0.06), 0 16px 40px rgba(26, 42, 38, 0.10);

  --font-sans:   ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --font-serif:  ui-serif, Georgia, "Iowan Old Style", serif;
}

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

html { font-size: 17px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--moss-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.15s ease;
}
a:hover { color: var(--heather); }

p { margin: 0 0 1rem; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.01em; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--paper-warm);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* ---------- Header ---------- */
.site-header {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark {
  width: 36px;
  height: 36px;
  display: block;
  color: var(--moss-deep);
  flex-shrink: 0;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}
.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-header nav a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.nav-cta:hover { background: var(--moss-deep); color: var(--paper) !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: 1rem;
  padding: 5rem 1.5rem 0;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg,
    var(--paper) 0%,
    #fbe8c4 35%,
    var(--ochre-soft) 70%,
    #e8c992 100%
  );
}

.hero-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-sun {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle,
    #fff5dc 0%,
    #ffe8b8 40%,
    rgba(245, 216, 150, 0) 75%
  );
  filter: blur(2px);
}
.hero-hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(180px, 28vw, 320px);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--measure);
  margin: 0 auto;
  padding-bottom: clamp(7rem, 18vw, 11rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss-deep);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(74, 111, 90, 0.2);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- CTAs ---------- */
.cta {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.cta-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}
.cta-primary:hover {
  background: var(--moss-deep);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}
.cta-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  border: 1px solid rgba(26, 42, 38, 0.12);
}
.cta-ghost:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}
.cta-large { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* ---------- Main ---------- */
main {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}
main > section { padding: 5rem 0; }

.section-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--moss);
  border-radius: 2px;
}

.section-intro {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: -0.75rem 0 2.5rem;
  max-width: 36rem;
}

/* ---------- Intro ---------- */
.intro { max-width: var(--measure); margin: 0 auto; }
.big-text {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- Reasons ---------- */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.reason {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.reason::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--reason-color, var(--moss));
}
.reason:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.reason-moss    { --reason-color: var(--moss); }
.reason-heather { --reason-color: var(--heather); }
.reason-ochre   { --reason-color: var(--ochre); }

.reason-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--reason-color);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.reason h3 {
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
}
.reason p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.97rem;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.plan {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.plan-featured {
  border: 2px solid var(--moss);
  background: linear-gradient(180deg, #fff 0%, #f6faf6 100%);
  position: relative;
}
.plan-featured::before {
  content: "Recommended";
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--moss);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.plan-head { margin-bottom: 1.25rem; }
.plan-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 0 0 0.3rem;
}
.plan-tagline {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

.plan-price {
  font-family: var(--font-serif);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.plan-price .price {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.plan-price .per {
  color: var(--ink-soft);
  font-size: 1rem;
  font-family: var(--font-sans);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  flex-grow: 1;
}
.plan-features li {
  padding: 0.55rem 0 0.55rem 1.6rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.95rem;
  position: relative;
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1em;
  width: 0.8em;
  height: 0.4em;
  border-left: 2px solid var(--moss);
  border-bottom: 2px solid var(--moss);
  transform: translateY(-65%) rotate(-45deg);
}

.cta-plan {
  text-align: center;
  background: var(--paper-warm);
  color: var(--ink);
  border: 1px solid var(--rule);
}
.cta-plan:hover {
  background: var(--ink);
  color: var(--paper);
}
.cta-plan-featured {
  background: var(--moss);
  color: var(--paper);
  border-color: var(--moss);
}
.cta-plan-featured:hover {
  background: var(--moss-deep);
  color: var(--paper);
}

.addon {
  background: linear-gradient(90deg, rgba(142, 111, 157, 0.10), rgba(200, 153, 90, 0.10));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.97rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.addon-tag {
  background: var(--heather);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
}

/* ---------- FAQ ---------- */
.faq-section {
  background: linear-gradient(180deg, transparent 0%, var(--paper-warm) 30%, var(--paper-warm) 70%, transparent 100%);
  border-radius: var(--radius);
  padding: 4rem 2rem !important;
  margin: 2rem 0;
}
.faq {
  max-width: var(--measure);
  margin: 0 auto;
}
.faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}
.faq-item:last-child { border-bottom: none; }
.faq dt {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.faq dd {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Closing ---------- */
.closing {
  text-align: center;
  max-width: var(--measure);
  margin: 0 auto;
}
.closing h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 1.5rem;
  color: var(--ink);
}

/* ---------- Showcase / browser frame ---------- */
.showcase {
  max-width: 60rem;
  margin: -2rem auto 1rem;   /* lift up into the hero gradient slightly */
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}
.browser-frame {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--rule);
}
.browser-dots { display: flex; gap: 0.35rem; }
.browser-dots span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--rule);
}
.browser-url {
  flex: 1;
  text-align: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: #fff;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  max-width: 22rem;
}
.browser-screenshot {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper);
}

/* ---------- Powered-by-Flarum section screenshots ---------- */
.flarum-section { /* same vertical rhythm as other main sections */ }
.screenshot-pair {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: end;
}
.screenshot-pair figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.screenshot-pair figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper);
}
.screenshot-pair figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 0.6rem 0.5rem;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
@media (max-width: 640px) {
  .screenshot-pair { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: var(--paper-warm);
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  font-size: 0.92rem;
}
.footer-brand { color: var(--paper); font-size: 1rem; margin-bottom: 0.5rem; }
.footer-brand .footer-logo {
  display: inline-block;
  vertical-align: -0.3em;
  margin-right: 0.45em;
}
footer a { color: var(--ochre-soft); }
footer a:hover { color: var(--paper); }
.legal {
  font-size: 0.82rem;
  color: rgba(247, 236, 214, 0.6);
  max-width: 36rem;
  line-height: 1.5;
  margin-top: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .site-header { padding-top: 1rem; }
  .site-header nav { gap: 1rem; font-size: 0.9rem; }
  .site-header nav a:not(.nav-cta) { display: none; }
  main > section { padding: 3.5rem 0; }
  .hero { padding-top: 3rem; }
  .reason, .plan { padding: 1.75rem 1.5rem; }
  .faq-section { padding: 2.5rem 1.25rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
