/* Team Workload marketing site — dark palette ported 1:1 from the app's
   LandingPage.tsx (Claude Design reference, variant A). Keep the two in
   sync visually: bg/surface/border/text/accent values are the contract. */

:root {
  --bg: #0c0c0d;
  --surface: #141416;
  --border: #262629;
  --text: #e8e8ea;
  --text2: #a8a8ae;
  --text3: #6e6e76;
  --accent: oklch(62% 0.19 290);
  --accent-hover: oklch(67% 0.19 290);
}

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

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* --- Top bar --- */

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand img { width: 24px; height: 24px; display: block; }

.brand-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-tagline { font-size: 12px; color: var(--text3); }

.topbar-spacer { flex: 1; }

.topbar-nav {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.topbar-nav a {
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
}

.topbar-nav a:hover { color: var(--text); }

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
}

.btn-primary:hover { background-color: var(--accent-hover); }

.btn-secondary {
  background-color: var(--surface);
  border-color: var(--border);
  color: var(--text);
  font-size: 14px;
  padding: 10px 20px;
}

.btn-secondary:hover { border-color: var(--text3); }

.btn-secondary svg { flex: none; }

/* --- Hero --- */

.hero {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 72px 32px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.hero-copy { display: flex; flex-direction: column; gap: 18px; }

.hero-title {
  font-size: 52px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
  overflow-wrap: break-word;
}

.hero-title .accent,
.page-header h1 .accent {
  background: linear-gradient(96deg, oklch(62% 0.19 290), oklch(70% 0.15 240));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text2);
  max-width: 520px;
  margin: 0;
}

.cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.cta-help {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.5;
  max-width: 520px;
  margin: 0;
}

.hero-preview-wrap { position: relative; }

.hero-preview {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 10px 24px -12px rgba(0, 0, 0, 0.4);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-preview:hover {
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7), 0 14px 30px -14px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

/* --- Benefits --- */

.benefits {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 32px 16px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.benefit-icon { color: var(--accent); display: inline-flex; margin-bottom: 4px; }

.benefit h3 { font-size: 16px; font-weight: 600; margin: 0; }

.benefit p { font-size: 14px; line-height: 1.55; color: var(--text2); margin: 0; }

/* --- Admin consent card --- */

.admin-section {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 32px 24px;
}

.admin-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: var(--surface);
}

.admin-icon { color: var(--accent); display: inline-flex; }

.admin-text { display: flex; flex-direction: column; gap: 4px; }

.admin-text .title { font-size: 14px; font-weight: 600; margin: 0; }

.admin-text .body { font-size: 13px; line-height: 1.5; color: var(--text2); margin: 0; }

.admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.copy-feedback { font-size: 12px; color: #86efac; margin-left: 4px; }
.copy-feedback.error { color: #fca5a5; }

/* --- Footer --- */

.footer {
  margin-top: auto;
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text3);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer a { color: var(--text2); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.footer-links { display: inline-flex; gap: 14px; }

/* --- Lightbox --- */

.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 94vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
}

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

.page {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 32px;
}

.page-header { max-width: 640px; margin-bottom: 40px; }

.page-header h1 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.page-header p { font-size: 16px; line-height: 1.55; color: var(--text2); margin: 0; }

.price-table-wrap {
  max-width: 640px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: var(--surface);
  overflow: hidden;
  margin-bottom: 20px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.price-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text3);
  padding: 14px 24px 10px;
  border-bottom: 1px solid var(--border);
}

.price-table td {
  padding: 13px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}

.price-table tr:last-child td { border-bottom: none; }

.price-table .plan { font-weight: 600; color: var(--text); }

.price-table .price { font-weight: 600; color: var(--text); white-space: nowrap; }

.price-table .price span { font-weight: 400; color: var(--text3); }

.price-table th.num, .price-table td.price { text-align: right; }

.pricing-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.pricing-cta .hint { font-size: 13px; color: var(--text3); margin: 0; }

.pricing-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pricing-note h3 { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.pricing-note p { font-size: 13px; line-height: 1.55; color: var(--text2); margin: 0; }

/* --- Feature pages (/reports, /export) ---
   Deliberately thin: these pages reuse .page / .page-header / .benefits / .benefit /
   .price-table / .legal from above. Only the pieces that had no existing equivalent
   live here. */

.page-header .cta-row { margin-top: 20px; }
.page-header .cta-help { margin-top: 10px; }

/* A .page holding only a header is followed immediately by .benefits/.section,
   which bring their own top padding — drop the duplicate gap. */
.page.tight { padding-bottom: 0; }
.page.tight .page-header { margin-bottom: 0; }

/* .legal centres itself in a 760px column, which is right for a standalone privacy
   page but reads as a mis-indent when it follows full-width .section blocks. */
.legal.flush {
  max-width: 1240px;
  padding: 8px 32px 24px;
  margin: 0 auto;
}

.legal.flush > * { max-width: 780px; }
.legal.flush h2:first-child { margin-top: 0; }

.section {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 32px 32px;
}

.section > h2 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section > .lead {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text2);
  max-width: 700px;
  margin: 0 0 20px;
}

.section > .lead strong { color: var(--text); }
.section > .lead a { color: var(--text); text-decoration: none; white-space: nowrap; }
.section > .lead a:hover { text-decoration: underline; }

/* Comparison + column tables reuse .price-table, which is sized for the 640px
   pricing grid — these carry prose cells and need the extra width. */
.price-table-wrap.wide { max-width: 900px; }
.price-table-wrap.wide .price-table td { line-height: 1.5; }
.price-table td.yes { color: var(--text); }
.price-table td.no { color: var(--text2); }

.note {
  max-width: 700px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text3);
  border-left: 2px solid var(--border);
  padding-left: 14px;
  margin: 16px 0 0;
}

.readmore { display: grid; gap: 8px; max-width: 780px; }

.readmore a {
  display: block;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--surface);
  color: var(--text2);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.readmore a:hover { border-color: var(--text3); color: var(--text); }

/* --- Legal pages --- */

.legal {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 32px;
}

.legal h1 { font-size: 32px; letter-spacing: -0.02em; margin: 0 0 6px; }

.legal .updated { font-size: 13px; color: var(--text3); margin: 0 0 32px; }

.legal h2 { font-size: 19px; margin: 32px 0 10px; }

.legal p, .legal li { font-size: 14.5px; line-height: 1.65; color: var(--text2); }

.legal strong { color: var(--text); }

.legal a { color: var(--text); }

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 12px 0;
}

