/*
 * WhichOrg website, in the Guru marketing look (GURU-APP-CONVENTIONS.md; reference:
 * WorkShopGuru's marketing site): Inter, slate neutrals, white/slate-50 bands, one
 * per-app brand hue. WhichOrg's hue is teal #0c7b83.
 *
 * Static, no JavaScript, and nothing loaded from anyone but whichorg.com — the font is
 * served from /fonts — matching the product's privacy claim (spec §5.4). The CSP also
 * forbids inline styles, so everything is a class here.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
}

:root {
  /* Brand (the one per-app hue) */
  --brand: #0c7b83;
  --brand-dark: #09626a;
  --brand-soft: #e8f5f6;
  --brand-line: #b8dfe2;

  /* Tailwind slate */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  /* Org colours for illustrations (the brand mark, the switcher example) */
  --org-a: #13366b;
  --org-b: #1b6b3a;
  --org-c: #0c7b83;
  --org-d: #9c4221;

  --wrap: 72rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #fff;
  color: var(--slate-900);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 1rem; }
@media (min-width: 40rem) { .wrap { padding-inline: 1.5rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- icons (inline lucide SVGs) ---------- */

.icon {
  width: 1.25rem; height: 1.25rem; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- buttons (one system) ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600; font-size: 1rem; line-height: 1.5;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--slate-700); border-color: var(--slate-300); }
.btn-outline:hover { border-color: var(--slate-400); background: var(--slate-50); color: var(--slate-900); }
.btn-light { background: #fff; color: var(--slate-900); }
.btn-light:hover { background: var(--slate-100); color: var(--slate-900); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn-sm { padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn[aria-disabled='true'] { background: var(--slate-100); color: var(--slate-500); border-color: var(--slate-200); cursor: default; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.site-header .wrap { height: 5rem; display: flex; align-items: center; gap: 1.5rem; }

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--slate-900); text-decoration: none;
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em;
}
.brand:hover { color: var(--slate-900); }
.brand b { color: var(--brand); font-weight: 800; }
.brand-mark {
  width: 1.9rem; height: 1.9rem; border-radius: 7px;
  border: 4px solid var(--org-b);
  box-shadow: inset 0 0.5rem 0 0 var(--org-a);
  background: #fff;
}

.site-nav { display: none; gap: 1.75rem; margin-left: 1rem; }
.site-nav a { color: var(--slate-600); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.site-nav a:hover { color: var(--slate-900); }
.header-actions { display: none; gap: 0.75rem; margin-left: auto; }

@media (min-width: 60rem) {
  .site-nav, .header-actions { display: flex; }
  .mobile-nav { display: none; }
}

/* Mobile menu: <details>, so it works without JavaScript. */
.mobile-nav { margin-left: auto; position: relative; }
.mobile-nav summary {
  list-style: none; cursor: pointer; padding: 0.5rem; border-radius: 0.5rem; color: var(--slate-700);
  display: flex;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary:hover { background: var(--slate-100); }
.mobile-nav summary .icon { width: 1.5rem; height: 1.5rem; }
.mobile-nav[open] .menu {
  position: absolute; right: 0; top: calc(100% + 0.75rem);
  width: min(18rem, calc(100vw - 2rem));
  background: #fff; border: 1px solid var(--slate-200); border-radius: 1rem;
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.25);
  padding: 0.75rem; display: grid; gap: 0.25rem;
}
.mobile-nav .menu a:not(.btn) {
  padding: 0.6rem 0.75rem; border-radius: 0.5rem; color: var(--slate-700); text-decoration: none; font-weight: 500;
}
.mobile-nav .menu a:not(.btn):hover { background: var(--slate-50); color: var(--slate-900); }
.mobile-nav .menu .btn { margin-top: 0.5rem; }

/* ---------- bands ---------- */

.band { padding-block: 4rem; }
.band-white { background: #fff; }
.band-slate { background: var(--slate-50); border-block: 1px solid var(--slate-100); }
.band-dark { background: var(--slate-900); color: #fff; }

h1, h2, h3 { color: var(--slate-900); margin: 0; }
h2 { font-size: 1.875rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; }
@media (min-width: 40rem) { h2 { font-size: 2.25rem; } }
h3 { font-size: 1.125rem; line-height: 1.4; font-weight: 600; }

.section-head { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.section-head p { margin: 1rem 0 0; font-size: 1.125rem; color: var(--slate-500); }
.kicker {
  display: inline-block; margin-bottom: 0.75rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand);
}

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden; background: #fff;
  padding-block: 4rem 5rem;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero::before {
  /* the blurred brand glow */
  content: ''; position: absolute; width: 40rem; height: 40rem; right: -10rem; top: -14rem;
  background: radial-gradient(circle, rgba(12, 123, 131, 0.22), transparent 65%);
  pointer-events: none;
}
.hero::after {
  /* fade the grid out towards the bottom */
  content: ''; position: absolute; inset: auto 0 0 0; height: 8rem;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 60rem) { .hero .wrap { grid-template-columns: 1fr 1.05fr; } }

.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.875rem; border-radius: 999px;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  color: var(--brand-dark); font-size: 0.875rem; font-weight: 600;
}
.pill .icon { width: 1rem; height: 1rem; }

.hero h1 {
  margin-top: 1.5rem;
  font-size: 2.25rem; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em;
}
@media (min-width: 40rem) { .hero h1 { font-size: 3rem; } }
.hero h1 .accent { color: var(--brand); }
.lede { margin: 1.5rem 0 0; font-size: 1.125rem; color: var(--slate-500); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-note { margin-top: 1.25rem; font-size: 0.875rem; color: var(--slate-500); display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.hero-note span { display: inline-flex; align-items: center; gap: 0.375rem; }
.hero-note .icon { width: 1rem; height: 1rem; color: var(--brand); }

.shot {
  border-radius: 1rem; overflow: hidden; background: #fff;
  border: 1px solid var(--slate-200);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}
.shot-caption { margin: 0.75rem 0 0; font-size: 0.8125rem; color: var(--slate-500); text-align: center; }

/* ---------- feature cards ---------- */

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: #fff; border: 1px solid var(--slate-200); border-radius: 1rem; padding: 1.5rem; }
.card p { margin: 0.5rem 0 0; color: var(--slate-500); }
.tile {
  width: 2.75rem; height: 2.75rem; border-radius: 0.75rem;
  display: grid; place-items: center; margin-bottom: 1rem;
}
.tile .icon { width: 1.4rem; height: 1.4rem; }
.t-blue { background: #dbeafe; color: #1e40af; }
.t-cyan { background: #cffafe; color: #155e75; }
.t-yellow { background: #fef9c3; color: #854d0e; }
.t-amber { background: #fef3c7; color: #92400e; }
.t-violet { background: #ede9fe; color: #5b21b6; }
.t-green { background: #dcfce7; color: #166534; }
.t-teal { background: var(--brand-soft); color: var(--brand-dark); }

/* org switcher example inside a card */
.switcher { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.switcher li { display: flex; align-items: center; gap: 0.625rem; font-size: 0.9375rem; color: var(--slate-700); }
.switcher .sq {
  width: 1.75rem; height: 1.75rem; border-radius: 6px; display: grid; place-items: center;
  color: #fff; font-size: 0.6875rem; font-weight: 700;
}
.sq.org-a { background: var(--org-a); }
.sq.org-d { background: var(--org-d); }

/* ---------- see it in Xero ---------- */

.showcase { display: grid; gap: 3rem; }
.show-row { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60rem) {
  .show-row { grid-template-columns: 1fr 1.3fr; }
  .show-row.flip { grid-template-columns: 1.3fr 1fr; }
  .show-row.flip .show-text { order: 2; }
}
.show-text h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.show-text p { margin: 0.75rem 0 0; color: var(--slate-500); font-size: 1.0625rem; }
.compare { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .compare { grid-template-columns: 1fr 1fr; } }
.compare figure { margin: 0; }
.compare figcaption { margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--slate-500); }
.compare figure:last-child figcaption { color: var(--brand); }

/* ---------- privacy (dark band) ---------- */

.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .section-head p { color: var(--slate-400); }
.band-dark .card { background: var(--slate-800); border-color: var(--slate-700); }
.band-dark .card p { color: var(--slate-400); }
.band-dark .tile { background: rgba(12, 123, 131, 0.25); color: #7fd3d9; }
.band-dark .fineprint { text-align: center; margin: 2rem 0 0; color: var(--slate-400); font-size: 0.9375rem; }
.band-dark .fineprint a { color: #7fd3d9; }
.quote { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; font-size: 1.25rem; font-weight: 600; color: #fff; }

/* ---------- pricing ---------- */

.pricing { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 40rem) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 70rem) { .pricing { grid-template-columns: repeat(4, 1fr); } }
.plan { display: flex; flex-direction: column; position: relative; box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.06); }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 25px 50px -12px rgba(12, 123, 131, 0.25); }
.plan .badge {
  position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 0.25rem 0.75rem; border-radius: 999px; white-space: nowrap;
}
.plan .who { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--slate-500); }
.plan .price { margin-top: 1.25rem; font-size: 2.25rem; font-weight: 700; letter-spacing: -0.03em; color: var(--slate-900); }
.plan .price small { font-size: 0.9375rem; font-weight: 500; color: var(--slate-500); letter-spacing: 0; }
.plan ul { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; display: grid; gap: 0.625rem; flex: 1; }
.plan li { display: flex; gap: 0.5rem; font-size: 0.9375rem; color: var(--slate-700); }
.plan li .icon { width: 1.1rem; height: 1.1rem; color: var(--brand); margin-top: 0.2rem; }
.pricing-note { margin: 2rem auto 0; max-width: 44rem; text-align: center; font-size: 0.875rem; color: var(--slate-500); }

/* ---------- FAQ ---------- */

.faq { max-width: 48rem; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq details { background: #fff; border: 1px solid var(--slate-200); border-radius: 0.75rem; padding: 1rem 1.25rem; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--slate-900); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--slate-400); font-weight: 400; font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0.75rem 0 0; color: var(--slate-500); }

/* ---------- call to action ---------- */

.cta { text-align: center; }
.cta h2 { color: #fff; }
.cta p { margin: 1rem auto 0; max-width: 36rem; color: var(--slate-400); font-size: 1.125rem; }
.cta .actions { justify-content: center; }

/* ---------- document pages (support, terms, privacy, refunds, 404) ---------- */

.doc-band { background: var(--slate-50); padding-block: 3rem 4rem; min-height: 60vh; }
.doc {
  max-width: 48rem; margin: 0 auto; background: #fff;
  border: 1px solid var(--slate-200); border-radius: 1rem; padding: 2rem 1.5rem;
}
@media (min-width: 40rem) { .doc { padding: 2.5rem 3rem; } }
.doc h1 { font-size: 2rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; }
.doc h2 { font-size: 1.25rem; margin-top: 2rem; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--slate-700); }
.doc .meta { margin-top: 0.5rem; color: var(--slate-500); font-size: 0.875rem; }
.doc code { font-size: 0.875em; background: var(--slate-100); padding: 0.1em 0.35em; border-radius: 4px; }
.doc .callout {
  background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 0.75rem;
  padding: 1rem 1.25rem; color: var(--slate-800); margin: 1.5rem 0 0;
}

/* ---------- footer ---------- */

.site-footer { background: var(--slate-950); color: var(--slate-400); padding-block: 2.5rem; font-size: 0.875rem; }
.site-footer .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 50rem) { .site-footer .top { display: flex; justify-content: space-between; align-items: center; } }
.site-footer .brand { color: #fff; font-size: 1.15rem; }
.site-footer .brand b { color: #7fd3d9; }
.site-footer .brand-mark { width: 1.5rem; height: 1.5rem; border-width: 3px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1rem; }
@media (min-width: 50rem) { .site-footer nav { margin-top: 0; } }
.site-footer a { color: var(--slate-400); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid var(--slate-800); padding-top: 1.5rem; display: grid; gap: 0.25rem; }
.site-footer p { margin: 0; }

/* ---------- checkout (the only page with JavaScript: Paddle) ---------- */

.notice-test {
  margin: 0 0 1.5rem; padding: 0.875rem 1rem; border-radius: 0.75rem;
  background: #fef3c7; border: 1px solid #fde68a; color: #78350f; font-size: 0.9375rem;
}
.notice-test[hidden] { display: none; }
.buy-plans { display: grid; gap: 1rem; margin-top: 1.75rem; }
@media (min-width: 40rem) { .buy-plans { grid-template-columns: repeat(3, 1fr); } }
.buy-plan { border: 1px solid var(--slate-200); border-radius: 1rem; padding: 1.25rem; display: flex; flex-direction: column; }
.buy-plan.featured { border: 2px solid var(--brand); }
.buy-plan h2 { margin: 0; font-size: 1.125rem; }
.buy-plan p { margin: 0.375rem 0 0; font-size: 0.9375rem; color: var(--slate-500); }
.buy-plan .buy-price { margin: 0.875rem 0 1rem; font-size: 1.75rem; font-weight: 700; color: var(--slate-900); letter-spacing: -0.02em; flex: 1; }
.buy-price small { font-size: 0.875rem; font-weight: 500; color: var(--slate-500); letter-spacing: 0; }
.buy-plan .btn { cursor: pointer; font-family: inherit; }
.buy-status { min-height: 1.5em; margin-top: 1rem; color: var(--slate-600); font-size: 0.9375rem; }
/* ---------- activate (licence copy page) ---------- */

.licence-panel { margin-top: 1.5rem; padding: 1.25rem; border-radius: 1rem; background: var(--brand-soft); border: 1px solid var(--brand-line); }
.licence-panel[hidden] { display: none; }
.licence-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-dark); }
.licence-code {
  display: block; margin-top: 0.5rem; padding: 0.875rem 1rem; border-radius: 0.5rem;
  background: #fff; border: 1px solid var(--brand-line); color: var(--slate-800);
  font: 0.8125rem/1.5 ui-monospace, Consolas, monospace; word-break: break-all; user-select: all;
}
.licence-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.licence-actions .btn { cursor: pointer; font-family: inherit; }
.licence-copied { color: var(--brand-dark); font-weight: 500; font-size: 0.9375rem; }
.licence-copied[hidden] { display: none; }
.activate-steps { display: grid; gap: 1.5rem; margin-top: 1.75rem; align-items: start; }
@media (min-width: 48rem) { .activate-steps { grid-template-columns: 1fr 300px; } }
.activate-steps ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.75rem; }
.activate-shot { margin: 0; }
.activate-shot img { border-radius: 0.75rem; border: 1px solid var(--slate-200); box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.25); }
.activate-shot figcaption { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--slate-500); text-align: center; }
.install-buttons { display: grid; gap: 0.75rem; margin-top: 1rem; }
@media (min-width: 40rem) { .install-buttons { grid-template-columns: 1fr 1fr; } }
