/* Magic Clipboard: one stylesheet for the whole site. Self-hosted fonts (OFL), no external requests.
   Follows the phone or computer's light or dark setting. */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-900.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f5f5fa;
  --surface: #ffffff;
  --surface-2: #efeff6;
  --line: rgba(24, 22, 60, 0.1);
  --text: #121218;
  --muted: #595968;
  --accent: #5242d6;
  --accent-hover: #3f30c2;
  --accent-soft: rgba(91, 76, 224, 0.1);
  --link: #4a3bcf;
  --gold: #d43a68;
  --gold-soft: rgba(255, 106, 136, 0.13);
  --phone: #1c1c22;
  --shadow: 0 24px 60px rgba(40, 30, 120, 0.16);
  --radius: 18px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b11;
    --surface: #16161e;
    --surface-2: #1e1e29;
    --line: rgba(255, 255, 255, 0.09);
    --text: #f3f3f7;
    --muted: #a9a9ba;
    --accent: #6b5cf0;
    --accent-hover: #7d70f5;
    --accent-soft: rgba(138, 124, 255, 0.14);
    --link: #a99fff;
    --gold: #ff8fa6;
    --gold-soft: rgba(255, 106, 136, 0.14);
    --phone: #000000;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    400 17px/1.65 'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: var(--link);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-hover);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.wrap {
  width: min(var(--max), 100% - 40px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 20;
  background: var(--surface);
  padding: 8px 14px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand:hover {
  color: var(--text);
}
.brand img {
  width: 34px;
  height: 34px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-left: auto;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 72px;
  background:
    radial-gradient(55% 75% at 80% 15%, rgba(177, 75, 244, 0.2), transparent 62%),
    radial-gradient(45% 60% at 5% 95%, rgba(255, 122, 138, 0.16), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.hero h1 {
  font-size: clamp(44px, 6.6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 18px 0 20px;
}
.grad {
  background: linear-gradient(120deg, #ff6a88, #b14bf4 45%, #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: dark) {
  .grad {
    background-image: linear-gradient(120deg, #ff8fa6, #c77dff 45%, #8b85ff);
  }
}
.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}
.soon {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

/* Phone mock-up in the hero */
.phone {
  justify-self: center;
  position: relative;
  width: min(330px, 100%);
  aspect-ratio: 9 / 18.5;
  border-radius: 44px;
  background: var(--phone);
  padding: 12px;
  box-shadow: var(--shadow);
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(180deg, #e9e7f7, #dcdaf0);
  font-size: 13px;
  color: #17171c;
}
@media (prefers-color-scheme: dark) {
  .screen {
    background: linear-gradient(180deg, #1d1c26, #15141c);
    color: #f1f1f5;
  }
}
.msg {
  margin: 12px 18px 0 18px;
  max-width: 76%;
  padding: 10px 13px;
  border-radius: 18px 18px 18px 6px;
  background: #fff;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
@media (prefers-color-scheme: dark) {
  .msg {
    background: #2a2934;
  }
}
.msg:first-child {
  margin-top: 52px;
}
.msg.me {
  margin-left: auto;
  border-radius: 18px 18px 6px 18px;
  background: #5b4ce0;
  color: #fff;
}
.msg mark {
  background: rgba(91, 76, 224, 0.22);
  color: inherit;
  border-radius: 4px;
  padding: 0 2px;
}
.copied {
  margin: 10px 18px 0;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(23, 23, 28, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.bubble {
  position: absolute;
  right: -14px;
  top: 42%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a8a, #b14bf4 50%, #4f46e5);
  box-shadow:
    0 0 0 6px rgba(255, 196, 61, 0.55),
    0 0 28px 8px rgba(255, 182, 39, 0.55);
  animation: glow 2.4s ease-in-out infinite;
}
.bubble::after {
  content: '';
  position: absolute;
  inset: 13px;
  background: url('bubble-glyph.svg') center / contain no-repeat;
}
@keyframes glow {
  50% {
    box-shadow:
      0 0 0 3px rgba(255, 196, 61, 0.3),
      0 0 12px 2px rgba(255, 182, 39, 0.3);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bubble {
    animation: none;
  }
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 16px 22px;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12);
}
@media (prefers-color-scheme: dark) {
  .sheet {
    background: #22212b;
  }
}
.sheet .grab {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(127, 127, 140, 0.4);
  margin: 0 auto 12px;
}
.sheet .type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a6a7a;
}
.sheet .value {
  font-size: 18px;
  font-weight: 800;
  margin: 2px 0 12px;
}
.acts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.act {
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(91, 76, 224, 0.1);
  color: #4433cc;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}
.act.primary {
  background: linear-gradient(135deg, #7a6cff, #4433cc);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  .act {
    background: rgba(138, 124, 255, 0.16);
    color: #c9c2ff;
  }
  .sheet .type {
    color: #a3a3b3;
  }
}

/* Sections */
section {
  padding: 76px 0;
}
section + section {
  border-top: 1px solid var(--line);
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.section-intro {
  color: var(--muted);
  max-width: 700px;
  margin: 0 0 34px;
  font-size: 18px;
}
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  margin: 0;
}
.card .eg {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  border-radius: 10px;
  padding: 7px 10px;
  display: inline-block;
}
.card .eg b {
  color: var(--gold);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--link);
  font-weight: 700;
  font-size: 13px;
}
.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--accent-soft);
  color: var(--link);
}
.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Keyboard mock-up */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.kbd {
  background: #d4d6dd;
  border-radius: 22px;
  padding: 10px 8px 12px;
  box-shadow: var(--shadow);
  color: #111;
  font-size: 15px;
}
@media (prefers-color-scheme: dark) {
  .kbd {
    background: #2b2b31;
    color: #f3f3f7;
  }
}
.kbd .field {
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-weight: 700;
}
@media (prefers-color-scheme: dark) {
  .kbd .field {
    background: #1b1b21;
  }
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #5242d6;
  vertical-align: -0.15em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.kbd .bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 2px 4px 10px;
}
.kbd .live {
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7a6cff, #4433cc);
  color: #fff;
  font-weight: 800;
}
.kbd .tool {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-weight: 700;
  color: #333;
}
@media (prefers-color-scheme: dark) {
  .kbd .tool {
    background: rgba(255, 255, 255, 0.1);
    color: #ddd;
  }
}
.keys {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
}
.keys span {
  position: relative;
  background: #fff;
  border-radius: 7px;
  text-align: center;
  padding: 9px 0;
  font-size: 15px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}
.keys span small {
  position: absolute;
  top: 1px;
  right: 4px;
  font-size: 9px;
  color: #777;
}
@media (prefers-color-scheme: dark) {
  .keys span {
    background: #4a4a52;
  }
  .keys span small {
    color: #bbb;
  }
}
.keys .half {
  grid-column: span 1;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.checks li {
  padding-left: 30px;
  position: relative;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.checks strong {
  display: block;
}
.checks span {
  color: var(--muted);
}

.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 18px 20px;
}
.notice.gold {
  border-left-color: var(--gold);
}
.notice p:last-child,
.notice ul:last-child {
  margin-bottom: 0;
}
.notice p:first-child {
  margin-top: 0;
}

/* Long-form pages (guide, policies) */
.page-head {
  padding: 60px 0 30px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 130% at 88% 0%, rgba(177, 75, 244, 0.14), transparent 62%);
}
.page-head .wrap {
  max-width: 780px;
}
.page-head h1 {
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.page-head .meta {
  color: var(--muted);
  margin: 0;
  max-width: 720px;
}
.prose {
  max-width: 780px;
  padding: 44px 0 84px;
}
.prose h2 {
  font-size: 26px;
  font-weight: 900;
  margin-top: 52px;
  padding-top: 8px;
}
.prose h3 {
  font-size: 19px;
  font-weight: 800;
  margin-top: 30px;
}
.prose li {
  margin-bottom: 6px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}
.table-wrap {
  overflow-x: auto;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.prose th {
  color: var(--muted);
  font-weight: 700;
}
.prose code,
.prose kbd {
  font-family: inherit;
  font-size: 0.92em;
  font-weight: 700;
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 6px;
}
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 24px;
}
.toc strong {
  display: block;
}
.toc ol {
  margin: 8px 0 0;
  padding-left: 20px;
  columns: 2 240px;
  column-gap: 32px;
}
.toc li {
  break-inside: avoid;
}
.steps {
  counter-reset: s;
  list-style: none;
  padding: 0;
}
.steps > li {
  counter-increment: s;
  position: relative;
  padding-left: 44px;
  margin-bottom: 14px;
}
.steps > li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--link);
  font-weight: 900;
  font-size: 15px;
}
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
summary {
  cursor: pointer;
  font-weight: 800;
}
details[open] summary {
  margin-bottom: 8px;
}
details p:last-child {
  margin-bottom: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
}
.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.btn.ghost:hover {
  background: var(--surface);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: 15px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.site-footer a {
  color: var(--muted);
}
.site-footer .brand {
  font-size: 16px;
  color: var(--text);
}
.site-footer .brand img {
  width: 26px;
  height: 26px;
}

@media (max-width: 860px) {
  .hero {
    padding: 48px 0 56px;
  }
  .hero .wrap,
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .phone {
    width: min(300px, 86%);
  }
  .site-header .wrap {
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 10px 0;
  }
  .site-header .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 4px 16px;
  }
  .nav a {
    font-size: 14px;
  }
  section {
    padding: 56px 0;
  }
}
