/* PennyBright — shared styles
   Palette sampled from the logo: amber #DE9438 background, near-black ink,
   red-orange heart. Paired with a warm cream page so long-form privacy and
   support copy stays comfortably readable. System fonts only — no third-party
   requests, in keeping with the app's privacy-first ethos. */

:root {
  --bg: #FCF6EE;          /* warm cream page background */
  --surface: #FFFDF9;     /* cards / panels */
  --amber: #DE9438;       /* logo background — accents, medallion, rules */
  --amber-soft: #F3D9B0;  /* tints, hairline accents */
  --link: #8F520C;        /* deep amber, accessible on cream (~5:1) */
  --ink: #2B2017;         /* body text — warm near-black */
  --ink-soft: #6E5C4A;    /* secondary text */
  --heart: #E2533A;       /* the heart — used sparingly */
  --line: #ECE1D2;        /* hairlines */
  --shadow: 0 1px 2px rgba(73, 45, 12, .04), 0 8px 24px rgba(73, 45, 12, .06);

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --measure: 42rem;       /* readable line length */
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Respect the notch / home indicator */
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
}

img { max-width: 100%; height: auto; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Site header (content pages) ---------- */
.site-header {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}
.brand span { font-size: 1.0625rem; letter-spacing: .2px; }

/* ---------- Content pages (privacy / support) ---------- */
.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
}
.page h1 {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  margin: .25rem 0 .35rem;
}
.page .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}
.page .updated {
  font-size: .9rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}
.page h2 {
  font-size: 1.3rem;
  margin: 2.4rem 0 .6rem;
  padding-top: .4rem;
}
.page h3 {
  font-size: 1.08rem;
  margin: 1.6rem 0 .4rem;
}
.page p, .page ul, .page ol { margin: 0 0 1rem; }
.page ul, .page ol { padding-left: 1.25rem; }
.page li { margin: .35rem 0; }
.page li::marker { color: var(--amber); }

/* A soft callout panel for the key "no data" promise */
.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}
.note :last-child { margin-bottom: 0; }

/* "What it doesn't do" — checklist of nopes */
.nope { list-style: none; padding-left: 0; }
.nope li {
  position: relative;
  padding-left: 1.9rem;
}
.nope li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--heart);
  font-weight: 700;
}

/* ---------- Email / call-to-action button ---------- */
.email-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--amber);
  color: #2B2017;
  font-weight: 600;
  text-decoration: none;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.email-btn:hover { text-decoration: none; filter: brightness(.97); }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--measure);
  margin: 2.5rem auto 0;
  padding: 1.75rem 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--ink-soft);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: .75rem;
}
.site-footer nav a { color: var(--ink); }
.site-footer p { margin: .25rem 0; }

/* ---------- Landing / hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem 2rem;
}
.hero-logo {
  width: min(58vmin, 360px);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.01em;
  margin: 1.4rem 0 .5rem;
}
.hero .tagline {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 auto;
  text-wrap: balance;
}
.hero .coming {
  margin-top: 1.75rem;
  font-size: .95rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.hero .coming::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

/* Privacy-first trio under the hero */
.pillars {
  list-style: none;
  margin: 2.5rem auto 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 46rem;
  width: 100%;
  text-align: left;
}
.pillars li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}
.pillars strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin-bottom: .25rem;
}
.pillars span { color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }

.hero-footer {
  margin-top: 2.75rem;
  font-size: .9rem;
  color: var(--ink-soft);
}
.hero-footer nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: .6rem;
}
.hero-footer nav a { color: var(--ink); }

@media (max-width: 540px) {
  .pillars { grid-template-columns: 1fr; max-width: 26rem; }
}

/* Visually hidden but available to screen readers & crawlers */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
