/* ==========================================================================
   Notily — notily.enix-systems.com
   Warm paper aesthetic. Fully self-contained: no external fonts, no CDN,
   no third-party requests of any kind.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Paper + ink */
  --paper-yellow: #F6E7A9;
  --bg: #FFFBF2;
  --bg-alt: #FDF6E7;
  --surface: #FFFFFF;
  --card: #FFFDF6;
  --ink: #2B2A26;
  --ink-soft: #5A554A;
  --ink-faint: #7A7364;
  --line: #E7DFCB;
  --line-soft: #F0E9D8;

  /* Amber accents */
  --accent: #B45309;
  --accent-strong: #8F4106;
  --grad-from: #FFCC4D;
  --grad-to: #D97706;
  --on-accent: #2B2A26;

  /* Sticky-note colours (the 7 muted papers) */
  --note-1: #F6E7A9;
  --note-2: #F3D9C0;
  --note-3: #E9E2C4;
  --note-4: #D9E6D3;
  --note-5: #CFE0E6;
  --note-6: #E1D8E9;
  --note-7: #F2D7D7;

  /* Device chrome */
  --bezel-1: #55504A;
  --bezel-2: #7D766B;
  --bezel-3: #38342E;
  --screen-edge: rgba(255, 255, 255, .22);

  /* Shape + rhythm */
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-pill: 999px;
  --container: 1160px;
  --shadow-sm: 0 1px 2px rgba(43, 42, 38, .06), 0 4px 12px rgba(43, 42, 38, .05);
  --shadow-md: 0 2px 4px rgba(43, 42, 38, .07), 0 12px 28px rgba(43, 42, 38, .08);
  --shadow-lg: 0 4px 10px rgba(43, 42, 38, .08), 0 24px 48px rgba(43, 42, 38, .10);
  --shadow-xl: 0 8px 20px rgba(43, 42, 38, .10), 0 40px 80px rgba(43, 42, 38, .14);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          Helvetica, Arial, "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1E1B14;
    --bg-alt: #241F17;
    --surface: #2A2519;
    --card: #322C1D;
    --ink: #EDEBE6;
    --ink-soft: #C3BCA9;
    --ink-faint: #A79E8B;
    --line: #4A4223;
    --line-soft: #3A331E;

    --accent: #FFCC4D;
    --accent-strong: #FFDD85;
    --grad-from: #FFCC4D;
    --grad-to: #D97706;
    --on-accent: #241F14;

    --note-1: #4A4223;
    --note-2: #4A3A28;
    --note-3: #45412A;
    --note-4: #33422F;
    --note-5: #2C3F45;
    --note-6: #3A3346;
    --note-7: #472F2F;

    --bezel-1: #3A3630;
    --bezel-2: #605A51;
    --bezel-3: #211E1A;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 12px rgba(0, 0, 0, .28);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, .40), 0 12px 28px rgba(0, 0, 0, .34);
    --shadow-lg: 0 4px 10px rgba(0, 0, 0, .45), 0 24px 48px rgba(0, 0, 0, .40);
    --shadow-xl: 0 8px 20px rgba(0, 0, 0, .50), 0 40px 80px rgba(0, 0, 0, .48);
  }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 10% -12%, rgba(246, 231, 169, .60), transparent 46%),
    radial-gradient(circle at 94% 2%, rgba(255, 204, 77, .30), transparent 40%);
  background-repeat: no-repeat;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  body {
    background-image:
      radial-gradient(circle at 10% -12%, rgba(74, 66, 35, .75), transparent 46%),
      radial-gradient(circle at 94% 2%, rgba(217, 119, 6, .18), transparent 40%);
  }
}

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

h1, h2, h3 {
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 6.2vw, 4.1rem);
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.75rem, 3.9vw, 2.6rem);
  letter-spacing: -0.028em;
}
h3 {
  font-size: 1.15rem;
  letter-spacing: -0.012em;
  line-height: 1.3;
}

p { margin: 0 0 1em; max-width: 66ch; }

a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--accent-strong); }

