/* Ditto site. Tokens match Brand/brand-tokens.json: white page, aubergine ink,
   HabitSnap's pastel prism, the icon's holo spectrum for one accent per page. */
:root {
  --paper: #ffffff;
  --card: #ffffff;
  --ink: #1f1533;
  --ink-2: #655d78;
  --hair: rgba(31, 21, 51, 0.1);
  --lavender: #bdadff;
  --sky: #9ed6ff;
  --mint: #9eedd1;
  --lemon: #fff1a8;
  --peach: #ffd1a8;
  --rose: #ffb8d9;
  --holo: linear-gradient(100deg, #9a7bff, #62c3ff 22%, #6cefd3 42%, #ffe45e 60%, #ffae6b 78%, #ff72c0);
  --round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #120d1c;
    --card: #1e1729;
    --ink: #f6f2ff;
    --ink-2: #b1a8c6;
    --hair: rgba(246, 242, 255, 0.12);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--body);
}
a { color: inherit; text-decoration-color: #9a7bff; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 10px; }
.brand span { font: 900 26px/1 var(--round); letter-spacing: -0.5px; }
nav.site { display: flex; gap: 18px; font: 700 15px/1 var(--round); }
nav.site a { text-decoration: none; color: var(--ink-2); }
nav.site a[aria-current="page"], nav.site a:hover { color: var(--ink); }

/* Landing */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 28px 0 56px; }
.hero h1 { font: 900 clamp(48px, 9vw, 88px)/0.95 var(--round); letter-spacing: -2px; margin: 0 0 18px; }
.hero p.lede { font: 600 clamp(19px, 2.4vw, 23px)/1.4 var(--round); color: var(--ink-2); margin: 0 0 26px; max-width: 32ch; }
.hero .art { display: flex; justify-content: center; }
.hero .art img { width: min(380px, 80vw); border-radius: 22%; box-shadow: 0 30px 60px rgba(124, 98, 214, 0.28); }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--holo); color: #1f1533;
  font: 800 18px/1 var(--round); text-decoration: none;
  box-shadow: 0 10px 28px rgba(154, 123, 255, 0.35), inset 0 0 0 2px rgba(255,255,255,0.7);
}
.note { font-size: 14px; color: var(--ink-2); margin-top: 12px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 56px; }
.step { border-radius: 28px; padding: 24px; color: #1f1533; }
.step:nth-child(1) { background: var(--lavender); }
.step:nth-child(2) { background: var(--mint); }
.step:nth-child(3) { background: var(--peach); }
.step .n { font: 900 14px/1 var(--round); opacity: 0.6; letter-spacing: 0.5px; }
.step h3 { font: 900 26px/1.1 var(--round); margin: 10px 0 8px; }
.step p { margin: 0; font-size: 16px; }

.prompts { padding-bottom: 56px; }
.prompts h2, .safe h2 { font: 900 32px/1.1 var(--round); margin: 0 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 10px 16px; border-radius: 999px; font: 800 16px/1.2 var(--round); color: #1f1533; }
.chips span:nth-child(6n+1) { background: var(--lavender); }
.chips span:nth-child(6n+2) { background: var(--sky); }
.chips span:nth-child(6n+3) { background: var(--mint); }
.chips span:nth-child(6n+4) { background: var(--lemon); }
.chips span:nth-child(6n+5) { background: var(--peach); }
.chips span:nth-child(6n+6) { background: var(--rose); }

.safe { border: 1px solid var(--hair); border-radius: 28px; padding: 28px; margin-bottom: 56px; }
.safe ul { margin: 0; padding-left: 20px; }
.safe li { margin: 6px 0; }

/* Documents */
main.doc { padding: 8px 0 40px; }
main.doc h1 { font: 900 46px/1 var(--round); letter-spacing: -1px; margin: 12px 0 8px; }
main.doc h2 { font: 800 22px/1.2 var(--round); margin: 32px 0 8px; }
main.doc p, main.doc li { color: var(--ink); }
main.doc .date { color: var(--ink-2); margin-top: 0; }
main.doc .callout { background: rgba(189, 173, 255, 0.22); border-radius: 20px; padding: 16px 20px; }

footer.site { border-top: 1px solid var(--hair); padding: 24px 0 40px; font-size: 14px; color: var(--ink-2); }
footer.site p { margin: 6px 0; }
footer.site .links { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 8px; }
  .hero .art { order: -1; }
  .hero .art img { width: 200px; }
  .steps { grid-template-columns: 1fr; }
  nav.site { gap: 12px; }
}

/* Landing additions (Oct 24): the weekly card, the FAQ, the invite page. */
.hero .art > div { display: grid; justify-items: center; }
.weekly { padding-bottom: 56px; }
.weekly-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: 24px; color: #1f1533;
  background: var(--holo);
  display: grid; gap: 8px; justify-items: start;
}
.weekly-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.2) 0 1px, transparent 1px 5px); }
.weekly-card > * { position: relative; z-index: 1; }
.pill { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.72); font: 900 12px/1 var(--round); }
.weekly-prompt { margin: 2px 0 0; font: 900 clamp(30px, 6vw, 48px)/1 var(--round); letter-spacing: -0.03em; text-wrap: balance; }
.weekly-note { font: 800 13px/1 var(--round); opacity: 0.7; }
.weekly-card img { position: absolute; right: 18px; bottom: 10px; width: 110px; transform: rotate(-9deg); z-index: 1; }
.faq { padding-bottom: 56px; }
.faq h2 { font: 900 32px/1.1 var(--round); margin: 0 0 8px; }
.faq details { border-top: 1px solid var(--hair); padding: 14px 0; }
.faq summary { cursor: pointer; font: 800 18px/1.3 var(--round); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); }
.invite main { display: grid; justify-items: center; text-align: center; gap: 16px; padding: 8px 0 40px; }
.invite h1 { font: 900 clamp(36px, 10vw, 48px)/1 var(--round); letter-spacing: -1.5px; margin: 10px 0 0; }
.invite .lede { font: 600 17px/1.5 var(--round); color: var(--ink-2); margin: 0; max-width: 34ch; }
.invite .note { margin: 0; max-width: 36ch; }
.invite-steps { list-style: none; margin: 8px 0 0; padding: 16px; width: 100%; max-width: 460px; display: grid; gap: 12px; border: 1px solid var(--hair); border-radius: 22px; text-align: left; }
.invite-steps li { display: flex; align-items: center; gap: 12px; font: 700 16px/1.3 var(--round); }
.invite-steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--holo); color: #1f1533; font: 900 14px/1 var(--round); }
@media (max-width: 760px) {
  .weekly-card img { width: 80px; }
  .weekly-prompt { padding-right: 70px; }
}
