/* ════════════════════════════════════════════════════════════════
   fieldnotes.css — shared design system for fieldnotes.fm
   Tokens mirror the macOS app: paper, kraft, forest, rust sun.
   Used by index.html, compare.html and the blog. Page-specific styles
   stay inline in each page (or blog/blog.css for the blog).
   privacy/terms/refunds still use the legacy style.css.
   ════════════════════════════════════════════════════════════════ */

:root {
  --paper:      #F2EBDD;
  --paper-2:    #EBE2CF;
  --surface:    #F8F2E5;
  --surface-hi: #FCF8F0;
  --ink:        #2B2620;
  --ink-2:      #3E372F;
  --muted:      #665E53;
  --label:      #735A33;
  --kraft:      #C8B998;
  --kraft-dk:   #876E46;
  --kraft-sub:  #E5DCC4;
  --forest:     #3F5C42;
  --forest-dk:  #2E4630;
  --forest-deep:#233626;
  --rust:       #B5532A;
  --rust-dk:    #9C4521;
  --ochre:      #C28B2F;
  --slate:      #5B6272;
  --slate-far:  #8B8E93;
  --espresso:   #1F1B16;

  --hair:       rgba(135, 110, 70, .16);
  --hair-2:     rgba(135, 110, 70, .26);
  --hair-light: rgba(248, 242, 229, .12);

  --s1: var(--rust); --s2: var(--forest); --s3: var(--ochre); --s4: var(--slate);

  --serif: 'Fraunces', ui-serif, Georgia, serif;
  --sans:  'Geist', ui-sans-serif, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  /* Fraunces is only used for italic accent words, at one sturdy setting */
  --accent-axes: "opsz" 48, "SOFT" 0, "WONK" 0;
  --mono:  'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease:        cubic-bezier(.32, .72, 0, 1);
  --ease-spring: cubic-bezier(.34, 1.36, .64, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1280px;
  --section: clamp(112px, 14vw, 200px);

  --shadow-soft: 0 1px 1px rgba(80, 55, 25, .04), 0 12px 24px -12px rgba(80, 55, 25, .12), 0 48px 96px -48px rgba(80, 55, 25, .28);
  --shadow-float: 0 2px 4px rgba(80, 55, 25, .05), 0 24px 48px -16px rgba(80, 55, 25, .22), 0 80px 120px -60px rgba(60, 40, 20, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
code {
  font-family: var(--mono);
  font-size: .86em;
  background: rgba(135, 110, 70, .1);
  padding: .12em .45em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
::selection { background: var(--rust); color: var(--surface); }

/* Film grain — fixed, never scrolls, never intercepts */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 40;
  pointer-events: none;
  opacity: .055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ── Type ─────────────────────────────────────────── */

.display {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.02;
}
.h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -.032em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(21px, 1.9vw, 26px);
  line-height: 1.2;
  letter-spacing: -.018em;
}
/* Accent words: the only place the serif appears */
.display em, .h2 em, .h3 em {
  font-family: var(--serif); font-style: italic; font-weight: 480; font-variation-settings: var(--accent-axes);
  letter-spacing: -.01em;
}
.lede {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 58ch;
  text-wrap: pretty;
}
.fine { font-size: 14px; color: var(--muted); letter-spacing: .005em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  font: 500 12px/1.2 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--label);
  background: rgba(135, 110, 70, .08);
  box-shadow: inset 0 0 0 1px var(--hair);
  justify-self: start;
  width: max-content;
  max-width: 100%;
}
.pricing .eyebrow { justify-self: center; }
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 3px rgba(181, 83, 42, .16);
}
.eyebrow.on-dark { color: var(--kraft); background: rgba(248, 242, 229, .06); box-shadow: inset 0 0 0 1px var(--hair-light); }

/* ── Double-bezel enclosure ───────────────────────── */

.bezel {
  --r: 30px; --p: 7px;
  padding: var(--p);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(135, 110, 70, .10), rgba(135, 110, 70, .05));
  box-shadow: inset 0 0 0 1px var(--hair), var(--shadow-soft);
}
.bezel > .core {
  position: relative;
  height: 100%;
  border-radius: calc(var(--r) - var(--p));
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 0 0 1px rgba(135, 110, 70, .09);
  overflow: hidden;
}
.bezel.dark {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 90px -40px rgba(0, 0, 0, .55);
}
.bezel.dark > .core {
  background: var(--espresso);
  color: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .04);
}

/* ── Buttons: island pill + nested icon ───────────── */

.btn {
  --bg: var(--ink); --fg: var(--surface); --ic: rgba(255, 255, 255, .14);
  position: relative;
  display: inline-flex; align-items: center; gap: 16px;
  padding: 7px 7px 7px 24px;
  min-height: 52px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 500 15px/1 var(--sans);
  letter-spacing: -.005em;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 24px -12px rgba(60, 30, 10, .5);
  transition: transform .6s var(--ease), background-color .6s var(--ease), box-shadow .6s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 18px 34px -14px rgba(60, 30, 10, .55); }
