/* The front page, sign-in, sign-up and the docs (concert-front-1, Grant
   2026-10-12: "I want a front page like" centeros.ai). The layout follows
   centeros.ai; the colours are the concert and Auto FD navy. */

:root {
  --ink: #102033;
  --muted: #657287;
  --line: #e4eaf1;
  --soft: #f6f9fc;
  --brand: #033660;
  --brand-2: #0b5f95;
  --accent: #2d8acb;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(10, 44, 75, 0.1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.front {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.front a { color: var(--brand); text-decoration: none; }
.front a:hover { color: var(--brand-2); }
.front h1, .front h2, .front h3, .front p { margin-top: 0; }

/* Top bar */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 18px 42px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand-word { color: var(--brand); font-size: 20px; font-weight: 900; letter-spacing: -0.03em; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 24px; font-size: 14px; font-weight: 800; }
.nav-links form { margin: 0; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); cursor: pointer;
}
.menu-toggle span { position: absolute; width: 20px; height: 2px; background: var(--brand); border-radius: 999px; transition: transform 180ms ease, opacity 180ms ease; }
.menu-toggle span:nth-child(1) { transform: translateY(-7px); }
.menu-toggle span:nth-child(3) { transform: translateY(7px); }
.nav-toggle:checked + .menu-toggle span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle:checked + .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .menu-toggle span:nth-child(3) { transform: rotate(-45deg); }

.login-link, .front .link-button {
  display: inline-flex; align-items: center; min-height: 38px; padding: 8px 16px;
  color: var(--white) !important; -webkit-text-fill-color: var(--white);
  background: var(--brand); border: 0; border-radius: 8px;
  font: inherit; font-weight: 800; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.login-link:hover, .front .link-button:hover { background: var(--brand-2); }

main.front-main { overflow-x: clip; }  /* clip, not hidden: hidden would stop the docs side bar sticking */

/* Hero */
.hero {
  position: relative; padding: 52px 24px 58px;
  background:
    radial-gradient(circle at 14% 12%, rgba(45, 138, 203, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.hero::after {
  content: ""; position: absolute; right: -120px; bottom: -180px;
  width: 520px; height: 520px; border: 90px solid rgba(3, 54, 96, 0.06); border-radius: 50%;
}
.hero-inner { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; }

.eyebrow, .section-number, .band span {
  color: var(--accent); font-size: 13px; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase;
}
.front h1 { max-width: 900px; margin-bottom: 22px; font-size: clamp(50px, 8vw, 104px); line-height: 0.95; letter-spacing: 0; font-weight: 800; }
.front h2 { margin-bottom: 14px; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; letter-spacing: 0; font-weight: 800; }
.front h3 { margin-bottom: 10px; font-size: 21px; line-height: 1.22; font-weight: 800; }
.hero-copy { max-width: 760px; color: var(--muted); font-size: 21px; }

.prompt-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 860px; margin: 36px 0 24px; padding: 18px 18px 18px 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow);
}
.prompt-panel .label {
  display: block; margin-bottom: 6px; color: var(--muted);
  font-size: 12px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
}
.prompt-panel p { margin: 0; font-size: 17px; font-weight: 600; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px; border-radius: 8px; font-weight: 900; white-space: nowrap;
}
.button.primary { color: var(--white) !important; background: var(--brand); }
.button.primary:hover { background: var(--brand-2); }
.button.secondary { color: var(--brand); background: var(--white); border: 1px solid var(--line); }
.button.secondary:hover { border-color: var(--brand); }

/* Read The Docs: the button carries the short word, hovering shows the title. */
.docs-heading { margin: 34px 0 12px; font-size: 13px; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; color: var(--accent); }
.docs-row { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-button { position: relative; }
.doc-button .tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 5;
  transform: translate(-50%, 4px); width: max-content; max-width: 260px;
  padding: 7px 11px; border-radius: 6px; background: var(--ink); color: var(--white);
  font-size: 13px; font-weight: 700; line-height: 1.3; text-align: center; white-space: normal;
  opacity: 0; pointer-events: none; transition: opacity 140ms ease, transform 140ms ease;
}
.doc-button .tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px;
  border: 6px solid transparent; border-top-color: var(--ink);
}
.doc-button:hover .tip, .doc-button:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); }

