/* Notes Maker LM — shared styles.
   Palette mirrors the app's design system: amber accent (#B45309 light / #F0A83C dark)
   over warm graphite ink (#1C1917), system font stack to match SF Pro on device. */

/* ---------- Tokens ---------- */
:root {
  --amber: #B45309;
  --amber-soft: rgba(180, 83, 9, .10);
  --ink: #1C1917;
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --text: #1C1917;
  --muted: #6B6259;
  --faint: #8C837A;
  --border: rgba(28, 25, 23, .12);
  --shadow: 0 1px 2px rgba(28,25,23,.04), 0 8px 24px rgba(28,25,23,.06);
  --radius: 16px;
  --maxw: 720px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --amber: #F0A83C;
    --amber-soft: rgba(240, 168, 60, .12);
    --ink: #F4F0EA;
    --bg: #141210;
    --surface: #1E1B18;
    --text: #EDE8E0;
    --muted: #A39C92;
    --faint: #8A837A;
    --border: rgba(244, 240, 234, .14);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; box-shadow: var(--shadow); }
.site-header nav { margin-left: auto; display: flex; gap: 20px; font-size: 15px; }
.site-header nav a { color: var(--muted); }
.site-header nav a:hover { color: var(--amber); }

/* ---------- Layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 96px; }

/* ---------- Hero (landing) ---------- */
.hero { text-align: center; padding: 72px 24px 56px; max-width: var(--maxw); margin: 0 auto; }
.hero .app-icon {
  width: 108px; height: 108px; border-radius: 24px;
  box-shadow: 0 4px 12px rgba(28,25,23,.10), 0 16px 40px rgba(28,25,23,.14);
  margin-bottom: 28px;
}
.hero h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 700; }
.hero .tagline { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); margin: 0 auto 36px; max-width: 30em; line-height: 1.5; }
.hl { color: var(--amber); }

/* Official Apple badge artwork, served locally. Black on light, white on dark, per
   Apple's identity guidelines. Height comfortably clears the 40px minimum. */
.badge-link { display: inline-block; transition: transform .15s ease, opacity .15s ease; }
.badge-link:hover { text-decoration: none; transform: translateY(-1px); opacity: .88; }
.badge-link img { display: block; height: 54px; width: auto; }
.cta-note { display: block; margin-top: 14px; font-size: 14px; color: var(--faint); }

/* ---------- Feature strip ---------- */
.features { max-width: var(--maxw); margin: 0 auto; padding: 8px 24px 88px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow); }
.feature .ico { font-size: 22px; line-height: 1; display: block; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; font-weight: 640; letter-spacing: -.01em; }
.feature p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Legal typography ---------- */
.doc h1 { font-size: clamp(28px, 4.5vw, 38px); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 10px; font-weight: 700; }
.doc .updated { color: var(--faint); font-size: 15px; margin: 0 0 8px; }
.doc .lede { color: var(--muted); font-size: 17px; margin: 20px 0 0; padding: 18px 20px;
  background: var(--amber-soft); border-radius: 12px; border-left: 3px solid var(--amber); }
.doc h2 { font-size: 21px; letter-spacing: -.015em; margin: 52px 0 12px; padding-top: 26px;
  border-top: 1px solid var(--border); font-weight: 660; }
.doc h2:first-of-type { border-top: none; padding-top: 0; }
.doc h3 { font-size: 17px; margin: 28px 0 8px; font-weight: 640; }
.doc p, .doc li { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 7px 0; }
.doc li::marker { color: var(--amber); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 480px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 620; color: var(--text); background: var(--amber-soft); font-size: 14px;
  letter-spacing: .01em; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 560; white-space: nowrap; }

/* ---------- Callout ---------- */
.callout { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; margin: 22px 0; box-shadow: var(--shadow); }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Support page ---------- */
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; margin: 26px 0; box-shadow: var(--shadow); text-align: center; }
.contact-card .email { font-size: 20px; font-weight: 620; letter-spacing: -.01em; display: inline-block; margin: 6px 0 10px; }
.contact-card p { margin: 0; color: var(--muted); font-size: 15px; }
details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  padding: 0 18px; margin: 10px 0; box-shadow: var(--shadow); }
details[open] { padding-bottom: 6px; }
summary { cursor: pointer; padding: 15px 0; font-weight: 580; list-style: none; font-size: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--amber); font-size: 20px; font-weight: 400; flex-shrink: 0; }
details[open] summary::after { content: "\2212"; }
details p, details ul { margin-top: 0; color: var(--muted); font-size: 15.5px; }
details > *:not(summary) { padding-bottom: 2px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; }
.site-footer .inner { max-width: var(--maxw); margin: 0 auto; padding: 36px 24px 56px;
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  font-size: 14.5px; color: var(--faint); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--amber); }
.site-footer .copy { margin-left: auto; }
@media (max-width: 560px) {
  .site-footer .copy { margin-left: 0; width: 100%; padding-top: 8px; }
  main { padding-top: 40px; }
}
