/* dontfrett.com — greyscale, minimal, Roboto (self-hosted, as in the app).
   No inline styles anywhere: the site's Content-Security-Policy forbids them. */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/roboto-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #000000;
  --text: #222222;
  --text-2: #444444;
  --muted: #666666;
  --border: #e0e0e0;
  --divider: #f0f0f0;
  --surface: #f8f8f8;
  --white: #ffffff;
  /* App colours, used only inside the phone screenshot */
  --app-primary: #6c3ae0;
  --app-primary-tint: #f3eefe;
  --app-positive: #4caf50;
  --app-negative: #f44336;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--black);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--text-2); text-decoration: none; }
a:hover { color: var(--black); }
a:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--divider); }
.site-header .wrap {
  padding-top: 20px; padding-bottom: 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--black); }
.brand span { font-size: 20px; font-weight: 600; }
.nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; }
.nav a[aria-current='page'] { color: var(--black); font-weight: 600; }

main { flex: 1; }

/* Home: hero */
.hero { padding-top: 88px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { margin: 0; font-size: clamp(56px, 8vw, 88px); line-height: 1; font-weight: 700; letter-spacing: -0.02em; }
.tagline { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.25; font-weight: 500; }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 560px; }
.badge-link { display: block; align-self: flex-start; margin-left: -14px; margin-top: 8px; line-height: 0; }
.badge-link img { display: block; width: 232px; height: auto; }

/* Home: phone screenshot (built in HTML, app colours) */
.phone-wrap { flex: 0 1 320px; display: flex; justify-content: center; margin: 0 auto; }
.phone {
  width: 300px; height: 610px; border: 10px solid #111111; border-radius: 44px; background: var(--white);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}
.phone-bar { height: 56px; display: flex; align-items: center; justify-content: center; position: relative; border-bottom: 1px solid var(--divider); }
.phone-bar svg { position: absolute; left: 16px; }
.phone-bar span { font-size: 17px; font-weight: 700; }
.phone-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.phone-date { font-size: 15px; font-weight: 600; }
.moment { border: 1px solid var(--border); border-left-width: 4px; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.moment.positive { border-left-color: var(--app-positive); }
.moment.negative { border-left-color: var(--app-negative); }
.moment-top { display: flex; justify-content: space-between; align-items: center; }
.moment-time { font-size: 13px; font-weight: 700; }
.moment-text { font-size: 13px; line-height: 1.4; }
.chip { align-self: flex-start; font-size: 11px; border: 1px solid var(--border); border-radius: 9999px; padding: 3px 10px; }
.chip.selected { color: var(--app-primary); background: var(--app-primary-tint); border-color: var(--app-primary); }
.day-tags { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }
.add-btn { width: 26px; height: 26px; border: 1px solid var(--app-primary); color: var(--app-primary); border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }
.phone-cta { padding: 0 0 20px; display: flex; justify-content: center; }
.phone-cta span { background: var(--app-primary); color: var(--white); border-radius: 9999px; padding: 11px 36px; font-size: 14px; font-weight: 600; }

/* Home: features */
.features { background: var(--surface); }
.features .wrap { padding-top: 80px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px; }
.feature { display: flex; flex-direction: column; gap: 12px; }
.feature h2 { margin: 0; font-size: 20px; font-weight: 600; }
.feature p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }

/* Home: privacy band */
.privacy-band { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; justify-content: space-between; }
.privacy-band div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.privacy-band h2 { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.2; }
.privacy-band p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 560px; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--black); border-bottom: 1.5px solid var(--black); padding-bottom: 2px; }

/* Page intro (Contact) */
.page { padding-top: 88px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.page-intro { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.page-intro h1, .legal-head h1 { margin: 0; font-size: clamp(40px, 6vw, 56px); line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; color: var(--black); }
.page-intro p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-2); }

/* Contact */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { border: 1px solid var(--border); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card h2 { margin: 0; font-size: 20px; font-weight: 600; }
.card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.card p a, .legal a { color: var(--black); text-decoration: underline; }
.email { margin-top: 8px; align-self: flex-start; font-size: 18px; font-weight: 600; color: var(--black); border-bottom: 1.5px solid var(--black); padding-bottom: 2px; }
.notice { background: var(--surface); border-radius: 16px; padding: 24px 28px; display: flex; gap: 16px; align-items: flex-start; max-width: 760px; }
.notice svg { flex: none; margin-top: 2px; }
.notice div { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.notice p { margin: 0; }

/* Legal pages */
.legal-layout { padding-top: 72px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.toc { flex: 1 1 200px; max-width: 240px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; padding-top: 8px; }
.toc-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }
.legal { flex: 999 1 560px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 40px; font-size: 17px; line-height: 1.7; color: var(--text); }
.legal-head { display: flex; flex-direction: column; gap: 12px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.updated { font-size: 15px; color: var(--muted); }
.legal p { margin: 0; }
.legal-head p { margin-top: 8px; }
.legal section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 24px; }
.legal h2 { margin: 0; font-size: 22px; font-weight: 600; color: var(--black); }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal strong { font-weight: 600; }
.legal .note { padding: 24px 28px; background: var(--surface); border-radius: 16px; font-size: 16px; color: var(--text-2); }

/* 404 */
.not-found { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.not-found h1 { margin: 0; font-size: 40px; }
.not-found p { margin: 0; font-size: 18px; color: var(--text-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }

@media (max-width: 640px) {
  .hero { padding-top: 48px; padding-bottom: 64px; gap: 48px; }
  .page, .legal-layout { padding-top: 48px; padding-bottom: 64px; }
  .toc { max-width: none; }
  .features .wrap, .privacy-band { padding-top: 56px; padding-bottom: 56px; }
}
