/*
 * Landing page: the hero words, the animated iPhone and the sections below it.
 * The phone's screen is laid out at the app's real size (390 × 844 points) and scaled
 * down with --s, so every number in .screen-inner matches the app's own styles.
 */

.landing main {
  padding-bottom: 0;
}

.wide {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px 64px;
  min-height: min(calc(100vh - 72px), 920px);
  padding-top: 24px;
  padding-bottom: 72px;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-hint);
}

.words {
  margin: 0;
  padding: 0;
  list-style: none;
}
.words li {
  margin: 0;
}
.word {
  display: flex;
  align-items: baseline;
  gap: 18px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(var(--fg-rgb), 0.16);
  font: inherit;
  font-size: clamp(3.25rem, 8.4vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-align: left;
  cursor: pointer;
  transition: color 0.45s ease;
}
.word:hover {
  color: rgba(var(--fg-rgb), 0.38);
}
.word[aria-pressed='true'] {
  color: var(--fg);
}
.word .idx {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  transform: translateY(-0.2em);
}

.scene-caption {
  min-height: 1.6em;
  margin: 28px 0 0;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--fg-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 36px;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 600;
}
.soon::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--fg);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.2;
  }
}

.demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 0;
}

.demo-toggle {
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  background: none;
  color: var(--fg-hint);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.demo-toggle:hover {
  color: var(--fg);
}

/* ---------- Everything else (bento) ---------- */

.bento-section {
  padding: 96px 0;
  border-top: 1px solid var(--line-soft);
}

.big {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}
.big .dim {
  color: rgba(var(--fg-rgb), 0.28);
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

/* Each tile: a preview panel (how it looks in the app) above a caption (what it is). */
.tile {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 8px 8px 20px;
  border: 1px solid var(--line-soft);
  transition: border-color 0.25s ease;
}
.tile:hover {
  border-color: var(--line);
}
.tile--wide {
  grid-column: span 2;
}
.tile h3 {
  margin: 18px 14px 0;
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.tile p {
  margin: 6px 14px 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--fg-secondary);
}
/* The picture at the top of each tile */
.vis {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: 24px 20px;
  background: rgba(var(--fg-rgb), 0.045);
  box-shadow: inset 0 0 0 1px rgba(var(--fg-rgb), 0.06);
}

/* Reminders: two notification banners */
.vis--notify {
  position: relative;
  flex-direction: column;
  gap: 0;
  padding-bottom: 30px;
}
.banner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 340px);
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(var(--fg-rgb), 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.875rem;
  line-height: 1.3;
}
.banner img {
  flex-shrink: 0;
  border-radius: 8px;
}
.banner div {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.banner b {
  font-weight: 600;
}
.banner span,
.banner small {
  color: var(--fg-secondary);
}
.banner small {
  align-self: flex-start;
  font-size: 0.75rem;
}
.banner--back {
  z-index: 0;
  margin-top: -40px;
  transform: translateY(26px) scale(0.9);
  opacity: 0.45;
}

/* Small list pictures */
.vis--rows,
.vis--lists,
.vis--subs {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
}
.cap {
  margin-top: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-hint);
}
.r,
.l {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.r b {
  font-weight: 600;
}
.r em,
.l em {
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--fg-secondary);
}
.r em.strong {
  font-weight: 600;
  color: var(--fg);
}
.l {
  padding: 4px 0;
}
.l b {
  display: flex;
  flex-direction: column;
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.l b small {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
}
.l em {
  font-size: 1.125rem;
}

.vis--today {
  flex-direction: column;
  gap: 8px;
}
.today {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}
.from {
  font-size: 0.8125rem;
  color: var(--fg-hint);
}

.s {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
}
.s i {
  width: 17px;
  height: 17px;
  border: 1.5px solid rgba(var(--fg-rgb), 0.7);
}
.s.done {
  color: var(--fg-hint);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.s.done i {
  border-color: rgba(var(--fg-rgb), 0.45);
  background: rgba(var(--fg-rgb), 0.45);
}

/* Chips, as in the app */
.vis--chips {
  flex-wrap: wrap;
  align-content: center;
  gap: 6px;
}
.c {
  padding: 7px 12px;
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
}
.c.on {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

/* Privacy: what Edge doesn't have, struck through */
.vis--private {
  flex-wrap: wrap;
  align-content: center;
  gap: 6px;
}
.vis--private span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg-secondary);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.vis--private span:last-child {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
}

/* Assistive Access: an app filling the screen */
.frame {
  display: flex;
  align-items: flex-end;
  width: 72px;
  height: 120px;
  padding: 10px;
  border: 2px solid var(--fg);
  border-radius: 14px;
}
.frame span {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Theme: half dark, half light */
.vis--theme {
  gap: 0;
}
.half {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 96px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.half--dark {
  background: #000;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.half--light {
  background: #fff;
  color: #000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* Larger Text */
.vis--type {
  align-items: baseline;
  gap: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.t1 {
  font-size: 18px;
  color: var(--fg-hint);
}
.t2 {
  font-size: 30px;
  color: var(--fg-secondary);
}
.t3 {
  font-size: 46px;
}

/* Pause and +5 min, as on the Minutes timer */
.vis--controls {
  flex-direction: column;
  gap: 8px;
}
.pause {
  display: flex;
  justify-content: space-between;
  width: 150px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg-secondary);
}
.plus {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg-hint);
}

/* Portrait or landscape */
.vis--rotate {
  align-items: flex-end;
  gap: 16px;
}
.p {
  width: 46px;
  height: 92px;
  border: 2px solid var(--fg);
  border-radius: 10px;
}
.p--land {
  width: 92px;
  height: 46px;
}

@media (max-width: 1000px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .bento-section {
    padding: 72px 0;
  }
  .bento {
    gap: 10px;
  }
  .tile {
    padding: 6px 6px 16px;
  }
  .tile--wide {
    grid-column: span 2;
  }
  .vis {
    min-height: 120px;
    padding: 18px 14px;
  }
  .tile h3 {
    margin: 14px 10px 0;
  }
  .tile p {
    margin: 4px 10px 0;
  }
  .tile h3 {
    font-size: 1.0625rem;
  }
  .tile p {
    font-size: 0.875rem;
  }
  .today {
    font-size: 2.5rem;
  }
}

@media (max-width: 380px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .tile--wide {
    grid-column: span 1;
  }
}

/* ---------- Closing ---------- */

.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 96px;
  padding-bottom: 112px;
  text-align: center;
}
.closing img {
  width: 88px;
  height: 88px;
}

/* ---------- Phone ---------- */

.phone {
  --s: 0.76;
  --bezel: calc(13px * var(--s) + 5px);
  --p-rgb: 255, 255, 255;
  --p-bg: #000;
  flex-shrink: 0;
  padding: var(--bezel);
  border-radius: calc(55px * var(--s) + var(--bezel));
  background: #0c0c0c;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 50px 90px -40px rgba(0, 0, 0, 0.55);
}

.screen {
  position: relative;
  width: calc(390px * var(--s));
  height: calc(844px * var(--s));
  overflow: hidden;
  border-radius: calc(55px * var(--s));
  background: var(--p-bg);
}

.screen-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 844px;
  overflow: hidden;
  transform: scale(var(--s));
  transform-origin: 0 0;
  background: var(--p-bg);
  color: rgb(var(--p-rgb));
  font-family: 'Archivo', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.3;
  text-align: left;
  transition: opacity 0.35s ease;
  user-select: none;
}
.screen-inner.fading {
  opacity: 0;
}
.screen-inner.instant,
.screen-inner.instant * {
  transition: none !important;
}

/* Status bar and Dynamic Island */
.status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 34px 0 52px;
  font-size: 17px;
  font-weight: 600;
  pointer-events: none;
}
.island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 124px;
  height: 36px;
  margin-left: -62px;
  border-radius: 18px;
  background: #000;
}
.sys {
  display: flex;
  align-items: center;
  gap: 7px;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.bars i {
  width: 3px;
  background: currentColor;
  border-radius: 1px;
}
.bars i:nth-child(1) { height: 4px; }
.bars i:nth-child(2) { height: 6px; }
.bars i:nth-child(3) { height: 9px; }
.bars i:nth-child(4) { height: 12px; }
.batt {
  position: relative;
  width: 25px;
  height: 12px;
  border: 1px solid rgba(var(--p-rgb), 0.45);
  border-radius: 4px;
}
.batt::before {
  content: '';
  position: absolute;
  inset: 1.5px;
  right: 5px;
  border-radius: 2px;
  background: currentColor;
}
.home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 30;
  width: 134px;
  height: 5px;
  margin-left: -67px;
  border-radius: 3px;
  background: rgb(var(--p-rgb));
  pointer-events: none;
}

/* The list screen */
.app {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transform-origin: 50% 30%;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.4s ease;
}
.app-head {
  padding: 59px 24px 14px;
}
.app-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  margin-bottom: 6px;
  font-size: 15px;
}
.app-nav .back {
  color: rgba(var(--p-rgb), 0.6);
}
.app-nav .focus-btn {
  font-weight: 600;
}
.app-title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.app-sub {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(var(--p-rgb), 0.55);
}

.viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.list-body {
  position: relative;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.05);
}

.sec {
  padding: 10px 24px 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--p-rgb), 0.55);
}
.sec--gap {
  padding-top: 20px;
}

.row {
  display: flex;
  align-items: baseline;
  padding: 6px 24px;
  transition:
    opacity 0.18s ease,
    max-height 0.45s ease,
    padding 0.45s ease;
  max-height: 60px;
}
.row .num {
  width: 0;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: width 0.25s ease;
}
.row .num b {
  display: inline-block;
  width: 18px;
  font-weight: 600;
}
/* Sized to its words, so the strike-through stops where the text does. */
.row .title {
  flex: 0 1 auto;
  margin-right: auto;
  font-weight: 600;
  letter-spacing: -0.01em;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 58%;
  background-size: 0 1.5px;
  transition: background-size 0.25s ease;
}
.row .meta {
  margin-left: 10px;
  font-size: 12px;
  color: rgba(var(--p-rgb), 0.55);
}
.row.overdue .meta {
  font-weight: 600;
  color: rgb(var(--p-rgb));
}
.row.done {
  opacity: 0.4;
}
.row.done .title {
  background-size: 100% 1.5px;
}
.row--new {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  opacity: 0;
}
.row--new.in {
  max-height: 60px;
  padding-top: 6px;
  padding-bottom: 6px;
  opacity: 1;
}

