/* Colours from BeeOpusManagementWebAdmin/src/theme/tokens.ts. White text sits on brand-700 or
   darker: brand-500 against white is below the 4.5:1 contrast of WCAG AA. */
:root {
  --brand-100: #fcebc9;
  --brand-500: #ec7e14;
  --brand-700: #ad3e10;
  --brand-800: #8d3013;
  --accent-100: #dff2ff;
  --accent-500: #0077b6;
  --accent-700: #055b87;
  --neutral-100: #ffffff;
  --neutral-200: #f5f6f7;
  --neutral-300: #edeff1;
  --neutral-400: #c5ccd2;
  --neutral-600: #6b7780;
  --neutral-700: #49535b;
  --neutral-900: #25282c;
  --success-500: #16a34a;
  --radius: 14px;
  --page: 1120px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--neutral-100);
  color: var(--neutral-900);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--accent-500); text-underline-offset: 3px; }
a:hover { color: var(--accent-700); }

:focus-visible { outline: 3px solid var(--accent-500); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--neutral-900); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; color: #fff; }

/* Header */
.site-header { border-bottom: 1px solid var(--neutral-300); background: var(--neutral-100); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--neutral-900); text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand img { width: 34px; height: 35px; }
.brand:hover { color: var(--neutral-900); }
.site-nav { display: none; margin-left: auto; gap: 24px; }
.site-nav a { color: var(--neutral-700); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: var(--neutral-900); text-decoration: underline; }
.site-header .btn { margin-left: auto; }
@media (min-width: 900px) {
  .site-nav { display: flex; }
  .site-header .btn { margin-left: 8px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--brand-700); color: #fff; }
.btn-primary:hover { background: var(--brand-800); color: #fff; }
.btn-secondary { background: var(--neutral-100); color: var(--neutral-900); border-color: var(--neutral-400); }
.btn-secondary:hover { border-color: var(--neutral-700); color: var(--neutral-900); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--brand-100) 0%, var(--neutral-100) 100%); padding: 40px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 800; max-width: 18ch; }
.hero .lead { margin-top: 16px; font-size: 1.15rem; color: var(--neutral-700); max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions .btn { flex: 1 1 200px; }
@media (min-width: 560px) { .actions .btn { flex: 0 0 auto; } }
.hero-shot { justify-self: center; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero .wrap { grid-template-columns: 1.3fr 1fr; }
}

/* Phone frame around the app captures */
.phone {
  margin: 0; width: min(280px, 100%);
  background: var(--neutral-900); padding: 10px; border-radius: 34px;
  box-shadow: 0 18px 40px rgba(15, 26, 36, 0.18);
}
.phone img { border-radius: 26px; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--neutral-300); }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--neutral-200); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.eyebrow { display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 8px; }
.section-head h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); font-weight: 800; }
.section-head p { margin-top: 12px; color: var(--neutral-700); }
@media (min-width: 900px) { section { padding: 88px 0; } }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--neutral-100); border: 1px solid var(--neutral-300); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.card h3::before { content: ""; flex: 0 0 10px; height: 10px; border-radius: 3px; background: var(--brand-500); }
.card p { margin-top: 8px; color: var(--neutral-700); font-size: 0.98rem; }

/* App section */
.app-grid { display: grid; gap: 40px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.features li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.features li::before {
  content: ""; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230077B6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.features strong { display: block; }
.features span { color: var(--neutral-700); font-size: 0.98rem; }

.shots { list-style: none; margin: 0; padding: 4px 16px 16px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; }
.shots li { flex: 0 0 220px; scroll-snap-align: center; }
.shots .phone { width: 100%; border-radius: 28px; padding: 8px; }
.shots .phone img { border-radius: 21px; }
.shots figcaption { margin-top: 10px; text-align: center; font-size: 0.92rem; color: var(--neutral-700); }
.shots figure { margin: 0; }
@media (min-width: 900px) {
  .app-grid { grid-template-columns: 1fr 1.25fr; align-items: center; }
  .shots { overflow: visible; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--neutral-100); border-radius: var(--radius); padding: 24px; border: 1px solid var(--neutral-300); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--neutral-900); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.steps h3 { font-size: 1.15rem; }
.steps p { margin-top: 8px; color: var(--neutral-700); }

/* Download */
.download { display: grid; gap: 20px; align-items: center; }
.download .section-head { margin-bottom: 0; }
@media (min-width: 900px) { .download { grid-template-columns: 1.4fr 1fr; } }
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; flex-direction: column; justify-content: center; min-width: 190px; min-height: 56px;
  padding: 6px 18px; border-radius: 10px; background: #000; color: #fff; text-decoration: none; line-height: 1.2;
}
.store-badge:hover { color: #fff; background: var(--neutral-900); }
.store-badge small { font-size: 0.75rem; }
.store-badge b { font-size: 1.15rem; }
.store-badge[hidden] { display: none; }
.store-pending { font-weight: 600; color: var(--neutral-900); }
.note { color: var(--neutral-700); max-width: 60ch; }

/* Contact */
.contact { text-align: center; }
.contact .section-head { margin: 0 auto 0; }
.contact-mail { display: inline-block; margin-top: 20px; font-size: 1.25rem; font-weight: 700; word-break: break-all; }

/* Footer */
.site-footer { background: var(--neutral-900); color: #d9dee2; padding: 32px 0; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--brand-100); }

/* Document pages (privacy, support) */
.doc { max-width: 780px; margin: 0 auto; padding: 40px 16px 72px; }
.doc h1 { font-size: clamp(1.8rem, 5vw, 2.3rem); font-weight: 800; }
.doc .meta { color: var(--neutral-600); margin: 6px 0 28px; }
.doc h2 { font-size: 1.2rem; margin: 36px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--brand-500); scroll-margin-top: 16px; }
.doc p, .doc ul, .doc ol { margin: 0 0 12px; }
.doc li { margin-bottom: 6px; }
.doc .table-scroll { overflow-x: auto; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin-bottom: 12px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--neutral-300); }
.doc th { width: 36%; font-weight: 600; }
.callout { background: var(--accent-100); border-left: 4px solid var(--accent-500); padding: 14px 16px; border-radius: 8px; margin: 0 0 16px; }
