/* The front page (index.html) in the look of the marketing films, on top of styles.css and draft.css.
   Plain white boxes on a pale page with no food drawings, centred headings, and the engines as pills
   (pale until picked, in the logo's colour when picked). */

/* A very pale page, so each section shows as its own white box */
body { background: #f7f4f6; }

/* Each section in a plain white box with a fine outline: no shadow, no food drawings */
.hero, .section, .demo { border: 1px solid var(--line); box-shadow: none; background: #fff; color: var(--body); }
/* The space is set in settings.css */
.section { padding-top: calc(var(--space) * 2 / 3); padding-bottom: calc(var(--space) * 2 / 3); }
@media (min-width: 960px) { .section { padding-top: var(--space); padding-bottom: var(--space); } }
.story::after, .next::after { display: none; }
/* Headings and the line under them centred, as the films' title cards */
.section > h2, .section > .section-lede { text-align: center; }
.section > .section-lede { margin-left: auto; margin-right: auto; }
.demo h2 { color: var(--ink); }
/* The founder's story: its opening a little larger than the rest, not the 22px of the old design */
.story-copy p:first-child { font-size: 18px; }
.close h2 { margin: 0 auto; }
.close .actions { justify-content: center; }

/* The hero: the films' opening frame */
.hero { padding-top: 56px; padding-bottom: 64px; text-align: center; }
@media (min-width: 960px) { .hero { padding-top: 88px; padding-bottom: 96px; } }
.hero-logo { display: block; width: 96px; height: 96px; margin: 0 auto 24px; color: var(--ink); }
.hero h1 { max-width: 14em; margin: 0 auto; color: var(--ink); }
.lede, .lede-small { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.lede-small { color: var(--muted); }
.hero .actions { justify-content: center; }
.hero .btn { background: var(--crimson); color: #fff; }
.hero .btn:hover { background: var(--crimson-hover); }
.hero .actions a:not(.btn) { color: var(--crimson-hover); }
.hero a:focus-visible { outline-color: var(--ink); }

/* The engines as pills: pale until picked, the logo's colour when picked or pointed at */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.hero .pills { margin-bottom: 4px; }
.pills .pill { flex: none; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 18px; border: 0; border-radius: 999px; background: var(--tint); color: var(--ink); font: 600 15px/1 var(--font-heading); text-decoration: none; cursor: pointer; }
/* (styles.css makes every other hero link white) */
.hero .pills a { color: var(--ink); }
.pills .pill:hover, .pills .pill[aria-selected="true"] { background: var(--c); color: var(--t, #fff); }
/* The logo's own teal, with ink, as white is too faint on it */
.pills .c-kitchen { --c: var(--teal); --t: var(--ink); }

/* In the engines section the pills stay under the header while a panel is read, and scroll sideways on phones */
.engine-pills { position: sticky; top: 77px; z-index: 5; flex-wrap: nowrap; justify-content: flex-start; margin-top: 12px; padding: 8px 0; overflow-x: auto; background: #fff; scrollbar-width: none; }
/* Centred when they fit, and still reachable at both ends when they don't */
.engine-pills > :first-child { margin-left: auto; }
.engine-pills > :last-child { margin-right: auto; }
.engine-prompt { margin-top: 32px; }

/* The open engine sits on the page, not in a box; its tiles carry its colour */
.engine-panel { margin-top: 32px; padding: 0; border-top: 0; background: none; }
/* The three main features three across again, pictures above their words (undoing the hive's side-by-side layout) */
.engine-panel .top-three .shot { float: none; width: auto; margin: 0 0 12px; }
@media (min-width: 768px) { .engine-panel .top-three { grid-template-columns: repeat(3, 1fr); } }
.pain-line, .promise { margin-left: auto; margin-right: auto; text-align: center; }
.chips li { background: var(--tint); }
.engine-foot { justify-content: center; }

/* What were the dark panels, now on white */
.imagine { margin-left: auto; margin-right: auto; }
.cost { margin-left: auto; margin-right: auto; text-align: center; color: var(--ink); }
.cost strong { color: var(--crimson); }

/* The Friday night photo, faded, with the quote over the top */
.photo-quote { display: grid; margin-top: 28px; border-radius: 14px; overflow: hidden; }
.photo-quote > * { grid-area: 1 / 1; }
.photo-quote .shot { max-width: none; margin: 0; aspect-ratio: auto; }
.photo-quote .shot img { opacity: 0.3; object-position: center; }
.photo-quote .cost { align-self: center; max-width: 26em; margin: 0 auto; padding: 48px 24px; font-size: clamp(20px, 2.6vw, 30px); }
@media (min-width: 768px) { .photo-quote { aspect-ratio: 21 / 9; } }

/* The demo, on white with the form in a pale box */
.demo .form { background: var(--crimson-50); }