.btn:active { transform: scale(.975); }
.btn .ic {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ic);
  transition: transform .7s var(--ease-spring), background-color .6s var(--ease);
}
.btn:hover .ic { transform: translate(3px, -2px) scale(1.07); }
.btn .ic svg { width: 15px; height: 15px; }
.btn-rust { --bg: var(--rust); --fg: #FFF8EE; --ic: rgba(255, 248, 238, .18); }
.btn-rust:hover { --bg: var(--rust-dk); }
.btn-paper { --bg: var(--surface); --fg: var(--ink); --ic: rgba(43, 38, 32, .07); box-shadow: inset 0 0 0 1px var(--hair), 0 10px 24px -14px rgba(60, 30, 10, .35); }
.btn-ghost {
  --bg: transparent; --fg: var(--ink); --ic: rgba(43, 38, 32, .06);
  box-shadow: inset 0 0 0 1px var(--hair-2);
}
.btn-ghost:hover { --bg: rgba(135, 110, 70, .07); box-shadow: inset 0 0 0 1px var(--hair-2); }
.btn-sm { min-height: 40px; padding: 5px 5px 5px 16px; gap: 10px; font-size: 13.5px; }
.btn-sm .ic { width: 30px; height: 30px; }
.btn-sm .ic svg { width: 12px; height: 12px; }

/* ── Floating island nav ──────────────────────────── */

.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex; justify-content: center;
  padding: 18px var(--gutter) 0;
  pointer-events: none;
}
.island {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: rgba(248, 242, 229, .72);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(135, 110, 70, .16), inset 0 1px 0 rgba(255, 255, 255, .7), 0 16px 40px -20px rgba(60, 40, 20, .35);
  transition: transform .8s var(--ease), box-shadow .6s var(--ease);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 500 15.5px/1 var(--sans); letter-spacing: -.01em; margin-right: 18px; }
.brand img { width: 26px; height: 26px; }
.island .links { display: flex; align-items: center; gap: 2px; }
.island .links a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13.5px; color: var(--ink-2);
  transition: color .5s var(--ease), background-color .5s var(--ease);
}
.island .links a:hover { color: var(--ink); background: rgba(135, 110, 70, .09); }
.island .btn { margin-left: 8px; }

.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .5s var(--ease);
}
.burger:active { transform: scale(.94); }
.burger span {
  position: absolute; left: 14px; right: 14px; height: 1.5px;
  background: var(--surface); border-radius: 2px;
  transition: transform .7s var(--ease), opacity .4s var(--ease);
}
.burger span:nth-child(1) { transform: translateY(-4px); }
.burger span:nth-child(2) { transform: translateY(4px); }
.menu-open .burger span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(0) rotate(-45deg); }

.menu {
  position: fixed; inset: 0;
  z-index: 25;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) max(40px, env(safe-area-inset-bottom));
  background: rgba(242, 235, 221, .84);
  -webkit-backdrop-filter: blur(36px) saturate(1.3);
  backdrop-filter: blur(36px) saturate(1.3);
  opacity: 0; visibility: hidden;
  transition: opacity .7s var(--ease), visibility 0s linear .7s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .7s var(--ease), visibility 0s; }
.menu ol { list-style: none; margin: 0 0 40px; padding: 0; }
.menu li { overflow: hidden; border-bottom: 1px solid var(--hair); }
.menu li a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 16px 0;
  font-family: var(--sans);
  font-size: clamp(34px, 9.5vw, 56px); font-weight: 600; letter-spacing: -.03em; line-height: 1.08;
  transform: translateY(105%); opacity: 0;
  transition: transform .9s var(--ease), opacity .9s var(--ease);
}
.menu li a small { font: 400 12px/1 var(--mono); color: var(--muted); letter-spacing: 0; }
.menu-open .menu li a { transform: none; opacity: 1; }
.menu-open .menu li:nth-child(1) a { transition-delay: .10s; }
.menu-open .menu li:nth-child(2) a { transition-delay: .15s; }
.menu-open .menu li:nth-child(3) a { transition-delay: .20s; }
.menu-open .menu li:nth-child(4) a { transition-delay: .25s; }
.menu-open .menu li:nth-child(5) a { transition-delay: .30s; }
.menu .menu-foot { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease) .35s, transform .8s var(--ease) .35s; }
.menu-open .menu .menu-foot { opacity: 1; transform: none; }
.menu-open body, body.menu-open { overflow: hidden; }

/* ── Section chrome ──────────────────────────────── */

