/* ===================================================================
   The metronome gnome — shared stylesheet
   Palette sampled from web/img/gnome.png:
     --ink         #201030  (deep navy text)
     --teal        #004030  (primary brand)
     --red         #F03030  (gnome's hat — accent / CTA)
     --slate       #505070  (secondary text)
     --forest      #308030  (success / feature accent)
     --peach       #F0C090  (warm highlight)
     --sky         #A0C0D0  (cool surface)
     --cream       #FBF7F0  (page background)
   =================================================================== */

:root {
  --ink: #201030;
  --teal: #004030;
  --red: #F03030;
  --slate: #505070;
  --forest: #308030;
  --peach: #F0C090;
  --sky: #A0C0D0;
  --cream: #FBF7F0;

  --bg: var(--cream);
  --surface: #ffffff;
  --border: rgba(32, 16, 48, 0.1);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(32, 16, 48, 0.05);
  --shadow-md: 0 8px 24px rgba(32, 16, 48, 0.08);
  --shadow-lg: 0 24px 64px rgba(32, 16, 48, 0.12);

  --font-display: ui-rounded, "SF Pro Rounded", "SF Pro Display",
    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 64, 48, 0.2);
  transition: color 120ms ease, border-color 120ms ease;
}

a:hover {
  color: var(--red);
  border-bottom-color: currentColor;
}

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

/* ───────────────────────── layout ──────────────────────────────── */

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 720px;
}

/* ───────────────────────── header / nav ────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 247, 240, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--teal);
  border-bottom: none;
}

.brand:hover {
  color: var(--teal);
}

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--peach);
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  color: var(--slate);
  border-bottom: none;
}

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

/* ───────────────────────── hero ────────────────────────────────── */

.hero {
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 24px;
  background: var(--peach);
  color: var(--teal);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.hero__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(240, 48, 48, 0.7);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero p.lead {
  font-size: 20px;
  color: var(--slate);
  margin: 0 0 32px;
  max-width: 52ch;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--teal);
  color: var(--cream);
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.3px;
  border-bottom: none;
  box-shadow: var(--shadow-md);
  transition: transform 120ms ease, background 120ms ease;
}

.hero__cta:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-1px);
}

.hero__cta--secondary {
  background: transparent;
  color: var(--teal);
  box-shadow: none;
  border: 1.5px solid var(--teal);
  margin-left: 8px;
}

.hero__cta--secondary:hover {
  background: var(--teal);
  color: var(--cream);
}

.hero__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 55%,
    rgba(240, 192, 144, 0.55) 0%,
    rgba(160, 192, 208, 0.25) 45%,
    transparent 70%
  );
  filter: blur(20px);
  z-index: 0;
}

.hero__art img {
  position: relative;
  z-index: 1;
  max-width: 360px;
  width: 100%;
  filter: drop-shadow(0 24px 32px rgba(32, 16, 48, 0.25));
}

/* ───────────────────────── features ────────────────────────────── */

.section {
  padding: 64px 0;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink);
}

.section__subtitle {
  font-size: 17px;
  color: var(--slate);
  margin: 0 0 40px;
}

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

.feature {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 16px;
  background: var(--peach);
  color: var(--teal);
}

.feature--accent .feature__icon {
  background: rgba(240, 48, 48, 0.12);
  color: var(--red);
}

.feature--forest .feature__icon {
  background: rgba(48, 128, 48, 0.12);
  color: var(--forest);
}

.feature--sky .feature__icon {
  background: rgba(160, 192, 208, 0.35);
  color: var(--teal);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}

.feature p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--slate);
}

/* ───────────────────────── content pages ───────────────────────── */

.page {
  padding: 56px 0 80px;
}

.page h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.page__updated {
  color: var(--slate);
  font-size: 14px;
  margin: 0 0 40px;
}

.page h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--teal);
}

.page h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 6px;
  color: var(--ink);
}

.page p,
.page li {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

.page ul {
  padding-left: 1.2em;
}

.page ul li {
  margin-bottom: 6px;
}

.callout {
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--peach);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.callout strong {
  color: var(--teal);
}

/* ───────────────────────── footer ──────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 32px 0;
  margin-top: 64px;
  color: var(--slate);
  font-size: 14px;
}

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

.site-footer a {
  color: var(--slate);
  margin-left: 18px;
  border-bottom: none;
}

.site-footer a:first-of-type {
  margin-left: 0;
}

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

/* ───────────────────────── responsive ──────────────────────────── */

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 0 24px;
    text-align: center;
  }

  .hero__art {
    order: -1;
  }

  .hero__art img {
    max-width: 260px;
  }

  .hero__eyebrow {
    margin: 0 auto 20px;
  }

  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta--secondary {
    margin-left: 0;
    margin-top: 10px;
  }

  .nav {
    gap: 14px;
  }
}

/* ─── pricing ──────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-card--featured {
  border-color: var(--teal);
  box-shadow: 0 12px 32px rgba(0, 64, 48, 0.12);
  position: relative;
}

.pricing-card h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.pricing-card__price {
  font-size: 36px;
  font-weight: 600;
  margin: 0;
  color: var(--teal);
}

.pricing-card--featured .pricing-card__price {
  color: var(--red);
}

.pricing-card__price-note {
  font-size: 14px;
  font-weight: 400;
  color: var(--slate);
  margin-left: 4px;
}

.pricing-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-card__list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  line-height: 1.5;
}

.pricing-card__list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--forest);
  font-size: 10px;
  top: 6px;
}

.pricing-card__footnote {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--slate);
}

@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
