:root {
  --paper:   #fdf8f2;
  --sand:    #f6efe5;
  --white:   #ffffff;
  --ink:     #2a211b;
  --ink-2:   #746558;
  --ink-3:   #9c8d80;
  --ember:   #b8480a;
  --hair:    #e5dbce;
  --ink-hover: #453930;

  /* Per-app accent, from that app's AccentColor asset. Groceries: #0F6E56 light,
     #158064 dark — the site is light-only, so only the first is carried. */
  --groceries: #0f6e56;

  --nav-h: 48px;
  --band-y: clamp(48px, 7vw, 96px);
  --maxw: 1120px;
  --prosew: 720px;
  --gutter: clamp(16px, 5vw, 32px);

  --r-s: 14px;
  --r-m: 18px;
  --r-l: 22px;
  --r-xl: 28px;

  color-scheme: light;
}

* { box-sizing: border-box; }

/* clip, not hidden: `hidden` here would make the root a scroll container and
   break the sticky header, and on iOS Safari it doesn't stop the pan anyway */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--ember); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; border-radius: 8px; }

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

/* Apple type metrics, carried over from hearthkinapp.com */
.t-hero  { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.05;    letter-spacing: -.015em; font-weight: 600; }
.t-head  { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.0834;  letter-spacing: -.003em; font-weight: 600; }
.t-tile  { font-size: 24px;                     line-height: 1.1667;  letter-spacing: .009em;  font-weight: 600; }
.t-intro { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.381;   letter-spacing: .011em;  font-weight: 400; color: var(--ink-2); }
.t-small { font-size: 15px; line-height: 1.4286;  letter-spacing: -.016em; color: var(--ink-2); }
.t-fine  { font-size: 12px; line-height: 1.33337; letter-spacing: -.01em;  color: var(--ink-2); }
.eyebrow { font-size: clamp(17px, 1.8vw, 21px); line-height: 1.19; letter-spacing: .011em; font-weight: 600; color: var(--ember); }

.lnk { font-size: 17px; line-height: 1.381; letter-spacing: .011em; white-space: nowrap; }
.lnk::after { content: "\00a0\203A"; }

.btn {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  border-radius: 980px;
  padding: 12px 24px;
  font-size: 17px; line-height: 1.176; letter-spacing: -.022em;
  transition: background-color .2s;
}
.btn:hover { background: var(--ink-hover); text-decoration: none; }

header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(253, 248, 242, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
header .wrap { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: flex; align-items: center; gap: 8px; margin-right: auto; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; border-radius: 4px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--ink); font-size: 12px; letter-spacing: -.01em; opacity: .82; }
.nav-links a:hover { opacity: 1; }

.band { padding: var(--band-y) 0; }
.sand { background: var(--sand); }

/* Document pages — privacy, support. The vertical rhythm is the whole layout. */
.doc { padding: 48px 0 96px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.0834; letter-spacing: -.003em; }
.doc h2 { font-size: 24px; line-height: 1.1667; letter-spacing: .009em; margin-top: 48px; margin-bottom: 12px; }
.doc h2 + p { margin-top: 0; }
.doc p, .doc ul { margin-top: 16px; }
.doc ul { padding-left: 24px; }
.doc li { margin-top: 8px; }
.doc li::marker { color: var(--ink-3); }
.doc .effective { margin-top: 8px; color: var(--ink-3); font-size: 15px; letter-spacing: -.016em; }
.doc .lede { margin-top: 24px; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.381; letter-spacing: .011em; color: var(--ink-2); }
.term { font-weight: 600; color: var(--ink); }

.doc .logo { width: 64px; height: 64px; border-radius: 14px; margin-bottom: 24px; }
.doc .rule { width: 64px; height: 4px; border: 0; border-radius: 2px; background: var(--groceries); margin: 0 0 24px; }

footer { border-top: 1px solid var(--hair); padding: 48px 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: baseline; }
footer .copy { margin-right: auto; color: var(--ink-3); font-size: 12px; letter-spacing: -.01em; }
footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
footer nav a { color: var(--ink-2); font-size: 12px; letter-spacing: -.01em; }

/* App grid — the company page's only real component */
.apps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); margin-top: 48px; }
.app { display: block; background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-l); padding: 32px; color: var(--ink); }
.app:hover { text-decoration: none; border-color: var(--ink-3); }
.app img { width: 64px; height: 64px; border-radius: 14px; margin-bottom: 24px; }
.app h3 { font-size: 24px; line-height: 1.1667; letter-spacing: .009em; }
.app p { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.4286; letter-spacing: -.016em; }
.app .lnk { display: inline-block; margin-top: 16px; color: var(--ember); }
.app-mark { width: 64px; height: 64px; border-radius: 14px; background: var(--sand); border: 1px solid var(--hair); margin-bottom: 24px; }

/* Feature rows on an app page. Text only — there are no screenshots yet. */
.feats { display: grid; gap: 32px 48px; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); margin-top: 48px; }
.feat h3 { font-size: 19px; line-height: 1.21; letter-spacing: .011em; }
.feat p { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.4286; letter-spacing: -.016em; }
.note { margin-top: 24px; padding: 16px 24px; border-left: 4px solid var(--groceries); background: var(--white); border-radius: 0 var(--r-s) var(--r-s) 0; }
