/* The home page. The first screen: the headline, one phrase and the button on
   the left, the diagram on the right. On a phone the diagram goes below the
   button, so the button stays in the first screen. */

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(1rem, 5vw, 4rem);
}

.lead {
  margin: 0 0 2rem;
  font-size: 1.25rem;
}

/* The one stroke the brief allows on a screen, by the headline's plaque. */
.hero .plaque {
  position: relative;
}

.hero .plaque::after {
  content: "";
  position: absolute;
  top: -0.55em;
  right: -0.5em;
  width: 0.6em;
  height: 0.6em;
  background: url("/burst.svg") center / contain no-repeat;
}

.hero-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 0;
}

.summary {
  font-size: 1rem;
  color: var(--muted);
}

.hero-diagram {
  width: 100%;
  max-width: 22rem;
  height: auto;
  justify-self: center;
}

@media (min-width: 48rem) {
  .hero {
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
  }

  .hero-diagram {
    max-width: 26rem;
  }
}

/* The sections below the first screen. A section's own class may change
   this spacing. A band's grey reaches the screen's edges without making the
   page wider. */
:where(.hero ~ section) {
  padding-block: clamp(2rem, 6vw, 4rem);
}

.band {
  background: var(--surface);
  box-shadow: 0 0 0 100vmax var(--surface);
  clip-path: inset(0 -100vmax);
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
}

.topics h2,
.how h2,
.fit h2 {
  margin-bottom: 2rem;
}

main ul {
  margin: 0;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.75rem;
}

.note {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

/* Two blocks side by side that wrap below each other on a narrow screen. */
.signs,
.voices,
.fit-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.25rem;
  align-items: start;
}

.signs {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: 2rem 3rem;
}

.card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--surface);
}

.cause h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2rem);
}

.cause p {
  margin: 0;
}

/* The topic cards: number, a small diagram, the name and one phrase. */
.topic-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
}

.topic {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 2px solid var(--text);
  border-radius: var(--radius);
}

.topic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topic-number {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
}

.topic-diagram {
  width: 120px;
  height: 56px;
}

.topic p {
  margin: 0;
  color: var(--muted);
}

/* What an AI says beside what a marketer says. */
.human {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.human h2 {
  max-width: 44rem;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
}

.human .lead {
  margin-bottom: 2.5rem;
}

.voice {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius);
}

.voice.ai {
  color: var(--muted);
  background: var(--surface);
}

.voice.marketer {
  border: 2px solid var(--text);
}

.voice-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
}

.voice-mark {
  width: 22px;
  height: 22px;
}

.voice ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.voice li {
  margin: 0;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius);
}

.ai li {
  background: var(--background);
}

.marketer li {
  font-weight: 700;
  background: var(--surface);
}

/* The page a session ends with, shown as its structure. */
.example,
.faq {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem 3rem;
}

.example > :first-child,
.faq > :first-child {
  flex: 1 1 18rem;
  min-width: 0;
}

.example h2,
.faq h2 {
  margin-bottom: 1rem;
}

.example p {
  margin: 0 0 1rem;
}

.example p.note {
  margin: 0;
}

.example-card {
  flex: 2 1 30rem;
  min-width: 0;
  border: 2px solid var(--text);
  border-radius: var(--radius);
  overflow: hidden;
}

.example-card .example-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  max-width: none;
  margin: 0;
  padding: 1rem 1.5rem;
  border-bottom: 2px solid var(--text);
  font-size: 1.125rem;
}

.example-head strong {
  font-weight: 800;
}

.tag {
  padding: 2px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--background);
  background: var(--text);
}

.example dl {
  margin: 0;
  padding: 0.5rem 1.5rem 1rem;
}

.example-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--line);
}

.example-row:last-child {
  border-bottom: 0;
}

.example dt {
  flex: 0 0 11rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--muted);
}

.example dd {
  flex: 1 1 18rem;
  margin: 0;
}

/* Who it is for and who it is not for, side by side and as plain to see. */
.card-outline {
  padding: 1.75rem;
  border: 2px solid var(--text);
  border-radius: var(--radius);
}

.card-outline h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.375rem;
}

.fit-mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

/* The price on its own grey block, the amount set large, and what it buys. */
.price {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  margin-block: 0 clamp(2rem, 6vw, 4rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--surface);
}

.price > div {
  flex: 1 1 16rem;
  min-width: 0;
}

.price .included {
  flex-basis: 20rem;
}

.price p {
  margin: 0 0 1.5rem;
}

.price p:last-child {
  margin: 0;
}

.price .price-amount {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  font-weight: 800;
  line-height: 1;
}

.price h3 {
  margin-bottom: 0.75rem;
}

/* The questions open without a script. */
.faq > :last-child {
  flex: 2 1 30rem;
  min-width: 0;
}

details {
  max-width: 44rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  font-weight: 700;
  cursor: pointer;
}

.answer {
  margin: 0.75rem 0 0;
}

/* The lime block that closes the page, with the second style of button: dark
   on lime. */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-block: clamp(1rem, 4vw, 3rem) clamp(2rem, 6vw, 4rem);
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  background: var(--lime);
}

.cta > div {
  flex: 1 1 22rem;
  min-width: 0;
}

.cta h2 {
  margin-bottom: 0.75rem;
}

.cta p {
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.cta p:last-child {
  margin: 0;
}

.cta-diagram {
  flex: 0 1 20rem;
  width: 100%;
  max-width: 20rem;
  height: auto;
}

.button.dark {
  color: var(--background);
  background: var(--text);
}
