/* Nova Hour company site. One stylesheet for every company page.
   Colours are the teal family DunDunDun and CrewWeek already share:
   --brand (#305f66) is the fill, --brand-ink is the colour for teal TEXT,
   which has to lighten in dark mode to stay readable. */

:root {
  --ink: #1c1c1e;
  --muted: #5f5f64;
  --bg: #fff;
  --bg-alt: #f2f2f7;
  --brand: #305f66;
  --brand-deep: #285056;
  --brand-ink: #305f66;
  --on-brand: #fff;
  --on-brand-muted: #d3e2e3;
  --rule: rgba(0, 0, 0, 0.08);
  --focus: #305f66;
  /* The CrewWeek mark's own ink and soft greys (crewweek-mark.svg). */
  --mark-ink: #191713;
  --mark-soft: #656055;
  --wrap: 1040px;
  color-scheme: light;
}

/* theme.js always resolves the theme (System, Light or Dark) to this
   attribute before first paint, so this is the only dark block. */
:root[data-theme="dark"] {
  --ink: #f2f2f7;
  --muted: #a1a1a6;
  --bg: #0b0b0b;
  --bg-alt: #1c1c1e;
  --brand-ink: #5ba6ad;
  --rule: rgba(255, 255, 255, 0.1);
  --focus: #5ba6ad;
  --mark-ink: #fafaf8;
  --mark-soft: #9e9c91;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text',
               'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--brand-ink);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

::selection {
  background: var(--brand);
  color: var(--on-brand);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--rule);
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

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

/* Hero */

.hero {
  padding-top: 88px;
  padding-bottom: 72px;
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: clamp(36px, 6.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero p.lede {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 21px);
}

/* Products */

.products {
  padding-bottom: 88px;
}

.section-label {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.product {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 20px;
  background: var(--bg-alt);
}

.product-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.product-icon {
  width: 64px;
  height: 64px;
  flex: none;
}

.product-icon.app { border-radius: 14px; }

.product-icon.mark {
  padding: 8px;
  border-radius: 14px;
  background: var(--bg);
}

.mark-ink { fill: var(--mark-ink); }
.mark-soft { fill: var(--mark-soft); }
.mark-acc { fill: var(--brand-ink); }

.product h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.audience {
  margin: 2px 0 0;
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 600;
}

.product p.summary {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}

.product p.detail {
  margin: 0 0 28px;
  color: var(--muted);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover { background: var(--brand-deep); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

/* Contact */

.contact {
  background: var(--brand-deep);
  color: var(--on-brand);
}

.contact .wrap {
  padding-top: 64px;
  padding-bottom: 64px;
}

.contact h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.02em;
}

.contact p {
  max-width: 560px;
  margin: 0 0 20px;
  color: var(--on-brand-muted);
}

.contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-brand);
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
}

.contact a:focus-visible { outline-color: var(--on-brand); }

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}

/* Legal pages */

.legal {
  max-width: 720px;
  padding-top: 56px;
  padding-bottom: 80px;
}

.legal h1 {
  margin: 0 0 6px;
  font-size: clamp(30px, 5vw, 40px);
  letter-spacing: -0.02em;
}

.legal .last-updated {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 15px;
}

.legal h2 {
  margin: 36px 0 10px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }

.notice {
  margin: 0 0 8px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--bg-alt);
}

.notice p { margin: 0 0 8px; }
.notice ul { margin: 0; }

@media (max-width: 760px) {
  .hero { padding-top: 56px; padding-bottom: 48px; }
  .products { padding-bottom: 64px; }
  .product-grid { grid-template-columns: 1fr; }
  .product { padding: 24px; }
  .product-icon { width: 56px; height: 56px; }
  .site-nav a { padding: 0 8px; }
}

/* Wordmark: "nova hour" outlined from Inter Display Bold, with both o's
   drawn as the mark's rim; only the o in "nova" carries the point. It is
   inline SVG in currentColor, so it follows the theme. */

.wm {
  display: block;
  height: 22px;
  width: auto;
}