.selecting .row .num {
  width: 28px;
}
.selecting .row {
  opacity: 0.4;
}
.selecting .row.picked {
  opacity: 1;
}
.selecting .row.done {
  opacity: 0.15;
}
.row.picked .num b {
  animation: pop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes pop {
  from {
    transform: scale(0.6);
  }
}

.hint {
  padding: 20px 24px 12px;
  font-size: 13px;
  color: rgba(var(--p-rgb), 0.45);
  transition: opacity 0.25s ease;
}
.hint--tight {
  padding-top: 0;
}
.selecting .hint--tight {
  opacity: 0;
}

.pull-hint {
  position: absolute;
  left: 0;
  right: 0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: rgba(var(--p-rgb), 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.pull-hint--top {
  top: -44px;
}
.pull-hint.shown {
  opacity: 1;
}
.pull-hint--bottom {
  position: static;
  padding-top: 16px;
}

/* Sheets */
.scrim {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(var(--p-bg-rgb, 0, 0, 0), 0.85);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.composing .scrim,
.showing-completed .scrim {
  opacity: 1;
}
.showing-completed .scrim {
  opacity: 0.55;
}
.composing .app,
.showing-completed .app {
  transform: scale(0.92);
  opacity: 0.75;
}

.sheet-wrap {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 20;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1),
    opacity 0.3s ease;
  opacity: 0;
}
.sheet-wrap--top {
  top: 0;
  transform: translateY(-110%);
}
.sheet-wrap--bottom {
  bottom: 0;
  transform: translateY(110%);
}
.composing .sheet-wrap--top,
.showing-completed .sheet-wrap--bottom,
.selecting .sheet-wrap--picker {
  transform: none;
  opacity: 1;
}

.sheet {
  background: var(--p-bg);
}
.sheet--top {
  padding: 66px 24px 18px;
  border-bottom: 2px solid rgb(var(--p-rgb));
}
.sheet--bottom {
  padding: 18px 24px 40px;
  border-top: 2px solid rgb(var(--p-rgb));
}

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--p-rgb), 0.55);
}

