/* Topic pages: the worked example floating on the hero's sky, the hard parts as numbered rows beside a heading that
   stays in view, Spelo's answers as a bento with the first one raised, and the steps beside the Studio on a sky tile.
   The comparison page sets both sides of each criterion next to each other and its two cases as equal panels.
   Loaded after styles.css, whose tokens it uses. */
.tp-sec{padding:clamp(72px,9vw,128px) 0 0}
.tp-sec.tp-last{padding-bottom:clamp(72px,9vw,128px)}
.tp-head{max-width:15em;margin-bottom:clamp(32px,4vw,48px)}
.tp-intro{font-size:clamp(1.0625rem,1.4vw,1.25rem);line-height:1.52;letter-spacing:-.01em;color:var(--muted)}
.tp-card dl,.tp-card dd{margin:0}
.tp-card a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}

/* the worked example on the hero's sky: heading and note left, the card floating right; stacked, the card comes
   straight after its heading and the note follows it */
.tp-lift{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-rows:auto 1fr;grid-template-areas:"head card" "note card";
  column-gap:clamp(32px,5vw,80px);align-items:start;margin-top:clamp(56px,7vw,104px)}
.tp-lift h2{grid-area:head;max-width:12em;padding-top:clamp(4px,1.4vw,20px);font-size:clamp(2rem,2.8vw,2.625rem);line-height:1.06}
.tp-lift .tp-card{grid-area:card}
.tp-lift-note{grid-area:note;max-width:28em;margin-top:20px;font-size:1.0625rem;line-height:1.55;color:var(--muted-on-sky)}
.tp-card{margin:0;overflow:hidden;border-radius:22px;background:var(--surface);box-shadow:0 1px 2px rgba(24,24,28,.06),0 34px 70px -26px rgba(24,24,28,.42)}
.tp-ex-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;align-items:center;padding:18px 24px}
.tp-ex-row+.tp-ex-row{border-top:1px solid rgba(32,33,36,.07)}
.tp-ex dt{grid-area:1/1;font-size:.6875rem;font-weight:600;line-height:1.4;letter-spacing:.08em;text-transform:uppercase;color:var(--muted2)}
.tp-ex-txt{grid-area:2/1/3/3;font-size:clamp(1.125rem,1.5vw,1.3125rem);line-height:1.4;letter-spacing:-.01em}
.tp-tag{grid-area:1/2;padding:3px 10px;border-radius:var(--r-pill);box-shadow:inset 0 0 0 1px var(--rule);font-size:.75rem;line-height:1.4;color:var(--muted);white-space:nowrap}
.tp-ex-row.is-out{background:var(--accent-soft);box-shadow:inset 3px 0 0 var(--accent)}
.tp-ex-row.is-out dt,.tp-ex-row.is-out .tp-tag{color:var(--accent-ink)}
.tp-ex-row.is-out .tp-tag{background:var(--surface);box-shadow:inset 0 0 0 1px #F6D2C2}
.tp-ex-row.is-keep{background:var(--gold-soft)}
.tp-ex-row.is-keep dt{color:var(--gold-ink)}
.tp-ex-row.is-keep .tp-ex-txt{font-size:1rem;font-weight:500;color:var(--gold-ink)}

/* the comparison: the words above, the card across the full width, one row per criterion */
.tp-lift.is-wide{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto;grid-template-areas:"head note" "card card";
  align-items:end;row-gap:clamp(24px,3vw,36px);margin-top:clamp(40px,4.5vw,64px)}
.tp-lift.is-wide h2{max-width:11em;padding-top:0}
.tp-lift.is-wide .tp-lift-note{margin:0;font-size:clamp(1.0625rem,1.4vw,1.1875rem)}
.tp-cmp-row{display:grid;grid-template-columns:minmax(140px,.8fr) minmax(0,2fr) minmax(0,2fr)}
.tp-cmp-row+.tp-cmp-row{border-top:1px solid rgba(32,33,36,.07)}
.tp-cmp-row>*{padding:20px 24px;font-size:1rem;line-height:1.5}
.tp-cmp dt{font-weight:600;letter-spacing:-.01em}
.tp-cmp-human{color:var(--muted-on-sky)}
.tp-cmp-ai{background:var(--accent-soft)}

/* what makes it hard: the heading stays in view while the numbered rows pass */
.tp-split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(40px,6vw,96px);align-items:start}
.tp-split-head{position:sticky;top:116px}
.tp-split-head .tp-intro{max-width:24em;margin-top:20px}
.tp-rows{list-style:none;margin:0;padding:0;counter-reset:tp}
.tp-rows li{counter-increment:tp;display:grid;grid-template-columns:clamp(56px,6vw,88px) minmax(0,1fr);column-gap:clamp(16px,2vw,28px);padding:clamp(24px,2.6vw,34px) 0;border-top:1px solid var(--rule)}
.tp-rows li:last-child{border-bottom:1px solid var(--rule)}
.tp-rows li::before{content:counter(tp,decimal-leading-zero);grid-row:1/3;font:400 clamp(2.25rem,3.2vw,3rem)/.9 var(--display);font-variant-numeric:lining-nums;color:var(--accent-ink)}
.tp-rows h3,.tp-rows p{grid-column:2}
.tp-rows p{max-width:34em;margin-top:8px;font-size:1.0625rem;color:var(--muted)}

