/* Tetrad Group — shared styles for all pages.
   Neutral studio frame; the logo's teal is the only accent. Product brands
   (e.g. College Tracker's blue) stay inside their own screenshots. */

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --ink: #12151a;
  --ink-2: #3c434f;
  --muted: #69717e;
  --line: #dde1e7;
  --accent: #087f93;
  --accent-ink: #ffffff;
  --accent-soft: #e2f1f3;
  --shadow: 0 1px 2px rgba(18, 21, 26, 0.04), 0 8px 24px rgba(18, 21, 26, 0.06);

  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  --step-4: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem);

  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1114;
    --surface: #171a1f;
    --surface-2: #1f232a;
    --ink: #eef0f3;
    --ink-2: #c3c8d0;
    --muted: #8d95a2;
    --line: #2a2f37;
    --accent: #3cb6c9;
    --accent-ink: #071315;
    --accent-soft: #14292d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { left: 8px; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: var(--step--1); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 640px) {
  .nav { gap: 14px; }
  .nav .nav-optional { display: none; }
}

/* Sections */
section { padding: 72px 0; }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 62ch; }
.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Hero */
.hero { padding: 96px 0 72px; }
.hero h1 { max-width: 18ch; }
.hero .lede { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
@media (max-width: 640px) { .hero { padding: 64px 0 48px; } section { padding: 56px 0; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 10px;
  font-weight: 600; font-size: var(--step--1); text-decoration: none;
  border: 1px solid transparent; transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 85%, var(--accent)); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink-2); }
.appstore-badge { display: inline-block; height: 46px; }
.appstore-badge img { height: 46px; width: auto; }

/* Product feature (home) */
.product {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px;
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: 40px; box-shadow: var(--shadow); align-items: center;
}
.product-id { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.product-id img { width: 56px; height: 56px; border-radius: 13px; }
.product-id .platforms { font-size: var(--step--1); color: var(--muted); }
.product p.summary { color: var(--ink-2); }
.checklist { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 26px; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent-soft); box-shadow: inset 0 0 0 3px var(--accent);
}
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shots img { border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.shots img:nth-child(2) { transform: translateY(-18px); }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; padding: 28px 22px; }
  .shots img:nth-child(2) { transform: none; }
}
.next-note {
  margin-top: 20px; display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: var(--step--1);
}
.next-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* About principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.principle { border-top: 2px solid var(--ink); padding-top: 16px; }
.principle p { color: var(--ink-2); margin-top: 8px; font-size: var(--step--1); }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* Split panels (work with us / contact) */
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: grid; gap: 12px; align-content: start;
}
.panel p { color: var(--ink-2); }
.panel .email { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; word-break: break-word; }
@media (max-width: 760px) { .panels { grid-template-columns: 1fr; } }

/* Product page */
.app-hero { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.app-hero img.icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); }
@media (max-width: 640px) { .app-hero { grid-template-columns: 1fr; } .app-hero img.icon { width: 72px; height: 72px; border-radius: 17px; } }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 14px;
  overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory;
}
.gallery img { scroll-snap-align: start; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature p { color: var(--ink-2); margin-top: 8px; font-size: var(--step--1); }
.feature .tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 0.72rem; font-weight: 600; vertical-align: middle;
}
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { padding: 20px 0; border-top: 1px solid var(--line); }
.fact strong { display: block; font-family: var(--font-display); font-size: var(--step-2); }
.fact span { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } }
.linklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: var(--step--1); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
