/*
 * Public landing page.
 *
 * Cards here are borderless: structure is carried by spacing and by fill,
 * never by an outline. A card is paper on the neutral canvas, the space
 * between cards is what separates them, and rows inside a card are told
 * apart by the gap between them rather than a rule. Colour carries meaning:
 * the ground is neutral, cards are paper, and the brand lime appears only on
 * the call to action, the headline underline, and small markers. Nothing
 * casts a shadow and nothing is boxed in.
 */
:root {
  color-scheme: light;
  --ink: #122f3f;
  --ink-soft: #3d6a55;
  --muted: #456950;
  /* Panel eyebrows ask for this tone; it lived only in app.css, which the
   * landing page does not load, so those labels fell back to full ink. */
  --muted-strong: #2f5442;
  --lime: #aaca52;
  --lime-hover: #94b048;
  --lime-dark: #3b461c;
  --lime-deep: #272f13;
  --lime-soft: #e8f0cf;
  --lime-ink: #5c7a2c;
  --lime-strong: #c3d984;
  --blue: #213955;
  --blue-dark: #18293d;
  --blue-deep: #121f2f;
  --blue-soft: #e7eff7;
  --blue-strong: #bfcade;
  --cream: #fffdf7;
  --paper: #ffffff;
  --canvas: #f7f8f5;
  --soft: #ebeee9;
  --line: #e2e5df;
  --line-hairline: #eceeea;
  --wire: #ccd2c9;
  /* No shadows anywhere: depth comes from surface value, not elevation. */
  --shadow: none;
  --shadow-soft: none;
  --radius-small: 14px;
  --radius-medium: 26px;
  --radius-large: 44px;
  --display: ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', var(--font-sans);
  /* The one lime glyph the page draws: a checkmark, masked from a path so it
   * stays a check at any size instead of a rotated box. */
  --check-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.3 3.3L13 4.9' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --cross-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.4 4.4l7.2 7.2M11.6 4.4l-7.2 7.2' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

.site-header,
.hero,
.value-section,
.plans-section,
.start,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand > img {
  display: block;
  width: 150px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: #48705f;
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms ease;
}

.nav-link:hover {
  color: var(--blue-dark);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--lime);
  color: var(--ink);
}

.button-primary:hover {
  background: var(--lime-hover);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--lime-strong);
  background: #fff;
}

.button-small {
  min-height: 43px;
  padding-inline: 18px;
  font-size: 13px;
}

.button-block {
  width: 100%;
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.button:focus-visible,
.nav-link:focus-visible,
.brand:focus-visible,
.footer-nav a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

input:focus-visible,
textarea:focus-visible {
  outline: none;
}

/* ---------- Eyebrows ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 21px;
  padding: 7px 16px 7px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--lime-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-strong);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 80px 0 120px;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: 0;
  border-radius: 62% 38% 55% 45% / 45% 55% 45% 55%;
  content: '';
}

.hero::before {
  top: 6%;
  left: -12%;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  background: var(--soft);
}

.hero::after {
  right: -14%;
  bottom: 6%;
  width: 30vw;
  height: 30vw;
  max-width: 380px;
  max-height: 380px;
  border-radius: 42% 58% 60% 40% / 55% 45% 55% 45%;
  background: var(--blue-soft);
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  width: 100%;
  max-width: 1080px;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(54px, 7.2vw, 88px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.hero h1 em {
  position: relative;
  color: var(--blue);
  font-style: normal;
  white-space: nowrap;
}

/* Above the phone breakpoint the phrase is always one line, so the bar is a
 * single rounded rule under it. */
.hero h1 em::after {
  position: absolute;
  right: 1%;
  bottom: -0.06em;
  left: 1%;
  z-index: -1;
  height: 0.16em;
  border-radius: 999px;
  background: var(--lime-strong);
  content: '';
}

.hero-tagline {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--blue);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.lead {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}

/* The whole proposition drawn as a distance: three beats strung along one
 * wire, the last of them in brand green. The wire is a single rule behind the
 * marks, and each mark punches a hole in it with a ring of the ground. */
.span {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 860px;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.span::before {
  position: absolute;
  top: 23px;
  right: 17%;
  left: 17%;
  height: 2px;
  border-radius: 2px;
  background: var(--wire);
  content: '';
}

.span li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0;
}

.span-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 0 0 7px var(--canvas);
  color: var(--blue);
}

