/* Tend's public site: home, privacy and terms. Colours follow the app's theme
   (lib/ui/theme.dart); Inter comes from the web app's own bundled fonts. */

@font-face {
  font-family: "Inter";
  src: url("/app/assets/assets/google_fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/app/assets/assets/google_fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/app/assets/assets/google_fonts/Inter-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #FAF8F2;
  --surface: #FFFFFF;
  --surface-2: #F2EFE6;
  --text: #2B2A25;
  --muted: #6B675C;
  --line: #E4DFD2;
  --accent: #4F7358;
  --accent-text: #FFFFFF;
  --green: #4F8F5B;
  --yellow: #CC9152;
  --red: #C24A42;
  --blue: #4A7FB5;
  --shadow: 0 1px 2px rgba(43, 42, 37, 0.06), 0 8px 24px rgba(43, 42, 37, 0.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #211E18;
    --surface: #2A2620;
    --surface-2: #332E27;
    --text: #EAE3D3;
    --muted: #A9A18F;
    --line: #3D372E;
    --accent: #A8C795;
    --accent-text: #1B1A15;
    --green: #68A184;
    --yellow: #E5AA7E;
    --red: #E57E7E;
    --blue: #89ACCF;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-weight: 800; font-size: 22px; letter-spacing: -0.01em;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover { filter: brightness(1.06); }
.button.large { padding: 14px 28px; font-size: 18px; }
.button.quiet { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }

/* Hero */
.hero { padding: 56px 0 40px; text-align: center; }
.hero h1 {
  margin: 0 auto 16px; max-width: 760px;
  font-size: clamp(36px, 6vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em;
}
.hero p.lede { margin: 0 auto 28px; max-width: 600px; font-size: 20px; color: var(--muted); }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.platforms { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* Features */
.features { padding: 40px 0 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 32px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow);
}
.feature h2 { margin: 0 0 10px; font-size: 28px; line-height: 1.2; letter-spacing: -0.015em; }
.feature p { margin: 0; color: var(--muted); }
.eyebrow {
  display: block; margin-bottom: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}

/* Screenshots: the real app with a made-up demo account (tool/site_screenshots_test.dart). */
.shot {
  display: block; width: 100%; height: auto;
  border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero-shot { padding-bottom: 16px; }
.hero-shot .shot { border-radius: 16px; }
.feature.wide { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.feature.wide .feature-text { max-width: 640px; }
.feature:not(.wide) .shot { max-width: 440px; margin: 0 auto; }

/* More features */
.more { padding: 32px 0 16px; }
.more h2 { text-align: center; font-size: 28px; margin: 0 0 24px; letter-spacing: -0.015em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 20px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }

.cta { padding: 48px 0 24px; text-align: center; }
.cta h2 { font-size: 30px; margin: 0 0 18px; letter-spacing: -0.015em; }

/* Legal pages */
.doc { padding: 16px 0 40px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.02em; margin: 24px 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; letter-spacing: -0.01em; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .summary {
  padding: 18px 20px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow);
}
.doc .summary ul { margin: 8px 0 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.doc th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* Footer */
.site-footer { padding: 32px 0 40px; border-top: 1px solid var(--line); margin-top: 32px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 800px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 22px; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .hero p.lede { font-size: 18px; }
}
