/* Plain TODO website. Same build as the 짠짠 site (static HTML, one stylesheet): white page, ink text,
   colour only where the app uses it (the brand blue, folder colours, the wordmark's red shadow).
   Fonts: Poppins (the app's font, Latin only, python3 web/fonts.py) with Pretendard (CDN) for Korean.
   Mobile sizes are the default; desktop values live in the 860px media query. Always a light page, like
   the app's default. */
@font-face { font-family: 'Poppins'; font-weight: 500; src: url('/fonts/poppins-500.woff?v=1') format('woff'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 700; src: url('/fonts/poppins-700.woff?v=1') format('woff'); font-display: swap; }

:root {
  --bg: #FFFFFF;
  --ink: #111111;
  --sub: #666666;
  --faint: #9C9C9C;
  --card: #F7F8FB;
  --line: #ECECEC;
  --brand: #3B5998;
  --brand-dark: #2F4A82;
  --red: #FF3C3C;
  --mark-shadow: #FF9D9D;
  --shadow: rgba(17, 17, 17, 0.16);
  --sans: Poppins, Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --pad: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---- shared pieces ---- */
/* The app bar wordmark: brand blue with a flat red shadow down-right. */
.mark { font-family: Poppins, var(--sans); font-weight: 700; color: var(--brand); letter-spacing: -0.01em; text-shadow: 0.09em 0.09em 0 var(--mark-shadow); }
.logo { font-size: 24px; line-height: 1; text-decoration: none; }
.store {
  display: inline-flex; align-items: center; gap: 9px; padding: 14px 22px; border-radius: 999px;
  background: var(--brand); color: var(--bg); font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none;
}
.store svg { width: 16px; height: 20px; }
.store svg.gp { width: 18px; height: 18px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: min(100%, 360px); }
.stores .store { flex: 1 1 150px; justify-content: center; padding-inline: 16px; white-space: nowrap; }
.phone { background: var(--ink); padding: 2.4%; border-radius: 15% / 6.9%; box-shadow: 0 30px 60px -24px var(--shadow); }
.phone img { display: block; width: 100%; height: auto; border-radius: 13% / 6%; }
.center { text-align: center; }

/* ---- landing ---- */
.lnav { display: flex; align-items: center; justify-content: space-between; max-width: 1120px; margin: 0 auto; padding: 18px var(--pad); }
.lnav nav { display: flex; gap: 22px; font-size: 14px; font-weight: 600; color: var(--sub); }
.lnav nav a { text-decoration: none; }
.h-xl { margin: 0; font-size: clamp(36px, 10vw, 68px); font-weight: 800; line-height: 1.14; letter-spacing: -0.04em; text-wrap: balance; }
.h-l { margin: 0; font-size: clamp(26px, 7vw, 40px); font-weight: 800; line-height: 1.24; letter-spacing: -0.035em; text-wrap: balance; }
.lede { margin: 14px 0 0; font-size: clamp(16px, 4.4vw, 20px); line-height: 1.5; color: var(--sub); text-wrap: balance; }
:lang(en) .h-xl, :lang(en) .h-l { letter-spacing: -0.03em; font-weight: 700; }

.hero { display: grid; justify-items: center; text-align: center; max-width: 1120px; margin: 0 auto; padding: 28px var(--pad) 96px; }
.hero .stores { margin-top: 26px; }

/* Hero demo: one folder in the app's list style with its sub-todos peeking out under it. The resting
   state is the finished one (all checked, folder filled). .play runs it from 1/3: each sub-todo gets
   checked, the count goes up, and at 3/3 the folder checks itself (the app's rule). Steps are classes
   the script sets (s0..s2); without them everything shows as done. */
.demo {
  --c: #264E36;
  width: min(100%, 420px); margin-top: 44px; text-align: left;
  border-radius: 28px; background: var(--bg); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -24px var(--shadow);
}
.demo-head { display: flex; align-items: center; gap: 12px; padding: 22px 20px 14px; color: var(--c); font-size: 22px; font-weight: 700; line-height: 1.3; }
.demo-head svg { width: 22px; height: 22px; flex: none; }
.row {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px 0 20px;
  color: var(--c); font-size: 16px; font-weight: 700; line-height: 1.3;
  background: var(--bg); transition: background-color 0.35s ease, color 0.35s ease;
}
.row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.row .t { flex: 1; min-width: 0; }
.row .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; margin: 0 4px 0 2px; }
.row svg.fold { width: 15px; height: 15px; flex: none; }
.row svg.chev { width: 9px; height: 15px; flex: none; margin-left: 10px; }
.row .count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .count .n { opacity: 0.5; transition: opacity 0.3s ease; }
.box {
  width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; flex: none;
  display: grid; place-items: center; transition: background-color 0.3s ease, border-color 0.3s ease;
}
.box svg { width: 13px; height: 13px; color: var(--c); opacity: 0; transform: scale(0.4); transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.2, 1.6, 0.4, 1); }
/* Done: the row fills with the folder colour, text turns white, the circle turns into a white check. */
.row.done { background: var(--c); color: var(--bg); }
.row.done::before { background: rgba(0, 0, 0, 0.22); }
.row.done .box { background: var(--bg); border-color: var(--bg); }
.row.done .box svg { opacity: 1; transform: none; }
.row.full .count .n { opacity: 1; }
.kids { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.kids .row { font-weight: 600; }
.demo-foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); color: var(--sub); font-size: 14px; line-height: 1.45; }
.demo-foot b { color: var(--c); }
/* Steps while playing. s0: only the first sub-todo done. s1: two. s2: three, folder not yet filled. */
.demo.s0 .kids .row:nth-child(2), .demo.s0 .kids .row:nth-child(3), .demo.s1 .kids .row:nth-child(3) { background: var(--bg); color: var(--c); }
.demo.s0 .kids .row:nth-child(2)::before, .demo.s0 .kids .row:nth-child(3)::before, .demo.s1 .kids .row:nth-child(3)::before { background: var(--c); }
.demo.s0 .kids .row:nth-child(2) .box, .demo.s0 .kids .row:nth-child(3) .box, .demo.s1 .kids .row:nth-child(3) .box { background: none; border-color: currentColor; }
.demo.s0 .kids .row:nth-child(2) .box svg, .demo.s0 .kids .row:nth-child(3) .box svg, .demo.s1 .kids .row:nth-child(3) .box svg { opacity: 0; transform: scale(0.4); }
.demo.s0 .parent, .demo.s1 .parent, .demo.s2 .parent { background: var(--bg); color: var(--c); }
.demo.s0 .parent::before, .demo.s1 .parent::before, .demo.s2 .parent::before { background: var(--c); }
.demo.s0 .parent .count .n, .demo.s1 .parent .count .n { opacity: 0.5; }
.demo.s2 .parent .count .n { opacity: 1; }
.parent.pop-in { animation: thump 0.45s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes thump { 0% { transform: scale(1); } 40% { transform: scale(1.035); } 100% { transform: scale(1); } }
.replay { margin-top: 16px; padding: 4px 8px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--sub); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Feature sections: centred heading, then the screen in a phone frame with one part (.pop) enlarged to
   --w times the phone's width over the spot it comes from (--c, printed by web/shots.py). It pops out
   when the section scrolls in. */
.feat { max-width: 1120px; margin: 0 auto; padding: 88px var(--pad); display: grid; gap: 44px; align-items: center; }
.feat-text { max-width: 520px; justify-self: center; text-align: center; }
.feat-text .lede { margin-top: 12px; }
.feat-shot { position: relative; margin: 0; width: min(290px, 70vw); justify-self: center; }
.pop {
  --w: 1.3;
  position: absolute; top: var(--c); translate: 0 -50%; left: calc((1 - var(--w)) * 50%); width: calc(var(--w) * 100%);
  padding: 14px 16px; border-radius: 20px; overflow: hidden; background: var(--bg);
  box-shadow: 0 26px 50px -14px rgba(17, 17, 17, 0.32), 0 0 0 1px rgba(17, 17, 17, 0.05);
}
.pop img { display: block; width: 100%; height: auto; }
.pops .pop { opacity: 0; transform: scale(0.84); transition: transform 0.7s cubic-bezier(0.2, 1.5, 0.4, 1), opacity 0.3s ease; }
.pops .feat.in .pop { opacity: 1; transform: none; transition-delay: 0.15s; }

/* Make it yours: folder colours as swatches, plus dark mode and fonts. */
.yours { display: grid; gap: 18px; justify-items: center; max-width: 1120px; margin: 0 auto; padding: 64px var(--pad) 112px; text-align: center; }
.yours .lede { margin-top: 0; }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 420px; margin: 10px 0 0; padding: 0; list-style: none; }
.swatches li { width: 40px; height: 40px; border-radius: 50%; background: var(--s); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35); }
.swatches li.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--s); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 600; color: var(--sub); line-height: 1.3; }
.chips li.dark { background: #1E2230; color: #E8ECF5; }

.final { display: grid; justify-items: center; gap: 4px; padding: 72px var(--pad) 80px; background: var(--card); text-align: center; }
.final .mark { font-size: 56px; line-height: 1; }
.final-t { margin: 22px 0 0; font-size: clamp(26px, 7vw, 40px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.25; }
:lang(en) .final-t { font-weight: 700; letter-spacing: -0.03em; }
.final .lede { margin-top: 8px; }
.final .stores { margin-top: 24px; }

/* ---- 404 ---- */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--pad); }
header.top { padding: 20px 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lost { display: grid; justify-items: start; gap: 6px; padding: 48px 0 80px; }
.lost h1 { margin: 0; font-size: 28px; line-height: 1.3; letter-spacing: -0.03em; }
.lost p { margin: 0; color: var(--sub); }
.lost .store { margin-top: 18px; }

/* ---- business details at the bottom ---- */
footer.biz { display: grid; gap: 2px; padding-top: 28px; padding-bottom: 40px; font-size: 12.5px; line-height: 1.7; color: var(--sub); border-top: 1px solid var(--line); }
footer.biz nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; color: var(--ink); font-size: 13px; }
footer.biz nav a { text-decoration: none; }
footer.biz span { display: inline-block; margin-right: 8px; }
.landing footer.biz { max-width: 1120px; border-top: 0; }

@media (hover: hover) and (pointer: fine) {
  .store:hover { background: var(--brand-dark); }
  .lnav nav a:hover, footer.biz nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
}

@media (min-width: 860px) {
  :root { --pad: 40px; }
  .lnav { padding-top: 22px; }
  .hero { padding-top: 48px; padding-bottom: 120px; }
  .feat { gap: 56px; padding: 100px var(--pad); }
  .yours { padding-top: 96px; padding-bottom: 136px; }
  .feat-shot { width: 320px; }
  .pop { --w: 1.4; padding: 18px 22px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .row, .box, .box svg, .row .count .n { transition: none; }
  .parent.pop-in { animation: none; }
  .pops .pop { opacity: 1; transform: none; transition: none; }
}
