/* Monish site. Dark only, mirrors the iOS design system (docs/design-refs).
   Lime = one primary action per view. State colors = status glyphs only.
   Mono = the line to paste and code. No build step. */

:root {
  color-scheme: dark;
  --bg: #000;
  --cell: #1c1c1e;
  --raised: #2c2c2e;
  --raised-hover: #3a3a3c;
  --sep: #2c2c2e;
  --text: #fff;
  --text-2: #98989f;
  --lime: #b2e53c;
  --blue: #3b82f6;
  --green: #30d158;
  --red: #ff453a;
  --violet: #a78bfa;
  --r: 16px;
  --gutter: 16px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

a {
  color: var(--text);
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

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

.site-nav a {
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav .nav-extra {
  display: none;
}

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

.btn-lime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: #000;
  font: 600 17px/1 var(--font);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
}

.btn-lime:disabled {
  cursor: default;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--cell);
  box-shadow: var(--edge);
  color: var(--text);
  font: 600 17px/1 var(--font);
  text-decoration: none;
}

.btn-ghost:hover {
  background: var(--raised);
}

.copy-btn {
  flex: none;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--raised);
  color: var(--text);
  font: 600 14px/1 var(--font);
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--raised-hover);
}

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

.hero {
  padding-top: 32px;
}

.hero h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(44px, 11.5vw, 88px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.028em;
}

.lede {
  margin: 20px 0 0;
  max-width: 34em;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.45;
}

.hero-cta {
  margin-top: 28px;
}

.fine {
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.hero-visual::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: -2px;
  height: 140px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000 72%);
  pointer-events: none;
}

/* ---------- Phone mock (lock screen) ---------- */

