/* Turf Terrace — shared site styles
   Pine-pitch + chalk + gold, Fraunces (display) / Hanken Grotesk (body). */

:root {
  --pitch: #0b3d2e;
  --pitch-deep: #06241b;
  --chalk: #f4f1e6;
  --chalk-dim: #cfd6cb;
  --line: #d8b24a;          /* gold */
  --line-soft: rgba(216, 178, 74, 0.28);
  --panel: rgba(244, 241, 230, 0.035);
  --panel-line: rgba(216, 178, 74, 0.22);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  background: var(--pitch-deep);
  color: var(--chalk);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
/* Faint pitch stripes + warm vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    var(--pitch) 0, var(--pitch) 7vw,
    var(--pitch-deep) 7vw, var(--pitch-deep) 14vw
  );
  opacity: 0.55;
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 14%, rgba(216,178,74,0.10), transparent 55%);
  z-index: -1;
}

header, main, footer { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 2rem; }

/* ---- header ---- */
header {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 2.4rem; padding-bottom: 2.4rem;
}
.wordmark {
  font-family: "Fraunces", serif; font-weight: 600;
  font-size: 1.35rem; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--chalk); text-decoration: none; white-space: nowrap;
}
.crest {
  width: 28px; height: 28px;
  border: 1.5px solid var(--line); border-radius: 50%;
  display: grid; place-items: center;
  color: var(--line); font-size: 0.8rem; font-weight: 600;
}
nav { display: flex; gap: 1.6rem; }
nav a {
  color: var(--chalk-dim); text-decoration: none; white-space: nowrap;
  font-size: 0.95rem; font-weight: 500; transition: color 0.2s ease;
}
nav a:hover { color: var(--line); }

/* ---- buttons ---- */
.btn {
  font-weight: 600; font-size: 0.98rem; text-decoration: none;
  padding: 0.85rem 1.5rem; border-radius: 2px;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  display: inline-block;
}
.btn-primary { background: var(--line); color: var(--pitch-deep); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line-soft); color: var(--chalk); }
.btn-ghost:hover { border-color: var(--line); color: var(--line); }

/* ---- shared section header ---- */
.eyebrow {
  font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--line); margin-bottom: 1.2rem;
}

/* ---- home hero ---- */
main { flex: 1; display: flex; flex-direction: column; }
.hero { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.hero h1 {
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02;
  letter-spacing: -0.02em; max-width: 16ch; margin-bottom: 1.6rem;
}
.hero h1 em { font-style: italic; color: var(--line); }
.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--chalk-dim);
  max-width: 52ch; line-height: 1.6;
}
.actions { margin-top: 2.6rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- home: products grid ---- */
.products { padding-top: 1rem; padding-bottom: 4rem; }
.products h2 {
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.products .sub { color: var(--chalk-dim); max-width: 48ch; margin-bottom: 2.4rem; line-height: 1.6; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--panel-line); background: var(--panel);
  border-radius: 4px; padding: 1.6rem 1.5rem;
  text-decoration: none; color: var(--chalk);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line); background: rgba(216,178,74,0.05); }
.card .meta { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.card h3 {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1.45rem;
  letter-spacing: -0.01em; margin-bottom: 0.5rem;
}
.card p { color: var(--chalk-dim); font-size: 0.98rem; line-height: 1.55; flex: 1; }
.card .more { margin-top: 1.2rem; color: var(--line); font-weight: 600; font-size: 0.95rem; }

/* ---- badges + pills ---- */
.badge {
  font-size: 0.72rem; letter-spacing: 0.08em; color: var(--chalk-dim);
  border: 1px solid var(--line-soft); border-radius: 999px;
  padding: 0.18rem 0.6rem; white-space: nowrap;
}
.pill {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; color: var(--line);
  border: 1px solid var(--line-soft); border-radius: 999px;
  padding: 0.18rem 0.6rem; white-space: nowrap;
}

/* ---- product page: hero ---- */
.product-hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem;
  align-items: center; padding-top: 2.5rem; padding-bottom: 3.5rem;
}
.product-hero h1 {
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem); line-height: 1.04;
  letter-spacing: -0.02em; margin-bottom: 1.1rem;
}
.product-hero .tagline { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--chalk-dim); line-height: 1.6; max-width: 42ch; }
.product-hero .meta { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1.4rem; flex-wrap: wrap; }

/* ---- screenshot frames ---- */
.shot-phone {
  justify-self: center;
  width: min(300px, 78vw);
  padding: 10px; border-radius: 44px;
  background: linear-gradient(160deg, #163d31, #0a2820);
  border: 1px solid var(--panel-line); box-shadow: var(--shadow);
}
.shot-phone img { width: 100%; display: block; border-radius: 34px; }
.shot-window {
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--panel-line); box-shadow: var(--shadow);
  background: #0a2820;
}
.shot-window .bar {
  display: flex; gap: 0.45rem; align-items: center;
  padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--panel-line);
}
.shot-window .bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-soft); }
.shot-window img { width: 100%; display: block; }

/* ---- product page: features ---- */
.section { padding-top: 3rem; padding-bottom: 3rem; border-top: 1px solid var(--line-soft); }
.section h2 {
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -0.01em; margin-bottom: 2rem;
}
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 2.5rem; }
.feature .num {
  font-family: "Fraunces", serif; font-style: italic; color: var(--line);
  font-size: 1.1rem; margin-bottom: 0.5rem; display: block;
}
.feature h3 { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature p { color: var(--chalk-dim); line-height: 1.6; font-size: 0.98rem; }

.under {
  color: var(--chalk-dim); line-height: 1.7; font-size: 1.02rem; max-width: 60ch;
}
.under strong { color: var(--chalk); font-weight: 600; }

/* ---- CTA band ---- */
.cta-band {
  margin-top: 1rem; padding: 2.6rem 2rem; text-align: center;
  border: 1px solid var(--panel-line); background: var(--panel); border-radius: 6px;
}
.cta-band h2 {
  font-family: "Fraunces", serif; font-weight: 500; border: 0;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 0.8rem;
}
.cta-band p { color: var(--chalk-dim); margin-bottom: 1.6rem; }

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.8rem; padding-bottom: 2.4rem;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; font-size: 0.88rem; color: var(--chalk-dim);
  margin-top: 2rem;
}
.sig { font-family: "Fraunces", serif; font-style: italic; font-size: 1.05rem; color: var(--chalk); }
footer a { color: var(--chalk-dim); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
footer a:hover { color: var(--line); border-color: var(--line); }

/* ---- load animation ---- */
.rise { animation: rise 0.8s ease both; }
.rise-1 { animation-delay: 0.08s; }
.rise-2 { animation-delay: 0.16s; }
.rise-3 { animation-delay: 0.24s; }
.rise-4 { animation-delay: 0.32s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .rise-1, .rise-2, .rise-3, .rise-4 { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- responsive ---- */
@media (max-width: 820px) {
  .card-grid { grid-template-columns: 1fr; }
  .product-hero { grid-template-columns: 1fr; gap: 2rem; }
  .product-hero .shot-phone, .product-hero .shot-window { order: -1; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  header { padding-top: 1.6rem; flex-wrap: wrap; row-gap: 0.5rem; }
  header, main, footer { padding-left: 1.4rem; padding-right: 1.4rem; }
  .wordmark { font-size: 1.12rem; }
  .crest { width: 24px; height: 24px; }
  header nav { gap: 0.9rem; }
  header nav a { font-size: 0.9rem; }
  header nav a.nav-hide { display: none; }
  .hero { padding-top: 2rem; }
}
