/* The product pages: the family rail on /products, the four beats every product explains itself
   in (src/product-beats.js: the problem, the solution, what it does, how it works), ElevateSIS's
   steps and record card, and the home page's "Built by educators" band. Loaded by /, /products,
   /marking, /desk, /daybook and /elevatesis (Daybook's panels are in daybook.css). */

.product-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.product-tile{display:flex;flex-direction:column;gap:6px;background:var(--white);border:1px solid var(--rule);border-radius:var(--r-lg);padding:26px 26px 24px;box-shadow:var(--shadow-sm);text-decoration:none;color:inherit;position:relative;transition:transform .24s var(--ease-out),box-shadow .24s var(--ease-out),border-color .24s}
a.product-tile:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--mist)}
.product-ico{width:44px;height:44px;border-radius:12px;background:var(--emerald-wash);color:var(--emerald-ink);display:flex;align-items:center;justify-content:center;margin-bottom:8px}
.product-ico svg{width:24px;height:24px}
.product-name{font-family:var(--font-display);font-weight:600;font-size:24px;letter-spacing:-.02em;color:var(--navy);display:flex;align-items:center;gap:10px;flex-wrap:wrap;line-height:1.1}
.product-sub{font-family:var(--font-mono);font-size:11px;letter-spacing:.11em;text-transform:uppercase;color:var(--emerald-ink)}
.product-tile p{color:var(--slate);margin:8px 0 10px;font-size:15.5px;line-height:1.55;flex:1 1 auto}
.product-tile .thread-link{align-self:flex-start}
a.product-tile:hover .thread-link::after{width:100%}
.product-note{font-size:13px;color:var(--faint)}

@media (max-width:900px){.product-rail{grid-template-columns:1fr}}
/* four products (Daybook joined in round 9): one row on a wide screen, two by two below it */
.product-rail.four{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1180px){.product-rail.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.product-rail.four{grid-template-columns:minmax(0,1fr)}}

@media (prefers-reduced-motion:no-preference){
  .js .product-rail.stagger>*,.js .feats-grid.stagger>*,.js .edu-list.stagger>*{transform:translateY(14px);transition:transform .6s var(--ease-out);transition-delay:var(--d,0ms)}
  .js .product-rail.stagger.in>*,.js .feats-grid.stagger.in>*,.js .edu-list.stagger.in>*{transform:none}
}

/* ---------- one product, in four beats ---------- */

.prod.tint{background:var(--tint)}
.prod-head{max-width:var(--prose)}
.prod-badge{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin:0 0 18px}
.prod-badge .product-ico{margin:0}
.prod-badge-name{font-family:var(--font-display);font-weight:600;font-size:22px;letter-spacing:-.02em;color:var(--navy);line-height:1}
.prod-head h2{margin-bottom:0}

.beat-k{display:flex;align-items:center;gap:10px;font-family:var(--font-mono);font-weight:500;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--emerald-ink);margin:0 0 12px}
.beat-n{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:22px;padding:0 6px;border-radius:var(--r-xs);background:var(--emerald-wash);color:var(--emerald-ink);font-size:10.5px;letter-spacing:.04em}

.beats{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,4.2vw,60px);align-items:center;margin-top:clamp(26px,3vw,38px)}
.beats.flip>.beats-art{order:2}
.beats-art{margin:0;min-width:0}
.beats-art img{width:100%;height:auto;display:block;border-radius:var(--r-xl);box-shadow:var(--shadow);background:var(--paper)}
.beats-text{display:flex;flex-direction:column;gap:24px;min-width:0;max-width:54ch}
.beat p{margin:0;font-size:clamp(16.5px,1.4vw,18px);line-height:1.6;color:var(--slate);text-wrap:pretty}
.beat-solution{padding-top:24px;border-top:1px solid var(--rule)}
.beat-solution p{color:var(--navy)}
.beat-solution .beat-n{background:var(--emerald);color:var(--white)}
@media (max-width:900px){.beats{grid-template-columns:1fr}.beats.flip>.beats-art{order:0}.beats-text{max-width:none}.beats-art{max-width:560px}}

