/* Hummingly marketing site — warm, cozy, matches the app design tokens.
   System font stacks keep public and private-link pages free of third-party
   font requests. */

:root {
  --ink: #46383e;
  --ink-muted: #8a7b80;
  --plum: #8a6fe0;
  --peach: #ff9e7d;
  --lavender: #c79bee;
  --sage: #8fb596;
  --surface: rgba(255, 255, 255, 0.72);
  --stroke: rgba(122, 90, 74, 0.13);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: radial-gradient(150% 120% at 50% -12%, #f4eade 0%, #ece1d3 52%, #e4dcee 100%);
  min-height: 100vh;
}
a { color: var(--plum); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(138, 111, 224, 0.42);
  outline-offset: 4px;
  border-radius: 6px;
}

.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }

header.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(255, 252, 248, 0.6);
  border-bottom: 1px solid var(--stroke);
}
header.nav .wrap { display: flex; align-items: center; gap: 12px; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: ui-rounded, "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif; font-weight: 800; font-size: 19px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
header.nav nav { margin-left: auto; display: flex; gap: 18px; font-weight: 600; font-size: 14px; }
header.nav nav a { color: var(--ink-muted); }
header.nav nav a[aria-current="page"] { color: var(--ink); }

h1 { font-family: ui-rounded, "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif; font-weight: 800; font-size: clamp(34px, 6vw, 52px); line-height: 1.08; margin: 0 0 16px; }
h2 { font-family: ui-rounded, "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif; font-weight: 800; font-size: 26px; margin: 40px 0 12px; }
h3 { font-family: ui-rounded, "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif; font-weight: 700; font-size: 18px; margin: 24px 0 8px; }
.serif { font-family: Georgia, "Times New Roman", serif; font-style: italic; color: var(--plum); }

.hero { text-align: center; padding: 72px 0 40px; }
.hero p.lead { font-size: 19px; color: var(--ink-muted); max-width: 620px; margin: 0 auto 28px; }
.tagline { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 22px; color: var(--plum); margin-bottom: 12px; }

.btn {
  display: inline-block; padding: 14px 28px; border-radius: 16px; font-family: ui-rounded, "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, #ff9e7d 0%, #c79bee 100%);
  box-shadow: 0 14px 30px -10px rgba(199, 155, 238, 0.55);
}
.btn:hover { text-decoration: none; filter: brightness(1.03); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 32px 0; }
.card {
  background: var(--surface); backdrop-filter: blur(14px);
  border: 1px solid var(--stroke); border-radius: var(--radius); padding: 24px;
}
.card .ico { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 12px; }
.card h3 { margin-top: 0; }
.card p { color: var(--ink-muted); font-size: 15px; margin: 0; }

.g-peach { background: linear-gradient(150deg, #ffd79a, #ff9e86); }
.g-plum  { background: linear-gradient(150deg, #ffaf7c, #c79bee); }
.g-sage  { background: linear-gradient(150deg, #aad1ec, #a8cbb0); }
.g-love  { background: linear-gradient(150deg, #ffc5d6, #ff93b4); }

.doc { padding: 48px 0 64px; max-width: 790px; }
.doc p, .doc li { color: var(--ink); font-size: 16px; }
.doc .muted { color: var(--ink-muted); font-size: 14px; }
.doc h2, .doc h3, .doc h4 { scroll-margin-top: 96px; }
.doc h4 {
  font-family: Nunito, system-ui, sans-serif;
  font-size: 16px;
  margin: 20px 0 6px;
}
.doc ul, .doc ol { padding-left: 24px; }
.doc li + li { margin-top: 7px; }
.doc strong { font-weight: 700; }
.doc code {
  padding: 2px 6px;
  border: 1px solid var(--stroke);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.91em;
}
.note {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 18px;
  padding: 18px 20px; margin: 20px 0;
}
.note > :first-child { margin-top: 0; }
.note > :last-child { margin-bottom: 0; }
.note.tip { border-left: 4px solid var(--sage); }
.note.caution { border-left: 4px solid var(--peach); }
.note.privacy { border-left: 4px solid var(--plum); }
.health-notice {
  margin: 44px -20px 0;
  padding: 26px 24px;
  background:
    linear-gradient(145deg, rgba(167, 208, 176, .2), rgba(199, 155, 238, .16)),
    rgba(255, 255, 255, .64);
  border: 1px solid rgba(105, 145, 113, .3);
  border-radius: 22px;
  box-shadow: 0 18px 44px -34px rgba(70, 56, 62, .55);
}
.health-notice h2 { margin-top: 0; }

.doc-hero {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--stroke);
}
.doc-hero h1 { margin-bottom: 10px; }
.doc-hero .lead {
  max-width: 720px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 18px;
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 13px;
}
.eyebrow-label {
  display: inline-block;
  margin-bottom: 9px;
  font-family: Nunito, system-ui, sans-serif;
  color: var(--plum);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.manual-wrap { max-width: 1160px; }
.doc-layout {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.doc-layout .doc { max-width: none; padding-top: 44px; }
.toc {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  margin-top: 48px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: 0 16px 36px -28px rgba(70, 56, 62, .45);
}
.toc strong {
  display: block;
  margin-bottom: 9px;
  font-family: Nunito, system-ui, sans-serif;
  font-size: 14px;
}
.toc ol {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-muted);
  font-size: 13px;
}
.toc li + li { margin-top: 5px; }
.toc a { color: var(--ink-muted); }
.toc a:hover { color: var(--plum); }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 20px 0 28px;
}
.quick-link {
  display: block;
  min-height: 100%;
  padding: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 16px;
}
.quick-link:hover {
  text-decoration: none;
  border-color: rgba(138, 111, 224, .35);
  transform: translateY(-1px);
}
.quick-link strong { display: block; font-family: Nunito, system-ui, sans-serif; }
.quick-link span { display: block; margin-top: 3px; color: var(--ink-muted); font-size: 13px; }

.section-card {
  margin: 22px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--stroke);
  border-radius: 18px;
}
.section-card > :first-child { margin-top: 0; }
.section-card > :last-child { margin-bottom: 0; }

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0 24px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(255, 255, 255, .48);
}
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--stroke);
}
th {
  font-family: Nunito, system-ui, sans-serif;
  font-weight: 800;
  background: rgba(255, 255, 255, .5);
}
tr:last-child td { border-bottom: 0; }

details {
  margin: 12px 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .52);
  border: 1px solid var(--stroke);
  border-radius: 14px;
}
summary {
  cursor: pointer;
  font-family: Nunito, system-ui, sans-serif;
  font-weight: 700;
}
details > :last-child { margin-bottom: 0; }

.steps-list { counter-reset: manual-step; list-style: none; padding-left: 0 !important; }
.steps-list > li {
  counter-increment: manual-step;
  position: relative;
  min-height: 32px;
  padding-left: 42px;
}
.steps-list > li::before {
  content: counter(manual-step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--peach), var(--lavender));
  border-radius: 50%;
  font-family: Nunito, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
}
.steps-list > li + li { margin-top: 13px; }

.back-to-top {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
}

footer { border-top: 1px solid var(--stroke); margin-top: 48px; padding: 28px 0 48px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; color: var(--ink-muted); font-size: 14px; }
footer nav { margin-left: auto; display: flex; gap: 18px; }
.hp-note { text-align: center; color: var(--ink-muted); font-size: 13px; margin-top: 8px; }

@media (max-width: 760px) {
  header.nav .wrap { flex-wrap: wrap; }
  header.nav nav {
    width: 100%;
    margin-left: 0;
    padding-bottom: 2px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  header.nav nav::-webkit-scrollbar { display: none; }
  .doc-layout { display: block; }
  .toc {
    position: static;
    max-height: none;
    margin: 28px 0 0;
  }
  .doc-layout .doc { padding-top: 30px; }
  footer nav { width: 100%; margin-left: 0; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  header.nav .wrap { padding-left: 18px; padding-right: 18px; }
  header.nav nav { gap: 14px; font-size: 13px; }
  .doc { padding-top: 34px; }
  .quick-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .quick-link { transition: none; }
}
