/* wattlebrowser.com: the download page. Wattle Browser's light theme
   (src/renderer/shared/styles/tokens.css): warm paper, forest green as the
   accent, the Quad mark, Geist. */
@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f2f5ef;
  --bg-sunk: #e9eee6;
  --card: #ffffff;
  --border: #d7dfd3;
  --border-strong: #c1cdbd;
  --fg: #0b110e;
  --fg-1: #43534a;
  --fg-2: #55645b;
  --accent: #1c7a52;
  --accent-hover: #166645;
  --accent-soft: rgba(28, 122, 82, 0.12);
  --accent-soft-fg: #14613f;
  --mark-square: #0e4a35;
  --mark-leaf: #e3a21a;
  --mark-circle: #1c7a52;
  --mark-quarter: #34a86e;
  --shadow: 0 1px 0 rgba(11, 17, 14, 0.06), 0 1px 3px rgba(11, 17, 14, 0.1);
  --shadow-lift: 0 24px 56px -24px rgba(11, 17, 14, 0.32), 0 0 0 1px var(--border);
  --radius: 12px;
  --radius-lg: 18px;
  --ease-out: cubic-bezier(0.16, 0.84, 0.2, 1);
  --ease-spring: cubic-bezier(0.3, 1.5, 0.5, 1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
p {
  margin: 0;
}
a {
  color: var(--accent-soft-fg);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-hover);
}
code {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.i {
  width: 20px;
  height: 20px;
  flex: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-lift);
  z-index: 10;
}
.skip:focus {
  top: 16px;
}

/* The Quad mark's pieces. */
.q-square { fill: var(--mark-square); --i: 0; }
.q-leaf { fill: var(--mark-leaf); --i: 1; }
.q-quarter { fill: var(--mark-quarter); --i: 2; }
.q-circle { fill: var(--mark-circle); --i: 3; }
@keyframes pop {
  from { opacity: 0; transform: scale(0.3) translateY(6px); }
}
.pop .q {
  transform-box: fill-box;
  transform-origin: center;
  animation: pop 620ms var(--ease-spring) calc(var(--i) * 90ms + 200ms) backwards;
}

/* Two slow glows, forest and gold, behind the page. */
.glow {
  position: absolute;
  inset: 0 0 auto;
  height: 760px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(520px 340px at 78% 18%, rgba(52, 168, 110, 0.18), transparent 70%),
    radial-gradient(420px 300px at 92% 46%, rgba(227, 162, 26, 0.14), transparent 70%),
    radial-gradient(600px 380px at 8% 0%, rgba(28, 122, 82, 0.08), transparent 70%);
}

/* Header */
.top,
main,
.foot {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  min-height: 44px;
}
.brand:hover {
  color: var(--fg);
}
.brand-mark {
  width: 30px;
  height: 30px;
}
.wordmark {
  font-size: 19px;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.wordmark b {
  font-weight: 800;
}
.top nav {
  display: flex;
  gap: 4px;
}
.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--fg-1);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.top nav a:hover {
  background: var(--bg-sunk);
  color: var(--fg);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding: 48px 0 88px;
}
.pill {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-soft-fg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.lead {
  max-width: 58ch;
  margin-top: 20px;
  color: var(--fg-1);
  font-size: 18px;
  line-height: 1.65;
}
.cta {
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(28, 122, 82, 0.7);
  transition: background-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.btn:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(28, 122, 82, 0.8);
}
.btn:active {
  transform: scale(0.98);
}
.btn-quiet {
  min-height: 48px;
  background: var(--card);
  color: var(--fg);
  font-size: 16px;
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
}
.btn-quiet:hover {
  background: var(--card);
  color: var(--accent-soft-fg);
  box-shadow: var(--shadow), 0 0 0 1px var(--border-strong);
}
.cta-meta {
  margin-top: 14px;
  color: var(--fg-2);
  font-size: 14px;
}
.cta-soon {
  margin-top: 4px;
  color: var(--fg-2);
  font-size: 14px;
}

/* The browser window drawing */
.window {
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  transform: rotate(-1.2deg);
}
.window-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px 0;
  background: var(--bg-sunk);
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px 10px 0 0;
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 500;
}
.tab-on {
  background: var(--card);
  color: var(--fg);
}
.tab-mark {
  width: 14px;
  height: 14px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--border-strong);
}
.window-address {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.address {
  display: block;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg-2);
  font-size: 13px;
}
.window-page {
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 64px 24px 72px;
  background:
    radial-gradient(320px 200px at 50% 30%, rgba(52, 168, 110, 0.12), transparent 70%),
    var(--card);
}
.page-mark {
  width: 84px;
  height: 84px;
}
.page-word {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.page-word b {
  font-weight: 800;
}

/* Sections */
section h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
}
.features,
.install,
.help {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
}
.card-icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-soft-fg);
}
.card h3 {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 650;
}
.card p {
  margin-top: 6px;
  color: var(--fg-1);
  font-size: 15px;
}

/* Install */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* the long command scrolls in its box, not the page */
  gap: 14px;
  max-width: 760px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
}
.step-n {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.steps h3 {
  font-size: 17px;
  font-weight: 650;
}
.steps p {
  margin-top: 4px;
  color: var(--fg-1);
}
.steps li > div {
  min-width: 0;
  flex: 1;
}
.code {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 6px 6px 16px;
  border-radius: var(--radius);
  background: #0e1512;
  color: #e6efe9;
}
.code code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  padding: 8px 0;
}
.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: #e6efe9;
  font: 500 14px "Geist", ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out);
}
.copy:hover {
  background: rgba(255, 255, 255, 0.18);
}
.copy .i {
  width: 16px;
  height: 16px;
}
.steps-alt {
  max-width: 760px;
  margin-top: 14px;
  color: var(--fg-2);
  font-size: 15px;
}
.steps-alt code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-sunk);
  color: var(--fg);
  overflow-wrap: anywhere;
}
.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.notes li {
  display: flex;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-sunk);
  color: var(--fg-1);
  font-size: 15px;
}
.notes strong {
  color: var(--fg);
}
.note-icon {
  margin-top: 2px;
  color: var(--accent-soft-fg);
}
.notes code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--card);
  color: var(--fg);
  white-space: nowrap;
}

/* Help */
.help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.help p {
  max-width: 60ch;
  margin-top: 10px;
  color: var(--fg-1);
}

/* Footer */
.foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--fg-2);
  font-size: 14px;
}
.foot-mark {
  width: 22px;
  height: 22px;
  flex: none;
}

/* Smaller screens */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 24px;
  }
  .window {
    transform: none;
  }
  .grid,
  .notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .help {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .top,
  main,
  .foot {
    width: min(1120px, 100% - 32px);
  }
  .top nav a {
    padding: 0 10px;
  }
  .grid,
  .notes {
    grid-template-columns: minmax(0, 1fr);
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .btn-quiet {
    width: 100%;
    justify-content: center;
  }
  .foot {
    align-items: flex-start;
  }
}

/* Reduced motion: no pop, no smooth scrolling. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
