/* PickIt case study (pickit.nishesh.design): page components.
   styles.css next to this file is a verbatim copy of store-site/public/styles.css,
   the app's own site, so both sites share one set of tokens, fonts and components.
   Everything below builds on those tokens; nothing here changes the store-site. */

/* Small text uses --text3. The app site's value (#6C6C7C) is about 3.6:1 on the page
   background, under the WCAG AA 4.5:1 minimum, so this page lifts it to ~5.5:1. */
:root{--text3:#8A8A9A}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important}
}

/* Skip link: hidden until a keyboard user tabs to it */
.skip{position:absolute;left:var(--gutter);top:-80px;z-index:10;padding:10px 16px;border-radius:12px;
      background:var(--surface);color:var(--text);border:1px solid var(--border-hi);font-weight:600}
.skip:focus{top:12px;color:var(--text);border-color:var(--silver)}

.btn:focus-visible{outline:2px solid var(--silver);outline-offset:3px}
.fine a{font-size:inherit}

/* ── Hero ─────────────────────────────────────────────── */
.cs-hero{padding:40px 0 0}
.cs-hero .eyebrow{margin-bottom:16px}
.hero h1.cs-title{font-family:var(--display);font-weight:700;font-size:clamp(32px,7.6vw,58px);
                  letter-spacing:-.035em;line-height:1.05;max-width:15ch;margin:0 auto 18px}
.cs-title .accent{display:block;color:var(--red-text)}
.cs h2,.cs-cta h2{text-wrap:balance}
.cs-hero .fine{margin-top:14px;color:var(--text2);text-wrap:balance}

/* Three real screens under the hero, middle one forward */
.hero-shots{display:flex;justify-content:center;align-items:flex-end;margin:44px auto 0;max-width:640px;
            padding:0 4px}
.hero-shots .screen{flex:0 0 auto}
.hero-shots .side{width:30%;max-width:196px;opacity:.88}
.hero-shots .main{width:36%;max-width:236px;margin:0 -3%;position:relative;z-index:1;
                  box-shadow:0 0 0 1px var(--border-hi),0 30px 70px rgba(159,48,68,.32),0 10px 30px rgba(0,0,0,.55)}
.hero-shots .side:first-child{margin-bottom:22px}
.hero-shots .side:last-child{margin-bottom:22px}

/* A real screenshot with the phone's rounded screen corners */
.screen{display:block;border-radius:12.5% / 5.75%;overflow:hidden;background:var(--bg-deep);line-height:0;
        box-shadow:0 0 0 1px var(--border-hi),0 22px 54px rgba(0,0,0,.55)}
.screen img{display:block;width:100%;height:auto}

/* ── At a glance ──────────────────────────────────────── */
.glance{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:48px 0 0}
@media (min-width:860px){.glance{grid-template-columns:repeat(3,1fr);gap:12px}}
.glance > div{padding:16px 16px 15px;border-radius:16px;background:var(--glass);border:1px solid var(--border-hi)}
.glance dt{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;
           color:var(--red-text);margin-bottom:6px}
.glance dd{color:var(--text);font-size:15px;line-height:1.45;font-weight:500}
.glance dd span{display:block;color:var(--text2);font-weight:400;font-size:14px;margin-top:2px}
@media (max-width:380px){.glance > div{padding:14px 13px}.glance dd{font-size:14.5px}}

/* ── Story sections ───────────────────────────────────── */
.cs{padding-top:64px}
.cs-head::before{content:'';display:block;height:1px;background:var(--border);margin-bottom:52px}
.cs h2{font-family:var(--display);font-weight:700;font-size:clamp(27px,5.4vw,38px);letter-spacing:-.03em;
       line-height:1.1;margin:12px 0 18px;max-width:21ch}
.cs .lede{margin-bottom:16px}
.cs p{max-width:620px}
.cs .card p{max-width:none}
.cs h3.sub{font-family:var(--display);font-weight:700;font-size:20px;letter-spacing:-.015em;color:var(--text);
           margin:44px 0 4px}