.feats{margin-top:clamp(40px,4.6vw,60px)}
.feats-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 30px}
.feats-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}
.feat{display:flex;flex-direction:column;gap:8px;padding:22px 0 0;border-top:1px solid var(--rule);min-width:0}
.feat-ico{width:42px;height:42px;border-radius:12px;background:var(--emerald-wash);color:var(--emerald-ink);display:flex;align-items:center;justify-content:center;margin-bottom:4px}
.feat-ico svg{width:23px;height:23px}
.feat h3{font-size:18.5px;margin:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.feat p{margin:0;color:var(--slate);font-size:15.5px;line-height:1.55;text-wrap:pretty}
.feat-status{font-style:normal;font-family:var(--font-mono);font-weight:500;font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;background:var(--emerald-wash);color:var(--emerald-ink);padding:3px 7px;border-radius:var(--r-xs);line-height:1.3;white-space:nowrap}
.feat-status.is-early{background:var(--draft-wash);color:var(--slate)}
@media (max-width:900px){.feats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.feats-grid,.feats-grid.four{grid-template-columns:1fr}}

.how-head{margin:clamp(40px,4.6vw,60px) 0 0}
.prod .film.pane{margin-top:4px}
.prod .pane-foot{max-width:none}

/* ElevateSIS's steps, with the drawing of the record beside them */
.day-how{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,4.2vw,60px);align-items:center}
.day-steps{list-style:none;margin:0;padding:0;counter-reset:day}
.day-steps li{position:relative;padding:0 0 22px 52px;counter-increment:day}
.day-steps li:last-child{padding-bottom:0}
.day-steps li::before{content:counter(day,decimal-leading-zero);position:absolute;left:0;top:1px;width:34px;height:26px;border-radius:var(--r-xs);background:var(--white);border:1px solid var(--rule);font-family:var(--font-mono);font-size:11px;color:var(--emerald-ink);display:flex;align-items:center;justify-content:center}
.day-steps li::after{content:'';position:absolute;left:17px;top:32px;bottom:4px;width:1px;background:var(--rule)}
.day-steps li:last-child::after{display:none}
.day-steps h3{font-size:18.5px;margin:0 0 4px}
.day-steps p{margin:0;color:var(--slate);font-size:15.5px;line-height:1.55}
@media (max-width:900px){.day-how{grid-template-columns:1fr}}

/* who signs in, on /elevatesis */
.day-roles{margin-top:6px}
.day-roles.ruled li{padding:16px 0}
@media (min-width:701px){.day-roles.ruled li{grid-template-columns:minmax(0,.7fr) minmax(0,2fr);gap:16px}}
.day-roles.ruled li b{font-size:17px}
.day-roles.ruled li span{font-size:15.5px}

/* Start Marlo is a link to the sizes now (/desk, /setup), drawn as the navy call it was. */
a.desk-call{text-decoration:none}

/* the home page's four outcomes, two by two rather than three and one */
@media (min-width:700px){.grid-2.two-by-two{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- the home page: built by educators ---------- */

.edu{background:var(--tint)}
.edu-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:clamp(28px,5vw,72px);align-items:start}
.edu-head h2{margin-bottom:0}
.edu-head .lede{margin-top:16px}
.edu-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px}
.edu-list li{padding:20px 0;border-top:1px solid var(--mist);display:flex;flex-direction:column;gap:6px;min-width:0}
.edu-list b{font-family:var(--font-display);font-weight:600;font-size:clamp(18px,1.7vw,21px);letter-spacing:-.01em;line-height:1.2;color:var(--navy)}
.edu-list b::before{content:'';display:block;width:22px;height:3px;border-radius:2px;background:var(--emerald);margin-bottom:12px}
.edu-list span{color:var(--slate);font-size:15.5px;line-height:1.55;text-wrap:pretty}
@media (max-width:900px){.edu-grid{grid-template-columns:1fr}}
@media (max-width:560px){.edu-list{grid-template-columns:1fr}}

/* /elevatesis: the real screens, one under another with room between them */
.day-shots{display:grid;gap:clamp(30px,4vw,56px);margin-top:clamp(26px,3vw,40px)}
.day-shots .shot{margin:0 auto;width:100%}
