/* ==========================================================================
   The Evals Company — Homepage v2
   Design system: "Sticker sheet" — pastel kiss-cut stickers on backing paper.
   Tokens + components ported from the theevalscompany design system.
   ========================================================================== */

/* ---- Design tokens -------------------------------------------------------- */
:root {
  /* backing paper (the page) */
  --backing-1: #F4F6F8;
  --backing-2: #E9EDF1;
  --backing-gradient: linear-gradient(135deg, var(--backing-1) 0%, var(--backing-2) 60%, var(--backing-1) 100%);
  --paper: var(--backing-1);

  --ink: #211C17;                 /* warm black — text + sticker outlines */
  --white: #FFFFFF;
  --kisscut: #A9B2BC;             /* dashed die-cut line */

  /* sticker fills */
  --lavender: #CDBDF6;
  --lavender-deep: #A98FEE;
  --lavender-tint: #EAE4FB;

  --pistachio: #D8ECB2;
  --pistachio-deep: #AFD470;
  --pistachio-tint: #EEF6DC;

  --peach: #F9CBA6;
  --peach-deep: #F3A362;
  --peach-tint: #FCEADA;

  --blush: #F6B9B4;               /* semantic-only: fail / destructive */
  --blush-deep: #EC8378;
  --blush-tint: #FBE4E2;

  /* neutrals */
  --stone: #DDE2E7;
  --text-secondary: #5C564E;
  --text-tertiary: #7A828C;

  /* semantic aliases */
  --text-primary: var(--ink);
  --status-pass: var(--pistachio);
  --status-fail: var(--blush);
  --status-running: var(--lavender);
  --focus-ring: 3px solid var(--lavender-deep);

  /* type */
  --font-display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Archivo', 'Helvetica Neue', Helvetica, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --font-hand: 'Caveat', cursive;

  --text-display: 92px;
  --text-h1: 64px;
  --text-h1-small: 48px;
  --text-h2: 38px;
  --text-h3: 26px;
  --text-body-lg: 20px;
  --text-body: 17px;
  --text-body-sm: 15px;
  --text-caption: 13px;
  --text-micro: 11px;
  --text-hand: 22px;

  --lh-display: 0.98;
  --lh-heading: 1.05;
  --lh-body: 1.55;
  --tracking-display: 0.01em;
  --tracking-label: 0.06em;

  /* spacing + layout */
  --container: 1200px;
  --card-pad: 24px;
  --section-gap: 96px;

  /* borders, radii, shadows, motion */
  --border-width: 2px;
  --border: 2px solid var(--ink);
  --kisscut-border: 2px dashed var(--kisscut);
  --kisscut-pad: 6px;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 6px rgba(33, 28, 23, 0.18);
  --shadow-md: 3px 5px 12px rgba(33, 28, 23, 0.22);
  --shadow-lg: 6px 8px 18px rgba(33, 28, 23, 0.30);
  --shadow-accent: 0 6px 18px rgba(205, 189, 246, 0.55);

  --tilt-1: -2deg;
  --tilt-2: 1.5deg;
  --ease-snap: cubic-bezier(0.2, 0.9, 0.3, 1.15);
  --dur-fast: 120ms;
  --dur-base: 200ms;
}

/* ---- Base reset ----------------------------------------------------------- */
* { box-sizing: border-box; }

/* `hidden` must win over inline display (used to toggle dialog states) */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--backing-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

a { color: var(--ink); }
a:hover { color: var(--lavender-deep); }

img { max-width: 100%; }

/* Outlined "cut number" used in the audit list and calendar */
.outnum {
  font-family: var(--font-display);
  line-height: 0.78;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

/* ==========================================================================
   Components (ported 1:1 from the design-system JSX specs)
   ========================================================================== */

/* ---- Button --------------------------------------------------------------- */
.btn {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;                /* md */
  height: 44px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: var(--border);
  background: var(--lavender);    /* primary */
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-snap),
              box-shadow var(--dur-fast) var(--ease-snap);
}
.btn:hover  { box-shadow: var(--shadow-md); transform: translate(-1px, -2px) rotate(-1deg); }
.btn:active { box-shadow: none; transform: translate(1px, 1px); }

.btn--sm { height: 36px; padding: 0 16px; font-size: 12px; }
.btn--lg { height: 54px; padding: 0 30px; font-size: 15px; }

.btn--secondary { background: var(--white); }
.btn--accent    { background: var(--pistachio); }
.btn--contrast  { background: var(--ink); color: var(--backing-1); }
.btn--danger    { background: var(--blush); }

.btn--ghost {
  background: transparent;
  border: 2px solid transparent;
  box-shadow: none;
  transform: none;
}
.btn--ghost:hover  { text-decoration: underline; text-underline-offset: 4px; box-shadow: none; transform: none; }
.btn--ghost:active { transform: none; }