.span li.is-us .span-mark {
  background: var(--soft);
}

.span li.is-end .span-mark {
  background: var(--lime);
  color: var(--ink);
}

.span-mark img {
  display: block;
  width: 23px;
  height: 23px;
}

.span-mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.span strong {
  margin-top: 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.span li > span:last-child {
  max-width: 230px;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.hero-label {
  margin: 46px 0 0;
  color: var(--muted-strong);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* The three problems, each read as a before and an after. The pain is stated
 * in the muted tone and Iterada's answer under it in ink with the lime tick,
 * so a glance down one card is the whole argument. */
.hero-problems {
  display: grid;
  width: 100%;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.hero-problems li {
  display: grid;
  gap: 18px;
  padding: 24px 26px 26px;
  border-radius: var(--radius-medium);
  background: var(--paper);
}

.hero-problems .tag {
  grid-column: 2;
  margin-bottom: 7px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Mark, label, sentence: the mark sits beside the label and the sentence runs
 * under both, so the two halves of the card line up down one edge. */
.hero-problems .was,
.hero-problems .now {
  display: grid;
  align-items: start;
  gap: 0 10px;
  grid-template-columns: 15px minmax(0, 1fr);
}

.hero-problems .was .tag {
  color: var(--muted);
}

/* One mark each: a cross for the way it goes without Iterada, the same lime
 * tick as everywhere else for the way it goes with it. */
.hero-problems .was::before {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  background: var(--muted);
  content: '';
  -webkit-mask: var(--cross-mark) center / contain no-repeat;
  mask: var(--cross-mark) center / contain no-repeat;
}

.hero-problems .now .tag {
  color: var(--lime-ink);
}

.hero-problems p {
  grid-column: 2;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
}

.hero-problems .was p {
  color: var(--muted);
}

.hero-problems .now::before {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  background: var(--lime-ink);
  content: '';
  -webkit-mask: var(--check-mark) center / contain no-repeat;
  mask: var(--check-mark) center / contain no-repeat;
}

.hero-problems .now p {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Product showcase ---------- */

.product-showcase {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: clamp(26px, 3.2vw, 44px);
  padding: clamp(16px, 2.2vw, 24px);
  border-radius: var(--radius-large);
  background: transparent;
}

.product-window {
  position: relative;
  width: min(1100px, 100%);
  overflow: hidden;
  margin-inline: auto;
  border-radius: var(--radius-medium);
  background: var(--paper);
}

.window-mark {
  position: relative;
  width: 28px;
  height: 8px;
  overflow: hidden;
  border-radius: 3px 3px 3px 1px;
  background: var(--blue);
}

.window-mark::after {
  position: absolute;
  inset: 0 0 0 58%;
  background: var(--lime);
  content: "";
}

.demo-walkthrough {
  padding: clamp(28px, 4vw, 52px);
  background: var(--paper);
}

.demo-intro {
  max-width: 700px;
  margin: 0 auto 34px;
  text-align: center;
}

.demo-intro h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

/* The same headline underline the hero carries, drawn as a thick decoration
 * rather than a z-index:-1 pseudo-element: .product-showcase opens a stacking
 * context, so a negative layer here would fall behind the paper window. */
.demo-intro h3 em,
.section-heading h2 em {
  color: var(--blue);
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--lime-strong);
  text-decoration-skip-ink: none;
  text-decoration-thickness: 0.13em;
  text-underline-offset: 0.11em;
}

.demo-intro p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

/* What the two-minute tour teaches: neutral pills, lime-ink checks. The
 * checks are one of the small marks the brand lime is reserved for, so more
 * green here means more checkmarks — never a tinted background. */
.demo-outcomes {
  display: grid;
  gap: 8px;
  margin: 20px auto 0;
  max-width: 560px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.demo-outcomes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px 10px 14px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.demo-outcomes li::before {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  background: var(--lime-ink);
  content: '';
  -webkit-mask: var(--check-mark) center / contain no-repeat;
  mask: var(--check-mark) center / contain no-repeat;
}

/* Three stops side by side, each showing the console view it opens. Point at
 * one and it takes the room from the other two: the snippet grows into
 * something you can read, and the other two step back. The card is the
 * surface; the button inside it stretches over the whole card, because an
 * iframe may not live inside a button. */
.demo-steps {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-step {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 1 1 0;
  flex-direction: column;
  gap: 16px;
  padding: 16px 16px 20px;
  border-radius: var(--radius-medium);
  background: var(--canvas);
  transition: flex-grow 480ms cubic-bezier(0.22, 0.61, 0.36, 1), background-color 300ms ease;
}

.demo-step:hover,
.demo-step:focus-within {
  flex-grow: 2.1;
  background: var(--soft);
}

.demo-steps:hover > .demo-step:not(:hover),
.demo-steps:focus-within > .demo-step:not(:focus-within):not(:hover) {
  flex-grow: 0.72;
}

/* The console itself, shown at desktop width and scaled to whatever room the
 * card currently has. It is scenery: pointer events never reach it. */
.demo-shot {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  contain: layout paint;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: var(--paper);
  opacity: 0.6;
  transition: opacity 400ms ease;
}

.demo-step:hover .demo-shot,
.demo-step:focus-within .demo-shot {
  opacity: 1;
}

.demo-shot iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1180px;
  height: 738px;
  border: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(var(--shot-scale, 0.3));
  transform-origin: top left;
  transition: opacity 500ms ease;
  will-change: transform;
}

.demo-shot.is-loaded iframe {
  opacity: 1;
}

/* Until the console inside has painted, the frame is a quiet placeholder
 * rather than a white hole. */
.demo-shot::after {
  position: absolute;
  inset: 0;
  background: var(--canvas);
  content: '';
  opacity: 1;
  transition: opacity 500ms ease;
}

.demo-shot.is-loaded::after {
  opacity: 0;
}

.demo-say {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

/* The hit area is the whole card, not just the words. */
.demo-say::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: '';
}

.demo-say:focus-visible {
  outline: none;
}

.demo-step:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.demo-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--lime-soft);
  color: var(--lime-dark);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  transition: background-color 160ms ease, color 160ms ease;
}

.demo-step:hover .demo-number,
.demo-step:focus-within .demo-number {
  background: var(--lime);
  color: var(--ink);
}

.demo-steps strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.demo-say > span:not(.demo-number) {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.demo-steps em {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--lime-dark);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  transition: background-color 160ms ease;
}

.demo-step:hover em {
  background: var(--lime-soft);
}

.demo-step:hover em > span {
  display: inline-block;
  transform: translateX(3px);
  transition: transform 160ms ease;
}

/* The line that turns a demo into a next step, so it is louder than a note
 * and its action is a link rather than a sentence. */
.demo-footnote {
  margin: 28px auto 0;
  max-width: 640px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

.demo-footnote a {
  color: var(--lime-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--lime-strong);
  text-decoration-skip-ink: none;
  text-decoration-thickness: 0.13em;
  text-underline-offset: 0.16em;
}

.demo-footnote a:hover {
  text-decoration-color: var(--lime);
}

.demo-footnote a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- The middle ----------
 *
 * One pattern, taken from the console: a paper panel with a 1px --line edge
 * holding a head and hairline-separated rows. The landing used to run five
 * different layouts here (wide lead panel, two-column card grid, split act
 * panels, figure blocks) which made the page read as five products. A row is
 * a claim; a panel is a subject; the page is a stack of panels.
 */

.value-section {
  padding: 104px 0 118px;
}

.section-heading {
  display: flex;
  max-width: 760px;
  align-items: center;
  flex-direction: column;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading h2,
.plans-heading h2,
.start-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.section-heading h2 {
  color: var(--ink);
  font-size: clamp(36px, 4.2vw, 52px);
}

.section-heading > p:last-child,
.plans-heading > p {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

/* Panels */

.value-section > .panel {
  margin-bottom: 24px;
  border-radius: var(--radius-medium);
  background: var(--paper);
  overflow: hidden;
}

.value-section > .panel:last-child {
  margin-bottom: 0;
}

.panel-head {
  padding: clamp(24px, 2.6vw, 34px) clamp(24px, 2.6vw, 36px) 22px;
}

/* Inside a panel the eyebrow drops the pill and becomes the console's plain
 * section label, so the page keeps two levels instead of repeating one badge
 * six times down the scroll. */

.panel-head .eyebrow {
  margin: 0 0 12px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--muted-strong);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.panel-head .eyebrow > span {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.panel-head h3 {
  max-width: 640px;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(22px, 2.3vw, 29px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.14;
}


/* ---------- The carousel ----------
 *
 * The whole middle of the page is one turning object: five ideas, one at a
 * time, each a sentence and a drawing. It spins to the right on its own, a
 * click on either half turns it that way, and a finger drags it. There are
 * no arrows and no progress track - it is a loop, not a queue.
 */

.loop {
  position: relative;
  padding: clamp(30px, 3.4vw, 52px) clamp(26px, 3vw, 46px) clamp(24px, 2.8vw, 40px);
  border-radius: var(--radius-large);
  background: var(--paper);
}

.loop:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.loop-viewport {
  overflow: hidden;
  /* Vertical scrolling still belongs to the page; the horizontal axis is the
   * carousel's, so a swipe never fights the scroll. */
  touch-action: pan-y;
}

/* A click anywhere turns it on, so the cursor points one way wherever it is.
 * The cursor is the only affordance: a control would be one more thing on the
 * page. */
.loop-viewport {
  cursor: e-resize;
}

.loop-viewport.is-held {
  cursor: grabbing;
}

.loop-track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* While a finger or the pointer is on it the track follows exactly, with no
 * easing between frames; and when it rejoins the loop nothing eases at all. */
.loop-track.is-dragged,
.loop.is-instant .loop-track,
.loop.is-instant .loop-slide > *,
.loop.is-instant .loop-step {
  transition: none;
}

.loop-slide * {
  user-select: none;
}

.loop-slide {
  display: grid;
  min-width: 0;
  align-items: center;
  flex: 0 0 100%;
  gap: clamp(26px, 4vw, 60px);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

/* The slide's two halves arrive after the track has finished travelling, so
 * the eye lands on the sentence first and the drawing a beat later. Hiding is
 * conditional on the carousel having started, so without its script the first
 * slide still reads as an ordinary block of copy. */
.loop-slide > * {
  transition: opacity 460ms ease, transform 460ms ease;
}

.loop.is-ready .loop-slide > * {
  opacity: 0;
  transform: translateY(16px);
}

.loop.is-ready .loop-slide.is-current > * {
  opacity: 1;
  transform: none;
}

.loop-slide.is-current .loop-copy {
  transition-delay: 140ms;
}

.loop-slide.is-current .loop-figure {
  transition-delay: 250ms;
}

.loop-step {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  background: var(--lime-soft);
  color: var(--lime-dark);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  transition: background-color 420ms ease, color 420ms ease;
}

/* The step the reader is on is the one solid piece of brand in the section. */
.loop-slide.is-current .loop-step {
  background: var(--lime);
  color: var(--ink);
}

.loop-copy h3 {
  max-width: 460px;
  margin: 20px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(27px, 3.3vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.loop-copy p {
  max-width: 440px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.loop-figure {
  min-width: 0;
  margin: 0;
}

.loop-figure svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Drawing vocabulary: a node is the canvas tone on the carousel's paper, a
 * wire is one neutral stroke, and lime marks whatever the reader should end
 * up looking at. */
.loop-figure .node,
.loop-figure .node rect,
.loop-figure .chip rect {
  fill: var(--canvas);
}

.loop-figure .node-lime,
.loop-figure .node-lime rect {
  fill: var(--lime-soft);
}

.loop-figure .wire,
.loop-figure .wire path,
.loop-figure .frame {
  fill: none;
  stroke: var(--wire);
  stroke-width: 2;
  stroke-linecap: round;
}

.loop-figure .frame {
  stroke-dasharray: 3 7;
}

.loop-figure .is-cut,
.loop-figure .is-cut path {
  stroke-dasharray: 2 7;
}

.loop-figure .mark {
  fill: var(--wire);
}

.loop-figure .mark-dot {
  fill: var(--lime);
}

.loop-figure .tick {
  stroke: var(--lime-ink);
}

.loop-figure .dot.is-busy {
  fill: var(--blue);
}

.loop-figure .dot.is-done {
  fill: var(--lime);
}

.loop-figure text {
  fill: var(--ink);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
}

.loop-figure .label {
  fill: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.loop-figure .label.is-good {
  fill: var(--lime-ink);
}

/* ---------- Fullscreen demo overlay ---------- */

.demo-overlay {
  position: fixed;
  z-index: 100;
  display: flex;
  inset: 0;
  flex-direction: column;
  background: var(--paper);
}

.demo-overlay[hidden] {
  display: none;
}

.demo-overlay-bar {
  display: flex;
  min-height: 56px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  background: #f9faf5;
}

.demo-overlay-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.demo-overlay-close {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.demo-overlay-close:hover {
  transform: translateY(-1px);
}

.demo-overlay-close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.demo-overlay iframe {
  width: 100%;
  flex: 1;
  border: 0;
  min-height: 0;
}

body.demo-open {
  overflow: hidden;
}

/* ---------- Plans ---------- */

.plans-section {
  position: relative;
  padding: 94px 0 76px;
}

.plans-heading {
  display: flex;
  max-width: 760px;
  align-items: center;
  flex-direction: column;
  margin: 0 auto 50px;
  text-align: center;
}

.plans-heading > div {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.plans-heading h2 {
  color: var(--ink);
  font-size: clamp(40px, 4.7vw, 60px);
}

.plans-heading > p {
  max-width: 610px;
  margin: 22px 0 0;
  color: #477562;
  font-size: 16px;
  line-height: 1.7;
}

.billing-switch {
  display: grid;
  width: min(350px, 100%);
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: -24px auto 24px;
  padding: 5px;
  border-radius: 999px;
  background: var(--soft);
}

.billing-switch button {
  min-height: 43px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.billing-switch button[aria-pressed="true"] {
  background: var(--lime);
  color: var(--ink);
}

.billing-switch button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.billing-switch span {
  display: inline-block;
  margin-left: 4px;
  color: var(--lime-dark);
  font-size: 9px;
}

.plans-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.plan-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 29px;
  border-radius: var(--radius-medium);
  background: var(--paper);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.plan-card:hover {
  transform: translateY(-4px);
}

.plan-card-featured {
  background: var(--soft);
}

.plan-topline {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-name {
  margin: 0;
  color: var(--ink);
  font-family: ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', var(--font-sans);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.plan-badge {
  position: relative;
  padding: 6px 12px 6px 25px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-badge::before {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--lime);
  content: '';
  transform: translateY(-50%);
}

.plan-price {
  display: flex;
  min-height: 94px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 0 22px;
}

.plan-price strong {
  color: var(--ink);
  font-family: ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', var(--font-sans);
  font-size: clamp(29px, 3vw, 39px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.plan-price span {
  margin-top: 7px;
  color: #67897a;
  font-size: 11px;
}

.plan-summary {
  min-height: 78px;
  margin: 22px 0 19px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.plan-card ul {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 11px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.plan-action {
  margin: 0 0 18px;
}

.plan-card li {
  position: relative;
  padding-left: 24px;
  color: #315d48;
  font-size: 12px;
  line-height: 1.45;
}

.plan-card li::before {
  position: absolute;
  top: -1px;
  left: 0;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  content: '\2713';
  font-size: 9px;
  font-weight: 900;
}

.plan-requirements {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 15px 16px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: #477360;
  font-size: 11px;
  line-height: 1.55;
}

.plan-card-featured .plan-requirements {
  background: rgb(255 255 255 / 68%);
}

.plan-requirements strong {
  color: var(--lime-dark);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.plan-boundary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 17px 0 0;
  color: #6c907f;
  font-size: 9px;
  line-height: 1.55;
}

.plan-boundary strong {
  color: #3f6b56;
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.plans-note {
  max-width: 760px;
  margin: 26px auto 0;
  color: #56806d;
  font-size: 11px;
  text-align: center;
}

/* ---------- Start ---------- */

.start {
  position: relative;
  display: grid;
  overflow: hidden;
  align-items: center;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(50px, 8vw, 98px);
  margin-top: 118px;
  margin-bottom: 100px;
  padding: clamp(54px, 7vw, 82px);
  border-radius: var(--radius-large);
  background: var(--blue);
}

.start::before,
.start::after {
  position: absolute;
  border-radius: 50%;
  content: '';
}

.start::before {
  top: -115px;
  right: 34%;
  width: 250px;
  height: 250px;
  border: 58px solid rgb(243 251 217 / 13%);
}

.start::after {
  top: 0;
  right: 0;
  bottom: 0;
  width: 34%;
  height: auto;
  border-radius: 0;
  background: var(--blue-dark);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
}

.start-copy {
  position: relative;
  z-index: 1;
}

.start-brand {
  display: block;
  width: clamp(170px, 18vw, 210px);
  height: auto;
  margin-bottom: 24px;
}

.start-copy h2 {
  color: #fff;
  font-size: clamp(42px, 4.8vw, 62px);
}

.start-copy > p:last-child {
  max-width: 470px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.72;
}

.signup-card {
  position: relative;
  z-index: 1;
  padding: clamp(27px, 4vw, 39px);
  border-radius: 30px;
  background: var(--paper);
}

.auth-options {
  margin-bottom: 34px;
}

.form-kicker {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.signup-card .plan-list {
  display: grid;
  gap: 12px;
  margin: 0 0 25px;
  padding: 0;
  list-style: none;
}

.signup-card .plan-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.signup-card .plan-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 7px;
  background: var(--lime);
  color: var(--ink);
  content: '\2713';
  font-size: 10px;
  font-weight: 900;
}

.form-help {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.auth-buttons {
  display: grid;
  gap: 9px;
}

.hidden {
  display: none !important;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  min-height: 108px;
  margin-top: 24px;
  padding: 24px 0 36px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav a {
  color: #48705f;
  font-size: 13px;
  font-weight: 700;
  transition: color 160ms ease;
}

.footer-nav a:hover {
  color: var(--blue-dark);
}

footer p {
  margin: 0 0 0 auto;
  color: #68897a;
  font-size: 13px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .plans-section {
    padding-inline: 0;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  /* Stacked, the cards no longer need the reserves that kept the price,
   * summary, and requirement blocks level across two columns. */
  .plan-price,
  .plan-requirements,
  .plan-summary {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .hero-problems {
    grid-template-columns: 1fr;
  }

  /* No pointer to point with, so the three stops stack at full size and the
   * growing-and-shrinking behaviour has nothing to do. */
  .demo-steps {
    flex-direction: column;
  }

  .demo-step,
  .demo-step:hover,
  .demo-step:focus-within,
  .demo-steps:hover > .demo-step:not(:hover),
  .demo-steps:focus-within > .demo-step:not(:focus-within):not(:hover) {
    flex-grow: 1;
  }

  .demo-shot {
    opacity: 1;
  }

  .span {
    gap: 18px;
  }

  .loop-slide {
    align-items: start;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
  }

  .loop-copy h3,
  .loop-copy p {
    max-width: none;
  }

  .hero {
    padding-top: 64px;
  }

  .start {
    grid-template-columns: 1fr;
  }

  .start-copy > p:last-child {
    max-width: 620px;
  }

  /* One column: the diagonal side panel would become a slab down the right
   * edge, and the ring would land on the wordmark. Keep the ring alone, as a
   * corner accent. */
  .start::before {
    top: -132px;
    right: -74px;
  }

  .start::after {
    display: none;
  }
}

@media (max-width: 650px) {
  .site-header,
  .hero,
  .value-section,
  .plans-section,
  .start,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 74px;
  }

  /* The wordmark and the header action have to share one narrow line. */
  .site-header .brand > img {
    width: clamp(118px, 34vw, 150px);
  }

  .site-nav {
    gap: 12px;
  }

  .nav-link {
    display: none;
  }

  .button-small {
    min-height: 40px;
    padding-inline: 15px;
    white-space: nowrap;
  }

  .hero {
    padding: 56px 0 88px;
  }

  /* Keep the second shape inside the viewport; off the edge it is cut into a
   * straight-edged wedge instead of reading as a shape. */
  .hero::after {
    right: 0;
  }

  /* The longest eyebrow is wider than a phone, and it used to set the width
   * of the whole hero column. It wraps instead. */
  .eyebrow {
    max-width: 100%;
    padding: 7px 13px 7px 10px;
    font-size: 10.5px;
    letter-spacing: 0.04em;
  }

  .hero h1 {
    font-size: clamp(40px, 11.5vw, 58px);
    line-height: 1.06;
  }

  /* Here the phrase wraps, so the bar is drawn on the text and follows every
   * line it lands on, rather than sitting under the whole block once. */
  .hero h1 em {
    text-decoration: underline;
    text-decoration-color: var(--lime-strong);
    text-decoration-skip-ink: none;
    text-decoration-thickness: 0.16em;
    text-underline-offset: 0.02em;
    white-space: normal;
  }

  .hero h1 em::after {
    display: none;
  }

  .hero-tagline {
    font-size: 19px;
  }

  .lead {
    font-size: 16.5px;
  }

  .button-row {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .button {
    width: 100%;
  }

  .hero-problems {
    margin-top: 32px;
  }

  /* One column on a phone: the wire between the beats would point across a
   * wrap, so the marks carry the sequence on their own. */
  .span {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .span::before {
    display: none;
  }

  .span-mark {
    box-shadow: none;
  }

  .hero-label {
    margin-top: 36px;
  }

  .hero-problems li {
    padding: 20px 19px 22px;
    border-radius: 20px;
  }

  .product-showcase {
    margin-top: 24px;
    padding: 12px;
    border-radius: 28px;
  }

  .product-window {
    border-radius: 16px;
  }

  .demo-walkthrough {
    padding: 24px 18px;
  }

  .demo-intro {
    margin-bottom: 26px;
  }

  .demo-footnote {
    margin-top: 22px;
  }

  .value-section {
    padding: 92px 0 100px;
  }

  .section-heading {
    margin-bottom: 44px;
  }

  .section-heading h2,
  .plans-heading h2 {
    font-size: clamp(38px, 11vw, 50px);
  }

  .plans-section {
    padding: 70px 0 56px;
  }

  .plans-heading {
    margin-bottom: 38px;
    padding-inline: 8px;
  }

  .plan-card {
    padding: 25px;
  }

  /* The two smallest sizes on the plan cards are set for a desktop column;
   * on a phone they fall under what is comfortable to read. */
  .plan-requirements {
    font-size: 12px;
  }

  .plan-requirements strong,
  .plan-boundary,
  .plan-boundary strong {
    font-size: 10.5px;
  }

  .plans-note {
    font-size: 12px;
  }

  .start {
    margin-top: 88px;
    margin-bottom: 70px;
    padding: 58px 14px 14px;
    border-radius: 30px;
  }

  .start-copy {
    padding-inline: 10px;
  }

  .start-copy h2 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .signup-card {
    padding: 25px 19px;
    border-radius: 24px;
  }

  footer {
    min-height: 0;
    padding-bottom: 32px;
  }

  /* Same reason as the demo links: 13px of text is not a touch target. */
  .footer-nav {
    gap: 0 20px;
  }

  .footer-nav a {
    padding: 12px 0;
  }

  footer p {
    flex-basis: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .loop-track,
  .loop-slide > * {
    transition: none;
  }

}
