/* ==========================================================================
   DigiD Growth — Design Tokens
   "Proof Sheet": an analog contact-sheet / darkroom-proof aesthetic.
   ========================================================================== */

:root {
  /* ---- Color tokens ---- */
  --ink:    #14171F;   /* primary dark background — warm charcoal-navy */
  --paper:  #F1ECE1;   /* warm parchment — light section backgrounds, card stock */
  --marker: #D6FF3F;   /* chartreuse highlighter — signature accent, used sparingly */
  --clay:   #E3572F;   /* warm terracotta-red — secondary accent, CTA buttons only */
  --ash:    #8A8D95;   /* muted neutral — secondary text, quiet borders on dark sections */
  --rule:   #2A2E39;   /* hairline dividers on dark sections */

  --text-on-ink: var(--paper);
  --text-on-paper: var(--ink);

  /* ---- Type tokens ---- */
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  /* ---- Layout ---- */
  --container-max: 1180px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(3rem, 6vw + 1rem, 8rem);

  /* ---- Fluid type scale ---- */
  --step-h1: clamp(2.75rem, 2rem + 3.5vw, 6rem);
  --step-h2: clamp(2rem, 1.5rem + 2.2vw, 3.5rem);
  --step-h3: clamp(1.375rem, 1.15rem + 1vw, 2rem);
  --step-body: clamp(1rem, 0.94rem + 0.25vw, 1.125rem);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-stroke: 700ms;

  /* ---- Radius ---- */
  --radius-btn: 6px;
  --radius-card: 16px;
}

/* ==========================================================================
   Base reset
   ========================================================================== */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 0.98;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--step-h1); font-weight: 800; }
h2 { font-size: var(--step-h2); font-weight: 800; }
h3 { font-size: var(--step-h3); font-weight: 700; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; }

/* Visible keyboard focus — signature marker color everywhere */
:focus-visible {
  outline: 3px solid var(--marker);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   Layout utility
   ========================================================================== */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 150ms var(--ease-out),
    background-color 150ms var(--ease-out),
    border-color 150ms var(--ease-out),
    color 150ms var(--ease-out);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--clay);
  color: var(--paper);
  border-color: var(--clay);
}

.btn-primary:hover {
  background: #cc4a24;
  border-color: #cc4a24;
}

.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

/* On ink (dark) sections, flip secondary button to paper-colored border/text */
.section-ink .btn-secondary,
[data-section="ink"] .btn-secondary {
  border-color: var(--paper);
  color: var(--paper);
}

.section-ink .btn-secondary:hover,
[data-section="ink"] .btn-secondary:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ==========================================================================
   Eyebrow label
   ========================================================================== */

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.75em;
}

/* ==========================================================================
   Marker stroke — signature highlighter underline / circling element
   ========================================================================== */

.marker-wrap {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  isolation: isolate;
}

.marker-wrap svg.marker-stroke {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -0.12em;
  width: 108%;
  height: 0.5em;
  transform: rotate(-1deg);
  pointer-events: none;
  z-index: -1;
  overflow: visible;
}

svg.marker-stroke path {
  stroke: var(--marker);
  stroke-width: 12;
  stroke-linecap: round;
  fill: none;
  opacity: 0.85;
}

/* Rounded-rect variant — circles the recommended pricing tier card border */
svg.marker-stroke.marker-stroke--card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-1deg);
}

svg.marker-stroke.marker-stroke--card path {
  stroke-width: 6;
  fill: none;
  rx: 16;
}

/* ==========================================================================
   Cadence dots — posting-frequency data visualization (Mon..Sun)
   ========================================================================== */

.cadence-dots {
  display: flex;
  gap: 0.5em;
  align-items: flex-end;
  flex-wrap: wrap;
}

.cadence-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
}

.cadence-dot .cadence-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ash);
}

.cadence-dot .cadence-mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 1.5px solid var(--ash);
  background: transparent;
}

.cadence-dot.is-posting .cadence-mark {
  background: var(--clay);
  border-color: var(--clay);
}