/* how Spelo does it: a bento in a zigzag (wide, narrow / narrow, wide), the first answer raised on white over three flat cards */
.tp-bento{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}
.tp-bento>li{grid-column:span 5;padding:clamp(24px,2.6vw,36px);border-radius:24px;background:var(--card)}
.tp-bento>li:first-child,.tp-bento>li:nth-child(4){grid-column:span 7}
.tp-bento>li:first-child{padding:clamp(28px,3.6vw,52px);background:var(--surface);box-shadow:0 1px 2px rgba(24,24,28,.05),0 24px 56px -28px rgba(24,24,28,.3)}
.tp-bento h3{font-size:1.375rem}
.tp-bento p{margin-top:10px;font-size:1.0625rem;color:var(--muted)}
.tp-bento>li:first-child h3{max-width:12em;font:500 clamp(2rem,3vw,2.75rem)/1.04 var(--display);letter-spacing:-.012em}
.tp-bento>li:first-child p{max-width:30em;margin-top:14px;font-size:1.125rem;color:var(--ink)}

/* dubbing services: its three ways to work with Spelo as equal cards, the note for dubbing studios under them,
   its words lined up with the cards' words */
.tp-options{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tp-options li{padding:clamp(28px,3vw,40px);border-radius:24px;background:var(--surface);border:1px solid var(--rule)}
.tp-options h3{font:500 clamp(1.875rem,2.6vw,2.375rem)/1.05 var(--display);letter-spacing:-.012em}
.tp-options p{margin-top:12px;font-size:1.0625rem;color:var(--muted)}
.tp-options-note{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 16px;align-items:baseline;margin-top:clamp(28px,3vw,40px);
  padding-top:clamp(20px,2.4vw,28px);border-top:1px solid var(--rule)}
.tp-options-note>*{padding-left:calc(clamp(28px,3vw,40px) + 1px)}
.tp-options-note h3{font-size:1.0625rem;font-weight:600;letter-spacing:-.01em}
.tp-options-note p{grid-column:2/-1;max-width:40em;font-size:1.0625rem;color:var(--muted)}

/* the comparison's two cases: equal panels, their lists starting level */
.tp-panels{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto 1fr;gap:0 16px}
.tp-panel{display:grid;grid-row:span 3;grid-template-rows:subgrid;align-content:start;padding:clamp(28px,3.6vw,52px);border-radius:24px;background:var(--surface);border:1px solid var(--rule)}
.tp-panel h2{max-width:12em;font-size:clamp(2rem,3vw,2.75rem)}
.tp-panel .tp-intro{margin-top:16px}
.tp-panel ul{grid-row:3;list-style:none;margin:28px 0 0;padding:0}
.tp-panel li{padding:20px 0;border-top:1px solid var(--rule)}
.tp-panel li:last-child{padding-bottom:0}
.tp-panel h3{font-size:1.1875rem}
.tp-panel p{margin-top:6px;font-size:1rem;color:var(--muted)}

/* how a project runs: the Studio on a sky tile left, the heading and steps right */
.tp-proc{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);grid-template-rows:auto 1fr;grid-template-areas:"tile head" "tile steps";column-gap:clamp(40px,5vw,80px);align-items:start}
.tp-proc-head{grid-area:head}
.tp-proc-head .tp-intro{margin-top:18px}
.tp-proc .steps{grid-area:steps;margin-top:32px}
.tp-proc-tile{grid-area:tile;align-self:stretch;display:grid;align-items:center;padding:clamp(24px,4vw,56px) clamp(16px,2.8vw,48px)}
.tp-proc .app{font-size:.9375rem;border:0;box-shadow:0 1px 2px rgba(24,24,28,.06),0 34px 70px -26px rgba(24,24,28,.45)}
.tp-proc .app-body{grid-template-columns:minmax(0,1fr) clamp(208px,17vw,216px)}

/* below a laptop's width the Studio needs the full width to stay readable, so the steps go above it */
@media (max-width:1180px){
  .tp-proc{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-template-areas:"head" "steps" "tile"}
  .tp-proc-tile{margin-top:40px}
  .tp-proc .app-body{grid-template-columns:minmax(0,1fr) 240px}
}
@media (max-width:1000px){
  .tp-lift,.tp-lift.is-wide,.tp-split,.tp-panels{grid-template-columns:minmax(0,1fr)}
  .tp-lift{grid-template-rows:none;grid-template-areas:"head" "card" "note";row-gap:20px;margin-top:clamp(36px,6vw,56px)}
  .tp-lift h2{padding-top:0}
  .tp-lift-note{margin-top:4px}
  .tp-lift.is-wide{grid-template-areas:"head" "note" "card";margin-top:clamp(36px,6vw,56px)}
  .tp-lift.is-wide .tp-card{margin-top:12px}
  .tp-split{gap:28px}
  .tp-split-head{position:static}
  .tp-bento>li{grid-column:span 6}
  .tp-bento>li:first-child,.tp-bento>li:nth-child(4){grid-column:1/-1}
  .tp-panels{grid-template-rows:none;gap:16px}
  .tp-panel{grid-row:auto;grid-template-rows:none}
}
@media (max-width:900px){
  .tp-options,.tp-options-note{grid-template-columns:minmax(0,1fr)}
  .tp-options-note>*{padding-left:0}
  .tp-options-note p{grid-column:auto}
}
@media (max-width:720px){
  .tp-ex-row{padding:16px 18px}
  .tp-cmp-row{grid-template-columns:minmax(0,1fr)}
  .tp-cmp-row>*{padding:12px 18px}
  .tp-cmp dt{padding-top:18px}
  .tp-cmp-ai{margin:0 10px 12px;border-radius:12px}
  .tp-rows li{grid-template-columns:48px minmax(0,1fr)}
  .tp-bento{grid-template-columns:minmax(0,1fr)}
  .tp-bento>li,.tp-bento>li:first-child,.tp-bento>li:nth-child(4){grid-column:auto}
  .tp-proc .app-body{grid-template-columns:minmax(0,1fr)}
}
