/* landing.css: how the two front pages (index.html, and files.html, which
   borrows its parts) are laid out: the hero, and every section after it.

   THE HERO is three blocks on one grid: the words (eyebrow, headline,
   lede), the example of the page a client opens, and the ask (where the
   files live, then the form). On a wide screen the example stands beside
   the other two, and the ask sits at the foot of its column, so both
   columns end on one line. Up to 1024 px the three stack in that order,
   so a phone shows the product before it asks for an email:

     wider than 1024 px                        up to 1024 px
     +----------------------+---------------+  +-----------------+
     | EYEBROW              | AN EXAMPLE    |  | headline, lede  |
     | headline             | +-----------+ |  | AN EXAMPLE      |
     | lede                 | | the page  | |  | +-------------+ |
     |                      | | a client  | |  | | the page    | |
     | where the files live | | opens     | |  | +-------------+ |
     | [email     ][ Join ] | +-----------+ |  | where, [form]   |
     +----------------------+---------------+  +-----------------+

   A SECTION is two columns: the heading on the left (it stays in view
   while you read the right), the content on the right.

     +- wrap, up to 1180 ------------------------------------------+
     | ROADMAP             | [Being built]       [Planned]         |
     | What is not here    |  ...                 ...              |
     | yet.                |                                       |
     +---------------------+---------------------------------------+

   A STACKED section (.stacked) puts its heading above, for content that
   wants the full width in three columns: the examples, the steps, the
   things beyond a download, and the invitation.

     +- wrap ------------------------------------------------------+
     | How it works                                                |
     | Three steps, and the last one is your client's.             |
     | 1                   | 2                   | 3               |
     | Upload the folder   | Send one link       | They take what  |
     | words               | words               | words           |
     | [folder tree]       | [activity]          | [parts]         |
     +-------------------------------------------------------------+

   The front page, top to bottom: the hero, #kinds, #how, #more,
   #roadmap, #film and #join (index.html's header says what each holds).
   The Files page: the hero, #freeze, #retract, #checksums, #video and
   #join.

   From 1024 px down the three columns stack, and under 820 px every
   section is one column. The drawing of the client's
   page is in product.css, the button in button.css (shared with the
   app), the text actions and the waiting-list form in controls.css.
   Colour, type and spacing are the tokens in style.css. */

.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-l);padding:var(--space-5);min-width:0}

/* --- the hero ----------------------------------------------------- */

/* The two eyebrows share a line, so the headline starts level with the
   top of the client's page beside it. The second row takes what height
   is left, and the ask sits at its foot, level with the card's. */
.hero{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);grid-template-rows:auto 1fr;grid-template-areas:"words example" "ask example";column-gap:var(--space-8);padding-block:var(--space-7) var(--space-4)}
.hero-words{grid-area:words}
.hero .product{grid-area:example}
.hero-ask{grid-area:ask;align-self:end;padding-top:var(--space-6)}
.hero h1{margin-bottom:var(--space-5);font-size:calc(var(--text-display) * 1.25)}
/* Where the files live, over the form: a rule, then two lines. */
.hero .where{display:grid;gap:var(--space-1);max-width:520px;margin:0 0 var(--space-6);padding-top:var(--space-4);border-top:1px solid var(--line-strong)}
.hero .where b{font:500 var(--text-l)/24px var(--font-sans);color:var(--ink)}
.hero .where span{font:400 var(--text-ui)/20px var(--font-sans);color:var(--ink2)}

/* --- sections: heading left, content right ------------------------ */

.section{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:var(--space-7);align-items:start;padding-top:var(--space-9)}
.section-head{grid-column:1;position:sticky;top:var(--space-5)}
.section > :not(.section-head){grid-column:2}
.section-head h2{max-width:14em}
.section-head .lede{margin-top:var(--space-4);font-size:var(--text-l);line-height:24px}
.section.stacked{display:block}
.section.stacked .section-head{position:static;margin-bottom:var(--space-6)}
.section.stacked .section-head h2{max-width:22em}
.section.stacked .section-head .lede{max-width:60ch}

/* A line after a drawing or a card: the way on, set as a text action. */
.after{margin-top:var(--space-3)}

/* --- the three examples (#kinds) ---------------------------------- */

/* Each example is three rows of one shared grid: its label, its card and
   what comes after it (only the builds have a link there). Shared rows
   keep the three labels on one line and the three cards ending on one
   line, whatever each one holds. */
.kinds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto 1fr auto;column-gap:var(--space-5)}
.kinds > .example{grid-row:span 3;display:grid;grid-template-rows:subgrid;row-gap:0}
/* A third of the page is a phone's width, so a row is drawn as the app
   draws it on a phone: its Download under its words, and the name keeps
   the width it needs. */
.kinds .file-row{grid-template-columns:24px minmax(0,1fr)}
.kinds .file-row .btn{grid-column:2;justify-self:start;margin-top:var(--space-2)}

/* --- the three steps (#how) --------------------------------------- */

/* A serif numeral, the title, the words and a piece of the product, each
   on a row shared by the three steps, so the three plates start on one
   line. */
