:root {
  color-scheme: light;
  --ink: #2a1d26;
  --muted: #6d5663;
  --paper: #fff8fa;
  --accent: #a90845;
  --line: #ecdce3;
  font-family: system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.shell {
  width: min(100% - 2 * clamp(.75rem, 3.1vw, 3.25rem), 100rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fffcfd;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: 4.75rem;
  align-items: center;
  gap: .4rem 1rem;
  padding-block: .65rem;
}

.brand {
  display: inline-flex;
  justify-self: start;
  min-height: 2.75rem;
  align-items: center;
  gap: .55rem;
  font-weight: 760;
  letter-spacing: -.025em;
}

.brand img {
  display: block;
  object-fit: contain;
}

.site-nav { display: flex; gap: .2rem; }

.site-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  border-radius: .75rem;
  padding-inline: .85rem;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
}

.site-nav a:hover { background: #fff0f6; }

.site-nav [aria-current] {
  color: var(--accent);
  background: #ffe8f1;
}

/* App page: sample profiles, the phone, and how it works, side by side. */
.app-page {
  display: grid;
  grid-template-columns: minmax(0, 23rem) auto minmax(0, 23rem);
  grid-template-rows: auto 1fr;
  grid-template-areas: "intro phone tour" "cast phone tour";
  justify-content: center;
  align-items: start;
  gap: 0 clamp(2rem, 4.5vw, 5rem);
  padding-block: clamp(1.5rem, 4vw, 3.25rem);
}

.app-intro { grid-area: intro; }
.cast { grid-area: cast; }
.phone { grid-area: phone; }
.tour { grid-area: tour; }

.app-intro h1 {
  margin: 0;
  font: 400 clamp(1.9rem, 2.7vw, 2.6rem)/1.08 Georgia, serif;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.app-lead {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.app-label {
  margin: 0 0 .6rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* ---------- sample profiles ---------- */
.cast .app-label { margin-top: 1.75rem; }

.cast-group h3 {
  margin: .9rem 0 .45rem;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 650;
}

.cast-group:first-child h3 { margin-top: 0; }

.cast-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

.account {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 3.5rem;
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.account:hover { background: #fff0f6; }

.avatar {
  display: grid;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: #f6dce3;
  color: #8a2a45;
  font-weight: 700;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

/* MaMas wear the same gold ring as inside the app. */
[data-role="mama"] .avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #b98f3a; }

.account-text { display: grid; min-width: 0; line-height: 1.25; }
.account-text strong { font-weight: 650; }
.account-text span { color: var(--muted); font-size: .8125rem; }

.account[aria-pressed="true"] {
  border-color: var(--accent);
  background: #ffe8f1;
  box-shadow: 0 0 0 1px var(--accent);
  color: var(--accent);
}

.account[aria-pressed="true"] .avatar { background: var(--accent); color: #fff; }
.account[aria-pressed="true"] .account-text span { color: inherit; }

.account-new { width: 100%; margin-top: .9rem; border-style: dashed; }
.account-new .avatar { background: #ffe8f1; color: var(--accent); font-size: 1.25rem; font-weight: 500; }

.account-news {
  min-width: 1.15rem;
  margin-left: auto;
  padding: .1rem .3rem;
  border-radius: 62rem;
  background: var(--accent);
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.app-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.5;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}

/* ---------- how it works ---------- */
.tour {
  padding: 1.1rem .9rem .9rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 .6rem 2rem #8436570d;
}

.tour .app-label { margin: .2rem .5rem .5rem; }
.tour button { color: inherit; font: inherit; text-align: start; cursor: pointer; }

.steps { margin: 0; padding: 0; list-style: none; }
.steps > li { position: relative; padding-bottom: .5rem; }

/* A line links the steps. */
.steps > li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 2.6rem;
  bottom: -.9rem;
  left: calc(1.625rem - 1px);
  width: 2px;
  background: #f3c9d8;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .15rem .85rem;
  width: 100%;
  padding: .7rem .5rem;
  border: 0;
  border-radius: .75rem;
  background: none;
}

.step strong { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.step > span:last-child { grid-column: 2; color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.step-head { align-items: center; padding-bottom: .45rem; }

.step-n {
  display: grid;
  grid-row: span 2;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  background: #ffe8f1;
  color: var(--accent);
  font-size: .9375rem;
  font-weight: 700;
}

.step-head .step-n { grid-row: auto; }

/* Step 2 has two paths; they sit under its title, clear of the line. */
.paths { display: grid; gap: .5rem; padding: 0 .5rem .3rem 3.6rem; }
.path { padding: .25rem; border-radius: .9rem; background: var(--paper); }

.path > button {
  display: grid;
  gap: .15rem;
  width: 100%;
  padding: .5rem .55rem;
  border: 0;
  border-radius: .7rem;
  background: none;
}

.path > button strong { font-size: .9375rem; font-weight: 700; }
.path > button span { color: var(--muted); font-size: .875rem; line-height: 1.4; }

.chips { display: flex; flex-wrap: wrap; gap: .35rem; padding: .1rem .55rem .45rem; }

.chips button,
.tour-also button {
  padding: .35rem .75rem;
  border: 1px solid var(--line);
  border-radius: 62rem;
  background: #fff;
  font-size: .8125rem;
  font-weight: 650;
}

.tour-also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .6rem;
  margin: .6rem .5rem 0;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}

.tour-also span { margin-right: auto; color: var(--muted); font-size: .8125rem; }
.tour-also button { background: var(--paper); }

button.step:hover,
.tour-also button:hover { background: #fff0f6; }
.path > button:hover,
.chips button:hover { background: #fff; border-color: #e0b9c8; }

/* The feature now open in the phone. */
.tour [aria-current] { background: #ffe8f1; }
.tour [aria-current] .step-n { background: var(--accent); color: #fff; }
.chips [aria-current],
.tour-also [aria-current] { border-color: var(--accent); color: var(--accent); }

.tour button:focus-visible,
.account:focus-visible,
.link-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The phone is drawn at iPhone size (393 x 852 pt screen, 11 px frame) and scaled as one piece.
   app-page.js sets --phone-scale so it fits the window. */
.phone {
  --phone-scale: .8;
  position: sticky;
  top: 1rem;
  width: calc(415px * var(--phone-scale));
  height: calc(874px * var(--phone-scale));
}

.phone-body {
  position: relative;
  width: 415px;
  height: 874px;
  padding: 11px;
  border-radius: 66px;
  background: #1b181c;
  box-shadow: inset 0 0 0 1.5px #5d5560, inset 0 0 0 4px #0c0b0d, 0 28px 60px #84365730;
  transform: scale(var(--phone-scale));
  transform-origin: 0 0;
}

/* Side buttons: action, volume up and volume down on the left, power on the right. */
.phone-body::before,
.phone-body::after {
  content: "";
  position: absolute;
  width: 3px;
}

.phone-body::before {
  top: 150px;
  left: -3px;
  height: 190px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(#332e36 0 30px, #0000 30px 62px, #332e36 62px 118px, #0000 118px 134px, #332e36 134px);
}

.phone-body::after {
  top: 262px;
  right: -3px;
  height: 92px;
  border-radius: 0 2px 2px 0;
  background: #332e36;
}

.phone-screen {
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr) 22px;
  height: 100%;
  overflow: hidden;
  border-radius: 55px;
  background: #fff;
}

.phone-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 30px 0 48px;
  color: #000;
  font: 600 16px/1 -apple-system, system-ui, sans-serif;
  letter-spacing: -.01em;
}

.phone-island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 122px;
  height: 35px;
  border-radius: 62rem;
  background: #000;
  translate: -50%;
}

.phone iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.phone-home::before {
  content: "";
  display: block;
  width: 136px;
  height: 5px;
  margin: 8px auto 0;
  border-radius: 62rem;
  background: #1b181c;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 78rem) {
  .app-page {
    grid-template-columns: minmax(0, 27rem) auto;
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "intro phone" "cast phone" "tour phone";
  }

  .tour { margin-top: 1.75rem; }
}

@media (max-width: 56rem) {
  .app-page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "phone" "intro" "cast" "tour";
    justify-items: center;
    row-gap: 1.75rem;
  }

  .phone { position: static; }
  .app-intro, .cast, .tour { width: 100%; max-width: 34rem; }
  .cast .app-label, .tour { margin-top: 0; }
}

@media (max-width: 35rem) {
  .header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .header-inner .brand { justify-self: center; }
  .site-nav a { padding-inline: .6rem; }
}