ul { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

strong { font-weight: 650; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: .75rem 1.25rem;
  background: var(--surface);
  color: var(--ink);
  border-radius: 0 0 var(--radius) 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
  box-shadow: var(--shadow-md);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section-tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.section-intro { max-width: 58ch; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-intro p { color: var(--ink-soft); font-size: 1.08rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8rem;
}

.lede { font-size: 1.08rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
  padding-block: .55rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
  margin-right: 1.4rem;
}
@media (min-width: 860px) { .site-nav { display: flex; } }

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 550;
  padding: .35rem 0;
  transition: color .18s ease;
}
.site-nav a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .8rem 1.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease,
              background-color .18s ease, border-color .18s ease;
}

.btn-primary {
  background-image: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  color: var(--on-accent);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-secondary:hover {
  color: var(--ink);
  background: var(--card);
  border-color: var(--accent);
}

.btn-sm {
  min-height: 40px;
  padding: .45rem 1.05rem;
  font-size: .92rem;
}

.btn svg { flex: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.9rem;
}

.btn-note {
  margin-top: 1.1rem;
  font-size: .9rem;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3rem, 8vw, 6rem);
  position: relative;
}

.hero-layout {
  display: grid;
  gap: clamp(2.5rem, 6vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-layout { grid-template-columns: 1.02fr .98fr; gap: 3rem; }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero h1 { margin-bottom: .45rem; }
/* Both gradient stops clear 3:1 against the paper background, which is the
   WCAG threshold for large text — the pale --grad-from is deliberately unused. */
.hero h1 .hero-accent {
  background-image: linear-gradient(120deg, var(--accent-strong), var(--grad-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-contrast: more) {
  .hero h1 .hero-accent { color: var(--accent); }
}

.hero-sub {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.9vw, 1.22rem);
  max-width: 46ch;
  margin-top: .6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem .9rem;
  border-radius: var(--radius-pill);
  background: var(--note-1);
  color: var(--ink);
  font-size: .84rem;
  font-weight: 600;
  border: 1px solid var(--line);
  margin-bottom: 1.4rem;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-to);
  flex: none;
}

/* --- Hero collage ------------------------------------------------------- */
.collage {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  aspect-ratio: 1 / 1.05;
}
.collage::before {
  content: "";
  position: absolute;
  inset: -6% -4%;
  background: radial-gradient(58% 56% at 48% 46%, rgba(217, 119, 6, .13), transparent 72%);
  border-radius: 45%;
  z-index: 0;
}
@media (prefers-color-scheme: dark) {
  .collage::before {
    background: radial-gradient(58% 56% at 48% 46%, rgba(255, 204, 77, .12), transparent 72%);
  }
}

.collage-note,
.collage-phone {
  position: absolute;
  z-index: 1;
  transform: translate3d(0, var(--py, 0px), 0) rotate(var(--rot, 0deg));
  will-change: transform;
}

.collage-note { height: auto; }

/* The three sticky-note PNGs already carry their own macOS shadow + transparency */
.note-launch    { left: 0;   top: 3%;  width: 58%; --rot: -4deg; }
.note-meeting   { left: 3%;  top: 52%; width: 54%; --rot: 3.2deg; }
.note-groceries { left: 30%; top: 26%; width: 48%; --rot: -1.6deg; }

/* Extra specificity: .iphone below sets position:relative for its side buttons,
   and this rule has to win. */
.collage .collage-phone {
  position: absolute;
  right: 0;
  top: 5%;
  width: 42%;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   6. Devices — CSS-drawn iPhone frame + Mac window
   -------------------------------------------------------------------------- */
.iphone {
  position: relative;
  padding: 2.4%;
  border-radius: 14.5%/6.7%;
  background:
    linear-gradient(148deg, var(--bezel-2) 0%, var(--bezel-1) 22%, var(--bezel-3) 52%,
                    var(--bezel-1) 76%, var(--bezel-2) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .16),
    var(--shadow-xl);
}
/* Side buttons */
.iphone::before,
.iphone::after {
  content: "";
  position: absolute;
  width: 2px;
  background: linear-gradient(180deg, var(--bezel-2), var(--bezel-1));
  border-radius: 2px;
}
.iphone::before { left: -2px; top: 22%; height: 16%; }
.iphone::after  { right: -2px; top: 26%; height: 12%; }

.iphone-screen {
  border-radius: 12.7%/5.85%;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--screen-edge);
  background: #FFFFFF;
}
.iphone-screen img { width: 100%; height: auto; display: block; }

/* Standalone phone (feature sections) */
.iphone-standalone {
  width: min(100%, 300px);
  margin-inline: auto;
}

/* Mac window: the screenshot carries its own traffic lights, so the frame is
   just a hairline + shadow. The crop hides the empty lower half. */
.macwin {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.macwin-crop {
  aspect-ratio: 1440 / 620;
  overflow: hidden;
}
.macwin-crop img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mac section composition: dashboard + one floating note on top */
.mac-compose { position: relative; padding-bottom: 12%; }
.mac-compose .floating-note {
  position: absolute;
  right: -3%;
  bottom: 0;
  width: 46%;
  filter: drop-shadow(0 18px 30px rgba(43, 42, 38, .18));
}
@media (prefers-color-scheme: dark) {
  .mac-compose .floating-note { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
}

/* --------------------------------------------------------------------------
   7. Alternating feature rows
   -------------------------------------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .feature-row { grid-template-columns: 1fr 1fr; }
  .feature-row.is-flipped .row-media { order: -1; }
}

.row-copy h2 { margin-bottom: .6rem; }
.row-copy > p { color: var(--ink-soft); }

.row-points {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: .85rem;
}
.row-points li {
  display: flex;
  gap: .75rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.55;
}
.row-points .dot {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: .18rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--note-1);
  border: 1px solid var(--line);
  color: var(--accent-strong);
}
@media (prefers-color-scheme: dark) {
  .row-points .dot { color: var(--accent); }
}
.row-points strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   8. Meetings — typographic treatment (no fabricated screenshots)
   -------------------------------------------------------------------------- */
.transcript-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3.5vw, 2.1rem);
  box-shadow: var(--shadow-md);
  max-width: 520px;
  margin-inline: auto;
}

.transcript-head {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 1.1rem;
}
.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #C2410C;
  flex: none;
  box-shadow: 0 0 0 4px rgba(194, 65, 12, .16);
}
@media (prefers-color-scheme: dark) { .rec-dot { background: #F97316; } }

.rec-label {
  font-weight: 650;
  font-size: .95rem;
  letter-spacing: -0.01em;
}
.rec-time {
  margin-left: auto;
  font-size: .9rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.waveform {
  width: 100%;
  height: 46px;
  display: block;
  color: var(--accent);
  opacity: .85;
  margin-bottom: 1.2rem;
}

.transcript-lines {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
  display: grid;
  gap: .6rem;
}
.transcript-lines li {
  display: flex;
  gap: .75rem;
  margin: 0;
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.transcript-lines .ts {
  flex: none;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
  font-size: .85rem;
  padding-top: .1rem;
  min-width: 3.2em;
}

.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .32rem .75rem;
  border-radius: var(--radius-pill);
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--ink-soft);
}
.chip-on { background: var(--note-4); color: var(--ink); }
.chip-off { background: transparent; }

/* --------------------------------------------------------------------------
   9. Privacy
   -------------------------------------------------------------------------- */
.privacy-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 5vw, 3.25rem);
  box-shadow: var(--shadow-sm);
}

.privacy-list {
  display: grid;
  gap: 1.75rem 2.5rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
}
@media (min-width: 720px) { .privacy-list { grid-template-columns: repeat(2, 1fr); } }

.privacy-list li { margin: 0; display: flex; gap: 1rem; }
.privacy-list h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.privacy-list p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

.privacy-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--note-1);
  color: var(--accent-strong);
  border: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  .privacy-icon { color: var(--accent); }
}
.privacy-list li:nth-child(2) .privacy-icon { background: var(--note-4); }
.privacy-list li:nth-child(3) .privacy-icon { background: var(--note-5); }
.privacy-list li:nth-child(4) .privacy-icon { background: var(--note-6); }

