/* The Stroop LLC: palette shares Strooply's caramel (#D98C14) and espresso (#100D08). */
:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --surface-2: #f6efe4;
  --text: #2b2118;
  --muted: #625345;
  --line: #eadfce;
  --accent: #d98c14;
  --accent-ink: #8a5005;
  --accent-soft: #f8e9d2;
  --on-accent: #1a1209;
  --focus: #8a5005;
  --grid: rgba(217, 140, 20, 0.07);
  --glow: rgba(217, 140, 20, 0.11);
  --shadow: 0 1px 2px rgba(43, 33, 24, .05), 0 8px 24px rgba(43, 33, 24, .07);
  --radius: 16px;
  --max: 1080px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #100d08;
    --surface: #1a150e;
    --surface-2: #211a11;
    --text: #f0ede6;
    --muted: #b5a895;
    --line: #2e261b;
    --accent: #d98c14;
    --accent-ink: #f0b04a;
    --accent-soft: #2a1f10;
    --on-accent: #1a1209;
    --focus: #f0b04a;
    --grid: rgba(217, 140, 20, 0.07);
    --glow: rgba(217, 140, 20, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  }
}

/* EasyRoundRobin pages use that product's navy. */
.theme-err {
  --accent: #0f4c81;
  --accent-ink: #0f4c81;
  --accent-soft: #e6f0fa;
  --on-accent: #ffffff;
  --focus: #0f4c81;
  --grid: rgba(15, 76, 129, 0.05);
  --glow: rgba(15, 76, 129, 0.07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-err {
    --accent: #2f74b5;
    --accent-ink: #8dbdeb;
    --accent-soft: #12263a;
    --on-accent: #ffffff;
    --focus: #8dbdeb;
    --grid: rgba(141, 189, 235, 0.06);
    --glow: rgba(47, 116, 181, 0.2);
  }
}

* { box-sizing: border-box; }
/* scroll-padding keeps focused/anchored content clear of the sticky header */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

/* Accessibility: visible keyboard focus, skip link, reduced motion */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--focus);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card .shot:hover img { transform: none; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent-ink); }
a:hover { color: var(--text); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-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: 68px;
}
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand img { height: 36px; width: auto; display: block; }
.nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a { color: var(--muted); text-decoration: none; padding: 10px 2px; }
.nav a:hover { color: var(--text); }
@media (max-width: 520px) {
  .nav { gap: 16px; font-size: 0.92rem; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 80px;
  border-bottom: 1px solid var(--line);
  background-image:
    radial-gradient(ellipse 60% 80% at 90% 0%, var(--glow), transparent 65%),
    repeating-linear-gradient(45deg, var(--grid) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(-45deg, var(--grid) 0 1px, transparent 1px 30px);
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  max-width: 16ch;
}
.hero h1 em { font-style: normal; color: #a35f08; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero h1 em { color: var(--accent); }
}
.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; }
}
.hero-grid > * { min-width: 0; }
.hero-media { display: flex; justify-content: center; }

