/* Overlay Pen — one small stylesheet for every page. */
:root {
  --bg: #fbfaff;
  --surface: #ffffff;
  --ink: #0e1124;
  --muted: #555b74;
  --line: #e7e5f3;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --pen: #ff3b30;
  --dark: #0b0d1c;
  --dark-2: #151833;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(16, 18, 48, .06), 0 12px 40px -12px rgba(36, 30, 120, .22);
  --max: 1180px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, sans-serif; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 99; border-radius: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: rgba(251, 250, 255, .82); border-bottom: 1px solid rgba(231, 229, 243, .7); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.nav { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); font-weight: 550; font-size: .97rem; }
.nav a.btn { color: #fff; }
.menu { display: none; margin-left: auto; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; }
@media (max-width: 880px) {
  .menu { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 12px; text-align: center; border: 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 13px 24px; font-weight: 650; font-size: 1rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 24px -8px rgba(79, 70, 229, .7);
  transition: transform .15s ease, box-shadow .15s ease; border: 0; cursor: pointer; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 30px -8px rgba(79, 70, 229, .8); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.store { background: #000; box-shadow: 0 8px 24px -10px rgba(0,0,0,.6); padding: 11px 22px; line-height: 1.15; text-align: left; }
.btn.store small { display: block; font-size: .72rem; font-weight: 500; opacity: .85; }
.btn.store b { font-size: 1.12rem; }
.btn.store[aria-disabled="true"] { cursor: default; }
.btn svg { flex: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto -10%; height: 900px; z-index: -1;
  background: radial-gradient(600px 380px at 15% 25%, rgba(124, 58, 237, .16), transparent 70%),
              radial-gradient(700px 420px at 85% 10%, rgba(79, 70, 229, .18), transparent 70%),
              radial-gradient(500px 300px at 60% 70%, rgba(255, 59, 48, .08), transparent 70%); }
.hero .grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero .grid { grid-template-columns: 1fr; gap: 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: 22px; }
.eyebrow i { font-style: normal; background: #eef0ff; color: var(--brand); border-radius: 999px; padding: 2px 10px; font-weight: 700; }
.lead { font-size: 1.22rem; color: var(--muted); max-width: 36em; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.chips li { font-size: .9rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.chips li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #e9fbe9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2316a34a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* The pen: a hand-drawn red stroke under a word, drawn in as the page loads. */
.ink { position: relative; white-space: nowrap; }
.ink svg { position: absolute; left: -4%; bottom: -.22em; width: 108%; height: .5em; overflow: visible; }
.ink path { fill: none; stroke: var(--pen); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420;
  animation: draw 1.1s .35s cubic-bezier(.6, .1, .2, 1) forwards; vector-effect: non-scaling-stroke; }
.ink.circle svg { left: -9%; top: -22%; bottom: auto; width: 118%; height: 144%; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ink path { animation: none; stroke-dashoffset: 0; } }

/* Hero visual: the broadcast with the iPad in front of it */
.stage { position: relative; }
.screen { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: #000; position: relative; }
.screen .bar { display: flex; gap: 6px; padding: 10px 12px; background: #1b1d2e; }
.screen .bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.screen .bar span:nth-child(2) { background: #febc2e; } .screen .bar span:nth-child(3) { background: #28c840; }
.ipad { position: absolute; width: 40%; left: -6%; bottom: -20%; border-radius: 18px; border: 9px solid #111; background: #111;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); transform: rotate(3deg); }
.ipad img { border-radius: 9px; }
@media (max-width: 980px) { .ipad { left: 2%; bottom: -16%; } .stage { margin-bottom: 70px; } }

/* Sections */
section { padding: 88px 0; }
.center { text-align: center; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 750; color: var(--brand); margin-bottom: 14px; display: block; }
.sub { color: var(--muted); font-size: 1.15rem; max-width: 40em; }
.center .sub { margin-left: auto; margin-right: auto; }
.alt { background: #f3f1fd; }
.dark { background: radial-gradient(900px 500px at 80% 0%, rgba(124, 58, 237, .35), transparent 60%), var(--dark); color: #e9e9f6; }
.dark h2, .dark h3 { color: #fff; }
.dark .sub, .dark p { color: #b6b8d2; }
.dark .kicker { color: #a5a2ff; }

/* "What is" answer box */
.answer { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 38px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.answer h2 { font-size: 1.7rem; }
.answer dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: .97rem; }
.answer dt { font-weight: 700; } .answer dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .answer { grid-template-columns: 1fr; padding: 26px; } }

/* Works with strip */
.works { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; margin-top: 26px; color: #6b7090; font-weight: 700; font-size: 1.05rem; }
.works span sup { color: var(--brand); }
.note { font-size: .85rem; color: var(--muted); }

/* Pillars: alternating text + screenshot */
.pillar { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; margin-top: 80px; }
.pillar:nth-child(even) .shot { order: -1; }
.pillar ul { padding-left: 0; list-style: none; margin: 18px 0 0; }
.pillar li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--muted); }
.pillar li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 10px; border-left: 3px solid var(--pen); border-bottom: 3px solid var(--pen); transform: rotate(-45deg); border-radius: 1px; }
.shot { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
@media (max-width: 900px) { .pillar { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; } .pillar:nth-child(even) .shot { order: 0; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; counter-reset: s; }
.step { background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 28px; counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; }
.step code { background: rgba(255,255,255,.1); padding: 2px 7px; border-radius: 6px; color: #fff; font-size: .9em; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.prompt { margin: 44px auto 0; max-width: 760px; background: #fff; color: var(--ink); border-radius: 18px; padding: 16px 18px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 20px 60px -20px rgba(124,58,237,.6); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .98rem; }
.prompt .dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 5px rgba(34,197,94,.18); flex: none; }
.prompt .url { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.prompt .caret { display: inline-block; width: 9px; height: 1.1em; background: var(--brand); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
.prompt .tag { font-family: inherit; font-size: .8rem; font-weight: 700; color: #16a34a; background: #e9fbe9; padding: 4px 10px; border-radius: 999px; }
@keyframes blink { 50% { opacity: 0; } }

/* Cards (use cases, features) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards, .cards.two { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: transform .2s ease; }
a.card:hover { text-decoration: none; transform: translateY(-3px); }
.card .img { aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.card ul { padding-left: 18px; margin: 4px 0 18px; color: var(--muted); font-size: .97rem; }
.card .more { margin-top: auto; font-weight: 700; color: var(--brand); }
.feat { background: var(--surface); border-radius: 18px; padding: 24px; box-shadow: inset 0 0 0 1px var(--line); }
.feat .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #eef0ff; color: var(--brand); margin-bottom: 14px; font-size: 1.25rem; }
.feat p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Table */
.table { overflow-x: auto; margin-top: 40px; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: .97rem; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #f6f5fe; font-size: .9rem; }
tbody th { font-weight: 650; }
td.yes { color: #15803d; font-weight: 650; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.fact { padding: 26px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.fact b { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1.1; margin-bottom: 6px; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* FAQ */
.faq { max-width: 860px; margin: 40px auto 0; }
.faq details { background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 12px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 680; padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.5rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* CTA band */
.band { border-radius: 30px; padding: 64px 48px; text-align: center; color: #fff;
  background: radial-gradient(500px 260px at 15% 0%, rgba(255,59,48,.35), transparent 70%), linear-gradient(135deg, #3730a3, #6d28d9); }
.band h2 { color: #fff; } .band p { color: #e0dcff; font-size: 1.15rem; }
.band .ctas { justify-content: center; margin-top: 26px; }

/* Article pages (use cases, guides, legal) */
.page-hero { padding: 64px 0 24px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.8rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: 8px; }
.prose ol li::marker { font-weight: 800; color: var(--brand); }
.prose figure { margin: 30px 0; }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.callout { background: #fff; border-left: 4px solid var(--brand); border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow); margin: 24px 0; }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.toc { background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); padding: 18px 22px; margin: 24px 0; font-size: .95rem; }
.toc ol { margin: 6px 0 0; padding-left: 20px; }

/* Footer */
footer { background: var(--dark); color: #aeb1cc; padding: 64px 0 40px; font-size: .95rem; }
footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
footer h4 { color: #fff; margin: 0 0 14px; font-size: .95rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 9px; }
footer a { color: #aeb1cc; }
footer .logo { color: #fff; margin-bottom: 12px; }
footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; }
@media (max-width: 860px) { footer .cols { grid-template-columns: 1fr 1fr; } }
