/*
  MeetMi site. One stylesheet, no JavaScript, no web fonts, no third-party
  requests: the footer says so, keep it true.

  The palette follows the app icon (black on white). Colour appears only where
  the product itself uses it: the indigo MeetMi tag and the red live dot.
*/

:root {
  --paper: #ffffff;
  --ink: #000000;
  --text: #33322e;
  --muted: #6f6e69;
  --panel: #f6f5f2;
  --line: #e6e4df;
  --accent: #5b67f1;
  --accent-soft: #eef1ff;
  --accent-line: #dde3ff;
  --live: #e5484d;

  --radius-panel: 28px;
  --radius-box: 16px;
  --radius-shot: 12px;
  --radius-button: 10px;

  --wrap: 1120px;
  --gutter: 24px;
  --pad: clamp(24px, 4vw, 48px);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    Arial, sans-serif;

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  word-spacing: 0.06em;
}

h3 {
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

/* CJK sets tighter without negative tracking, and PingFang's bold is heavy.
   keep-all stops a headline breaking mid-phrase (it may break anywhere between
   Chinese characters otherwise); overflow-wrap is the escape hatch on a narrow
   screen. */
:lang(zh-Hans) h1,
:lang(zh-Hans) h2,
:lang(zh-Hans) h3 {
  letter-spacing: 0;
  font-weight: 600;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

:lang(zh-Hans) h1 {
  line-height: 1.18;
}

a {
  color: inherit;
}

code {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--panel);
  font: 0.875em ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.fine {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: var(--radius-button);
  background: var(--ink);
  color: var(--paper);
}

.skip:focus {
  top: 12px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.3rem;
  border-radius: var(--radius-button);
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s;
}

.button:hover {
  background: #2e2e2e;
}

.button-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button-quiet:hover {
  background: var(--panel);
}

.button-small {
  padding: 0.5rem 0.9rem;
  font-size: 0.9375rem;
}

.text-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--accent);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
}

.site-header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}

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

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px var(--line);
}

.site-nav {
  display: flex;
  gap: 26px;
  font-size: 0.9375rem;
}

.site-nav a,
.language {
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover,
.language:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-header-end {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 0.9375rem;
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }
}

/* Hero */

.hero {
  padding-block: clamp(56px, 9vw, 112px) clamp(40px, 6vw, 72px);
}

.hero-copy {
  text-align: center;
}

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

:lang(zh-Hans) .hero-copy h1 {
  max-width: 12em;
}

.lede {
  max-width: 44rem;
  margin: 1.5rem auto 0;
  font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
}

.hero-copy .fine {
  margin-top: 1.25rem;
}

/* Stage: the live replay under the hero */

.stage {
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(14px, 2.2vw, 28px);
  border-radius: var(--radius-panel);
  background: var(--panel);
}

.stage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 2px 6px 14px;
  font-size: 0.875rem;
}

.stage-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
}

.stage-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
}

.stage-route {
  color: var(--muted);
}

.stage-panes {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(10px, 1.6vw, 20px);
  align-items: start;
}

.pane {
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  background: var(--paper);
}

.pane-title {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.lines {
  display: grid;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.lines li {
  display: grid;
  grid-template-columns: 4.6em 1fr;
  gap: 10px;
  color: var(--muted);
}

.lines li:last-child {
  color: var(--ink);
}

.lines time,
.card-meta time {
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.7;
}

.cards {
  display: grid;
  gap: 10px;
}

.card {
  padding: 12px 14px 13px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-shot);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.card p + p {
  margin-top: 6px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.card-tag {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

/* The app highlights the term a point turns on; mirror it rather than invent one. */
.card mark {
  padding: 0 2px;
  border-radius: 3px;
  background: #fbf0c4;
  color: inherit;
}

.stage figcaption {
  padding: 14px 6px 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* The page's one piece of choreography: the meeting plays out once. */
.lines li,
.card {
  opacity: 0;
  transform: translateY(8px);
  animation: arrive 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--at) * 0.62s + 0.5s);
}

@keyframes arrive {
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .lines li,
  .card {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

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

  .lines li:nth-child(n + 5) {
    display: none;
  }

  .lines li:nth-child(4) {
    color: var(--ink);
  }
}

/* Sections */

.section {
  padding-block: clamp(64px, 9vw, 128px);
}

.section-tight {
  padding-block: 0;
}

.section-ruled {
  border-top: 1px solid var(--line);
}

.section-title {
  max-width: 20ch;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

:lang(zh-Hans) .section-title {
  max-width: 16em;
  line-height: 1.22;
}

/* Panels and the feature bento */

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(32px, 5vw, 64px);
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--panel);
}

.panel-copy {
  padding: var(--pad) var(--pad) 0;
  max-width: 34rem;
}

.panel-copy-wide {
  max-width: 46rem;
}

.panel-copy p,
.panel-text p {
  margin-top: 0.75rem;
}

.shot {
  border-radius: var(--radius-shot);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.1), 0 32px 64px -32px rgb(0 0 0 / 0.5);
}

/* Full-width panel: copy on the left, the app window running off the
   right and bottom edges. */
.panel-live {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--pad);
  align-items: start;
}

.panel-live .panel-copy {
  padding-bottom: var(--pad);
}

.panel-live .shot {
  width: 116%;
  max-width: none;
  margin-top: var(--pad);
  margin-bottom: -18%;
  border-radius: var(--radius-shot) 0 0 0;
}

/* Half-width panels: copy above, the window rising out of the bottom edge. */
.panel-rise .shot,
.panel-notes .shot {
  width: calc(100% - var(--pad) * 2);
  margin: var(--pad) var(--pad) 0;
  border-radius: var(--radius-shot) var(--radius-shot) 0 0;
}

.panel-rise .shot {
  margin-bottom: -14%;
}

.panel-text {
  padding: var(--pad);
}

.panel-notes .shot {
  margin-bottom: -6%;
}

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

  .panel-live {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .panel-live .panel-copy {
    padding-bottom: 0;
  }

  .panel-live .shot {
    width: 150%;
    margin-left: var(--pad);
    margin-bottom: -40%;
  }

  .panel-rise .shot,
  .panel-notes .shot {
    width: 165%;
    max-width: none;
    margin-right: 0;
    border-radius: var(--radius-shot) 0 0 0;
  }

  .panel-rise .shot {
    margin-bottom: -30%;
  }

  .panel-notes .shot {
    margin-bottom: -20%;
  }
}

/* Two-column sections: statement on the left, detail on the right */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.split-copy p {
  margin-top: 1.25rem;
  max-width: 34rem;
}

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

/* The folder */

.folder {
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--radius-panel);
  background: var(--panel);
}

