/* marketing-base.css — shared base for inifo product marketing sites.
 *
 * SOURCE OF TRUTH: ~/.claude/skills/marketing-site/assets/marketing-base.css
 * Never edit a vendored copy. Edit the source, then re-vendor to every consumer
 * in the same change:
 *   cp ~/.claude/skills/marketing-site/assets/marketing-base.css <project>/marketing-site/
 * Consumers: playpause, easydue, sharespeak.
 *
 * This file owns structure only: reset, layout, typography scale, buttons,
 * cards, header, footer. It never sets a brand color directly — it consumes the
 * semantic custom properties below, which each site overrides in its own
 * site.css. That is what lets playpause stay dark/teal and easydue stay
 * light/orange while sharing every layout rule.
 */

:root {
  /* Overridden per site. These defaults are a neutral light theme. */
  --bg: #ffffff;
  --panel: #f6f7f9;
  --panel-2: #eef0f4;
  --text: #14161a;
  --muted: #5f6672;
  --line: #e2e5ea;
  --accent: #2f6fed;
  --accent-2: #1d4fbe;
  --on-accent: #ffffff;

  --max: 1080px;
  --radius: 14px;
  --gap: 1.25rem;

  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }
a:hover { color: var(--accent-2); }

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 8px;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* --- Header ---------------------------------------------------------------- */

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  padding-block: 0.9rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.nav-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }

/* --- Sections -------------------------------------------------------------- */

section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.hero { text-align: center; }
.hero .tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 60ch;
  margin-inline: auto;
}

.alt { background: var(--panel); }

.grid {
  display: grid;
  gap: var(--gap);
  /* 280px keeps card headings from wrapping mid-phrase at the 1040-1120px
     max widths these sites use — it lands on 3 columns, not 4. */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.alt .card { background: var(--panel-2); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; margin-bottom: 1rem; padding-left: 2.5rem; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  font-size: 0.9rem;
}

/* --- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-2); color: var(--on-accent); }
.btn-secondary { border-color: var(--line); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.coming-soon { color: var(--muted); font-weight: 600; }

/* --- Legal / prose pages --------------------------------------------------- */

.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .updated { color: var(--muted); font-size: 0.95rem; }

/* --- Footer ---------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-block: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap);
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a, .footer-inner a { color: var(--muted); text-decoration: none; }
.footer-links a:hover, .footer-inner a:hover { color: var(--text); }

/* Every product site carries this back to the company site. */
.footer-parent a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
