/* ==========================================================================
   EventSpaice — marketing site styles
   Single stylesheet. No external resources, no webfonts, no tracking.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Neutrals — shared with the SalesSpaice family palette */
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --black: #0a0a0a;

  /* Accent — EventSpaice's own signature */
  --accent: #b45309;          /* 5.2:1 on white — safe for text */
  --accent-strong: #92400e;
  --accent-bright: #f59e0b;   /* decorative only */
  --accent-tint: #fffbeb;
  --accent-tint-line: #fde68a;

  /* Typography — system stack, self-contained by design */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";

  /* Rhythm */
  --radius: 12px;
  --radius-lg: 20px;
  --maxw: 1140px;
  --gutter: 20px;
  --section-y: 64px;

  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.06);
  --shadow-md: 0 4px 16px rgba(10, 10, 10, 0.07);
  --shadow-lg: 0 18px 48px rgba(10, 10, 10, 0.1);
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --section-y: 96px;
  }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  color: var(--gray-900);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 0 0 16px;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.125rem, 7vw, 3.75rem);
  letter-spacing: -0.032em;
}

h2 {
  font-size: clamp(1.625rem, 4.2vw, 2.5rem);
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.012em;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--gray-900);
  text-underline-offset: 3px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section--tint {
  background: var(--gray-50);
  border-block: 1px solid var(--gray-200);
}

.section__head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section__head p {
  font-size: 1.0625rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--gray-900);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease;
}

.btn--primary {
  background: var(--gray-900);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--accent-strong);
}

.btn--lg {
  padding: 16px 28px;
  font-size: 1.0625rem;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.875rem;
}

.btn--onDark {
  background: var(--white);
  color: var(--gray-900);
}

.btn--onDark:hover {
  background: var(--accent-bright);
  color: var(--black);
}

.btn:active {
  transform: translateY(1px);
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

/* Placeholder text logo — swap for an <img> when artwork is ready. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  text-decoration: none;
  white-space: nowrap;
}

.logo__mark {
  flex: none;
  width: 30px;
  height: 30px;
}

.logo__accent {
  color: var(--accent);
}

/* Footer wordmark: same lockup, no leading mark, so no flex gap. */
.logo--footer {
  gap: 0;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.18s ease;
}

.site-nav a:hover {
  color: var(--gray-900);
}

@media (min-width: 880px) {
  .site-nav {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 56px 64px;
  background:
    radial-gradient(60rem 30rem at 82% -12%, var(--accent-tint), transparent 70%),
    linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
  border-bottom: 1px solid var(--gray-200);
}

@media (min-width: 768px) {
  .hero {
    padding-block: 88px 104px;
  }
}

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

/* Side by side only once the art column is wide enough for the phone and the
   record cards to sit together without the card text wrapping. */
@media (min-width: 1060px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
  }
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 34em;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero__note {
  margin: 20px 0 0;
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Visible address fallback, for visitors whose browser has no mail handler. */
.hero__note + .hero__note {
  margin-top: 6px;
}

.mail-link {
  color: var(--gray-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gray-300);
}

.mail-link:hover {
  color: var(--accent-strong);
  text-decoration-color: var(--accent);
}

/* --- Hero illustration: phone → CRM, pure CSS/SVG ------------------------- */
.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
}

.art-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.phone {
  position: relative;
  z-index: 2;
  width: 246px;
  margin-inline: auto;
  /* On wider screens the phone anchors left and the CRM cards sit beside it. */
  padding: 12px;
  border: 1px solid var(--gray-300);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.phone__screen {
  border-radius: 18px;
  background: var(--gray-900);
  padding: 18px 16px 20px;
  color: var(--gray-100);
}

.phone__bar {
  width: 54px;
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--gray-700);
}

.phone__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 10px;
}

.phone__note {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--gray-200);
  margin-bottom: 14px;
}

.phone__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.phone__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gray-200);
}

.art-cards {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: -28px;
  padding-top: 44px;
}

@media (min-width: 560px) {
  .art-stage {
    display: flex;
    align-items: center;
    max-width: 520px;
  }

  .phone {
    flex: 0 0 auto;
    margin: 0;
  }

  .art-cards {
    position: static;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 0 0 -14px; /* slight tuck behind the phone */
    padding: 0;
  }
}

.art-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-800);
}

.art-card span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
}

.art-card__tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-line);
  color: var(--accent-strong);
}

/* --------------------------------------------------------------------------
   7. Generic card grids
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 560px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  padding: 26px 24px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.card p:last-child {
  margin-bottom: 0;
}

.card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-line);
  color: var(--accent-strong);
}

/* Problem section cards get a quiet numeric marker instead of an icon. */
.card--problem {
  position: relative;
  padding-top: 28px;
}

.card__num {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   8. How it works
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}

@media (min-width: 840px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.step__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gray-900);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.step h3 {
  font-size: 1.25rem;
}

.step p {
  color: var(--gray-600);
  margin-bottom: 20px;
}

.step__art {
  margin-top: auto;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}

.step__art svg {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   9. Benefits
   -------------------------------------------------------------------------- */
.benefit h3 {
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   10. Reps section
   -------------------------------------------------------------------------- */
.reps {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 36px 28px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 840px) {
  .reps {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 48px 44px;
    gap: 56px;
  }
}

.reps p {
  color: var(--gray-600);
  font-size: 1.0625rem;
  margin-bottom: 0;
}

.reps__list {
  display: grid;
  gap: 12px;
}

.reps__list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
}

.reps__list svg {
  flex: none;
  margin-top: 2px;
  color: var(--accent-strong);
}

/* --------------------------------------------------------------------------
   11. Closing CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-y);
  background:
    radial-gradient(44rem 22rem at 78% 8%, rgba(245, 158, 11, 0.16), transparent 70%),
    var(--gray-900);
  color: var(--gray-300);
  text-align: center;
}

.cta h2 {
  color: var(--white);
  max-width: 18ch;
  margin-inline: auto;
}

.cta p {
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: 28px;
  color: var(--gray-400);
}

.cta__fallback {
  margin: 20px 0 0;
  font-size: 0.875rem;
  color: var(--gray-400);
}

.cta__fallback a {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gray-600);
}

.cta__fallback a:hover {
  color: var(--accent-bright);
  text-decoration-color: var(--accent-bright);
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: 48px 40px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  font-size: 0.9375rem;
}

.site-footer__grid {
  display: grid;
  gap: 32px;
  margin-bottom: 36px;
}

@media (min-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
  }
}

.site-footer__blurb {
  max-width: 34ch;
  margin: 14px 0 0;
  color: var(--gray-600);
}

.site-footer h2 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 14px;
}

.site-footer__links {
  display: grid;
  gap: 10px;
}

.site-footer__links a,
.site-footer__blurb a {
  color: var(--gray-700);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--gray-300);
  padding-bottom: 1px;
}

.site-footer__links a {
  justify-self: start;
}

.site-footer__links a:hover,
.site-footer__blurb a:hover {
  color: var(--accent-strong);
  border-bottom-color: var(--accent);
}

.site-footer__legal {
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
}