/* Your concerts, for someone signed in */
.my-concerts { max-width: 860px; margin: 18px 0 8px; padding: 18px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.my-concerts ul { list-style: none; margin: 8px 0 0; padding: 0; }
.my-concerts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.my-concerts li:first-child { border-top: 0; }
.my-concerts .when { color: var(--muted); font-size: 15px; }

/* Numbered sections */
.section {
  position: relative; z-index: 0;
  display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 34px;
  max-width: 1120px; margin: 0 auto; padding: 82px 24px;
}
.section::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 100vw; height: 1px;
  background: var(--line); transform: translateX(-50%);
}
.section p, .section-heading p { max-width: 820px; color: var(--muted); font-size: 18px; }

.band {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  max-width: 1120px; margin: 0 auto 34px; padding: 32px 34px;
  background: var(--brand); border-radius: 8px; box-shadow: var(--shadow);
}
.band-wrap { padding: 0 24px; }
.front .band h2 { max-width: 720px; margin: 6px 0 0; color: var(--white); font-size: clamp(26px, 3.6vw, 40px); }
.band span { color: #9dd5fb; }
.front .band a { flex: 0 0 auto; color: var(--brand); font-weight: 900; padding: 12px 18px; background: var(--white); border-radius: 8px; }

.features { max-width: 1120px; margin: 0 auto; padding: 52px 24px 82px; }
.section-heading { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 34px; margin-bottom: 28px; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card-grid article {
  min-height: 170px; padding: 22px; background: var(--white);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 45px rgba(10, 44, 75, 0.06);
}
.card-grid p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.private-note {
  margin: 28px 0 0 124px; max-width: 820px; padding: 16px 20px;
  background: var(--soft); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 16px;
}

.closing::after {
  content: ""; position: absolute; inset: 0 50%; z-index: -1; width: 100vw;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%); transform: translateX(-50%);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 30px 42px; border-top: 1px solid var(--line);
}
.site-footer p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; font-weight: 800; }

