/* ScottsWorkflow landing page. Dark mode is the default. */

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090d0c;
  --bg-soft: #0d1311;
  --surface: #111816;
  --surface-strong: #16201d;
  --ink: #f5f1e8;
  --ink-soft: #d5d8d2;
  --muted: #96a19c;
  --line: rgba(245, 241, 232, 0.12);
  --line-strong: rgba(245, 241, 232, 0.22);
  --green: #5bc0a2;
  --green-strong: #83d7bd;
  --gold: #d7a847;
  --header: rgba(9, 13, 12, 0.82);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --grid: rgba(245, 241, 232, 0.035);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f1e8;
  --bg-soft: #ece6d9;
  --surface: #fffaf0;
  --surface-strong: #f4ecde;
  --ink: #17211f;
  --ink-soft: #33413d;
  --muted: #64716d;
  --line: rgba(23, 33, 31, 0.14);
  --line-strong: rgba(23, 33, 31, 0.26);
  --green: #19735f;
  --green-strong: #0f5b4b;
  --gold: #a97513;
  --header: rgba(245, 241, 232, 0.84);
  --shadow: 0 24px 70px rgba(35, 28, 18, 0.12);
  --grid: rgba(23, 33, 31, 0.045);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(0deg, var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(circle at 12% 6%, color-mix(in srgb, var(--gold) 11%, transparent), transparent 30rem),
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--green) 10%, transparent), transparent 32rem),
    var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  transition: background-color 180ms ease, color 180ms ease;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

svg {
  display: block;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid transparent;
  background: var(--header);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--green-strong);
  font-size: 0.74rem;
  letter-spacing: -0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--green);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.theme-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-self: end;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink-soft);
  padding: 7px 11px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.theme-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

[data-theme="dark"] .theme-icon-moon,
[data-theme="light"] .theme-icon-sun {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(340px, 0.86fr);
  align-items: center;
  gap: clamp(52px, 8vw, 112px);
  min-height: calc(100svh - 76px);
  padding-block: 88px 104px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--green-strong);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.signal {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 14%, transparent);
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1,
h2 {
  margin-top: 0;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

h1 {
  max-width: 780px;
  margin-bottom: 30px;
  font-size: clamp(3.6rem, 7.1vw, 6.7rem);
}

h1 span {
  color: var(--muted);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 4vw, 4.4rem);
}

.hero-intro {
  max-width: 700px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 11px 18px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--green);
  color: #07110e;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--green) 18%, transparent);
}

.button-primary:hover {
  background: var(--green-strong);
  transform: translateY(-1px);
}

.sharing-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.sharing-status span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
}

.workbench {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
}

.workbench-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 15px 17px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.workbench-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.workbench-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 22px 18px;
}

.item-number {
  color: var(--gold);
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
}

.workbench-list strong,
.workbench-list small {
  display: block;
}

.workbench-list strong {
  margin-bottom: 3px;
  font-size: 1rem;
}

.workbench-list small {
  color: var(--muted);
  font-size: 0.78rem;
}

.workbench-note {
  margin: 0;
  padding: 14px 18px;
  background: var(--surface-strong);
  color: var(--muted);
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 0.67rem;
}

.about-section {
  scroll-margin-top: 74px;
  border-top: 1px solid var(--line);
  padding-block: clamp(80px, 10vw, 130px);
}

.about-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--green) 8%, transparent), transparent 42%),
    var(--surface);
  padding: clamp(28px, 6vw, 72px);
  box-shadow: var(--shadow);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(48px, 9vw, 120px);
}

.about-layout h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.about-copy p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.footer-inner p:last-child {
  justify-self: end;
}

.footer-brand {
  font-size: 0.82rem;
}

.footer-brand .brand-mark {
  width: 30px;
  height: 30px;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 92px;
  }

  .workbench {
    max-width: 620px;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-inner p:nth-child(2) {
    display: none;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 30px, 1180px);
  }

  .header-inner {
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    min-height: 68px;
  }

  .brand > span:last-child {
    display: none;
  }

  .site-nav a {
    font-size: 0.8rem;
  }

  .theme-toggle span {
    display: none;
  }

  .theme-toggle {
    width: 40px;
    justify-content: center;
    padding: 7px;
  }

  .hero {
    gap: 58px;
    padding-block: 72px 84px;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 4.8rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-card {
    padding: 30px 22px;
  }

  .footer-inner {
    gap: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
