/* EverScrape: shared styles for every page of the site. Light, airy, one accent (mint). */
[hidden] { display: none !important; }   /* the hidden attribute always wins over display: flex / inline-flex */
/* fonts are served by our own server (SIL Open Font License, texts in LICENSES/) -- no Google Fonts request */
@font-face { font-family: "Outfit"; src: url("/outfit.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --bg: #f8f8f5;
  --surface: #ffffff;
  --wash: #eef5f0;
  --mint: #0e8a62;          /* brand green (logo) */
  --mint-deep: #0a6e4e;     /* green text on light backgrounds */
  --mint-soft: #dcefe6;
  --ink: #121417;           /* brand ink (logo) */
  --ink-2: #34393b;
  --muted: #5f6662;
  --faint: #979d99;
  --line: #e4e7e3;
  --line-2: #d2d8d3;
  --bad: #d64545;
  --warn: #b7791f;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(12, 26, 21, .04), 0 12px 32px -12px rgba(12, 26, 21, .12);
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--mint-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* brand: symbol + "EverScrape" in Outfit Bold (see src/brand.js) */
.logo { display: inline-flex; align-items: center; gap: .14em; font: 700 1em/1 var(--font); letter-spacing: -.02em; white-space: nowrap; color: var(--ink); }
.logo .sym { height: 1.06em; width: auto; flex: none; overflow: visible; }
.brand { display: inline-flex; align-items: center; color: var(--ink); font-size: 22px; }
.brand:hover { text-decoration: none; }
.inf { display: inline-block; height: .9em; width: auto; }

/* header: a floating capsule */
.top { position: sticky; top: 0; z-index: 30; padding: 14px 16px 0; pointer-events: none; }
.bar { pointer-events: auto; max-width: 1080px; margin: 0 auto; height: 64px; padding: 0 8px 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255, 255, 255, .72); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid rgba(207, 218, 211, .8); border-radius: 999px; box-shadow: 0 8px 30px -16px rgba(12, 26, 21, .25); transition: box-shadow .2s, background .2s; }
.top.scrolled .bar { background: rgba(255, 255, 255, .9); box-shadow: 0 12px 34px -14px rgba(12, 26, 21, .3); }
.bar .links { display: flex; align-items: center; gap: 4px; }
.bar .links a, .bar .signin { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; color: var(--ink-2); font-size: 15px; font-weight: 500; transition: background .15s, color .15s; }
.bar .links a:hover, .bar .signin:hover { background: var(--wash); color: var(--ink); text-decoration: none; }
.bar .links a.on { background: var(--mint-soft); color: var(--mint-deep); }
.bar .right { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.bar button.signin { border: 0; background: none; cursor: pointer; font-family: inherit; }
.bar .cta { height: 46px; padding: 0 20px; font-weight: 600; color: #fff !important; box-shadow: 0 6px 16px -8px rgba(14, 138, 98, .8); }
.bar .cta .arr { font-size: 15px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font: 500 15px var(--font); cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #24292c; transform: translateY(-1px); }
.btn-mint { background: var(--mint); color: #fff; }
.btn-mint:hover { background: #0b7854; transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.chip-mint { background: var(--mint-soft); color: var(--mint-deep); }
.chip-grey { background: #edf1ee; color: var(--muted); }
.chip-bad { background: #fbe9e9; color: var(--bad); }
.chip-warn { background: #fbf1df; color: var(--warn); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

input, select { width: 100%; height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 15px var(--font); }
input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(14, 138, 98, .16); }
label.lbl { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.err { color: var(--bad); font-size: 14px; min-height: 20px; margin-top: 10px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot .brand { font-size: 19px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* modal + toast */
.modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow: auto; background: rgba(12, 26, 21, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal.on { display: flex; animation: fade .18s ease; }
.sheet { position: relative; width: 100%; max-width: 520px; padding: 30px; background: #fff; border-radius: 24px; box-shadow: 0 30px 80px -20px rgba(12, 26, 21, .35); animation: rise .22s ease; }
.sheet h3 { margin: 0 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.x { position: absolute; right: 16px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.x:hover { background: var(--wash); color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: var(--shadow); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 8px; }
.legal h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 40px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal .meta { color: var(--faint); font-size: 14px; margin-bottom: 32px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 12px 0; }
.legal td, .legal th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--muted); font-weight: 500; }

@media (max-width: 860px) { .bar .links { display: none; } }
@media (max-width: 560px) {
  .top { padding: 10px 10px 0; }
  .bar { height: 56px; padding: 0 6px 0 16px; }
  .brand { font-size: 17px; }
  .bar .signin { padding: 0 10px; font-size: 14px; }
  .bar .cta { height: 42px; padding: 0 14px; font-size: 14px; }
  .bar .cta .lg { display: none; }
  .bar .cta .arr { display: none; }
}
@media (max-width: 400px) {
  .bar .signin { display: none; }
  .wrap { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; } }
