/* GlowUp Logic — glowuplogic.ai
   Tokens and fonts follow the product's own design system (apps/web, warm palette). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/InstrumentSans-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --surface-page: #faf7f1;
  --surface-raised: #ffffff;
  --surface-sunken: #f6f1e8;
  --border-subtle: #ece4d6;
  --border-default: #e2d8c6;

  --text-strong: #1a2444;
  --text-default: #1f2a4d;
  --text-secondary: #4a5169;
  --text-muted: #646880;

  --primary-fill: #22315c;
  --primary-fill-hover: #2d3f74;
  --primary-subtle: #e9edf7;
  --nav-text-muted: #9aa7c8;

  --accent-color: #e4a43d;
  --accent-subtle: #fbf1dc;
  --accent-text: #855608;
  --status-ok-color: #2e8a5a;
  --focus-ring: #c98a1e;

  --shadow-sm: 0 1px 2px rgba(60, 44, 20, 0.05), 0 1px 6px rgba(60, 44, 20, 0.04);
  --shadow-lg: 0 20px 56px rgba(26, 36, 68, 0.24), 0 2px 8px rgba(26, 36, 68, 0.08);

  --font-sans: "Instrument Sans", "Avenir Next", -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Avenir Next", -apple-system, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-default);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, dl, dd, figure { margin: 0; }
ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3, .capability dt, .fact dd, .statement p, .contact-email {
  font-family: var(--font-display);
  color: var(--text-strong);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--primary-fill);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 247, 241, 0.88);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4.5rem;
}

.brand { flex: none; }
.brand img { height: 2.25rem; width: auto; }

.site-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.9375rem;
  font-weight: 500;
}
.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.14s;
}
.site-nav a:hover { color: var(--text-strong); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem 0.35rem 0.7rem;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  background: var(--surface-raised);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-default);
  text-decoration: none;
  white-space: nowrap;
}
.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(228, 164, 61, 0.25);
}

/* Hero */

.hero {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) var(--section);
  overflow-x: clip;
}

.hero-copy { max-width: 50rem; }

h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  margin-top: 1.6rem;
  max-width: 40rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  background: var(--primary-fill);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 20px -10px rgba(34, 49, 92, 0.7);
  transition: background 0.14s;
}
.button:hover { background: var(--primary-fill-hover); }

.text-link {
  font-weight: 600;
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: var(--accent-color);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.text-link:hover { text-decoration-thickness: 3px; }

/* Product screens */

.screen img {
  width: 100%;
  border: 1px solid var(--border-default);
  border-radius: 14px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
}
.screen figcaption {
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.screen-hero {
  position: relative;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.screen-hero::before {
  content: "";
  position: absolute;
  inset: -8% -6% 10%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(228, 164, 61, 0.2), rgba(228, 164, 61, 0));
}

/* Sections */

.section {
  padding-block: var(--section);
  border-top: 1px solid var(--border-subtle);
}
.section-last { padding-bottom: clamp(3rem, 6vw, 5rem); }

.section h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section-head p {
  margin-top: 1rem;
  color: var(--text-secondary);
}

/* Mission and vision */

.statements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.statement h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent-text);
}
.statement p {
  margin-top: 0.9rem;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

/* The cycle: three stages, in order, as the product's own menu has them */

.cycle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.cycle li {
  padding: 1.5rem 1.6rem 1.7rem;
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.cycle-step {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.9375rem;
}
.cycle h3 {
  margin-top: 1rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cycle p {
  margin-top: 0.4rem;
  color: var(--text-secondary);
}

/* Feature rows with a product screen */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: clamp(4rem, 8vw, 6.5rem);
}
.feature-flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.feature-flip .feature-copy { order: 2; }
.feature-copy h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.feature-copy p {
  margin-top: 1rem;
  color: var(--text-secondary);
}

/* Capabilities */

.capabilities { margin-top: clamp(4rem, 8vw, 6.5rem); }
.capability {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 0.75rem clamp(2rem, 5vw, 4.5rem);
  padding-block: 1.75rem;
  border-top: 1px solid var(--border-default);
}
.capability:last-child { border-bottom: 1px solid var(--border-default); }
.capability dt {
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.capability dd {
  max-width: 38rem;
  color: var(--text-secondary);
}

/* Healthcare */

.healthcare {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.5rem clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--primary-subtle);
  border: 1px solid #d5dcef;
  border-radius: 20px;
}
.healthcare-body { max-width: 38rem; }
.healthcare-body p + p { margin-top: 1.1rem; }

/* Status */

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--primary-fill);
}
.fact { padding: 1.4rem 1.5rem 0 0; }
.fact dt {
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.fact dd {
  margin-top: 0.3rem;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Contact */

.contact {
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.75rem, 6vw, 5rem);
  background: var(--primary-fill);
  border-radius: 20px;
}
.contact h2 { color: #fff; }
.contact p {
  margin-top: 1.1rem;
  max-width: 36rem;
  color: #c3cde6;
}
.contact-email {
  display: inline-block;
  margin-top: 2.25rem;
  font-size: clamp(1.4rem, 4.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--accent-color);
  text-decoration: underline;
  text-decoration-color: rgba(228, 164, 61, 0.4);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
  transition: text-decoration-color 0.14s;
}
.contact-email:hover { text-decoration-color: var(--accent-color); }
.contact :focus-visible { outline-color: var(--accent-color); }

/* Footer */

.site-footer {
  padding-block: 2.5rem 3rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem 3rem;
}
.site-footer img { height: 2rem; width: auto; }
.tagline {
  margin-top: 0.6rem;
  color: var(--text-secondary);
}
.footer-meta { text-align: right; }
.footer-meta a { color: var(--text-strong); font-weight: 600; }
.footer-meta p { margin-top: 0.3rem; }

/* Narrow screens */

@media (max-width: 56rem) {
  .statements,
  .cycle,
  .feature,
  .capability,
  .healthcare { grid-template-columns: minmax(0, 1fr); }

  .feature-flip { grid-template-columns: minmax(0, 1fr); }
  .feature-flip .feature-copy { order: 0; }
  .capability { padding-block: 1.5rem; }
}

@media (max-width: 44rem) {
  .site-nav { display: none; }
  .status-pill { margin-left: auto; }
  .header-row { height: 4rem; gap: 1rem; }
  .brand img { height: 1.9rem; }

  .facts { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .fact { padding: 1.1rem 0; border-top: 1px solid var(--border-default); }
  .fact:first-child { border-top: 2px solid var(--primary-fill); }

  .screen img { border-radius: 8px; }
  .healthcare, .contact { border-radius: 16px; }
  .button { width: 100%; text-align: center; }
  .footer-meta { text-align: left; }
}

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