/* Sign-in and sign-up */
.auth-wrap {
  min-height: calc(100vh - 160px); padding: 52px 20px;
  background:
    radial-gradient(circle at 14% 12%, rgba(45, 138, 203, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.auth-card {
  max-width: 440px; margin: 0 auto; padding: 30px; background: var(--white);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow);
}
.front .auth-card h1 { font-size: 32px; margin-bottom: 6px; }
.auth-card .lead { color: var(--muted); margin-bottom: 20px; }
.auth-card label { display: block; margin: 0 0 4px; font-weight: 700; font-size: 14px; }
.auth-card input {
  display: block; width: 100%; margin-bottom: 14px; padding: 10px 12px;
  font: inherit; color: var(--ink); -webkit-text-fill-color: var(--ink);
  background: var(--white); border: 1px solid #c9d4e0; border-radius: 8px;
}
.auth-card input:focus { outline: 2px solid rgba(45, 138, 203, 0.35); border-color: var(--accent); }
.auth-card .button { width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 900; }
.auth-card .error { color: #9b1c1c; font-size: 14px; margin: -8px 0 12px; }
.auth-card .help { color: var(--muted); font-size: 13px; margin: -8px 0 12px; }
.auth-card .error-box { color: #9b1c1c; background: #fef2f2; border: 1px solid #fca5a5; border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; font-size: 15px; }
.auth-card .after { margin: 18px 0 0; color: var(--muted); font-size: 15px; text-align: center; }

/* The docs: a full-height side bar as on docs.centeros.ai (concert-front-2) */
.doc-layout { display: grid; grid-template-columns: 292px minmax(0, 1fr); min-height: calc(100vh - 77px); }
.doc-sidebar {
  position: sticky; top: 77px; align-self: start; height: calc(100vh - 77px); overflow-y: auto;
  padding: 28px 24px; border-right: 1px solid var(--line); background: var(--white);
}
.doc-search {
  display: block; width: 100%; height: 42px; margin-bottom: 18px; padding: 0 14px;
  font: inherit; font-size: 14px; color: var(--ink); -webkit-text-fill-color: var(--ink);
  background: var(--soft); border: 1px solid var(--line); border-radius: 8px;
}
.doc-search::placeholder { color: var(--muted); -webkit-text-fill-color: var(--muted); }
.doc-search:focus { outline: 2px solid rgba(45, 138, 203, 0.35); border-color: var(--accent); }
.side-nav p { margin: 22px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.side-nav .side-group:first-child p { margin-top: 4px; }
.side-nav p a { color: var(--brand); padding: 0; }
.side-nav p a.here { color: var(--accent); }
.side-nav .side-link { display: block; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.side-nav .side-link:hover { background: var(--soft); color: var(--brand); }
.side-nav [hidden] { display: none !important; }
.side-details > summary { display: none; }
.side-none { color: var(--muted); font-size: 14px; text-transform: none !important; letter-spacing: 0 !important; font-weight: 600 !important; }
.doc-body { padding: 52px 56px 88px; }
.doc-body h2[id] { scroll-margin-top: 96px; }
.doc-body > * { max-width: 760px; }
.front .doc-body h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.05; }
.front .doc-body h2 { font-size: 26px; margin: 34px 0 10px; }
.doc-body p, .doc-body li { color: #33445a; font-size: 17px; }
.doc-body li { margin-bottom: 6px; }
.doc-body .lead { color: var(--muted); font-size: 20px; }
.doc-body .where { padding: 14px 18px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; font-size: 16px; }
.doc-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }

@media (max-width: 1100px) {
  .card-grid, .card-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .site-header { flex-wrap: wrap; padding: 16px 20px; }
  .menu-toggle { display: inline-flex; position: relative; }
  .nav-links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 6px; padding-top: 12px; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a { display: block; padding: 10px 0; }
  .login-link, .nav-links .link-button { width: 100%; justify-content: center; margin-top: 6px; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 18px 20px; }
  .hero { padding: 34px 16px 48px; }
  .prompt-panel, .band { align-items: flex-start; flex-direction: column; }
  .section, .section-heading { grid-template-columns: 1fr; gap: 12px; padding-left: 16px; padding-right: 16px; }
  .features { padding-left: 16px; padding-right: 16px; }
  .band-wrap { padding: 0 16px; }
  .private-note { margin-left: 0; }
  .doc-layout { grid-template-columns: 1fr; min-height: 0; }
  .doc-sidebar { position: static; height: auto; padding: 18px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .doc-body { padding: 30px 16px 60px; }
  .doc-search { margin-bottom: 10px; }
  .side-details > summary { display: list-item; cursor: pointer; font-weight: 800; color: var(--brand); font-size: 14px; padding: 4px 0; }
  .doc-button .tip { display: none; }
}

@media (max-width: 560px) {
  .front h1 { font-size: 46px; }
  .hero-copy { font-size: 18px; }
  .card-grid, .card-grid.five { grid-template-columns: 1fr; }
  .card-grid article { min-height: auto; }
}

/* Links inside the text of the docs and the front page are underlined, so
   they read as links (Grant, 2026-10-12, concert-starter-2). */
.doc-body p a, .doc-body li a, .section p a, .private-note a, .auth-card .after a {
  text-decoration: underline; text-underline-offset: 2px;
}
.text-no-tracker { color: #b91c1c; font-weight: 800; }

/* The Humanitix host help (humanitix-help-1, Grant 2026-10-14). Built on the
   docs layout: areas fold in the side bar, each step is a numbered card. */
.help-area { margin: 2px 0; }
.help-area > summary {
  cursor: pointer; list-style: none; padding: 7px 10px; border-radius: 8px;
  color: var(--brand); font-size: 14px; font-weight: 700;
}
.help-area > summary::-webkit-details-marker { display: none; }
.help-area > summary::before { content: "\25B8"; display: inline-block; width: 1em; color: var(--muted); }
.help-area[open] > summary::before { content: "\25BE"; }
.help-area > summary:hover { background: var(--soft); }
.help-area .side-link { padding-left: 26px; font-size: 13px; }
.side-nav .side-link.here { color: var(--accent); font-weight: 700; background: var(--soft); }
.help-source a, .help-showme { font-weight: 700; }
.help-back { margin: 0 0 8px; }
.help-showme-tag {
  display: inline-block; vertical-align: middle; margin-right: 6px; padding: 2px 10px; border-radius: 999px;
  font-size: 14px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brand); background: #fff6c8; border: 1px solid #f0dc7a;
}
.help-steps { list-style: none; padding: 0; margin: 28px 0 0; }
.help-step {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px;
  padding: 18px 20px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); scroll-margin-top: 96px;
}
.help-step:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45, 138, 203, 0.2); background: #f3f9fe; }
.help-stepno {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--brand); color: var(--white); font-weight: 800; font-size: 15px;
}
.help-row + .help-row { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.doc-body .help-row p { margin: 0 0 6px; font-size: 16px; }
.doc-body .help-row .help-what { font-weight: 800; color: var(--ink); font-size: 17px; }
.doc-body .help-row .help-note { color: var(--muted); font-size: 15px; }
.help-code { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.help-code span { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.help-code code {
  padding: 3px 8px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line);
  font-size: 14px; color: var(--brand); white-space: normal; overflow-wrap: anywhere;
}
.help-list { columns: 2; column-gap: 32px; padding-left: 18px; }
.help-list li { break-inside: avoid; font-size: 16px; }
.help-results { padding-left: 22px; }
.help-results li { margin-bottom: 12px; }
.help-results a { font-weight: 700; }
.help-area-name, .help-hit { display: block; color: var(--muted); font-size: 14px; }
.doc-body .help-foot { margin-top: 40px; color: var(--muted); font-size: 14px; }
@media (max-width: 820px) {
  .help-list { columns: 1; }
  .help-step { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
  .help-layout { grid-template-columns: minmax(0, 1fr); }
  .help-body, .help-layout .doc-sidebar { min-width: 0; }
}

/* Back to the page the help was opened from (concert-humanitix-help-4). */
.help-leave { margin: 0 0 18px; }

/* The back link on the help pages looks like the app's own back links (the
   arrow and the page name above Tasks): Bootstrap's link blue, underlined,
   body size (concert-humanitix-help-6, replacing the outlined button of -5). */
.front .doc-body .help-leave { margin: 0 0 8px; font-size: 16px; }
.front .doc-body .help-leave a.help-back-link {
  display: inline-flex; align-items: center; gap: 0.25em;
  color: #0d6efd; font-weight: 400; text-decoration: underline; text-underline-offset: auto;
}
.front .doc-body .help-leave a.help-back-link:hover { color: #0a58ca; }

/* My Concerts, the big button at the top of the front page for a signed-in
   person (concert-switchboard-1, Grant 2026-10-17): the same size as Task
   List on the concert page. */
.my-concerts-cta { display: flex; justify-content: center; margin: 0 0 28px; }
.button.button-big {
  font-size: 1.5rem; min-height: 64px; width: min(20rem, 100%);
  border-radius: 12px; box-shadow: 0 10px 24px rgba(3, 54, 96, 0.25);
}