.btn--glow { box-shadow: var(--shadow-accent); }
.btn--glow:hover { box-shadow: var(--shadow-accent), var(--shadow-md); }

/* kiss-cut die line wrapping a button */
.kisscut {
  display: inline-block;
  border: var(--kisscut-border);
  border-radius: var(--radius-pill);
  padding: var(--kisscut-pad);
}
/* full-width (fullWidth) variant: wrapper + button fill their container */
.kisscut--block { display: block; }
.btn--block { width: 100%; }

/* ---- Tag ------------------------------------------------------------------ */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  background: var(--pistachio);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius-xs);
  padding: 3px 8px;
  white-space: nowrap;
}
.tag--peach    { background: var(--peach); }
.tag--lavender { background: var(--lavender); }
.tag--white    { background: var(--white); }
.tag--ink      { background: var(--ink); color: var(--paper); }

/* ---- Badge ---------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  background: var(--white);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  white-space: nowrap;
}
.badge--sm   { font-size: var(--text-micro); padding: 2px 8px; }
.badge--pass { background: var(--status-pass); }
.badge--fail { background: var(--status-fail); }

/* ---- Card ----------------------------------------------------------------- */
.card {
  background: var(--white);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--card-pad);
  position: relative;
  font-family: var(--font-body);
}
.card--shadow-sm { box-shadow: var(--shadow-sm); }

/* ---- Dialog --------------------------------------------------------------- */
.dialog-scrim {
  position: fixed;
  inset: 0;
  background: rgba(33, 28, 23, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.dialog-scrim[hidden] { display: none; }

.dialog {
  width: 480px;
  max-width: 100%;
  min-width: 0;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  font-family: var(--font-body);
}

@media (max-width: 480px) {
  .dialog-scrim { padding: 12px; }
  .dialog { padding: 20px; border-radius: var(--radius-md); }
}
.dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.dialog__title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  text-transform: uppercase;
  font-size: var(--text-h3);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-display);
  font-weight: 400;
}
.dialog__close {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  border: var(--border);
  background: var(--white);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.dialog__body { margin-top: 12px; font-size: var(--text-body); line-height: var(--lh-body); }

/* ---- Input / field -------------------------------------------------------- */
.field { display: grid; gap: 6px; font-family: var(--font-body); }
.field > label { font-weight: 700; font-size: var(--text-body-sm); }
.field input {
  font-family: var(--font-body);
  font-size: var(--text-body);
  padding: 11px 14px;
  background: var(--white);
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius-sm);
  width: 100%;
  outline: none;
  transition: box-shadow var(--dur-fast) var(--ease-snap);
}
.field input:focus { outline: var(--focus-ring); outline-offset: 2px; box-shadow: var(--shadow-sm); }
.field--error input { border: 2px solid var(--blush-deep); }
.field__msg { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--text-secondary); }
.field--error .field__msg { color: var(--blush-deep); }

/* ---- Mobile persistent CTA (fixed to the bottom of the screen) ------------ */
.sticky-cta { display: none; }

/* ==========================================================================
   Page layout helpers
   ========================================================================== */
.wrap { }

/* 7-day calendar grid */
.cal-head, .cal-week { display: grid; grid-template-columns: repeat(5, 1fr); }

@media (max-width: 900px) {
  .cols2    { grid-template-columns: 1fr !important; }
  .steps    { grid-template-columns: 1fr !important; }
  .cal-head { display: none !important; }
  .cal-week { grid-template-columns: 1fr !important; }
  .cal-span { grid-column: auto !important; }
  .nav-cta-lg { display: none; }

  /* Persistent full-width "Book a discovery call" pinned to the bottom */
  .sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;                    /* below the dialog scrim (100) */
    background: var(--backing-1);
    border-top: var(--border);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 14px rgba(33, 28, 23, 0.14);
  }
  /* the sticky button rests flat — no peel rotate in a full-width bar */
  .sticky-cta .btn:hover { transform: none; box-shadow: var(--shadow-sm); }
  .sticky-cta .btn:active { transform: translate(0, 1px); box-shadow: none; }

  /* extend the ink footer under the bar so no page background peeks through */
  .site-footer > .wrap {
    padding-bottom: calc(40px + 80px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 640px) {
  .wrap  { padding-left: 20px !important; padding-right: 20px !important; }
  .h1    { font-size: clamp(38px, 11vw, 60px) !important; }
  .sec-h { font-size: clamp(30px, 8vw, 44px) !important; }

  /* Audit deliverables: smaller outlined numbers + tighter number column */
  .audit-list > div { grid-template-columns: 48px 1fr !important; gap: 14px !important; padding: 22px 22px !important; }
  .audit-list .outnum { font-size: 38px !important; }

  /* "What is an eval" dictionary card */
  .def-card { padding: 28px 22px !important; }
  .def-word { font-size: 52px !important; }
  .def-chip { margin-left: 0 !important; }
}
