/*
 * The Apollo Apps look, 17 Nov 2026: white satin background, the AA line
 * mark, Gelica throughout, grey pill buttons. Copied from Michael's Canva
 * mock-ups (design "WATCH REEL", pages 2 and 3).
 *
 * One stylesheet for the hub, the sign-in page and every app that wears the
 * look, served without a sign-in from /apollo-look/ (the sign-in page needs
 * it). Apps link it and use the al- classes; nothing here touches an element
 * that has no al- class, so linking it cannot break an app on its own.
 *
 * Not used by Dog Walking Rota System, HCA Invoicing or Casting Desk, which
 * Michael asked to keep as they are.
 *
 * Gelica comes from Michael's Adobe Fonts kit vfr6ntl (link it as well:
 * https://use.typekit.net/vfr6ntl.css). The weights asked for here are 300
 * and 400; until the kit carries them the browser uses the 600 it has.
 */

:root {
  --al-ink: #111111;
  --al-ink-soft: #3a3a3a;
  --al-muted: #5f5f5f;
  --al-pill: #d6d6d6;
  --al-panel: rgba(222, 222, 222, 0.78);
  --al-panel-line: rgba(0, 0, 0, 0.42);
  --al-field: rgba(255, 255, 255, 0.85);
  --al-danger: #9b2c22;
  --al-good: #1d6b37;
  --al-serif: "gelica", Georgia, "Times New Roman", serif;
  /* Fine grain, so the grey reads as the textured pill in the mock-up
     rather than flat plastic. */
  --al-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- page ---------------------------------------------------------------- */

.al-page {
  margin: 0;
  min-height: 100svh;
  color: var(--al-ink);
  background: #f3f3f3;
  font: 400 16px/1.5 var(--al-serif);
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
}
.al-page *, .al-page *::before, .al-page *::after { box-sizing: border-box; }

/* The background on its own fixed layer: background-attachment:fixed is
   unreliable on iOS, and this keeps one copy covering the window however
   long the page gets. */
.al-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #f3f3f3 url("/apollo-look/bg.jpg?v=1") center / cover no-repeat;
}

.al-main {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 6vh, 72px) 16px 56px;
  text-align: center;
}

/* ---- header: mark, title, one line under it --------------------------------- */

.al-logo {
  display: block;
  width: clamp(150px, 15vw, 260px);
  height: auto;
  margin: 0 auto;
}
.al-logo-link { display: inline-block; }

.al-title {
  margin: clamp(26px, 3.4vw, 44px) 0 10px;
  font: 400 clamp(24px, 2.3vw, 38px)/1.12 var(--al-serif);
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

.al-sub {
  max-width: 34em;
  margin: 0 auto;
  font: 300 clamp(13px, 0.85vw, 14.5px)/1.5 var(--al-serif);
  text-wrap: balance;
}

/* Section labels on the hub, and headings inside apps. */
.al-section-title {
  margin: 0 0 14px;
  font: 400 clamp(16px, 1.25vw, 19px)/1.2 var(--al-serif);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.al-note {
  margin: 22px auto 0;
  max-width: 44em;
  font: 300 13.5px/1.5 var(--al-serif);
  text-wrap: balance;
}

/* ---- grey pill buttons (the hub's app buttons) ------------------------------- */

.al-pill {
  --w: clamp(232px, 17.5vw, 300px);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--w) * 0.05);
  width: var(--w);
  height: calc(var(--w) * 0.3);
  padding: 0 calc(var(--w) * 0.08);
  border-radius: 999px;
  color: var(--al-ink);
  text-decoration: none;
  background:
    var(--al-grain),
    linear-gradient(180deg, #dedede 0%, #d3d3d3 100%);
  background-blend-mode: soft-light, normal;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.85),
    inset 0 -3px 5px rgba(0, 0, 0, 0.13),
    0 1px 1px rgba(0, 0, 0, 0.18),
    0 7px 14px rgba(0, 0, 0, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.al-pill:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.85),
    inset 0 -3px 5px rgba(0, 0, 0, 0.13),
    0 1px 1px rgba(0, 0, 0, 0.18),
    0 10px 18px rgba(0, 0, 0, 0.2);
}
.al-pill:active { transform: translateY(1px); }
.al-pill:focus-visible { outline: 2px solid #222; outline-offset: 4px; }

.al-pill-icon {
  flex: none;
  width: calc(var(--w) * 0.14);
  height: calc(var(--w) * 0.14);
  object-fit: contain;
}

/* Two lines, the second stepped in, as in the mock-ups. */
.al-pill-label {
  font: 400 calc(var(--w) * 0.066)/1.12 var(--al-serif);
  text-transform: uppercase;
  text-align: left;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}
.al-pill-label > span { display: block; white-space: nowrap; }
.al-pill-label > span + span { padding-left: 1.15em; }

/* ---- small pills: Sign Out, Settings, Back ------------------------------------ */

.al-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: var(--al-ink-soft);
  background: rgba(255, 255, 255, 0.82);
  font: 400 13.5px/1 var(--al-serif);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}
.al-chip:hover { color: var(--al-ink); border-color: rgba(0, 0, 0, 0.3); }

/* ---- panels and drop zones ----------------------------------------------------- */

.al-panel {
  background: var(--al-panel);
  border: 2px solid var(--al-panel-line);
  border-radius: 26px;
  padding: clamp(20px, 2.4vw, 32px);
  text-align: left;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.al-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: clamp(130px, 14vw, 190px);
  padding: 24px;
  border-radius: 26px;
  border: 2px solid var(--al-panel-line);
  background: var(--al-panel);
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.al-drop:hover, .al-drop.is-over { background: rgba(210, 210, 210, 0.86); border-color: rgba(0, 0, 0, 0.6); }
.al-drop-title { font: 400 clamp(17px, 1.3vw, 21px)/1.2 var(--al-serif); text-transform: uppercase; }
.al-drop-hint { font: 400 clamp(12px, 0.85vw, 13.5px)/1.3 var(--al-serif); text-transform: uppercase; color: var(--al-ink-soft); }

/* ---- form controls -------------------------------------------------------------- */

.al-field { display: block; margin-bottom: 16px; text-align: left; }
.al-field-label {
  display: block;
  margin-bottom: 6px;
  font: 400 13px/1.2 var(--al-serif);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--al-ink-soft);
}
.al-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.28);
  border-radius: 12px;
  background: var(--al-field);
  color: var(--al-ink);
  font: 400 16px/1.3 var(--al-serif);
}
.al-input:focus { outline: 2px solid #222; outline-offset: 1px; }

.al-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: #151515;
  color: #fff;
  font: 400 15px/1.2 var(--al-serif);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.al-button:hover { background: #333; }

.al-error {
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(155, 44, 34, 0.1);
  color: var(--al-danger);
  font: 400 14.5px/1.4 var(--al-serif);
  text-align: left;
}