.phone {
  position: relative;
  width: min(100%, 372px);
  height: 640px;
  padding: 11px 11px 0;
  border-radius: 58px 58px 0 0;
  background: #161618;
  text-align: left;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.screen {
  position: relative;
  height: 100%;
  padding: 12px 12px 0;
  overflow: hidden;
  border-radius: 47px 47px 0 0;
  background:
    radial-gradient(130% 55% at 50% 0%, #13233f 0%, #070d19 48%, #000 78%);
}

.island {
  width: 112px;
  height: 32px;
  margin: 0 auto;
  border-radius: 20px;
  background: #000;
}

.clock {
  margin: 26px 0 0;
  font-size: 84px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.date {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}

.stack {
  margin-top: 28px;
}

.la {
  padding: 14px;
  border-radius: var(--r);
  background: rgba(28, 28, 30, 0.82);
  box-shadow: var(--edge);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
}

.la + .la {
  margin-top: 10px;
}

.la-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.la-text {
  flex: 1;
  min-width: 0;
}

.la-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.la-meta {
  margin: 3px 0 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.3;
}

.la-time {
  flex: none;
  color: var(--text-2);
  font-size: 13px;
}

.bar {
  height: 5px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.bar span {
  display: block;
  width: 86%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transform-origin: left center;
}

.la-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  display: grid;
  place-items: center;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 15px;
  font-weight: 600;
}

.pill-light {
  background: var(--text);
  color: #000;
}

/* ---------- Status glyphs (28 pt, one color per item type) ---------- */

.glyph {
  flex: none;
  width: 28px;
  height: 28px;
}

.glyph-dot {
  display: grid;
  place-items: center;
}

.glyph-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.c-blue { color: var(--blue); }
.c-green { color: var(--green); }
.c-red { color: var(--red); }
.c-violet { color: var(--violet); }
.c-lime { color: var(--lime); }

.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 3;
}

.ring-fill {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 86 100;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

/* ---------- Callouts around the phone (wide screens) ---------- */

.callouts {
  display: none;
}

/* ---------- Works with ---------- */

.works {
  position: relative;
  margin: 0;
  padding: 8px var(--gutter) 56px;
  color: var(--text-2);
  font-size: 15px;
  text-align: center;
}

.works strong {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Sections ---------- */

.section {
  padding-block: 64px;
  border-top: 1px solid var(--cell);
}

.section h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 12px 0 0;
  max-width: 28em;
  color: var(--text-2);
}

.section-body {
  margin-top: 32px;
}

/* How it works */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--sep);
}

.step:first-child {
  padding-top: 0;
  border-top: 0;
}

.step-n {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cell);
  box-shadow: var(--edge);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.step p {
  margin: 6px 0 0;
  color: var(--text-2);
}

.code {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  padding: 16px;
  border-radius: var(--r);
  background: var(--cell);
  box-shadow: var(--edge);
  color: var(--text);
  font: 400 14px/1.6 var(--mono);
  overflow-wrap: anywhere;
}

.code-note {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 14px;
}

/* What lands on your iPhone */

.promises {
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: var(--r);
  background: var(--cell);
  box-shadow: var(--edge);
}

.promise {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 14px;
  padding: 20px 16px;
  border-top: 1px solid var(--sep);
}

.promise:first-child {
  border-top: 0;
}

.promise h3 {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.promise p {
  margin: 4px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.45;
}

.glyph-pair {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* What to ask your agent */

.asks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ask {
  padding: 16px;
  border-radius: var(--r);
  background: var(--cell);
  box-shadow: var(--edge);
}

.ask-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ask-q {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.mini {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
}

.mini-col {
  display: block;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
}

.mini .la-title,
.mini-col .la-title {
  font-size: 15px;
}

.mini .la-meta {
  font-size: 13px;
}

.mini-col .la-actions {
  margin-top: 10px;
}

.mini-col .pill {
  height: 34px;
  font-size: 14px;
}

/* FAQ */

.faq {
  margin: 0;
}

.faq div {
  padding-block: 20px;
  border-top: 1px solid var(--sep);
}

.faq div:first-child {
  padding-top: 0;
  border-top: 0;
}

.faq dt {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq dd {
  margin: 6px 0 0;
  color: var(--text-2);
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-block: 40px 56px;
  border-top: 1px solid var(--cell);
  color: var(--text-2);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  margin: 0;
}

/* ---------- Document pages (privacy, terms, support) ---------- */

.doc {
  max-width: 700px;
  padding-top: 32px;
  padding-bottom: 80px;
}

.doc h1 {
  margin: 0;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.doc .updated {
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 15px;
}

.doc .intro {
  margin: 20px 0 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.5;
}

.doc h2 {
  margin: 48px 0 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.doc h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.doc p,
.doc li {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
}

.doc p {
  margin: 12px 0 0;
}

.doc ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.doc li + li {
  margin-top: 6px;
}

.doc strong {
  color: var(--text);
  font-weight: 600;
}

.doc code {
  color: var(--text);
  font: 400 14px/1.5 var(--mono);
}

.summary {
  margin-top: 32px;
  padding: 20px;
  border-radius: var(--r);
  background: var(--cell);
  box-shadow: var(--edge);
}

.summary h2 {
  margin: 0;
  font-size: 17px;
}

.summary ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.summary li {
  color: var(--text);
  font-size: 16px;
}

.retention {
  margin: 16px 0 0;
  border-radius: var(--r);
  background: var(--cell);
  box-shadow: var(--edge);
}

.retention div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-top: 1px solid var(--sep);
}

.retention div:first-child {
  border-top: 0;
}

.retention dt {
  color: var(--text);
  font-size: 16px;
}

.retention dd {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
  text-align: right;
}

.causes {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.doc .cause {
  color: var(--text);
}

.cause .step-n {
  background: var(--raised);
}

.cause {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 16px;
  padding: 20px 16px;
  border-radius: var(--r);
  background: var(--cell);
  box-shadow: var(--edge);
}

.cause + .cause {
  margin-top: 12px;
}

.doc .cause p,
.doc .cause ul {
  margin-top: 6px;
}

.doc .cause li {
  font-size: 15px;
}

.contact {
  margin-top: 28px;
}

/* ---------- Prompt page ---------- */

.prompt-page {
  max-width: 640px;
  padding-top: 40px;
  padding-bottom: 96px;
}

.prompt-page h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.prompt-page .lede {
  font-size: 17px;
}

.prompt-line {
  margin: 28px 0 0;
  padding: 18px;
  border-radius: var(--r);
  background: var(--cell);
  box-shadow: var(--edge);
  color: var(--text);
  font: 400 14px/1.6 var(--mono);
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

.prompt-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.prompt-note {
  margin: 28px 0 0;
  color: var(--text-2);
  font-size: 15px;
}

.status-line {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 14px;
}

/* ---------- Motion (only when allowed) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .stack .la {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .stack .la:nth-child(2) {
    animation-delay: 0.15s;
  }

  .stack .la:nth-child(3) {
    animation-delay: 0.3s;
  }

  .stack .ring-fill {
    animation: ring 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
  }

  .stack .bar span {
    animation: grow 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }

  @keyframes ring {
    from {
      stroke-dasharray: 0 100;
    }
  }

  @keyframes grow {
    from {
      transform: scaleX(0);
    }
  }
}

/* ---------- Wider screens ---------- */

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }

  .site-nav .nav-extra {
    display: inline;
  }

  .btn-lime {
    width: auto;
  }

  .prompt-actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }

  .doc h1 {
    font-size: 56px;
  }

  .prompt-page h1 {
    font-size: 52px;
  }

  .prompt-line {
    font-size: 16px;
  }
}

@media (min-width: 960px) {
  .site-header {
    height: 72px;
  }

  .hero {
    padding-top: 72px;
    text-align: center;
  }

  .hero h1 {
    max-width: 13ch;
    margin-inline: auto;
  }

  .hero .lede {
    margin-inline: auto;
    font-size: 20px;
  }

  .doc,
  .prompt-page {
    margin-inline: auto;
  }

  .hero-visual {
    margin-top: 64px;
  }

  .section {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: 64px;
    padding-block: 96px;
  }

  .section h2 {
    font-size: 40px;
  }

  .section-head {
    position: sticky;
    top: 32px;
    align-self: start;
  }

  .section-body {
    margin-top: 0;
  }

  .promises {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .promise {
    padding: 28px 24px;
  }

  .promise:nth-child(2) {
    border-top: 0;
  }

  .promise:nth-child(even) {
    border-left: 1px solid var(--sep);
  }

  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1100px) {
  .callouts {
    display: block;
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: none;
  }

  .callout {
    position: absolute;
    width: 220px;
    text-wrap: balance;
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.4;
  }

  .callout strong {
    display: block;
    color: var(--text);
    font-weight: 600;
  }

  .callout::after {
    content: "";
    position: absolute;
    top: 11px;
    width: 48px;
    height: 1px;
    background: #3a3a3c;
  }

  .callout-left {
    right: calc(50% + 186px + 64px);
    text-align: right;
  }

  .callout-left::after {
    right: -60px;
  }

  .callout-right {
    left: calc(50% + 186px + 64px);
    text-align: left;
  }

  .callout-right::after {
    left: -60px;
  }

  .callout-1 {
    top: 238px;
  }

  .callout-2 {
    top: 334px;
  }

  .callout-3 {
    top: 462px;
  }
}
