/* Fili site — same design system as the extension: teal, system fonts, calm. */
:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg: #F7F9F8;
  --surface: #FFFFFF;
  --surface-sunken: #EFF3F2;
  --border: #DDE4E2;
  --text: #182220;
  --text-muted: #5B6764;
  --primary: #0F766E;
  --primary-hover: #0B5D57;
  --primary-tint: #E4F2F0;
  --on-primary: #FFFFFF;
  --motif-ink: rgba(15, 118, 110, 0.05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1514;
    --surface: #171D1C;
    --surface-sunken: #1F2625;
    --border: #2E3735;
    --text: #E7ECEA;
    --text-muted: #9AA7A3;
    --primary: #34C4B4;
    --primary-hover: #4AD6C6;
    --primary-tint: #14322E;
    --on-primary: #06211D;
    --motif-ink: rgba(52, 196, 180, 0.05);
  }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--text); background-color: var(--bg);
  /* faint diagonal "filigrane" word motif — the product, as texture */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='240'%3E%3Ctext x='40' y='130' transform='rotate(-30 180 120)' font-family='Helvetica, Arial, sans-serif' font-size='26' font-weight='600' fill='rgba(15,118,110,0.05)'%3Efiligrane%3C/text%3E%3C/svg%3E");
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
header.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.wordmark { font-size: 22px; font-weight: 600; color: var(--primary); text-decoration: none; }
.lang { font-size: 14px; color: var(--text-muted); text-decoration: none; }
.lang:hover { color: var(--primary); }

.hero { padding: 48px 0 40px; }
h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 650; line-height: 1.15; letter-spacing: -0.01em; }
.tagline { font-size: 19px; color: var(--text-muted); margin-top: 16px; max-width: 56ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; align-items: center; }
.btn {
  display: inline-block; font-weight: 500; text-decoration: none;
  padding: 12px 20px; border-radius: 10px; font-size: 16px;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-soon {
  background: var(--surface-sunken); color: var(--text-muted);
  border: 1px dashed var(--border); cursor: default;
}
.watermark-demo {
  margin-top: 40px; padding: 28px; border-radius: 14px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--primary); position: relative;
}
.watermark-demo .doc-line { height: 10px; border-radius: 5px; background: var(--surface-sunken); margin: 10px 0; }
.watermark-demo .doc-line.short { width: 55%; }
.watermark-demo .stamp {
  position: absolute; inset: -40%; display: flex; flex-direction: column;
  justify-content: space-around; transform: rotate(-30deg); pointer-events: none;
}
.watermark-demo .stamp span {
  font-size: 15px; font-weight: 600; white-space: nowrap; text-align: center;
  color: var(--primary); opacity: 0.35;
}

section { padding: 36px 0; border-top: 1px solid var(--border); }
h2 { font-size: 26px; font-weight: 650; margin-bottom: 16px; }
h3 { font-size: 18px; font-weight: 600; margin: 20px 0 6px; }
p + p { margin-top: 12px; }
.muted { color: var(--text-muted); }

ul.checks { list-style: none; margin-top: 12px; }
ul.checks li { padding: 8px 0 8px 32px; position: relative; }
ul.checks li::before {
  content: '✓'; position: absolute; left: 4px; top: 8px;
  color: var(--primary); font-weight: 700;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px;
}
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { font-size: 14.5px; color: var(--text-muted); }

table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.table-scroll { overflow-x: auto; }

.privacy-band {
  background: var(--primary-tint); border-radius: 12px; padding: 20px 22px; margin-top: 20px;
}
.privacy-band strong { color: var(--primary); }

details { border-bottom: 1px solid var(--border); padding: 14px 0; }
details summary { font-weight: 600; cursor: pointer; font-size: 17px; }
details p { margin-top: 10px; color: var(--text-muted); }

code { background: var(--surface-sunken); padding: 2px 6px; border-radius: 5px; font-size: 0.9em; }
ol { padding-left: 22px; }
ol li { margin: 6px 0; }

footer { padding: 36px 0 48px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
footer p + p { margin-top: 8px; }
footer a { color: var(--primary); }