/* Home hero: family of icons */
.family {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.family img { width: 44px; height: 44px; border-radius: 11px; }
.family span { font-size: 0.92rem; color: var(--muted); }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.65rem, 4vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.section-intro {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 36px;
}

/* Product cards (home) */
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 800px) {
  .products { grid-template-columns: 1fr 1fr; }
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card .shot {
  display: block;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.card .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
  transition: transform .35s ease;
}
.card .shot:hover img { transform: scale(1.025); }
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px 26px;
}
.card-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.card-title .icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  flex: none;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0;
}
.card h3 a { color: inherit; text-decoration: none; }
.card .tag {
  font-size: 0.88rem;
  color: var(--accent-ink);
  font-weight: 600;
  margin: 2px 0 0;
}
.card-err .tag { color: #0f4c81; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card-err .tag { color: #8dbdeb; }
}
.card p { margin: 0 0 18px; color: var(--muted); }
.card ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.card li {
  font-size: 0.8rem;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.card .actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Buttons */
.btn, .card .visit {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 11px;
  border: 1px solid var(--accent);
  line-height: 1.3;
  transition: filter .15s ease, background .15s ease;
}
.btn-primary, .card .visit { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover, .card .visit:hover { color: var(--on-accent); filter: brightness(1.08); }
.card-err .visit { background: #0f4c81; border-color: #0f4c81; color: #fff; }
.card-err .visit:hover { color: #fff; }
.btn-ghost { color: var(--accent-ink); background: transparent; }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-ink); }

/* About + contact */
.split {
  display: grid;
  gap: 32px;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
}
.split p { margin: 0 0 14px; }
.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.contact-box .email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 4px 0 16px;
  word-break: break-all;
}
.contact-box p { color: var(--muted); }
.contact-box .postal {
  font-style: normal;
  line-height: 1.55;
  margin: 0 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}
.site-footer .legal-line { display: inline-flex; align-items: center; gap: 12px; }
.site-footer .legal-line img { width: 28px; height: 28px; flex: none; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer nav a { display: inline-block; padding: 6px 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Legal pages */
.legal { padding: 56px 0 72px; }
.legal article { max-width: 70ch; }
.legal h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin: 0 0 6px;
}
.legal .updated { color: var(--muted); margin: 0 0 36px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal ul { padding-left: 1.2em; }

/* Product pages */
.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 22px;
}
.crumbs a { color: var(--muted); }
.crumbs span[aria-current] { color: var(--text); }
.product-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
}
.product-title img { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.product-title h1 { margin: 0; }
.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.hero .meta li {
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* Home hero: stroopwafel illustration */
.hero-art {
  position: relative;
  width: min(100%, 460px);
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 10% 8% 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  filter: blur(10px);
}
.hero-art img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(43, 33, 24, .18));
}
@media (max-width: 859px) {
  .hero-art { width: min(80%, 360px); }
}

/* Strooply hero: Waffie */
.waffie {
  position: relative;
  width: min(100%, 380px);
}
.waffie::before {
  content: "";
  position: absolute;
  inset: 8% 6% 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  filter: blur(8px);
}
.waffie img { position: relative; display: block; width: 100%; height: auto; }

/* Showcase image */
.showcase {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #100d08;
}
.showcase img { display: block; width: 100%; height: auto; }
.showcase figcaption {
  padding: 12px 18px;
  font-size: 0.85rem;
  color: #b5a895;
  background: #16110b;
}

/* EasyRoundRobin hero: schedule mockup */
.mock {
  width: min(100%, 420px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 0.9rem;
}
.mock-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
}
.mock-head img { width: 40px; height: 40px; border-radius: 10px; }
.mock-head b { display: block; font-size: 1rem; line-height: 1.2; }
.mock-head small { color: var(--muted); }
.mock-round { padding: 12px 16px 6px; }
.mock-round + .mock-round { border-top: 1px dashed var(--line); }
.mock-round .r {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 6px;
}
.mock-match {
  display: grid;
  grid-template-columns: 58px 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
@media (max-width: 420px) {
  .mock { font-size: 0.84rem; }
  .mock-match { grid-template-columns: 44px 1fr auto 1fr; gap: 6px; }
}
.mock-match .court { font-size: 0.75rem; color: var(--muted); }
.mock-match .team:last-child { text-align: right; }
.mock-match .score {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.mock-match .score i {
  font-style: normal;
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.mock-match .score i.win { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.mock-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.mock-foot span { white-space: nowrap; }
.mock-foot .ok { color: #13795b; font-weight: 600; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mock-foot .ok { color: #5fd3a6; }
}

.prose { max-width: 68ch; }
.prose p { margin: 0 0 16px; }

.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.steps h3, .features h3, .audience h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 6px;
}
.steps p, .features p, .audience p { margin: 0; color: var(--muted); }

.features {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}
.features article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.audience {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .audience { grid-template-columns: repeat(3, 1fr); }
}
.audience article {
  padding: 22px 22px 22px 20px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.tool-list {
  display: grid;
  gap: 28px;
}
@media (min-width: 760px) {
  .tool-list { grid-template-columns: repeat(3, 1fr); }
}
.tool-list h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 10px;
}
.tool-list ul { margin: 0; padding: 0; list-style: none; }
.tool-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.tool-list li a { font-weight: 600; }
.tool-list li span { display: block; font-size: 0.92rem; color: var(--muted); }

.callout {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 28px;
}
.callout h2 { margin-top: 0; }
.callout p { margin: 0 0 16px; }
.callout p:last-child { margin-bottom: 0; }
.callout .btn { margin: 4px 8px 4px 0; }
.callout-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
}
.callout-row img { width: 72px; height: 72px; border-radius: 18px; flex: none; }
.callout-row > div { flex: 1; min-width: 220px; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  max-width: 76ch;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

.fine { font-size: 0.85rem; color: var(--muted); }
