/* Job Tracker website. Colors mirror the extension's tokens.css; the page
   follows the visitor's system theme. System fonts only — nothing is loaded
   from third-party servers. */

:root {
  color-scheme: light;
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --surface-2: #F3F2EF;
  --border: #E8E7E3;
  --text: #2A2A27;
  --text-2: #6E6C67;
  --accent: #003554;
  --on-accent: #FFFFFF;
  --accent-2: #00A6FB;
  --accent-soft: #E3F4FF;
  --magic-from: #003554;
  --glow: rgba(0, 166, 251, 0.35);
  --shadow: 0 10px 30px rgba(20, 20, 15, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --radius: 12px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #161615;
    --surface: #1F1F1D;
    --surface-2: #262624;
    --border: #353430;
    --text: #ECEBE7;
    --text-2: #A3A19B;
    --accent: #5CC4FF;
    --on-accent: #06202F;
    --accent-soft: #10324A;
    --magic-from: #1B6FA3;
    --glow: rgba(0, 166, 251, 0.45);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 6px;
}

/* Logo variant per theme */

.logo { height: 28px; width: auto; }
.logo-dark { display: none; }

@media (prefers-color-scheme: dark) {
  .logo-light { display: none; }
  .logo-dark { display: block; }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.site-header nav a:not(.btn) {
  color: var(--text-2);
  text-decoration: none;
}

.site-header nav a:not(.btn):hover { color: var(--text); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font);
}

.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

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

.btn-primary:hover { filter: brightness(1.1); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover { border-color: var(--text-2); }

.btn-small { padding: 8px 14px; font-size: 14px; }

/* The "magic" rotating gradient border, same as the extension's Fill button */

@property --magic-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.magic {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--magic-angle), var(--magic-from), var(--accent-2), #9BDCFF, var(--accent-2), var(--magic-from)) border-box;
  color: var(--accent);
  animation: magic-spin 4s linear infinite;
}

.magic:hover { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 20px var(--glow); }

@keyframes magic-spin { to { --magic-angle: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  .magic { animation: none; }
}

/* Hero */

.hero {
  padding: 88px 0 56px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 auto 20px;
  max-width: 820px;
}

.hero h1 .hl { color: var(--accent-2); }

.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.fine {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-2);
}


/* Screenshots (placeholders until real images are added) */

.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shot img { width: 100%; height: auto; }

.shot.placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, var(--surface-2) 12px 24px),
    var(--surface);
  color: var(--text-2);
  font-size: 15px;
  text-align: center;
  padding: 24px;
}

.shot figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-2);
  border-top: 1px solid var(--border);
}

.shot.placeholder figcaption { border: none; padding: 0; }

/* Sections */

section { padding: 72px 0; }

#demo { padding-top: 8px; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--text-2);
  margin: 0;
}

.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Features */

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

.feature {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.alt .feature { background: var(--bg); }

.feature .ico {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}

.feature .ico svg { width: 22px; height: 22px; }

.feature h3 { font-size: 18px; margin: 0 0 6px; }

.feature p { margin: 0; color: var(--text-2); font-size: 16px; }

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  padding-top: 56px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.steps h3 { margin: 0 0 6px; font-size: 19px; }

.steps p { margin: 0; color: var(--text-2); }

/* Video (click-to-load: nothing is requested from YouTube until play) */

.video {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background:
    linear-gradient(rgba(0, 30, 49, 0.55), rgba(0, 30, 49, 0.55)),
    url("assets/shot-hero.webp") center / cover,
    #001E31;
}

.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.video-play .play {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #003554;
  transition: transform 0.15s ease;
}

.video-play:hover .play { transform: scale(1.06); }

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

.video-note {
  max-width: 680px;
  margin: 14px auto 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}

.video-note a { color: inherit; text-decoration: underline; }

/* Screenshot gallery */

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.gallery .wide { grid-column: 1 / -1; }

/* Privacy */

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.privacy-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.alt .privacy-item { background: var(--bg); }

.privacy-item svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--accent-2); margin-top: 2px; }

.privacy-item h3 { margin: 0 0 4px; font-size: 17px; }

.privacy-item p { margin: 0; color: var(--text-2); font-size: 15px; }

.center-link { text-align: center; margin-top: 28px; }

/* FAQ */

.faq { max-width: 760px; margin: 0 auto; }

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  font-size: 18px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: var(--text-2);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { margin: 0 0 18px; color: var(--text-2); }

/* Support */

.support-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 44px 32px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.support-card h2 { margin: 0 0 10px; font-size: 28px; }

.support-card p { color: var(--text-2); margin: 0 auto 24px; max-width: 520px; }

/* Footer */

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-2);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

.site-footer a { color: var(--text-2); }

.site-footer a:hover { color: var(--text); }

/* Legal page */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}

.legal h1 { font-size: 40px; letter-spacing: -0.015em; margin: 0 0 8px; }

.legal .updated { color: var(--text-2); margin: 0 0 36px; }

.legal h2 { font-size: 22px; margin: 40px 0 10px; }

.legal h3 { font-size: 18px; margin: 24px 0 8px; }

.legal p, .legal li { color: var(--text); }

.legal ul { padding-left: 22px; }

.legal li { margin-bottom: 6px; }

.legal .summary {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.legal .summary p { margin: 0; }

.legal code {
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Responsive */

@media (max-width: 900px) {
  .features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .site-header nav a:not(.btn) { display: none; }
  .features, .steps, .gallery, .privacy-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  section { padding: 56px 0; }
}