/* --------------------------------------------------------------------------
   10. Colour swatches
   -------------------------------------------------------------------------- */
.swatch-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
}
.swatch-block p { margin: 0; color: var(--ink-soft); max-width: 34ch; }

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.swatches li {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin: 0;
}
.swatches li:nth-child(1) { background: var(--note-1); }
.swatches li:nth-child(2) { background: var(--note-2); }
.swatches li:nth-child(3) { background: var(--note-3); }
.swatches li:nth-child(4) { background: var(--note-4); }
.swatches li:nth-child(5) { background: var(--note-5); }
.swatches li:nth-child(6) { background: var(--note-6); }
.swatches li:nth-child(7) { background: var(--note-7); }

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 800px;
  border-top: 1px solid var(--line);
}
.faq-list li { margin: 0; }

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 0;
  cursor: pointer;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  list-style: none;
  min-height: 48px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--accent); }

.faq-sign {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: .15rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--bg-alt);
  transition: transform .22s ease;
}
.faq-item[open] .faq-sign { transform: rotate(45deg); }

.faq-answer {
  margin: 0;
  padding: 0 0 1.4rem;
  color: var(--ink-soft);
  font-size: .99rem;
  max-width: 72ch;
}

/* --------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--note-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 6vw, 3.75rem);
  text-align: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.cta-band h2 { margin-bottom: .5rem; }
.cta-band p {
  margin-inline: auto;
  color: var(--ink-soft);
  max-width: 52ch;
}
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-note { text-align: center; }

.cta-icon {
  width: 72px;
  height: 72px;
  border-radius: 22%;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   13. Legal / long-form pages
   -------------------------------------------------------------------------- */
body.page-legal {
  background-image: radial-gradient(circle at 50% -5%, rgba(246, 231, 169, .45), transparent 28%);
}
@media (prefers-color-scheme: dark) {
  body.page-legal {
    background-image: radial-gradient(circle at 50% -5%, rgba(74, 66, 35, .65), transparent 28%);
  }
}

.legal { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.legal-inner { max-width: 760px; margin-inline: auto; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  margin-top: 2.75rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal h3 { margin-top: 1.75rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p, .legal ul { max-width: 72ch; }
.legal .lead {
  font-size: 1.12rem;
  color: var(--ink);
}
.meta {
  font-size: .92rem;
  color: var(--ink-faint);
  margin-bottom: 2rem;
}
.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--grad-to);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin: 1.9rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-block: 2.75rem;
  color: var(--ink-soft);
  font-size: .92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 600;
  color: var(--ink);
}
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.footer-links li { margin: 0; }
.footer-sep { color: var(--line); }
.site-footer p { margin: 0; }

/* --------------------------------------------------------------------------
   15. Scroll reveal + motion preferences
   -------------------------------------------------------------------------- */
/* Content is visible by default; only the JS-enabled page hides it first,
   so the site degrades gracefully without scripts. */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease-out, transform .3s ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .collage-note,
  .collage-phone { transform: rotate(var(--rot, 0deg)); }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
