/* HomeLoop website – shared styles */
:root {
  --paper: #F6F8FD;
  --card: #FFFFFF;
  --ink: #1D2343;
  --muted: #555D7D;
  --line: #E2E6F2;
  --home: #3D7BF7;
  --calendar: #EE6A5C;
  --chat: #14A3AF;
  --meals: #EF922A;
  --family: #8B62E6;
  --jobs: #2FAE68;
  --focus: #3D7BF7;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121528;
    --card: #1A1E36;
    --ink: #EEF0FA;
    --muted: #A9AFCB;
    --line: #2B3050;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
h1, h2, h3, .wordmark {
  font-family: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}
a { color: var(--home); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }

/* Top bar */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.4rem; padding-bottom: 1.4rem; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; }
.wordmark { font-size: 1.45rem; }
.top nav { display: flex; gap: 1.4rem; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center;
  gap: 3rem; padding-top: 3.5rem; padding-bottom: 5rem;
}
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); max-width: 14ch; }
.hero p.lead { font-size: 1.25rem; color: var(--muted); max-width: 34ch; margin: 1.4rem 0 2rem; }
.soon {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--card); border: 1.5px solid var(--line);
  padding: 0.7rem 1.1rem; border-radius: 999px; font-weight: 700;
}
.soon svg { width: 20px; height: 20px; }
.loop { width: 100%; max-width: 420px; justify-self: center; }
.loop .seg {
  fill: none; stroke-width: 30; stroke-linecap: round;
  stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len);
  animation: draw 0.7s cubic-bezier(.3,.7,.2,1) forwards;
}
.loop .seg:nth-of-type(1) { animation-delay: 0.10s; }
.loop .seg:nth-of-type(2) { animation-delay: 0.28s; }
.loop .seg:nth-of-type(3) { animation-delay: 0.46s; }
.loop .seg:nth-of-type(4) { animation-delay: 0.64s; }
.loop .seg:nth-of-type(5) { animation-delay: 0.82s; }
.loop .seg:nth-of-type(6) { animation-delay: 1.00s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .loop .seg { animation: none; stroke-dashoffset: 0; }
}

/* What's inside */
.inside { padding-top: 4.5rem; padding-bottom: 4.5rem; border-top: 1.5px solid var(--line); }
.inside h2, .promise h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); max-width: 20ch; }
.areas { list-style: none; padding: 0; margin: 2.6rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.2rem 3rem; }
.areas li { padding-left: 1.2rem; border-left: 5px solid var(--c); }
.areas h3 { font-size: 1.35rem; color: var(--c); margin-bottom: 0.35rem; }
.areas p { margin: 0; color: var(--muted); max-width: 42ch; }

/* Privacy promise */
.promise {
  margin: 1rem 0 4.5rem; background: var(--card); border-radius: 28px;
  padding: clamp(2rem, 5vw, 3.5rem); border: 1.5px solid var(--line);
}
.promise .points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.promise h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.promise p { margin: 0; color: var(--muted); }
.promise .more { margin-top: 2rem; margin-bottom: 0; }

/* Long-form pages */
.doc { max-width: 44rem; padding-top: 2rem; padding-bottom: 4rem; }
.doc h1 { font-size: clamp(2.1rem, 4.6vw, 3rem); margin-bottom: 0.6rem; }
.doc .updated { color: var(--muted); margin: 0 0 2.4rem; }
.doc h2 { font-size: 1.45rem; margin: 2.4rem 0 0.6rem; }
.doc p, .doc li { max-width: 70ch; }
.doc ul { padding-left: 1.3rem; }
.doc li { margin-bottom: 0.4rem; }
.contact {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 22px;
  padding: 1.4rem 1.6rem; margin: 1.6rem 0 2.4rem;
}
.contact p { margin: 0.2rem 0; }
details { border-bottom: 1.5px solid var(--line); padding: 1rem 0; }
details summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; }
details p, details ol, details ul { color: var(--muted); }

/* Footer */
footer { border-top: 1.5px solid var(--line); padding: 2rem 0 2.6rem; color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer nav { display: flex; gap: 1.4rem; }
footer a { color: var(--muted); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 1.5rem; gap: 2rem; }
  .loop { order: -1; max-width: 260px; }
  .areas, .promise .points { grid-template-columns: 1fr; }
  .top nav { gap: 1rem; font-size: 0.95rem; }
  .wordmark { font-size: 1.25rem; }
  .brand svg { width: 28px; height: 28px; }
  .soon { font-size: 0.95rem; white-space: nowrap; }
}
