/* SweepKeeper marketing site styles.
 *
 * One file by design. No build pipeline, no preprocessor, no JS.
 * If you find yourself reaching for Tailwind you've drifted —
 * this is a five-page static site for a metal-detecting app.
 */

:root {
  --forest: #2E5D3A;
  --forest-deep: #1f4128;
  --earth: #5B4636;
  --copper: #C99245;
  --bone: #F4F1EA;
  --charcoal: #121814;
  --muted: #6c736e;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
               Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Zilla Slab", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--charcoal);
  background: var(--bone);
}

/* Layout container — comfortable reading width, generous side padding
 * on phones so text doesn't kiss the screen edge. */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 22px;
}
.wrap--wide { max-width: 1080px; }

/* Header — same on every page. */
.site-header {
  background: var(--forest);
  color: var(--bone);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
}
.site-nav a {
  color: var(--bone);
  text-decoration: none;
  margin-left: 18px;
  font-size: 15px;
  opacity: 0.85;
}
.site-nav a:hover { opacity: 1; text-decoration: underline; }

/* Hero on landing page */
.hero {
  background: var(--forest);
  color: var(--bone);
  padding-top: 8px;
  padding-bottom: 56px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 24px 0 12px;
}
.hero p {
  font-size: clamp(16px, 2vw, 19px);
  max-width: 540px;
  opacity: 0.9;
  margin: 0 0 24px;
}
/* Audience tag — sits between the wordplay H1 and the function
 * sub. Same font family as H1 (Zilla Slab) so it reads as part of
 * the headline stack, but smaller and copper-tinted so it doesn't
 * compete with the H1. */
.hero .hero-tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--copper);
  margin: -4px 0 14px;
  opacity: 1;
  letter-spacing: -0.2px;
}
.pill {
  display: inline-block;
  background: rgba(244, 241, 234, 0.12);
  color: var(--bone);
  border: 1px solid rgba(244, 241, 234, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

/* Promises grid — what SweepKeeper is / isn't */
.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 36px 0;
}
.promise {
  background: var(--bone);
  border: 1px solid rgba(46, 93, 58, 0.18);
  border-radius: 14px;
  padding: 18px 20px;
}
.promise h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--forest);
  margin: 0 0 6px;
}
.promise p {
  margin: 0;
  font-size: 15px;
  color: var(--earth);
}

/* Section heads */
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--forest);
  margin: 36px 0 12px;
  letter-spacing: -0.3px;
}
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--forest);
  margin: 24px 0 8px;
}

/* Content typography (privacy policy, support page) */
.content p,
.content li {
  font-size: 17px;
  color: var(--charcoal);
}
.content ul {
  padding-left: 22px;
}
.content code {
  background: rgba(91, 70, 54, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}
.content a { color: var(--forest); }
.content a:hover { color: var(--forest-deep); }

.meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

/* Callout — for the "if we ever break this promise" line.
 * Copper left border, faint warm tint, no icon. Reads as
 * footnote-with-conviction, not as a marketing pull-quote. */
.callout {
  margin: 32px 0 12px;
  padding: 18px 22px;
  background: rgba(201, 146, 69, 0.07);
  border-left: 4px solid var(--copper);
  border-radius: 4px;
  color: var(--earth);
  font-size: 16px;
  line-height: 1.5;
}

/* CTA / footer */
.cta {
  background: var(--forest-deep);
  color: var(--bone);
  text-align: center;
  padding: 48px 22px;
}
.cta h2 {
  color: var(--bone);
  margin: 0 0 6px;
}
.cta p {
  margin: 0 0 18px;
  opacity: 0.85;
}
.btn {
  display: inline-block;
  background: var(--copper);
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font-size: 16px;
  cursor: pointer;
}
.btn:hover { background: #d8a153; }
.btn--ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(244, 241, 234, 0.4);
  margin-left: 8px;
}
.btn--ghost:hover { background: rgba(244, 241, 234, 0.08); }

.footer {
  background: var(--charcoal);
  color: rgba(244, 241, 234, 0.7);
  padding: 32px 22px;
  font-size: 14px;
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
.footer a {
  color: rgba(244, 241, 234, 0.85);
  text-decoration: none;
  margin-right: 16px;
}
.footer a:hover { color: var(--bone); }

/* Accessibility — keyboard focus */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

/* Phone-width adjustments. At ~412px viewports the header was
 * overflowing — brand word + three nav links + nav margins added
 * up to ~418px. Tighten everything that touches the header and
 * drop the same-page-anchor link since it points to a section
 * right below the hero. */
@media (max-width: 480px) {
  body { overflow-x: hidden; }
  .site-header .wrap { gap: 8px; }
  .brand img { width: 36px; height: 36px; }
  .brand-word { font-size: 18px; letter-spacing: -0.3px; }
  .site-nav a {
    margin-left: 14px;
    font-size: 13px;
  }
  .pill { font-size: 12px; padding: 5px 10px; }
  .footer .wrap a { margin-right: 12px; }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Print styles for the privacy policy — some users print it */
@media print {
  .site-header, .footer, .cta { display: none; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}
