/* The website's styles (the public pages; loaded by layouts/site.html). Plain
   HTML is styled by the framework (base.css) with the tokens in theme.css: use
   the --app-* tokens, so light and dark both work. The brand colour is set in
   css/app.css, for the website and the signed-in part alike. */
:root {
  --site-width: 68rem;
}

body.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

/* Signed in: the way to the pages behind the sign-in, above the site. */
.owner-strip {
  display: block;
  border-bottom: 1px solid var(--app-border);
  background: var(--app-surface);
  font-size: 0.9rem;
}

.owner-strip .site-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 0.4rem 1.25rem;
}

.owner-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.owner-strip li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The button that opens a menu: on a phone only (below). */
.site-menu-button {
  display: none;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.35rem 0.6rem;
  color: var(--app-text);
  background: none;
  border: none;
  box-shadow: none;
  font-size: inherit;
  line-height: 1;
}

.site-menu-button:hover,
.site-menu-button[aria-expanded="true"] {
  background: var(--app-subtle);
}

.site-head,
.site-main,
.site-foot {
  width: 100%;
  max-width: var(--site-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--app-text);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem 1.25rem;
}

.site-nav > a {
  padding: 0.35rem 0;
  color: var(--app-text);
  text-decoration: none;
}

.site-nav > a:is(:hover, [aria-current="page"]) {
  color: var(--app-accent-tone);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.site-main {
  flex: 1;
  padding-block: 1.5rem 3rem;
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--app-border);
  color: var(--app-muted);
  font-size: 0.9rem;
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

/* Home. Two warm colours, each for one thing:
   --cta  the way to early access, and nothing else (the one hot thing on each
          screen, so the eye goes there; white on it reads at 5.3:1);
   --hot  the provocation: the headline's second half and the punch lines
          (large text only: about 4:1 on the page).
   Everything else stays in the brand's indigo and neutrals. */
:root {
  --cta: #c93413;
  --cta-hover: #a52a0f;
  --hot: #e2401c;
  --scene-bg: #14162b;
  --scene-text: #e6e8f6;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --hot: #ff6a47; }
}

:root[data-theme="dark"] { --hot: #ff6a47; }

.hot {
  color: var(--hot);
}

.kicker {
  margin: 0 0 0.5rem;
  color: var(--app-accent-tone);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  padding-block: clamp(1.5rem, 7vw, 4.5rem);
}

.hero h1 {
  margin-top: 0;
  font-size: clamp(2.25rem, 6.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero .hot {
  display: block;
}

.lead {
  color: var(--app-muted);
  font-size: 1.2rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.75rem;
}

.actions [role="button"] {
  padding: 0.8rem 1.4rem;
  font-size: 1.05rem;
}

.quiet {
  color: var(--app-text);
  font-weight: 600;
  text-underline-offset: 0.3em;
}

/* A video still to be shot: a dark frame holding its script. */
.scene {
  margin: 0;
}

.scene-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 16 / 10;
  padding: clamp(1rem, 3vw, 1.75rem);
  overflow: hidden;
  border-radius: calc(var(--app-radius) * 2);
  border-top: 6px solid var(--app-accent);
  background:
    radial-gradient(circle at 80% 15%, rgb(142 155 240 / 0.28), transparent 55%),
    var(--scene-bg);
  color: var(--scene-text);
  box-shadow: 0 1.5rem 3rem -1.5rem rgb(20 22 43 / 0.55);
}

.scene-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.14);
  border: 2px solid rgb(255 255 255 / 0.5);
  color: #fff;
  font-size: 1.4rem;
  transform: translate(-50%, -75%);
}

.scene-script {
  margin: 0;
  font-family: var(--app-font-mono, ui-monospace, monospace);
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  line-height: 1.5;
}

.scene figcaption {
  margin-top: 0.5rem;
  color: var(--app-muted);
  font-size: 0.85rem;
}

/* Pick your pain: the way to each role's section. */
.pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding-block: 1.25rem;
  border-block: 1px solid var(--app-border);
}

.pick span {
  margin-right: 0.5rem;
  font-weight: 700;
}

.pick a {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  color: var(--app-text);
  text-decoration: none;
}

.pick a:hover {
  border-color: var(--app-accent-tone);
  color: var(--app-accent-tone);
}

/* A role: what they put up with, the turn, the punch line, its scene. Every
   other one has the scene on the left. */