section.block { padding-block: var(--section); position: relative; }
.head { display: grid; gap: 28px; max-width: 900px; }
.head .h2 { margin-top: 4px; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}

/* ── FAQ accordion ──────────────────────────────── */

.faq .split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.faq-head { position: sticky; top: 130px; display: grid; gap: 28px; }
.faq-head .h2 { font-size: clamp(36px, 4.4vw, 62px); }
.faq-head .mail { font-size: 15px; color: var(--ink-2); }
.faq-head .mail a { color: var(--forest); border-bottom: 1px solid rgba(63, 92, 66, .35); }
.qa { border-top: 1px solid var(--hair-2); }
.qa:last-child { border-bottom: 1px solid var(--hair-2); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0;
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(18px, 1.5vw, 21px); letter-spacing: -.012em; line-height: 1.35;
  transition: color .5s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--rust); }
.qa .pm { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--hair-2); transition: transform .7s var(--ease), background-color .5s var(--ease); }
.qa .pm svg { width: 14px; height: 14px; }
.qa[open] .pm { transform: rotate(135deg); background: var(--ink); color: var(--surface); box-shadow: none; }
.qa .ans { padding: 0 60px 30px 0; font-size: 16px; color: var(--ink-2); line-height: 1.7; }
.qa .ans em { font-family: var(--serif); font-style: italic; font-weight: 480; font-variation-settings: var(--accent-axes); font-weight: 450; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .qa::details-content { height: 0; opacity: 0; overflow: clip; transition: height .7s var(--ease), opacity .6s var(--ease), content-visibility .7s allow-discrete; }
  .qa[open]::details-content { height: auto; opacity: 1; }
}

/* ── Dusk landscape (sits above the footer) ──────── */

.dusk { position: relative; height: clamp(220px, 26vw, 380px); margin-top: clamp(96px, 12vw, 180px); overflow: hidden; }
.dusk .sun-set { position: absolute; left: 68%; bottom: 20%; width: clamp(90px, 11vw, 170px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #CD6B3F, var(--rust) 60%); }
.dusk svg, .dusk img { position: absolute; inset: 0; width: 100%; height: 100%; }
.dusk img { object-fit: cover; object-position: 50% 100%; }

/* ── Footer ─────────────────────────────────────── */

body > footer { background: var(--forest); color: var(--surface); padding: clamp(64px, 8vw, 110px) 0 36px; margin-top: -1px; position: relative; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, .6fr)); gap: 40px; }
.foot-brand p { color: rgba(248, 242, 229, .72); font-size: 15px; max-width: 34ch; margin-top: 18px; }
.foot-brand .brand { margin: 0; }
.foot-brand .brand img { filter: none; }
.foot-brand .mail { display: inline-block; margin-top: 22px; font-family: var(--sans); font-weight: 500; font-size: 20px; letter-spacing: -.01em; border-bottom: 1px solid rgba(248, 242, 229, .3); transition: border-color .5s var(--ease); }
.foot-brand .mail:hover { border-color: var(--surface); }
.foot-col h5 { margin: 0 0 18px; font: 500 12px/1.25 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--kraft); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 14.5px; }
.foot-col a { color: rgba(248, 242, 229, .82); transition: color .5s var(--ease); }
.foot-col a:hover { color: #fff; }
.giant {
  margin-top: clamp(64px, 8vw, 110px);
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(64px, 17vw, 270px); line-height: .85; letter-spacing: -.055em;
  color: transparent; -webkit-text-stroke: 1px rgba(248, 242, 229, .28);
  white-space: nowrap; text-align: center;
  user-select: none;
}
.giant em { font-family: var(--serif); font-style: italic; font-weight: 480; font-variation-settings: var(--accent-axes); -webkit-text-stroke: 0; color: var(--rust); letter-spacing: -.03em; }
.foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hair-light); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(248, 242, 229, .6); }

/* ── Reveal choreography ────────────────────────── */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(48px);
  filter: blur(8px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].in { opacity: 1; transform: none; filter: blur(0); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
    .dusk .sun-set { animation: sunset linear both; animation-timeline: view(); animation-range: entry 0% exit 20%; }
    @keyframes sunset { from { transform: translateY(-60%); } to { transform: translateY(40%); } }
  }
}

/* ── Responsive ─────────────────────────────────── */

@media (max-width: 1080px) {
  .island .links a.hide-md { display: none; }
}

@media (max-width: 860px) {
  .island { padding: 5px 5px 5px 14px; width: 100%; justify-content: space-between; }
  .island .links, .island > .btn { display: none; }
  .burger { display: block; }
  .brand { margin-right: 0; }

  .split, .faq .split { grid-template-columns: minmax(0, 1fr); }
  .eyebrow { white-space: normal; letter-spacing: .14em; line-height: 1.4; }
  .faq-head { position: static; }
  .qa .ans { padding-right: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
}
