:root {
  --paper: #F7F4EE;
  --surface: #FFFDF9;
  --surface-warm: #EFEAE0;
  --espresso: #141311;
  --ink: #1C1917;
  --muted: #655E57;
  --accent: #C9522F;
  --accent-soft: rgba(201, 82, 47, 0.10);
  --sage: #2F7D57;
  --hairline: rgba(28, 25, 23, 0.09);
  --shadow: 0 24px 64px rgba(28, 25, 23, 0.10);
  --serif: "New York", Georgia, "Iowan Old Style", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body { background: var(--paper); color: var(--ink); line-height: 1.55; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Floating Navigation Pill */
.hd-pill {
  position: sticky; top: 16px; z-index: 50;
  max-width: 680px; margin: 16px auto 0; padding: 8px 10px 8px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255, 253, 249, 0.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--hairline); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.06);
}
.hd-pill-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.hd-pill-brand img { border-radius: 7px; }
.hd-pill-links { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; color: var(--muted); }
.hd-pill-links a:hover { color: var(--ink); }
.hd-pill-go {
  background: var(--ink); color: var(--paper); font-size: 13.5px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; transition: opacity .15s ease;
}
.hd-pill-go:hover { opacity: 0.86; }

/* Hero */
.hd-hero {
  position: relative; overflow: hidden;
  padding: 72px 24px 88px; text-align: center;
  background:
    radial-gradient(circle at 18% 12%, rgba(232, 162, 106, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 82% 18%, rgba(201, 82, 47, 0.10) 0%, transparent 46%),
    var(--paper);
}
.hd-hero-in { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hd-app-mark {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--hairline);
  padding: 6px 14px 6px 8px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 24px;
}
.hd-app-mark img { border-radius: 999px; }
.hd-hero h1 {
  font-family: var(--serif); font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.02; letter-spacing: -0.028em; font-weight: 700;
  max-width: 780px; text-wrap: balance; margin-bottom: 20px;
}
.hd-hero-sub {
  font-size: clamp(17px, 2vw, 20px); color: var(--muted);
  max-width: 610px; text-wrap: balance; margin-bottom: 30px; line-height: 1.5;
}
.hd-hero-cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hd-appstore { display: inline-block; transition: transform .15s ease; }
.hd-appstore:hover { transform: translateY(-1px); }
.hd-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 46px; padding: 0 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--hairline);
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.hd-btn:hover { background: var(--surface-warm); }

