/* ProductFoundry website. Typography and voice follow product-context/brand/brand.md;
   colours match the Discovery app's olive palette. */

/* Fonts are self-hosted (SIL Open Font License, see /fonts/), so visitors' browsers never contact a third party. */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
:root {
  --olive-50: #f7f8ef;
  --olive-100: #eef1dc;
  --olive-200: #dce3b9;
  --olive-300: #c3ce8b;
  --olive-400: #a3b25f;
  --olive-500: #82923f;
  --olive-600: #6b7a2f;
  --olive-700: #566227;
  --olive-800: #454f21;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --bg: #fff;
  --text: var(--gray-900);
  --muted: var(--gray-600);
  --primary: var(--olive-600);
  --primary-hover: var(--olive-800);

  --font-body: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Manrope", var(--font-body);
  --radius: 12px;
  --ring: 0 0 0 3px rgba(107, 122, 47, 0.35);

  color-scheme: light;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--primary); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip-link { position: absolute; left: 16px; top: -48px; background: var(--gray-900); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 0.98rem;
  text-decoration: none; border: 1.5px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: transparent; color: var(--gray-900); border-color: var(--olive-600); }
.btn-secondary:hover { background: var(--olive-100); border-color: var(--olive-800); }
.btn-light { background: #fff; color: var(--gray-900); }
.btn-light:hover { background: var(--olive-100); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gray-200); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--gray-900); text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--primary); color: #fff; flex: none; }
.logo-word { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { color: var(--gray-700); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--olive-700); }

/* Hero */
.hero { padding: 88px 0 96px; background: linear-gradient(180deg, var(--olive-50), #fff); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.eyebrow { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--olive-700); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.accent { color: var(--primary); }
.lead { font-size: 1.3rem; color: var(--gray-700); margin: 24px 0 32px; max-width: 30ch; }

.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; aspect-ratio: 1; max-width: 400px; justify-self: end; width: 100%; }
.block { border-radius: 14px; background: var(--olive-100); }
.b1 { background: var(--olive-600); }
.b2 { background: var(--olive-200); }
.b3 { background: transparent; border: 2px dashed var(--olive-300); }
.b4 { background: var(--olive-300); }
.b5 { background: var(--gray-900); }
.b6 { background: var(--olive-500); }
.b7 { background: transparent; border: 2px dashed var(--olive-300); }
.b8 { background: var(--olive-700); }
.b9 { background: var(--olive-200); }

/* Sections */
.section { padding: 96px 0; }
.section-tinted { background: var(--gray-50); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2, .about h2, .cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; }
.section-lead { color: var(--muted); font-size: 1.1rem; margin-top: 14px; }

/* How we work */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.step { position: relative; padding: 28px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; }
.step-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--olive-100); color: var(--olive-700); margin-bottom: 20px; }
.step-number { position: absolute; top: 28px; right: 28px; font-family: var(--font-heading); font-weight: 800; color: var(--gray-300); }
.step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p { color: var(--muted); }

/* Products */
.product { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.product-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.product-title h3 { font-size: 2rem; font-weight: 800; }
.tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--olive-800); background: var(--olive-100); padding: 4px 10px; border-radius: 999px; }
.product-lead { font-size: 1.12rem; color: var(--gray-700); margin-bottom: 22px; }
.checklist { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--olive-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.endorsement { margin-top: 18px; font-size: 0.85rem; color: var(--muted); }

.preview { margin: 0; }
.preview-window { border-radius: 14px; background: #fff; border: 1px solid var(--gray-200); box-shadow: 0 24px 48px rgba(17, 24, 39, 0.1); overflow: hidden; }
.preview-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--gray-900); }
.preview-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-600); }
.preview-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.preview-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 6px; }
.preview-row { display: grid; grid-template-columns: 1fr 90px auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--gray-100); border-radius: 8px; font-size: 0.82rem; }
.pr-title { font-weight: 600; }
.pr-bar { height: 6px; background: var(--gray-100); border-radius: 999px; overflow: hidden; }
.pr-bar span { display: block; height: 100%; background: var(--olive-600); }
.pr-bar .pr-62 { width: 62%; }
.pr-bar .pr-28 { width: 28%; }
.pr-badge { font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pr-badge.on { background: var(--olive-600); color: #fff; }
.pr-badge.risk { background: var(--olive-100); color: var(--olive-800); }
.preview-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pt { border: 1px solid var(--gray-100); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; font-size: 0.8rem; }
.pt span { color: var(--muted); }
.preview figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* Principles */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.principles li { padding-top: 18px; border-top: 3px solid var(--olive-600); }
.principles h3 { font-size: 1.1rem; margin-bottom: 8px; }
.principles p { color: var(--muted); font-size: 0.95rem; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.about-copy > p { font-size: 1.15rem; color: var(--gray-700); }
.mission { margin: 32px 0 0; display: grid; gap: 20px; }
.mission dt { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--olive-700); }
.mission dd { margin: 4px 0 0; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; }

/* Call to action */
.cta { background: var(--gray-900); color: #fff; padding: 80px 0; scroll-margin-top: 68px; }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 56px; }
.cta p { color: var(--gray-300); margin-top: 12px; max-width: 52ch; }
.cta .cta-small { font-size: 0.88rem; color: var(--gray-400); }
.cta a:not(.btn) { color: var(--olive-200); }

.beta-panel { background: var(--gray-800); border: 1px solid var(--gray-700); border-radius: var(--radius); padding: 28px; }
.beta-panel h3 { color: #fff; font-size: 1.15rem; }
.beta-panel ol { margin: 12px 0 0; padding-left: 1.2em; color: var(--gray-300); display: grid; gap: 8px; }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--gray-200); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.logo-small .logo-mark { width: 28px; height: 28px; border-radius: 7px; }
.logo-small .logo-word { font-size: 1rem; }
.tagline { color: var(--muted); font-size: 0.9rem; }
.copyright { margin-left: auto; color: var(--muted); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-inner, .product, .about, .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 280px; justify-self: start; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .preview-row { grid-template-columns: 1fr auto; }
  .pr-bar { grid-column: 1 / -1; grid-row: 2; }
  .copyright { margin-left: 0; width: 100%; }
}

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