.legal th, .legal td {
  text-align: left;
  padding: 8px 12px;
  border: 1px solid var(--border);
  color: var(--text2);
  vertical-align: top;
}

.legal th { color: var(--text); background: var(--surface); }

/* --- Responsive --- */

@media (min-width: 641px) and (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 48px 24px 32px; }
  .hero-title { font-size: 44px; }
  .hero-preview-wrap { order: 2; }
  .benefits { grid-template-columns: minmax(0, 1fr); padding: 24px 24px 8px; }
  .admin-section { padding: 24px 24px 16px; }
}

@media (max-width: 780px) {
  .admin-card { grid-template-columns: auto 1fr; row-gap: 14px; }
  .admin-actions { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  /* Five nav items no longer fit beside the brand; without wrapping, the topbar
     forces the page wider than the viewport and body's overflow-x:hidden then
     clips every section's right edge. Give the nav its own row. */
  .topbar { padding: 12px 20px; flex-wrap: wrap; row-gap: 10px; }
  .topbar-spacer { display: none; }
  .topbar-nav { width: 100%; gap: 18px; }
  .brand-tagline { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 32px 20px 24px; gap: 32px; }
  .hero-title { font-size: 30px; line-height: 1.12; letter-spacing: -0.02em; }
  .hero-subtitle { font-size: 15px; }
  .hero-preview-wrap { order: 2; }
  .benefits { grid-template-columns: minmax(0, 1fr); padding: 16px 20px 4px; }
  .admin-section { padding: 20px 20px 12px; }
  .footer { padding: 20px; justify-content: center; text-align: center; gap: 10px; }
  .page { padding: 40px 20px; }
  .page-header h1 { font-size: 30px; }
  .section { padding: 16px 20px 24px; }
  .section > h2 { font-size: 22px; }
  .pricing-notes { grid-template-columns: minmax(0, 1fr); }
  .price-table th, .price-table td { padding: 12px 14px; }
  .legal { padding: 40px 20px; }
  .legal.flush { padding: 8px 20px 16px; }
}

/* --- Video facade -----------------------------------------------------------
   Click-to-load YouTube embed, used on /planner, /planner/reports and
   /planner/export (all three load this file).

   Why a facade and not a plain <iframe>: the iframe pulls ~500KB of
   third-party JS plus cookies on first paint. /planner is already fighting to
   get indexed at all ("Discovered - currently not indexed" as of 2026-08-23),
   so the one thing this page cannot afford is a Core Web Vitals regression.
   Nothing leaves our origin until someone actually clicks play; the poster is
   served from /planner/video-poster.jpg, not from i.ytimg.com. */

/* 56px top so the h2 reads as a new section: .benefits above it ends on only
   16px of its own bottom padding, which left a 24px gap the heading got lost in. */
.video-section { padding: 56px 24px 56px; }

/* Except on /reports and /export, where the video follows .lp-hero — that
   already carries 56px of bottom padding and does not need another 56. */
.lp-hero + .video-section { padding-top: 8px; }
.video-inner { max-width: 940px; margin: 0 auto; }

.video-head { text-align: center; max-width: 620px; margin: 0 auto 28px; }
.video-head h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 10px; }
.video-head p { color: var(--text2); font-size: 15.5px; line-height: 1.55; margin: 0; }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--surface);
  cursor: pointer;
  display: block;
  width: 100%;
  padding: 0;
}

/* width/height 100% rather than max-width: a point-sized or smaller source
   must scale UP to fill the frame, and max-* cannot do that. */
.video-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0%) 45%, rgb(0 0 0 / 45%) 100%);
  pointer-events: none;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--accent);
  border: none;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 28px rgb(0 0 0 / 45%);
  transition: background-color 120ms ease, transform 120ms ease;
  pointer-events: none;
  z-index: 1;
}

.video-frame:hover .video-play,
.video-frame:focus-visible .video-play {
  background-color: var(--accent-hover);
  transform: translate(-50%, -50%) scale(1.06);
}

.video-play svg { margin-left: 4px; }

.video-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background-color: rgb(0 0 0 / 65%);
  padding: 3px 8px;
  border-radius: 5px;
  pointer-events: none;
}

.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-frame.playing { cursor: default; }
.video-frame.playing::after,
.video-frame.playing .video-play,
.video-frame.playing .video-duration { display: none; }

.video-fine { text-align: center; font-size: 13px; color: var(--text3); margin: 16px 0 0; }
.video-fine a { color: var(--text2); }

@media (max-width: 640px) {
  .video-section { padding: 40px 20px 40px; }
  .lp-hero + .video-section { padding-top: 4px; }
  .video-head h2 { font-size: 22px; }
  .video-head p { font-size: 15px; }
  .video-play { width: 56px; height: 56px; }
  .video-play svg { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .video-frame:hover .video-play,
  .video-frame:focus-visible .video-play { transform: translate(-50%, -50%); transition: none; }
}
