/* Joifully public website. Plain CSS, no build step. */
:root {
  color-scheme: light;
  --lavender: #d9c3fd;   /* the logo's background, so the logo sits seamlessly */
  --mist: #f8f7ff;       /* the app's page background */
  --tint: #efe8ff;
  --plum: #4a1a7a;       /* the logo's wordmark */
  --ink: #2a2140;
  --soft: #5b5270;
  --line: #e4dcf7;
  --gold: #feb945;
  --green-bg: #e1f5ee;
  --green: #085041;
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--mist);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--plum); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 5; }
.skip:focus { left: 8px; }

/* Top bar */
.top { background: var(--lavender); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.wordmark { color: var(--plum); font-size: 22px; font-weight: 800; text-decoration: none; }
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.btn:hover { background: #5d2596; }
.btn.small { padding: 9px 18px; font-size: 16px; }
.btn.ghost { background: transparent; color: var(--plum); box-shadow: inset 0 0 0 2px var(--plum); }
.btn.ghost:hover { background: rgba(255, 255, 255, .45); }

/* Hero */
.hero { background: var(--lavender); text-align: center; padding-bottom: 8px; }
.hero img.logo { width: min(340px, 78vw); margin: 0 auto -8px; clip-path: inset(3px); } /* hides a faint edge from resizing */
.hero h1 { color: var(--plum); font-size: clamp(38px, 7vw, 60px); line-height: 1.1; font-weight: 800; }
.hero p.lead { max-width: 620px; margin: 16px auto 0; font-size: clamp(19px, 2.6vw, 22px); color: var(--ink); }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.hero .note { margin-top: 18px; font-size: 16px; color: var(--ink); }
.hills { background: var(--lavender); }
.hills img { width: 100%; clip-path: inset(2px 0 0 0); }

/* Sections */
section { padding: 64px 0; }
section.tinted { background: var(--tint); }
h2 { color: var(--plum); font-size: clamp(28px, 4.4vw, 38px); line-height: 1.2; font-weight: 800; }
h3 { color: var(--plum); font-size: 22px; line-height: 1.3; font-weight: 800; }
.intro { max-width: 680px; margin-top: 12px; color: var(--soft); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 30px; }
.card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin-top: 6px; color: var(--soft); font-size: 17px; }
.card .icon { font-size: 28px; line-height: 1; margin-bottom: 10px; }

/* Pillars */
.pillar { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 44px; }
.pillar ul { margin: 12px 0 0 20px; color: var(--soft); }
.pillar li { margin-top: 6px; }
.pillar p { margin-top: 8px; color: var(--soft); }

/* Example cards that echo the app */
.sample { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 10px 28px rgba(74, 26, 122, .08); }
.sample .tag { font-size: 13px; font-weight: 700; letter-spacing: .03em; color: var(--soft); margin-bottom: 12px; }
.sample .label { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--green); }
.sample .big { font-size: 40px; font-weight: 800; color: var(--green); line-height: 1.2; }
.sample .good { background: var(--green-bg); border-radius: 14px; padding: 14px 16px; color: var(--green); }
.sample .verdict { margin-top: 12px; background: var(--tint); border-radius: 14px; padding: 12px 16px; font-size: 16px; }
.sample .row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--tint); font-size: 16px; }
.sample .row:last-child { border-bottom: 0; }
.tick { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #c4bff5; font-size: 13px; line-height: 18px; text-align: center; color: #fff; }
.tick.on { background: #1d9e75; border-color: #1d9e75; }

/* Energy */
.energy { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 30px; }

/* About + beta */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.about p { margin-top: 12px; color: var(--soft); }
.about img { margin: 0 auto; }

.hello { text-align: center; }
.hello p { max-width: 600px; margin: 12px auto 0; color: var(--soft); }
.hello .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* Footer */
footer img { width: 100%; }
.foot { background: var(--plum); color: #fff; padding: 30px 0 34px; font-size: 16px; }
.foot a { color: #fff; }
.foot a:focus-visible { outline-color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot p { margin-top: 12px; color: #e7dcff; font-size: 15px; }

/* Privacy + terms */
.doc { padding: 44px 0 60px; }
.doc .wrap { max-width: 720px; }
.doc h1 { color: var(--plum); font-size: clamp(32px, 6vw, 42px); line-height: 1.15; font-weight: 800; }
.doc .updated { margin-top: 6px; color: var(--soft); font-size: 16px; }
.doc .callout { margin-top: 20px; background: var(--tint); border-radius: var(--radius); padding: 18px 20px; }
.doc h2 { font-size: 24px; margin-top: 32px; }
.doc p { margin-top: 10px; }
.doc ul { margin: 10px 0 0 22px; }
.doc li { margin-top: 6px; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  section { padding: 48px 0; }
  .pillar, .about { grid-template-columns: 1fr; gap: 22px; }
  .pillar { margin-top: 36px; }
  .about img { max-width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