.hd-hero-stage { max-width: 340px; width: 100%; }
.hd-phone {
  padding: 10px; border-radius: 44px;
  background: linear-gradient(145deg, #2B2623, #12100E);
  box-shadow: 0 32px 84px rgba(28, 25, 23, 0.24), 0 0 0 1.5px rgba(255,255,255,0.14) inset;
}
.hd-phone img { border-radius: 35px; width: 100%; height: auto; }
.hd-duo-frame {
  padding: 12px; border-radius: 30px;
  background: linear-gradient(145deg, #2D2824, #110F0D);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34), 0 0 0 1.5px rgba(255,255,255,0.14) inset;
}
.hd-duo-frame img { border-radius: 20px; width: 100%; height: auto; }

/* Sections & Tiles */
.hd-section { max-width: 1080px; margin: 0 auto; padding: 72px 24px; }
.hd-head { margin-bottom: 36px; max-width: 680px; }
.eyebrow {
  font-size: 12.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.11em; color: var(--accent); margin-bottom: 10px;
}
.hd-head h2 {
  font-family: var(--serif); font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.08; letter-spacing: -0.022em; font-weight: 700;
}

.hd-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.hd-tile {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 28px; padding: 32px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hd-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hd-tile-dark {
  background: var(--espresso); color: #F5F1EA; border-color: rgba(245, 241, 234, 0.12);
}
.hd-tile-wide {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 0.95fr 1.25fr; align-items: center; gap: 36px;
}
.hd-tile-shot { max-width: 260px; margin: 0 auto; }
.hd-tile-label {
  display: flex; justify-content: space-between; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent); margin-bottom: 10px;
}
.hd-tile-dark .hd-tile-label { color: #E8A26A; }
.hd-tile-words h3 {
  font-family: var(--serif); font-size: 28px; line-height: 1.12;
  letter-spacing: -0.018em; margin-bottom: 12px;
}
.hd-tile-words p { font-size: 15.5px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.hd-tile-dark .hd-tile-words p { color: rgba(245, 241, 234, 0.76); }
.hd-tile-words b { color: var(--ink); font-weight: 600; }
.hd-tile-dark .hd-tile-words b { color: #F5F1EA; }
.hd-tile-more { font-size: 14.5px; font-weight: 600; color: var(--accent); }
.hd-tile-dark .hd-tile-more { color: #F2C97D; }

/* Proof Strip */
.hd-proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.hd-proof-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 22px; padding: 24px;
}
.hd-proof-card strong { display: block; font-family: var(--serif); font-size: 24px; margin-bottom: 6px; }
.hd-proof-card span { font-size: 14.5px; color: var(--muted); }

/* Guide Index */
.hd-index {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 24px; overflow: hidden;
}
.hd-row {
  display: grid; grid-template-columns: 96px 1fr 24px; align-items: center; gap: 18px;
  padding: 24px 28px; border-bottom: 1px solid var(--hairline);
  transition: background .15s ease;
}
.hd-row:last-child { border-bottom: none; }
.hd-row:hover { background: var(--surface-warm); }
.hd-row-cat {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); background: var(--accent-soft); padding: 5px 10px;
  border-radius: 999px; text-align: center;
}
.hd-row-main strong { display: block; font-size: 17px; font-weight: 650; margin-bottom: 4px; }
.hd-row-main span { display: block; font-size: 14.5px; color: var(--muted); }
.hd-row-chev { font-size: 22px; color: var(--muted); text-align: right; }

/* Article / Legal / Support Pages */
.hd-doc { max-width: 720px; margin: 0 auto; padding: 56px 24px 96px; }
.hd-doc h1 { font-family: var(--serif); font-size: clamp(32px, 4.5vw, 48px); line-height: 1.08; letter-spacing: -0.022em; margin-bottom: 16px; }
.hd-doc .lead { font-size: 18px; color: var(--muted); margin-bottom: 36px; }
.hd-doc h2 { font-family: var(--serif); font-size: 24px; margin: 36px 0 12px; }
.hd-doc p, .hd-doc li { font-size: 16px; color: #3D3833; margin-bottom: 14px; }
.hd-doc ul, .hd-doc ol { padding-left: 22px; margin-bottom: 18px; }
.hd-doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.hd-callout {
  background: var(--surface); border: 1px solid var(--hairline); border-left: 4px solid var(--accent);
  border-radius: 16px; padding: 20px 22px; margin: 28px 0;
}

/* Footer */
.hd-foot {
  border-top: 1px solid var(--hairline);
  max-width: 1080px; margin: 24px auto 0; padding: 32px 24px 56px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 14px; color: var(--muted);
}
.hd-foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.hd-foot-links a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .hd-pill { margin: 12px 14px 0; padding: 7px 8px 7px 12px; gap: 10px; }
  .hd-pill-links { gap: 12px; font-size: 13px; }
  .hd-tiles, .hd-tile-wide, .hd-proof-grid { grid-template-columns: 1fr; }
  .hd-row { grid-template-columns: 1fr 20px; }
  .hd-row-cat { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 520px) {
  .hd-pill-links { display: none; }
  .hd-hero { padding: 48px 18px 64px; }
  .hd-hero h1 { font-size: 40px; }
  .hd-hero-sub { font-size: 16px; }
  .hd-hero-stage { max-width: 300px; }
}