.folder-name {
  padding: 0 4px 14px;
  color: var(--ink);
  font-weight: 700;
}

.folder ul {
  border: 1px solid var(--line);
  border-radius: var(--radius-box);
  background: var(--paper);
}

.folder li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 16px;
  padding: 13px 18px;
  font-size: 0.9375rem;
}

.folder li + li {
  border-top: 1px solid var(--line);
}

.folder-key span {
  color: var(--ink);
  font-weight: 600;
}

.folder em {
  color: var(--muted);
  font-style: normal;
}

/* Privacy facts */

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 64px);
  margin-block: clamp(32px, 5vw, 64px);
}

.fact h3 {
  font-size: 1.1875rem;
}

.fact p {
  margin-top: 0.5rem;
  font-size: 1rem;
}

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

@media (max-width: 560px) {
  .facts {
    grid-template-columns: 1fr;
  }
}

/* iPhone */

.panel-iphone {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--pad);
  align-items: center;
}

.panel-iphone .panel-copy {
  padding-bottom: var(--pad);
}

.panel-iphone .section-title {
  margin-top: 1rem;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8125rem;
  font-weight: 600;
}

.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 20px);
  padding: var(--pad) var(--pad) 0 0;
  margin-bottom: -12%;
}

/* A bezel in percentages so it scales with the screenshot. */
.phone {
  padding: 3.4%;
  border-radius: 17% / 7.9%;
  background: #111111;
  box-shadow: 0 32px 64px -32px rgb(0 0 0 / 0.5);
}

.phone img {
  width: 100%;
  border-radius: 14.5% / 6.7%;
}

@media (max-width: 820px) {
  .panel-iphone {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .panel-iphone .panel-copy {
    padding-bottom: 0;
  }

  .phones {
    grid-template-columns: repeat(3, 58%);
    padding: var(--pad) var(--pad) 0;
    margin-bottom: -18%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .phones::-webkit-scrollbar {
    display: none;
  }

  .phone {
    scroll-snap-align: center;
  }
}

/* Pricing */

.plan {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  color: var(--muted);
}

.plan-price strong {
  color: var(--ink);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.plan .fine {
  margin-top: 0.75rem;
}

.plan ul {
  margin-block: 1.5rem;
  border-top: 1px solid var(--line);
}

.plan li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

/* Questions */

.questions details {
  border-bottom: 1px solid var(--line);
}

.questions details:first-child {
  border-top: 1px solid var(--line);
}

.questions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.questions summary::-webkit-details-marker {
  display: none;
}

.questions summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
  transition: transform 0.2s;
}

.questions details[open] summary::after {
  transform: rotate(45deg);
}

.questions details p {
  max-width: 40rem;
  padding-bottom: 24px;
}

/* Closing */

.closing {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 11vw, 152px);
  border-top: 1px solid var(--line);
  text-align: center;
}

/* The halftone from the app icon, once. */
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/halftone.svg") center / auto 130% no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.closing .wrap {
  position: relative;
}

.closing-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  border-radius: 20px;
  box-shadow: 0 0 0 1px var(--line), 0 18px 36px -18px rgb(0 0 0 / 0.35);
}

.closing .section-title {
  max-width: none;
  margin-bottom: 2rem;
}

.closing .fine {
  margin-top: 1rem;
}

/* Footer */

.site-footer {
  padding-block: 56px 40px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

.footer-grid h2 {
  margin-bottom: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
}

.footer-grid li + li {
  margin-top: 8px;
}

.footer-grid li a {
  color: var(--muted);
  text-decoration: none;
}

.footer-grid li a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-fine {
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer-fine + .footer-fine {
  margin-top: 6px;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid .brand {
    grid-column: 1 / -1;
  }
}

/* Prose: the Markdown legal and support pages */

.prose {
  width: min(46rem, 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding-block: clamp(48px, 7vw, 96px);
}

.prose h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 4.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.prose h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.prose h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1.1875rem;
}

.prose p,
.prose ul,
.prose ol {
  margin-top: 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose li > ul,
.prose li > ol {
  margin-top: 0.4rem;
}

/* :not(.button) — otherwise this outranks .button and paints its label black. */
.prose a:not(.button) {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.prose a:not(.button):hover {
  color: var(--accent);
}

.prose strong {
  color: var(--ink);
}


.prose hr {
  margin-block: 2.5rem;
  border: 0;
  border-top: 1px solid var(--line);
}

.notfound {
  text-align: center;
}

.notfound .actions {
  margin-top: 2rem;
}
