/* Landing page (index.html). Builds on style.css: Setdo yellow, ink, paper; Barlow Condensed for display. */
:root { --surface: #EDEFF3; --line: #DEE1E7; --faint: #9EA4AF; }
body.home { background: var(--yellow); }
.home main, .hero, .demo, .points, footer { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.hero { padding-top: 64px; padding-bottom: 8px; max-width: 640px; text-align: center; }
.hero h1 { font-size: clamp(56px, 11vw, 96px); }
.hero .button { display: inline-block; padding: 16px 28px; }

.demo { padding-top: 40px; padding-bottom: 24px; }

/* Doer: yellow header with the big count, then the items. */
.title { font: 900 34px/0.95 'Barlow Condensed', sans-serif; text-transform: uppercase; margin: 0 0 6px; }
.meta { font: 500 13px Inter, sans-serif; margin: 0; }
.meta.dark { color: var(--muted); margin-bottom: 14px; }
.count { font: 900 48px/1 'Barlow Condensed', sans-serif; margin: 0; }
.items { list-style: none; margin: 0; padding: 4px 16px; }
.item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 2px; background: none; border: 0; border-bottom: 1px solid var(--line); font: 400 16px Inter, sans-serif; color: var(--ink); text-align: left; cursor: pointer; }
.item:active { opacity: .6; }
.box { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: background .15s; }
.box svg { width: 14px; height: 14px; fill: none; stroke: var(--paper); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .25s ease-out .05s; }
.item.on .box { background: var(--ink); }
.item.on .box svg { stroke-dashoffset: 0; }
.item.on .text { color: var(--muted); text-decoration: line-through; }

/* All done: the completion screen over the list. */
.done canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cheer { font: 900 46px/1 'Barlow Condensed', sans-serif; text-transform: uppercase; margin: 0 0 18px; }
.streak { display: flex; align-items: baseline; gap: 10px; margin: 0 0 18px; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) .2s both; }
.streak b { font: 900 104px/0.85 'Barlow Condensed', sans-serif; }
.streak span { font: 600 13px Inter, sans-serif; text-transform: uppercase; letter-spacing: .6px; }
.sub { margin: 0; font-size: 15px; }
.again { margin-top: auto; border: 0; background: var(--ink); color: #fff; font: 600 15px Inter, sans-serif; padding: 14px; border-radius: 999px; cursor: pointer; }

/* Setter: who's done, live. */
.small-cap { font: 600 12px Inter, sans-serif; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 6px; }
.big { font: 900 88px/0.85 'Barlow Condensed', sans-serif; margin: 0 0 4px; display: inline-block; }
.people { list-style: none; margin: 0; padding: 0; }
.person { display: grid; grid-template-columns: 18px 36px 1fr auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.rank { font: 900 20px 'Barlow Condensed', sans-serif; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 600; }
.info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.name { font-weight: 600; font-size: 15px; }
.bar { height: 6px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 999px; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.state { font: 600 14px Inter, sans-serif; }
.state.is-done { background: var(--surface); padding: 3px 9px; border-radius: 999px; font-size: 12px; }

.bump { animation: bump .32s ease-out; }
@keyframes bump { 35% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* The three steps. */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 48px; padding-bottom: 48px; }
.points div { background: var(--paper); border-radius: 20px; padding: 22px; }
.points .num { font: 900 44px/1 'Barlow Condensed', sans-serif; margin: 0 0 8px; }
.points h2 { font: 900 28px/1 'Barlow Condensed', sans-serif; text-transform: uppercase; margin: 0 0 8px; }
.points p { margin: 0; font-size: 15px; }
footer { text-align: center; padding-bottom: 48px; }
footer .button { display: inline-block; padding: 16px 28px; }

@media (max-width: 720px) {
  .points { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Two phones with the story between them: the list goes to the doer, progress comes back to the setter. */
.phones { display: grid; grid-template-columns: auto 150px auto; gap: 8px; justify-content: center; align-items: start; }
.col { width: 330px; max-width: 100%; }
.role { margin: 0 4px 18px; min-height: 128px; } /* the same height on both sides, so the phones line up */
.tag { display: inline-block; font: 600 12px Inter, sans-serif; text-transform: uppercase; letter-spacing: .6px; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--ink); }
.tag.ink { background: var(--ink); color: #fff; }
.role h3 { font: 900 34px/1 'Barlow Condensed', sans-serif; text-transform: uppercase; margin: 10px 0 4px; }
.role p { margin: 0; font-size: 15px; }
.flow { align-self: center; display: flex; flex-direction: column; gap: 18px; margin-top: 110px; }
.arrow { margin: 0; text-align: center; font: 600 14px Inter, sans-serif; padding: 4px 6px; white-space: nowrap; } /* plain text, no pill: these aren't buttons */
.arrow span { font-size: 15px; }

/* An iPhone: dark titanium edge, black bezel, Dynamic Island, side buttons, status bar, home indicator. */
.device { position: relative; border-radius: 56px; padding: 11px; background: #1d1e21; box-shadow: 0 0 0 1.5px #4a4d53 inset, 0 30px 60px rgba(17, 17, 17, .25), 0 8px 18px rgba(17, 17, 17, .18); }
.device .btn { position: absolute; width: 4px; background: #2b2d31; border-radius: 2px; }
.device .b1 { left: -3px; top: 120px; height: 30px; }
.device .b2 { left: -3px; top: 170px; height: 54px; }
.device .b3 { left: -3px; top: 234px; height: 54px; }
.device .b4 { right: -3px; top: 190px; height: 84px; }
.screen { position: relative; background: var(--paper); border-radius: 46px; height: 600px; overflow: hidden; }
.status { position: relative; z-index: 3; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px 0 34px; font: 600 15px Inter, sans-serif; }
.island { position: absolute; left: 50%; top: 11px; width: 104px; height: 30px; margin-left: -52px; background: #000; border-radius: 999px; }
.icons { display: flex; align-items: center; gap: 5px; }
.icons svg { height: 11px; fill: var(--ink); }
.battery { width: 24px; height: 12px; border: 1.5px solid rgba(17, 17, 17, .45); border-radius: 4px; padding: 1.5px; position: relative; }
.battery i { display: block; height: 100%; width: 80%; background: var(--ink); border-radius: 1.5px; }
.home-bar { position: absolute; z-index: 4; left: 50%; bottom: 8px; width: 120px; height: 5px; margin-left: -60px; border-radius: 999px; background: var(--ink); }
#doer .status { background: var(--yellow); }
.head { background: var(--yellow); padding: 8px 18px 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.dash { padding: 10px 18px 0; }
.person.you { background: rgba(255, 232, 0, .35); margin: 0 -18px; padding: 11px 18px; }
/* An iPhone notification sliding down over the setter's screen. */
.notif { position: absolute; z-index: 5; left: 10px; right: 10px; top: 50px; display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 22px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(17, 17, 17, .18); animation: drop .5s cubic-bezier(.2, 1.2, .4, 1); }
.app-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center; font: 900 24px 'Barlow Condensed', sans-serif; }
.notif-text { display: flex; flex-direction: column; min-width: 0; }
.notif-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.notif-top span { color: var(--muted); }
.notif-body { font-size: 14px; }
@keyframes drop { from { transform: translateY(-120%); opacity: 0; } to { transform: none; opacity: 1; } }
.done { position: absolute; z-index: 2; inset: 0; background: var(--yellow); padding: 70px 20px 34px; display: flex; flex-direction: column; animation: rise .35s ease-out; }

/* The hand that shows where to tap. */
.pointer { position: absolute; z-index: 2; left: 0; top: 0; pointer-events: none; transition: transform .45s cubic-bezier(.3, .8, .3, 1), opacity .2s; }
.pointer svg { width: 34px; height: 34px; fill: #fff; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25)); transform-origin: 40% 10%; animation: tap 1.6s ease-in-out infinite; }
.pointer .ripple { position: absolute; left: 4px; top: -8px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); opacity: 0; animation: ripple 1.6s ease-out infinite; }
.pointer.gone { opacity: 0; }
@keyframes tap { 0%, 100% { transform: translate(6px, 8px) scale(1); } 45% { transform: translate(0, 0) scale(.92); } 55% { transform: translate(0, 0) scale(.92); } }
@keyframes ripple { 0%, 40% { opacity: 0; transform: scale(.5); } 50% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.8); } }

@media (max-width: 900px) {
  .phones { grid-template-columns: 1fr; justify-items: center; gap: 0; }
  .col { width: 330px; }
  .role { min-height: 0; }
  .flow { flex-direction: row; margin: 22px 0 26px; }
  .arrow.left { display: none; }
  .arrow.right span { display: inline-block; transform: rotate(90deg); }
}

/* Motion: headline rises in, sections slide in on scroll, the live arrow pulses on each tick. */
.hero { position: relative; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: inline-block; animation: rise-in .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero h1 .line:nth-child(2) span { animation-delay: .12s; }
.fade { animation: fade-in .7s ease-out .35s both; }
.hero .button.fade { animation-delay: .5s; }
@keyframes rise-in { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }


.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease-out, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.device.reveal { transform: translateY(40px) rotate(-1.5deg); }
.col + .flow + .col .device.reveal { transform: translateY(40px) rotate(1.5deg); }
.device.reveal.in, .col + .flow + .col .device.reveal.in { transform: none; }
.arrow.left { animation: nudge-left 2.4s ease-in-out infinite; }
.arrow.right span, .arrow.left span { display: inline-block; }
.arrow.right span { animation: nudge-right 2.4s ease-in-out infinite; }
@keyframes nudge-left { 0%, 100% { transform: none; } 50% { transform: translateX(-4px); } }
@keyframes nudge-right { 0%, 100% { transform: none; } 50% { transform: translateX(4px); } }
.points .reveal { transition-property: opacity, transform, box-shadow; }
.points div:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(17, 17, 17, .12); }
.button { transition: transform .15s; }
.button:hover { transform: translateY(-2px); }
@media (max-width: 900px) { .arrow.right span { animation: none; } }
.hero { isolation: isolate; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .device.reveal, .col + .flow + .col .device.reveal { opacity: 1; transform: none; }
}
