/* The details page (/how-it-works), on top of site.css: a contents list that stays beside the text on a computer and
   sits on top on a phone, then one part per subject. */
/* One plain colour per platform floor, each with white words at 5:1 or more. No platform logos anywhere: only their
   names on these colours. */
:root{--fShopify:#3D6B2A;--fSquare:#3B4658;--fAmazon:#A3570D;--fMeta:#2457C5}
[data-floor="shopify"]{--floor:var(--fShopify)}
[data-floor="square"]{--floor:var(--fSquare)}
[data-floor="amazon"]{--floor:var(--fAmazon)}
[data-floor="meta"]{--floor:var(--fMeta)}

.hiw{max-width:var(--wrap);margin:0 auto;padding:var(--sp7) 24px 0;display:grid;grid-template-columns:240px minmax(0,1fr);gap:48px;align-items:start}
.toc{position:sticky;top:88px;display:flex;flex-direction:column;gap:10px;padding:20px;border:1px solid var(--line);border-radius:var(--r5);background:var(--panel2)}
.toc h2{margin:0;font-size:13px;font-weight:650;letter-spacing:.12em;text-transform:uppercase;color:var(--gold)}
.toc ol{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:2px;counter-reset:toc}
.toc a{display:block;padding:6px 10px;border-radius:var(--r2);color:var(--label);text-decoration:none;font-size:14px;line-height:1.35;transition:background-color var(--t1) var(--ease),color var(--t1) var(--ease)}
.toc a:hover{background:var(--hover);color:var(--text)}
.hiw-body{display:flex;flex-direction:column;gap:var(--sp8);min-width:0}
.part{display:flex;flex-direction:column;gap:20px;scroll-margin-top:88px}
.part h2{margin:0;font-size:clamp(26px,3vw,32px);font-weight:var(--display);letter-spacing:var(--track);line-height:1.15;color:var(--figure)}
.part h3{margin:0;font-size:17px;font-weight:650;color:var(--figure)}
.part > p{margin:0;color:var(--label);max-width:72ch}
.part .lead{font-size:17px}

/* Why one office: a platform's own AI helper beside SKYROOK with the Observatory. */
.vs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border:1px solid var(--line);border-radius:var(--r5);overflow:hidden;background:var(--panel)}
.vs > div{padding:24px;display:flex;flex-direction:column;gap:14px}
.vs .them{border-right:1px solid var(--line)}
.vs .us{background:linear-gradient(180deg,rgba(216,183,102,.08),rgba(216,183,102,0) 70%)}
.vs .them h3{color:var(--muted)}
.vs .us h3{color:var(--gold)}
.vs ul{margin:0}
.vs .them ul{padding:0;list-style:none;display:flex;flex-direction:column;gap:9px}
.vs .them li{position:relative;padding-left:26px;color:var(--label)}
.vs .them li::before{content:"";position:absolute;left:4px;top:.75em;width:11px;height:2px;border-radius:1px;background:var(--muted)}

/* A screen of the sample office. */
.shot{margin:0;display:flex;flex-direction:column;gap:10px}
.shot img{display:block;width:100%;height:auto;border-radius:var(--r5);border:1px solid var(--line);background:var(--panel2)}
.shot figcaption{font-size:14px;color:var(--muted)}

/* The Observatory for the owner, the Platform Floors for the departments, then the floors with their colours. */
.obs-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.obs-role{display:flex;flex-direction:column;gap:6px;padding:20px 24px;border:1px solid var(--line);border-radius:var(--r5);background:var(--panel)}
.obs-role h3{color:var(--gold)}
.obs-role p{margin:0;color:var(--label)}
.floors{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
/* each floor: one full frame, its platform's colour as a dot before the name (no bar down one side) */
.floors li{display:flex;flex-direction:column;gap:6px;padding:16px 18px;border:1px solid var(--line);border-radius:var(--r4);background:var(--panel)}
.floors b::before{content:'';display:inline-block;width:10px;height:10px;margin:0 8px 1px 0;border-radius:50%;background:var(--floor);vertical-align:middle}
.floors b{font-size:16px;color:var(--figure)}
.floors li > span{font-size:14.5px;color:var(--label)}
.more-floors{display:flex;flex-direction:column;gap:10px;padding:20px 24px;border:1px solid var(--line);border-radius:var(--r5);background:var(--panel)}
.more-floors h3{color:var(--gold)}
.more-floors p{margin:0;color:var(--label)}
.groups{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px}
.groups li{display:flex;flex-direction:column;gap:2px}
.groups b{font-size:14.5px;color:var(--figure)}
.groups li > span{font-size:14.5px;color:var(--label)}

/* Numbered steps (Connect, Direct, Report; the day in the office). */
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.step{display:flex;flex-direction:column;gap:8px;padding:20px 22px;border:1px solid var(--line);border-radius:var(--r5);background:var(--panel)}
.step p{margin:0;color:var(--label);font-size:15px}
/* Only the steps' round numbers: the plans table's td.num cells (gateway.css) keep their own look (round 3: prices
   squashed into 30px circles). */
.steps .num{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:var(--navy);color:#EEE3BD;font-family:var(--mono);font-variant-numeric:tabular-nums;font-weight:700;box-shadow:inset 0 0 0 1px var(--cta)}
.rules{border-left:3px solid var(--cta);padding:4px 0 4px 18px}
.rules ul{margin:0;padding-left:20px;color:var(--label);display:flex;flex-direction:column;gap:6px}

/* The three report types. */
.rtypes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.rtype{display:flex;flex-direction:column;gap:6px;padding:20px;border:1px solid var(--line);border-radius:var(--r5);background:var(--panel)}
.rtype h3{color:var(--gold)}
.rtype p{margin:0;font-size:14.5px;color:var(--label)}
.rtype .rtime{font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
#reports .btn{align-self:flex-start}

/* The plans in a table. */
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r5);background:var(--panel)}
.plan-table{min-width:560px;font-size:15px}
.plan-table th,.plan-table td{padding:14px 16px}
.plan-table thead th{font-size:13px;color:var(--muted);font-weight:600}
.plan-table tbody th{font-weight:650;color:var(--figure)}
.plan-table tbody tr:last-child th,.plan-table tbody tr:last-child td{border-bottom:0}

/* What the names mean. */
.names{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.names > div{padding:16px 20px;border:1px solid var(--line);border-radius:var(--r4);background:var(--panel);scroll-margin-top:88px}
.names dt{font-weight:650;color:var(--figure)}
.names dd{margin:4px 0 0;color:var(--label);font-size:15px}

@media (max-width:960px){
  .hiw{grid-template-columns:minmax(0,1fr);gap:32px}
  .toc{position:static}
  .toc ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 12px}
}
@media (max-width:760px){
  .vs,.obs-split,.rtypes,.floors,.groups,.names{grid-template-columns:minmax(0,1fr)}
  .vs .them{border-right:0;border-bottom:1px solid var(--line)}
}
/* The sample path (journey.css) zig-zags its steps; on a phone they line up straight, so nothing runs off the screen. */
#demoPath{overflow-x:clip}
@media (max-width:640px){
  #demoPath .jstep{transform:none}
  .hiw{padding:var(--sp6) 16px 0}
  .toc ol{grid-template-columns:minmax(0,1fr)}
  .vs > div,.obs-role,.more-floors,.step{padding:16px}
}
