/* Den. Marketing site styles
   Palette and type match the app brand:
   cream surface, honey clay primary, muted sage secondary, Fraunces display + Hanken Grotesk body. */

:root {
  --bg: #F6F2EA;
  --surface: #FFFDF8;
  --primary: #0B7D78;       /* deep teal, white-text safe: buttons, links, accents */
  --brand-teal: #06A6A6;    /* bright icon field: decorative fills only */
  --band: #0C5E5B;          /* deep teal band background, white text */
  --primary-ink: #FFFFFF;
  --secondary: #EDA94B;     /* the dog's amber, warm accent used sparingly */
  --ink: #233330;
  --ink-soft: #7B8A85;
  --line: #E6DFD2;
  --shadow: 0 18px 40px -28px rgba(35, 51, 48, 0.45);

  --r-card: 20px;
  --r-btn: 16px;
  --r-pill: 999px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 112px;

  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand .mark { width: 34px; height: 34px; display: block; border-radius: 8px; object-fit: cover; }
.nav-links { display: flex; gap: var(--s-5); align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 500;
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--primary);
  color: var(--primary-ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 600;
  font-size: 17px;
  border: none;
  border-radius: var(--r-btn);
  padding: 16px 26px;
  cursor: default;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -26px rgba(46,40,35,0.55); }
.cta-primary:active { transform: translateY(0); }

.cta-note {
  margin-top: var(--s-3);
  color: var(--ink-soft);
  font-size: 15px;
}
.cta-note.show-on-tap { opacity: 0; transition: opacity 0.3s ease; }
.cta-note.is-visible { opacity: 1; }

/* ---------- Hero ---------- */
.hero { padding: var(--s-9) 0 var(--s-8); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-8);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--primary);
}
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 600; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero .lede {
  margin-top: var(--s-5);
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 30ch;
}
.hero-actions { margin-top: var(--s-6); }

/* Hand-drawn underline accent under a hero word */
.underline-draw {
  position: relative;
  display: inline-block;
}
.underline-draw svg {
  position: absolute;
  left: -2%;
  bottom: -0.32em;
  width: 104%;
  height: 0.34em;
  overflow: visible;
  color: var(--primary);
}
.underline-draw path {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw 1.1s ease 0.4s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Hero artifact: the app icon + floating record chips ---------- */
.icon-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--s-5) 0;
}
.icon-tile {
  width: min(360px, 78%);
  height: auto;
  display: block;
  border-radius: 26%;
  box-shadow: 0 30px 60px -30px rgba(12, 94, 91, 0.55);
  animation: floaty 6s ease-in-out infinite;
}
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--shadow);
}
.chip b { color: var(--ink); font-weight: 700; }
.chip .dot { width: 10px; height: 10px; border-radius: 999px; flex: none; }
.chip .dot.teal { background: var(--primary); }
.chip .dot.amber { background: var(--secondary); }
.chip-a { top: 8%; right: -1%; animation: floaty 6s ease-in-out infinite 0.4s; }
.chip-b { bottom: 10%; left: -1%; animation: floaty 6.6s ease-in-out infinite 0.9s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Section scaffolding ---------- */
.section { padding: var(--s-9) 0; }
.section-head { max-width: 40ch; margin-bottom: var(--s-7); }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { margin-top: var(--s-4); color: var(--ink-soft); font-size: 19px; }

/* ---------- Feature grid (record types as ID-tag chips) ---------- */
.tags {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.tag {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s-5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tag:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
/* the little punched hole that makes a card read as an ID tag */
.tag::before {
  content: "";
  position: absolute;
  top: 16px; right: 16px;
  width: 10px; height: 10px;
  border-radius: 999px;
  border: 2px solid var(--line);
}
.tag h3 { font-size: 21px; font-weight: 600; margin-bottom: var(--s-2); }
.tag p { color: var(--ink-soft); font-size: 16px; }
.tag .ico { width: 34px; height: 34px; color: var(--primary); margin-bottom: var(--s-4); }
.tag:nth-child(2) .ico, .tag:nth-child(5) .ico { color: var(--secondary); }

/* ---------- Three reasons (illustrated, mirrors the app onboarding) ---------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.reason { text-align: center; }
.reason .art {
  width: 184px;
  height: 184px;
  margin: 0 auto var(--s-5);
  border-radius: 999px;
  background: rgba(6, 166, 166, 0.10);
  display: grid;
  place-items: center;
}
.reason .art img { width: 80%; height: 80%; object-fit: contain; display: block; }
.reason h3 { font-size: 23px; line-height: 1.18; }
.reason h3 .teal { color: var(--primary); }
.reason p { margin-top: var(--s-3); color: var(--ink-soft); font-size: 17px; }

/* ---------- Handwritten tagline ---------- */
.tagline {
  font-family: "Caveat", cursive;
  color: var(--primary);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
  margin-top: var(--s-5);
}

/* ---------- Privacy band ---------- */
.band {
  background: var(--band);
  color: #FFFFFF;
  border-radius: 28px;
  padding: var(--s-8) var(--s-7);
  text-align: center;
}
.band h2 { color: #FFFFFF; font-size: clamp(28px, 3.6vw, 40px); }
.band p { margin: var(--s-4) auto 0; max-width: 46ch; color: rgba(255, 255, 255, 0.82); font-size: 19px; }
.band .pill-row { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-6); }
.band .pill {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--r-pill);
  padding: 9px 18px;
  font-size: 15px;
  font-weight: 500;
}

/* ---------- Closing CTA ---------- */
.closing { text-align: center; padding: var(--s-9) 0; }
.closing h2 { font-size: clamp(30px, 4.4vw, 50px); max-width: 18ch; margin: 0 auto; }
.closing .hero-actions { display: inline-flex; flex-direction: column; align-items: center; margin-top: var(--s-6); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--s-7) 0;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
  justify-content: space-between;
}
.site-footer .brand { font-size: 19px; }
.foot-links { display: flex; gap: var(--s-5); }
.foot-links a { text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.foot-links a:hover { color: var(--ink); }
.copy { color: var(--ink-soft); font-size: 14px; width: 100%; }

/* ---------- Legal pages ---------- */
.legal { padding: var(--s-8) 0 var(--s-9); }
.legal .doc { max-width: 760px; margin: 0 auto; }
.legal .back { display: inline-block; margin-bottom: var(--s-5); color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15px; }
.legal .back:hover { color: var(--ink); }
.legal h1 { font-size: clamp(34px, 5vw, 52px); }
.legal .updated { color: var(--ink-soft); margin-top: var(--s-3); font-size: 15px; }
.legal h2 { font-size: 24px; margin-top: var(--s-7); }
.legal p, .legal li { color: color-mix(in srgb, var(--ink) 86%, var(--bg)); font-size: 17px; }
.legal p { margin-top: var(--s-4); }
.legal ul { margin-top: var(--s-4); padding-left: 22px; }
.legal li { margin-top: var(--s-2); }
.legal a.inline { color: var(--primary); }

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero { padding: var(--s-8) 0; }
  .icon-stage { order: -1; }
  .tags { grid-template-columns: 1fr 1fr; }
  .reasons { grid-template-columns: 1fr; gap: var(--s-7); }
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .tags { grid-template-columns: 1fr; }
  .band { padding: var(--s-7) var(--s-5); border-radius: 22px; }
  .section, .hero { padding: var(--s-8) 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .underline-draw path { stroke-dashoffset: 0; }
}