.role {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
  scroll-margin-top: 1rem;
}

.role:nth-of-type(even) .scene {
  order: -1;
}

.role h2 {
  margin-top: 0;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.pain-list {
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.pain-list li {
  position: relative;
  margin: 0.4rem 0;
  padding-left: 1.6rem;
  color: var(--app-muted);
}

.pain-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--app-muted);
  font-weight: 700;
}

.punch {
  margin-top: 1.25rem;
  color: var(--hot);
  font-size: 1.25rem;
  font-weight: 700;
}

/* How it works: four numbered steps. */
.steps,
.proof,
.faq {
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
  scroll-margin-top: 1rem;
}

.steps h2,
.proof h2,
.faq h2 {
  margin-top: 0;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
}

.steps ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  margin: 0;
  padding: 1.25rem;
  border-radius: var(--app-radius);
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.5rem;
  color: var(--app-accent-tone);
  font-family: var(--app-font-mono, ui-monospace, monospace);
  font-size: 1.5rem;
  font-weight: 700;
}

.steps h3,
.proof h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.steps p,
.proof p {
  margin: 0;
  color: var(--app-muted);
}

/* Why it is real: on the scenes' dark ground. */
.proof {
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  border-radius: calc(var(--app-radius) * 2);
  background: var(--scene-bg);
  color: var(--scene-text);
}

.proof h2 {
  color: #fff;
}

.proof h3 {
  color: #fff;
}

.proof p {
  color: #c3c8e8;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 1.5rem;
}

.proof-grid article {
  margin: 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid #8e9bf0;
  background: none;
  box-shadow: none;
}

.faq {
  max-width: 48rem;
}

.faq details {
  border-bottom: 1px solid var(--app-border);
}

.faq summary {
  padding-block: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

.faq details p {
  margin-top: 0;
  color: var(--app-muted);
}

.closing {
  margin-top: 1rem;
  padding: clamp(2rem, 6vw, 3.5rem);
  border-radius: calc(var(--app-radius) * 2);
  background: var(--app-accent-soft);
  text-align: center;
}

.closing h2 {
  margin-top: 0;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
}

.closing p {
  font-size: 1.15rem;
}

/* The way to early access: the menu's link and every button on the site's
   pages (the contact form's too), in --cta. */
.site-nav > a.nav-cta {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.site-nav > a.nav-cta:is(:hover, [aria-current="page"]) {
  background: var(--cta-hover);
  color: #fff;
  text-decoration: none;
}

.site-main :is([role="button"], button[type="submit"]) {
  border-color: var(--cta);
  background: var(--cta);
  color: #fff;
}

.site-main :is([role="button"], button[type="submit"]):hover {
  border-color: var(--cta-hover);
  background: var(--cta-hover);
  color: #fff;
}

.site-brand svg {
  width: 2.6rem;
  height: auto;
}

@media (max-width: 760px) {
  .hero,
  .role {
    grid-template-columns: minmax(0, 1fr);
  }

  .role:nth-of-type(even) .scene {
    order: 0;
  }
}

/* Pages of text; the contact form */
.prose {
  max-width: 44rem;
  box-shadow: none;
  background: none;
  padding: 0;
}

.thanks {
  padding: 1.25rem;
  border-left: 4px solid var(--app-success);
  border-radius: var(--app-radius);
  background: var(--app-success-soft);
}

.thanks h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.message-body {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* A phone: each menu folds behind its button and opens as a list of large rows. */
@media (max-width: 640px) {
  .site-menu-button {
    display: inline-flex;
  }

  .site-head .site-menu-button {
    margin-right: -0.6rem;
  }

  .owner-strip .site-menu-button {
    display: flex;
    width: 100%;
    padding-inline: 1.25rem;
    border-radius: 0;
  }

  .site-menu,
  .owner-strip .site-menu {
    display: none;
  }

  .site-menu.is-open,
  .owner-strip .site-menu.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .site-menu.is-open select {
    width: auto;
    margin: 0.5rem 0;
  }

  .owner-strip .site-menu.is-open {
    padding-block: 0 0.5rem;
  }

  .owner-strip ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }

  .owner-strip ul + ul {
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--app-border);
  }

  .site-menu.is-open a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .owner-strip .site-menu.is-open li a {
    margin: 0;
    padding: 0.6rem 0;
  }
}
