/* PolyWorker's signed-out home page (templates/main/landing.html).
   Sizes, spacing and breakpoints follow pinger.im's landing page (our team chat), so the two sit together as one
   family; the colours are PolyWorker's own. Always light, whatever the visitor's theme; the one dark thing is the
   app in the hero, shown at its real size and cropped like Pinger's. Fonts are hosted here (static/fonts, SIL Open
   Font Licence) because the site loads nothing from elsewhere. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2-variations");
  font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

.lp-body {
  --ink: #15192A;          /* the app's dark background, deepened */
  --paper: #F4F5F8;
  --white: #FFFFFF;
  --slate: #50566A;
  --line: #DCDFE6;
  --accent: #2F5FD0;       /* the app's light-theme signal blue */
  --accent-dark: #244CB0;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --text: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
  background: var(--paper);
  color: var(--slate);
  font: 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
.lp-body h1, .lp-body h2, .lp-body h3 { color: var(--ink); font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
.lp-body a { color: inherit; }
.lp-body :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff !important; padding: 8px 12px;
  border-radius: 6px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* ---------- nav ---------- */
.lp-header { display: flex; align-items: center; gap: 32px; max-width: 1180px; margin: 0 auto; padding: 20px 28px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font: 800 20px var(--display); color: var(--ink) !important;
  text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.lp-brand .brand-mark { font-size: 1.1em; }
.lp-sections { display: flex; gap: 24px; font-size: 15px; }
.lp-sections a { text-decoration: none; color: var(--slate); }
.lp-sections a:hover { color: var(--ink); }
.lp-account { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; }
.lp-link { text-decoration: none; font-weight: 600; color: var(--ink) !important; white-space: nowrap; }
.lp-link:hover { text-decoration: underline; }

.lp-btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 8px;
  border: 1.5px solid transparent; font: 650 15px var(--text); text-decoration: none !important; white-space: nowrap; }
.lp-btn.lg { padding: 13px 22px; font-size: 16px; }
.lp-btn.primary { background: var(--accent); color: #fff !important; }
.lp-btn.primary:hover { background: var(--accent-dark); }
.lp-btn.secondary { border-color: var(--line); color: var(--ink) !important; background: var(--white); }
.lp-btn.secondary:hover { border-color: var(--ink); }
.lp-btn.on-dark { border-color: rgba(255,255,255,.35); color: #fff !important; }
.lp-btn.on-dark:hover { border-color: #fff; }

/* ---------- hero ---------- */
.lp-hero { max-width: 1180px; margin: 0 auto; padding: 56px 28px 96px; display: flex; flex-direction: column; gap: 56px; }
.lp-hero-copy { max-width: 46rem; }
.lp-hero h1 { font-size: clamp(44px, 6vw, 76px); line-height: 0.98; font-weight: 800; letter-spacing: -0.035em; }
.lp-lede { font-size: 19px; max-width: 34em; margin: 24px 0 32px; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-note { font-size: 14px; margin: 14px 0 0; }

/* A small copy of the real Today page (templates/main/dashboard.html) in the app's dark theme, with the app's own
   colours (static/css/app.css). Sizes are in --u, so one value scales the whole picture. */
.lp-app { --u: 1.27rem; --bg: #141826; --surface: #1C2133; --raised: #252B40; --line: #343B55; --line-soft: #2A3047;
  --text: #E4E7F1; --muted: #9AA2BD; --faint: #6C7491; --signal: #82A8FF;
  margin: 0; display: grid; grid-template-columns: 250px minmax(0, 1fr); height: 540px; background: var(--bg);
  color: var(--text); border-radius: 14px; overflow: hidden;
  font: 400 calc(.74 * var(--u))/1.45 "Avenir Next", "Segoe UI", system-ui, sans-serif;
  box-shadow: 0 40px 80px -40px rgba(21, 25, 42, .6), 0 0 0 1px rgba(21, 25, 42, .1); }
.pw-side, .pw-main { min-height: 0; overflow: hidden; }
.lp-app b, .lp-app strong { font-weight: 600; color: var(--text); }
.lp-app small { font-size: calc(.66 * var(--u)); color: var(--muted); }

.pw-side { background: var(--surface); border-right: 1px solid var(--line-soft); padding: calc(.9 * var(--u)) calc(.6 * var(--u));
  display: flex; flex-direction: column; gap: calc(.55 * var(--u)); }
.pw-brand { display: flex; align-items: center; gap: calc(.4 * var(--u)); font-weight: 700; font-size: calc(.95 * var(--u)); }
.pw-faint { color: var(--faint); font-size: calc(.64 * var(--u)); }
.pw-search { display: flex; justify-content: space-between; align-items: center; background: var(--raised);
  border: 1px solid var(--line-soft); border-radius: 6px; padding: calc(.32 * var(--u)) calc(.45 * var(--u));
  color: var(--faint); font-size: calc(.62 * var(--u)); margin-bottom: calc(.3 * var(--u)); }
.pw-search kbd { font: inherit; font-size: .9em; border: 1px solid var(--line); border-radius: 4px; padding: 0 calc(.2 * var(--u)); color: var(--muted); }
.pw-nav { display: flex; flex-direction: column; gap: 1px; }
.pw-nav span { padding: calc(.28 * var(--u)) calc(.45 * var(--u)); border-radius: 6px; color: var(--muted); font-size: calc(.74 * var(--u)); }
.pw-nav span.on { background: var(--raised); color: var(--text); }
.pw-head { color: var(--faint); font-size: calc(.64 * var(--u)); margin: calc(.3 * var(--u)) 0 calc(-.2 * var(--u)) calc(.45 * var(--u)); }
.pw-job { border-left: 2px solid var(--c); padding: calc(.2 * var(--u)) calc(.45 * var(--u)); color: var(--muted); font-size: calc(.74 * var(--u)); }
.pw-nav-add { padding: 0 calc(.45 * var(--u)); color: var(--muted); font-size: calc(.74 * var(--u)); }

.pw-main { padding: calc(1.1 * var(--u)) calc(1.2 * var(--u)); display: flex; flex-direction: column; gap: calc(.65 * var(--u)); min-width: 0; }
.pw-pagehead { display: flex; align-items: flex-end; gap: calc(.35 * var(--u)); margin-bottom: calc(.2 * var(--u)); }
.pw-pagehead > div { flex: 1; min-width: 0; }
.pw-pagehead strong { display: block; font-size: calc(1.25 * var(--u)); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.pw-pagehead small { font-size: calc(.72 * var(--u)); }
.pw-btn { display: inline-block; background: var(--raised); border: 1px solid var(--line); color: var(--text);
  border-radius: 6px; padding: calc(.22 * var(--u)) calc(.55 * var(--u)); font-size: calc(.66 * var(--u)); white-space: nowrap; }
.pw-btn.primary { background: var(--signal); border-color: var(--signal); color: #0F1630; font-weight: 600; }
.pw-panel, .pw-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 9px;
  padding: calc(.75 * var(--u)) calc(.85 * var(--u)); }
.pw-panel-head { display: flex; align-items: center; gap: calc(.35 * var(--u)); margin-bottom: calc(.3 * var(--u)); }
.pw-panel-head strong { flex: 1; font-size: calc(.86 * var(--u)); }
.pw-week p { margin: 0 0 calc(.1 * var(--u)); color: var(--muted); }
.pw-week p b { font-size: calc(1.05 * var(--u)); margin-right: calc(.2 * var(--u)); }
.pw-bar { display: flex; height: calc(.32 * var(--u)); border-radius: 3px; background: var(--raised); overflow: hidden; margin-top: calc(.55 * var(--u)); }
.pw-bar i { display: block; background: var(--c); }
.pw-bar.thin { height: calc(.2 * var(--u)); margin: calc(.35 * var(--u)) 0 calc(.6 * var(--u)); }
.pw-card { border-left: 3px solid var(--c); }
.pw-card-head { display: flex; align-items: baseline; gap: calc(.45 * var(--u)); }
.pw-card-head b { font-size: calc(.92 * var(--u)); }
.pw-card-head small { flex: 1; }
.pw-when { display: flex; align-items: center; gap: calc(.3 * var(--u)); margin-top: calc(.3 * var(--u)); }
.dot { width: calc(.32 * var(--u)); height: calc(.32 * var(--u)); border-radius: 50%; background: var(--faint); display: inline-block; }
.dot.on { background: #7FD1A8; }
.pw-hours { display: flex; justify-content: space-between; margin-top: calc(.4 * var(--u)); color: var(--muted); }
.pw-hours b { font-size: calc(.82 * var(--u)); }
.pw-card dl { display: grid; grid-template-columns: calc(4.2 * var(--u)) 1fr; gap: calc(.2 * var(--u)) calc(.5 * var(--u)); margin: 0; font-size: calc(.68 * var(--u)); }
.pw-card dt { color: var(--faint); }
.pw-card dd { margin: 0; }
.pw-scale, .pw-row { display: grid; grid-template-columns: calc(4.8 * var(--u)) 1fr; align-items: center; }
.pw-scale > div { position: relative; height: calc(.9 * var(--u)); }
.pw-scale i { position: absolute; font-style: normal; color: var(--faint); font-size: calc(.58 * var(--u)); }
.pw-row { margin-top: calc(.3 * var(--u)); }
.pw-row > span { font-weight: 600; font-size: calc(.66 * var(--u)); }
.pw-row > div { position: relative; height: calc(1.2 * var(--u)); background: var(--bg); border-radius: 4px; }
.pw-row em { position: absolute; top: 0; bottom: 0; font-style: normal; }
.pw-row .pw-core { background: var(--raised); border-radius: 4px; }
.pw-row .pw-blk { top: 12%; bottom: 12%; background: color-mix(in srgb, var(--c) 35%, var(--surface)); border-left: 2px solid var(--c);
  border-radius: 3px; font-size: calc(.52 * var(--u)); padding-left: 3px; overflow: hidden; white-space: nowrap; color: var(--text); line-height: calc(.95 * var(--u)); }
.pw-row .pw-now { width: 1px; background: #E4E7F1; opacity: .8; }

/* ---------- jobs band ---------- */
.lp-band { background: var(--white); border-block: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center;
  padding: 80px max(28px, calc((100% - 1124px) / 2)); }
.lp-body h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.05; font-weight: 750; }
.lp-band-text p { max-width: 32em; margin: 18px 0 0; }
.lp-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; }
.lp-tiles li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; font-size: 15px; }
.lp-tile { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--c);
  color: #fff; font: 700 21px/1 var(--display); }

/* ---------- features ---------- */
.lp-features { max-width: 1180px; margin: 0 auto; padding: 96px 28px; }
.lp-features h2 { max-width: 14em; }
.lp-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.lp-cols > div { border-top: 3px solid var(--ink); padding-top: 16px; }
.lp-cols h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.lp-cols ul { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.5; }
.lp-cols li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.lp-cols li:last-child { border-bottom: 0; }

/* ---------- privacy ---------- */
.lp-sec { max-width: 1180px; margin: 0 auto; padding: 0 28px 96px;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
.lp-sec-intro p { margin: 16px 0 0; max-width: 24em; }
.lp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin: 0; }
.lp-grid dt { color: var(--ink); font-weight: 700; font-size: 17px; }
.lp-grid dd { margin: 4px 0 0; font-size: 15px; }

/* ---------- closing band and footer ---------- */
.lp-close { background: var(--ink); color: #C3C8D8; text-align: center; padding: 88px 28px; }
.lp-close h2 { color: #fff; }
.lp-close p { margin: 14px auto 30px; max-width: 30em; }
.lp-close .lp-ctas { justify-content: center; }
.lp-close-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: #fff;
  font-size: 30px; margin-bottom: 22px; }

.lp-body .legal-foot.lp-foot { max-width: 1180px; margin: 0 auto; padding: 28px; border-top: 0; font-size: 14px; }
.lp-foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.lp-foot .lp-brand { font-size: 16px; }
.lp-foot nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 20px; }
.lp-foot nav a { text-decoration: none; }
.lp-foot nav a:hover { color: var(--ink); text-decoration: underline; }
.lp-body .lp-foot p { margin: 16px 0 0; font-size: 13px; max-width: 62rem; line-height: 1.55; }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .lp-hero { gap: 40px; padding-top: 32px; }
  .lp-app { grid-template-columns: minmax(0, 1fr); }
  .pw-side { display: none; }
  .lp-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-band, .lp-sec { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .lp-body { font-size: 16px; }
  .lp-header { padding: 16px 20px; gap: 16px; }
  .lp-sections { display: none; }
  .lp-account { gap: 12px; }
  .lp-header .lp-brand { font-size: 18px; }
  .lp-account .lp-btn { padding: 8px 12px; font-size: 14px; }
  .lp-hero { padding: 24px 20px 64px; }
  .lp-lede { font-size: 17px; }
  .lp-app { height: 500px; --u: 1.18rem; }
  .pw-pagehead .pw-btn:not(.primary), .pw-hint, .pw-scale i:nth-child(even) { display: none; }
  .lp-band { padding: 56px 20px; }
  .lp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-features { padding: 64px 20px; }
  .lp-cols, .lp-grid { grid-template-columns: 1fr; gap: 28px; }
  .lp-sec { padding: 0 20px 64px; }
  .lp-close { padding: 64px 20px; }
  .lp-body .legal-foot.lp-foot { padding: 28px 20px; }
  .lp-foot nav { margin-left: 0; }
}
@media (max-width: 400px) {
  .lp-header .lp-account .lp-btn { display: none; }   /* the hero right below has the same button */
}
