/* BookIt — Easify Solutions
   One stylesheet for the whole site. Tokens first, then layout, then pages. */

:root {
  /* Emerald is the customer app's real brand colour; the blue is the manager
     app's. They are used to mean those two things and nothing else. */
  --brand: #059669;
  --brand-deep: #047857;
  --brand-wash: #ECFDF5;
  --manager: #0A7EA4;
  --manager-wash: #ECF7FB;

  /* Neutrals carry a slight green bias so they sit with the brand rather than
     reading as generic grey. */
  --ink: #0C1A15;
  --body: #35453E;
  --muted: #5F6F68;
  --ground: #FBFBF9;
  --raised: #FFFFFF;
  --line: #E3E8E4;
  --line-soft: #EFF2F0;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(12, 26, 21, 0.04), 0 8px 24px rgba(12, 26, 21, 0.06);

  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --text: 'Karla', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --wrap: 1080px;
  --prose: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #10B981;
    --brand-deep: #34D399;
    --brand-wash: #10261D;
    --manager: #38BDF8;
    --manager-wash: #0C2430;

    --ink: #ECF2EE;
    --body: #C2CEC7;
    --muted: #8C9C94;
    --ground: #0A100D;
    --raised: #121A16;
    --line: #24312B;
    --line-soft: #1B2521;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

a {
  color: var(--brand-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

img {
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark span {
  color: var(--brand);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current='page'] {
  color: var(--ink);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

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

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: #fff;
}

.btn-quiet {
  background: var(--raised);
  color: var(--ink);
  border-color: var(--line);
}

.btn-quiet:hover {
  color: var(--ink);
  border-color: var(--muted);
}

/* Store buttons. Deliberately plain text rather than Apple/Google badge
   artwork, which has its own brand guidelines and must be their own files. */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-btn {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--raised);
  text-decoration: none;
  min-width: 152px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.store-btn:hover {
  transform: translateY(-1px);
  border-color: var(--muted);
}

.store-btn small {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.store-btn strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 72px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-wash);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.2rem);
  font-weight: 800;
  max-width: 16ch;
  margin-bottom: 20px;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 32px;
}

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

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line-soft);
}

.section-head {
  max-width: 56ch;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

/* ---------- The two apps ---------- */

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.app-card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.app-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
}

.app-card > p {
  margin: 0;
  color: var(--muted);
}

.app-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}

.app-card--player .app-tag {
  color: var(--brand-deep);
  background: var(--brand-wash);
}

.app-card--venue .app-tag {
  color: var(--manager);
  background: var(--manager-wash);
}

.app-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 15.5px;
}

.app-card li {
  padding-left: 22px;
  position: relative;
}

.app-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.app-card--venue li::before {
  background: var(--manager);
}

.app-card .store-row {
  margin-top: auto;
  padding-top: 6px;
}

/* ---------- Steps: a real sequence, so it is numbered ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  counter-reset: step;
}

.step {
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- Prose pages ---------- */

.page-head {
  padding: 64px 0 34px;
}

.page-head h1 {
  font-size: clamp(2.1rem, 4.6vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.page-head .meta {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}

.prose {
  max-width: var(--prose);
  padding-bottom: 80px;
}

.prose h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 44px 0 12px;
}

.prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 8px;
}

.prose p,
.prose li {
  font-size: 16.5px;
}

.prose ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.prose li::marker {
  color: var(--brand);
}

.callout {
  background: var(--raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 26px 0;
}

.callout p {
  margin: 0;
}

.callout p + p {
  margin-top: 10px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 26px;
}

.contact-card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.contact-card p {
  margin: 0;
  font-size: 16.5px;
  color: var(--ink);
}

.contact-card a {
  font-weight: 700;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.hours td {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}

.hours tr:last-child td {
  border-bottom: 0;
}

.hours td:last-child {
  text-align: right;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.table-scroll {
  overflow-x: auto;
}

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

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--raised);
  padding: 52px 0 36px;
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-grid h4 {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-grid a {
  color: var(--body);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--brand);
}

.footer-about p {
  margin: 0;
  color: var(--muted);
  max-width: 38ch;
  font-size: 14.5px;
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .site-nav {
    gap: 16px;
    font-size: 14px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 460px) {
  .site-nav .nav-hide {
    display: none;
  }

  .store-btn {
    min-width: 0;
    flex: 1 1 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover,
  .store-btn:hover {
    transform: none;
  }

  * {
    transition: none !important;
  }
}