.steps{list-style:none;margin:0;padding:0;counter-reset:step;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,auto);column-gap:var(--space-6)}
.steps > li{grid-row:span 4;display:grid;grid-template-rows:subgrid;row-gap:var(--space-2);align-content:start;padding-top:var(--space-4);border-top:1px solid var(--line-strong);counter-increment:step}
.steps > li::before{content:counter(step);font:400 var(--text-4xl)/1 var(--font-display);color:var(--accent-ink)}
.steps p{color:var(--ink2);max-width:52ch}
.steps .plate{align-self:start;margin-top:var(--space-3);color:var(--ink)}
.plate{background:var(--sunken);border-radius:var(--radius-control);padding:var(--space-2) var(--space-4);list-style:none;margin:0;font-size:var(--text-m);line-height:18px}
.tree li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;column-gap:var(--space-4);padding-block:var(--space-2)}
.tree li + li{border-top:1px solid var(--line)}
.tree b{font:400 var(--text-m)/18px var(--font-mono)}
.tree span{color:var(--ink2);text-align:right}
.tree span:last-child{min-width:5ch}
.activity li{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-3);padding-block:var(--space-2)}
.activity li + li{border-top:1px solid var(--line)}
.activity .s{white-space:nowrap}

/* A download in parts: the app's own list, in miniature. A part's name
   is the delivery's title, so it wraps rather than clips, and its tag
   stands beside the name and its size. */
.parts li{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:var(--space-3);row-gap:var(--space-1);align-items:center;padding-block:var(--space-2)}
.parts li + li{border-top:1px solid var(--line)}
.parts .name{grid-column:1;font:400 var(--text-m)/18px var(--font-mono);overflow-wrap:anywhere}
.parts .size{grid-column:1;color:var(--ink2)}
.parts .tag{grid-column:2;grid-row:1 / span 2}

/* --- beyond a download (#more) ------------------------------------ */

/* Three cards on the paper's own white, and one quiet line under them. */
.more{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-5)}
.more > li{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-l);padding:var(--space-5)}
.more h3{margin-bottom:var(--space-2)}
.more p{color:var(--ink2)}
.more .after{margin-top:auto;padding-top:var(--space-3)}
.more-line{margin-top:var(--space-5);color:var(--ink2);max-width:72ch}

/* --- the roadmap -------------------------------------------------- */

.roadmap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-6)}
.roadmap ul{list-style:none;margin:var(--space-4) 0 0;padding:0}
.roadmap li{padding-block:var(--space-3);border-top:1px solid var(--line);font-size:var(--text-ui);line-height:20px;color:var(--ink2)}

/* --- a video ------------------------------------------------------ */

/* A 16:9 frame on ink, whatever the poster's size. The landing page's
   film is a <figure> with its line as a <figcaption>; the Files page's
   video is a <div> with its words in a <details> under it, the same words
   as its transcript (/media/theirway-film-files-transcript.txt). */
.clip{margin:0}
.clip video{display:block;width:100%;aspect-ratio:16 / 9;background:var(--ink)}
.clip figcaption{margin-top:var(--space-3)}

/* --- early access: the offer, and the form on its own panel -------- */

.join-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:var(--space-8);align-items:start}
.join-split .lede{margin-top:var(--space-4)}
.offer{list-style:none;margin:var(--space-5) 0 0;padding:0}
.offer li{padding-block:var(--space-3);border-top:1px solid var(--line);color:var(--ink2);max-width:52ch}
.join-split .join{max-width:none;padding:var(--space-6) var(--space-5) var(--space-5)}

/* --- narrower screens --------------------------------------------- */

/* From 1024 px down the hero is one column, in reading order; the
   examples, the steps and the cards stack, no wider than a page you read
   (three columns there would wrap a part's name onto four lines). A step
   keeps its numeral beside its title. */
@media (max-width:1024px){
  .hero{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:"words" "example" "ask";row-gap:var(--space-6)}
  .hero-ask{padding-top:0}
  .kinds,.more,.steps{grid-template-columns:minmax(0,1fr);grid-template-rows:none;row-gap:var(--space-6);max-width:640px}
  .kinds > .example{grid-row:auto;display:flex;flex-direction:column}
  .steps > li{grid-row:auto;grid-template-rows:none;grid-template-columns:40px minmax(0,1fr);column-gap:var(--space-2)}
  .steps > li::before{grid-row:1 / span 3;font-size:var(--text-3xl)}
  .steps > li > *{grid-column:2}
  .join-split{column-gap:var(--space-6)}
}

@media (max-width:820px){
  .hero{padding-top:var(--space-5);row-gap:var(--space-5)}
  .hero h1{font-size:var(--text-display);margin-bottom:var(--space-4)}
  .section{display:block;padding-top:var(--space-8)}
  .section-head,.section.stacked .section-head{position:static;margin-bottom:var(--space-5)}
  .roadmap,.join-split{grid-template-columns:minmax(0,1fr)}
  .join-split{row-gap:var(--space-6)}
  .join-split .join{padding:var(--space-4)}
  .foot{margin-top:var(--space-8)}
}