.input {
  position: relative;
  margin: 12px 0 16px;
  font-size: 22px;
  font-weight: 600;
  min-height: 30px;
}
.input .ph {
  position: absolute;
  left: 2px;
  top: 0;
  color: rgba(var(--p-rgb), 0.35);
}
.input.has-text .ph {
  display: none;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 26px;
  margin-left: 1px;
  vertical-align: -5px;
  background: rgb(var(--p-rgb));
  animation: caret 1s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  padding: 7px 12px;
  border: 1px solid rgba(var(--p-rgb), 0.35);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.chip.on {
  border-color: rgb(var(--p-rgb));
  background: rgb(var(--p-rgb));
  color: var(--p-bg);
}
.chip--num {
  width: 46px;
  padding: 10px 0;
  font-size: 14px;
  text-align: center;
}

.added {
  padding: 14px 24px;
  font-size: 15px;
  color: rgba(var(--p-rgb), 0.6);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.added.shown {
  opacity: 1;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.sheet-head .hide {
  font-size: 15px;
  font-weight: 600;
}
.sheet .row {
  padding-left: 0;
  padding-right: 0;
  opacity: 0.7;
}
.sheet .row .title {
  background-size: 100% 1.5px;
}

/* Details dot: in the margin, left of the title, for a task with details. */
.row {
  position: relative;
}
.row .dot {
  position: absolute;
  left: 7px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: rgba(var(--p-rgb), 0.55);
}
.row.held {
  opacity: 0.6;
}

/* "Task" sheet, opened by holding a task */
.viewing .scrim {
  opacity: 0.55;
}
.viewing .app {
  transform: scale(0.92);
  opacity: 0.75;
}
.viewing .sheet-wrap--view {
  transform: none;
  opacity: 1;
}
.sheet-wrap--view {
  bottom: 0;
  transform: translateY(110%);
}
.sheet--view {
  display: grid;
  gap: 18px;
  padding: 20px 24px 50px;
  border-top: 2px solid rgb(var(--p-rgb));
}
.sheet--view .sheet-head {
  margin-bottom: -4px;
}
.sheet--view .close {
  font-size: 15px;
  color: rgba(var(--p-rgb), 0.6);
}
.view-title {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.field {
  display: grid;
  gap: 6px;
  font-size: 16px;
  line-height: 1.45;
}
.field > span {
  font-size: 12px;
  color: rgba(var(--p-rgb), 0.55);
}
.fields {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  column-gap: 32px;
}
.sub {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  line-height: 1.35;
  transition: color 0.2s ease;
}
.sub i {
  width: 17px;
  height: 17px;
  border: 1.5px solid rgba(var(--p-rgb), 0.7);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.sub.done {
  color: rgba(var(--p-rgb), 0.45);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.sub.done i {
  border-color: rgba(var(--p-rgb), 0.45);
  background: rgba(var(--p-rgb), 0.45);
}
.view-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 0;
  font-size: 16px;
}
.view-actions .start {
  flex: 1;
}
.view-actions u {
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* Focus picker bar */
.sheet-wrap--picker {
  bottom: 0;
  transform: translateY(110%);
}
.picker {
  display: grid;
  gap: 12px;
  padding: 16px 24px 52px;
  border-top: 2px solid rgb(var(--p-rgb));
  background: var(--p-bg);
}
.picker-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.picker-top span:first-child {
  color: rgba(var(--p-rgb), 0.6);
}
.picker-top span:last-child {
  font-weight: 600;
}
.picker-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.picker-row .lbl {
  width: 44px;
  font-size: 12px;
  color: rgba(var(--p-rgb), 0.6);
}
.start {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgb(var(--p-rgb));
  color: var(--p-bg);
  font-size: 16px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}
.start.dim {
  opacity: 0.35;
}

/* Focus screen */
.focus-view {
  position: absolute;
  inset: 0;
  z-index: 25;
  padding-top: 70px;
  background: var(--p-bg);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.focusing .focus-view {
  opacity: 1;
}
.focus-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  padding: 0 24px;
}
.focus-head .ctl {
  display: flex;
  gap: 18px;
  font-size: 15px;
}
.focus-head .ctl span:first-child {
  color: rgba(var(--p-rgb), 0.6);
}
.focus-head .ctl span:last-child {
  font-weight: 600;
}
.focus-count {
  padding: 18px 24px 4px;
  font-size: 13px;
  color: rgba(var(--p-rgb), 0.6);
}
.frow {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 24px;
  transition: opacity 0.2s ease;
}
.frow b {
  width: 20px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(var(--p-rgb), 0.6);
}
.frow span {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 58%;
  background-size: 0 2px;
  transition: background-size 0.25s ease;
}
.frow.done {
  opacity: 0.4;
}
.frow.done span {
  background-size: 100% 2px;
}

.edge-line {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.edge-line rect {
  fill: none;
  stroke-width: 4;
}
.edge-line .track {
  stroke: rgba(var(--p-rgb), 0.08);
}
.edge-line .left {
  stroke: rgba(var(--p-rgb), 0.32);
  stroke-dasharray: 1000 1000;
  stroke-dashoffset: 0;
}

/* The demo's finger */
.finger {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition-property: transform, opacity;
  transition-duration: 450ms, 200ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1), ease;
}
.finger.on {
  opacity: 1;
}
/* Holding: a ring grows out from the finger over the app's 480ms hold. */
.finger.holding::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  animation: hold-ring 0.55s ease-out forwards;
}
@keyframes hold-ring {
  from {
    inset: -2px;
    opacity: 0;
  }
  to {
    inset: -16px;
    opacity: 1;
  }
}
.finger.down::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}

/* ---------- Small screens ---------- */

/*
 * Phones and narrow windows: one column in this order — tagline, "Coming soon", a step bar
 * (01 Pull … 05 Focus) sitting on top of the iPhone, the iPhone, then the caption and Pause.
 * The text and demo wrappers step aside (display: contents) so their parts can be reordered.
 */
@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-height: 0;
    padding-top: 16px;
    padding-bottom: 64px;
    text-align: center;
  }
  .hero-text,
  .demo {
    display: contents;
  }
  .eyebrow {
    order: 1;
    margin-bottom: 20px;
  }
  .hero-actions {
    order: 2;
    justify-content: center;
    margin-top: 0;
  }
  .words {
    order: 3;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    max-width: 340px;
    margin-top: 32px;
  }
  .phone {
    order: 4;
    margin-top: 16px;
  }
  .word {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-height: 48px;
    padding: 10px 0 4px;
    border-top: 2px solid rgba(var(--fg-rgb), 0.16);
    color: rgba(var(--fg-rgb), 0.42);
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
    transition:
      color 0.3s ease,
      border-color 0.3s ease;
  }
  .word:hover {
    color: rgba(var(--fg-rgb), 0.7);
  }
  .word[aria-pressed='true'] {
    border-top-color: var(--fg);
    color: var(--fg);
  }
  .word .idx {
    font-size: 0.6875rem;
    transform: none;
  }
  .scene-caption {
    order: 5;
    margin-top: 18px;
    font-size: 1.0625rem;
  }
  .demo-toggle {
    order: 6;
    margin-top: 4px;
  }
}

@media (max-width: 420px) {
  .phone {
    --s: 0.68;
  }
}

@media (prefers-reduced-motion: reduce) {
  .word,
  .soon::before,
  .caret {
    animation: none;
    transition: none;
  }
  .finger {
    display: none;
  }
}