/* Three "why it fails" cards reuse .promises from styles.css */
.cs .promises{margin-top:30px}
.cs .promises .pill{margin-bottom:12px}
.cs .promises .card p{margin:0}

/* Numbered design moves */
.rows{list-style:none;counter-reset:row;margin-top:28px}
.rows li{counter-increment:row;display:grid;grid-template-columns:34px 1fr;gap:0 12px;padding:20px 0;
         border-top:1px solid var(--border)}
.rows li:last-child{border-bottom:1px solid var(--border)}
.rows li::before{content:counter(row,decimal-leading-zero);font-family:var(--mono);font-size:12px;
                 color:var(--red-text);padding-top:5px}
.rows h3{font-family:var(--display);font-weight:700;font-size:18px;letter-spacing:-.015em;color:var(--text);
         line-height:1.3;margin-bottom:5px}
.rows p{margin:0;font-size:15.5px}

/* How a round ends */
.outcomes{display:grid;grid-template-columns:1fr;gap:12px;margin-top:18px}
@media (min-width:540px){.outcomes{grid-template-columns:1fr 1fr}}
.outcomes .card{padding:20px 18px}
.outcomes .card + .card{margin-top:0}
.outcomes .pill{margin-bottom:12px}
.outcomes p{margin:0;font-size:15px;color:var(--text2)}

/* Stack chips + how-it-runs cards */
.stack{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:26px 0 0}
.stack .chip.on{color:var(--text);border-color:rgba(196,112,127,.45);background:rgba(159,48,68,.16)}
.duo{display:grid;gap:12px;margin-top:30px}
@media (min-width:700px){.duo{grid-template-columns:1fr 1fr}}
.duo .card + .card{margin-top:0}
.duo .pill{margin-bottom:12px}
.duo h3{font-size:18px;color:var(--text);margin-bottom:8px;line-height:1.3}
.duo p{margin:0;font-size:15px}

/* The flow, start to finish */
.flow{list-style:none;counter-reset:flow;display:grid;grid-template-columns:1fr 1fr;gap:30px 14px;margin-top:34px}
@media (min-width:760px){.flow{grid-template-columns:repeat(4,1fr);gap:40px 22px}}
.flow li{counter-increment:flow}
.flow figure{margin:0}
.flow figcaption{margin-top:14px;font-size:14px;line-height:1.5;color:var(--text2)}
.flow figcaption b{display:block;font-family:var(--display);font-weight:700;font-size:16px;letter-spacing:-.01em;
                   color:var(--text);margin-bottom:3px}
.flow figcaption b::before{content:counter(flow,decimal-leading-zero);font-family:var(--mono);font-size:11px;
                           font-weight:500;letter-spacing:.06em;color:var(--red-text);margin-right:8px}

/* Current status */
.status{display:grid;gap:12px;margin-top:28px}
.status .card + .card{margin-top:0}
.status h3{font-size:18px;color:var(--text);margin-bottom:12px}
.status ul.dots{margin-bottom:0}
.status .card.good ul.dots li{color:var(--text)}
.cs .note{font-family:var(--mono);font-size:12px;color:var(--text3);margin-top:16px}

/* Closing call to action */
.cs-cta{text-align:center;padding:84px 0 24px}
.cs-cta .wordmark{display:block;font-size:clamp(44px,11vw,64px);margin-bottom:18px}
.cs-cta h2{font-family:var(--display);font-weight:700;font-size:clamp(27px,5.4vw,38px);letter-spacing:-.03em;
           line-height:1.1;margin:0 auto 10px}
.cs-cta p{margin:0 auto}
.cs-cta .actions{margin-top:24px}
.cs-cta .fine{margin-top:14px;color:var(--text2);text-wrap:balance}

/* Footer credit line */
footer .credit{flex-basis:100%;font-size:13.5px;color:var(--text2);margin:0}
footer .credit a{color:var(--text2);border-bottom-color:rgba(255,255,255,.2)}
footer .credit a:hover{color:var(--text)}

/* Privacy page: where the canonical copy lives */
.page-head .fine{margin-top:14px;color:var(--text2)}
