/* Colors and type from app/docs/mockups/source. */
:root {
  --lime: #D4FF00;
  --lime-soft: #E6FF7A;
  --ink: #0E1411;
  --ink-2: #3A444E;
  --muted: #4A5560;
  --mist-1: #F4F7F9;
  --mist-2: #E4E9EE;
  --mist-3: #D5DCE3;
  --blue: #2C5CE8;
  --coral: #FF7A59;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Geist', -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: radial-gradient(120% 60% at 50% 0%, var(--mist-1) 0%, var(--mist-2) 55%, var(--mist-3) 100%) fixed;
  background-color: var(--mist-2);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
}
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 760px; }

/* Header and footer */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; }
.mark { display: inline-flex; align-items: baseline; gap: 1px; font-size: 24px; text-decoration: none; color: var(--ink); }
.mark b { font-weight: 700; letter-spacing: -0.6px; }
.mark i { font-family: var(--serif); font-size: 28px; }
.top nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

footer { margin-top: 96px; padding: 40px 0 56px; border-top: 1px solid rgba(14, 20, 17, .1); font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--ink-2); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -1px; line-height: 1.02; margin: 0; text-wrap: balance; }
h1 em, h2 em { font-style: italic; }
h1 { font-size: clamp(44px, 7vw, 84px); }
h2 { font-size: clamp(34px, 4.6vw, 56px); }
h3 { font-size: 28px; letter-spacing: -0.5px; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 34em; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.pill { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 17px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; margin: 0 0 20px; }
.pill span { color: var(--lime); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; padding-block: 40px 72px; }
.hero .lede { margin: 20px 0 32px; }
.orb-box { display: flex; justify-content: center; }
.orb-home, .orb-box canvas.orb { width: min(640px, 92vw); aspect-ratio: 1; margin: -60px -40px; }
.orb-layer canvas.orb { width: min(640px, 92vw); aspect-ratio: 1; }
/* With orb-path.js the hero orb leaves its box and travels down the page between .orb-spot markers,
   in a window-sized layer behind everything; script places it each frame, so it trails the scroll a touch. */
.orb-layer { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb-layer canvas.orb { position: absolute; left: 0; top: 0; margin: 0; will-change: transform; }
.orb-layer .pill { position: absolute; left: 0; top: 0; margin: 0; white-space: nowrap; will-change: transform, opacity; }
.orb-home { display: none; }
.floating-on .orb-home { display: block; }
.orb-spot { position: absolute; width: 1px; height: 1px; pointer-events: none; }
main > section, .define, .cards .card, .device.duo, .ink, .split .card { position: relative; } /* anchors for .orb-spot */


.store { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 26px 0 20px; border-radius: 30px; background: var(--ink); color: #fff; text-decoration: none; }
.store small { display: block; font-size: 12px; color: rgba(255, 255, 255, .7); line-height: 1.1; }
.store strong { display: block; font-size: 18px; font-weight: 600; line-height: 1.2; }
.store .apple { flex: none; margin-top: -3px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* Sections */
section { padding-block: 72px; }
.glass { background: rgba(255, 255, 255, .58); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); border: 1px solid rgba(255, 255, 255, .75); border-radius: 32px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.card { padding: 30px; }
.card p { color: var(--ink-2); margin: 10px 0 0; }
.badge { width: 48px; height: 48px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; margin-bottom: 18px; }
.logos { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.logos img { width: 28px; height: 28px; object-fit: contain; }

/* Devices */
.devices { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: end; margin-top: 44px; }
.device { border: 10px solid var(--ink); border-radius: 46px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px -20px rgba(14, 20, 17, .35); }
.device img { border-radius: 36px; }
.device.phone { width: 300px; }
.device.duo { border-radius: 40px; }
.device.duo img { border-radius: 30px; }
figure { margin: 0; }
figcaption { margin-top: 16px; font-size: 15px; color: var(--muted); }
figcaption b { color: var(--ink); font-weight: 600; }

/* You always send */
.ink { background: var(--ink); color: #fff; border-radius: 40px; padding: 72px 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ink h2 em { color: var(--lime); }
.ink p { color: rgba(255, 255, 255, .78); }
.ink ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.ink li { display: flex; gap: 14px; align-items: flex-start; }
.ink li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--lime); }
.slide { margin-top: 28px; position: relative; height: 64px; border-radius: 32px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.slide span { position: absolute; left: 6px; top: 6px; width: 52px; height: 52px; border-radius: 26px; background: var(--lime); display: grid; place-items: center; }

/* Privacy summary and pricing */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.split .card h3 { font-size: 24px; }
.price { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.price strong { font-family: var(--serif); font-size: 52px; font-weight: 400; letter-spacing: -1px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 14px; background: var(--lime); font-size: 13px; font-weight: 600; }

/* Definition and quick answers */
.define { padding: 36px 40px; }
.define h2 { font-size: clamp(28px, 3.4vw, 40px); }
.define p { font-size: 19px; color: var(--ink-2); margin: 14px 0 0; max-width: 46em; }
.answers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; margin-top: 36px; }
.answers h3 { font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.answers p { color: var(--ink-2); margin: 8px 0 0; }

/* Document pages */
.doc { padding: 32px 0 0; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 12px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 40px; }
.doc h2 { font-size: 32px; letter-spacing: -0.5px; margin: 48px 0 12px; }
.doc h3 { font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: 0; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.callout { padding: 26px 28px; margin: 28px 0; font-size: 19px; color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: rgba(255, 255, 255, .58); border-radius: 20px; overflow: hidden; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid rgba(14, 20, 17, .08); }
th { font-weight: 600; background: rgba(255, 255, 255, .6); }
td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.mail { display: inline-flex; align-items: center; height: 56px; padding: 0 26px; border-radius: 28px; background: var(--lime); color: var(--ink); font-weight: 600; text-decoration: none; font-size: 18px; }
details { padding: 18px 24px; margin: 12px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details p { margin: 10px 0 0; }

@media (max-width: 860px) {
  .hero, .ink, .split, .devices { grid-template-columns: 1fr; }
  .hero { padding-top: 8px; gap: 8px; }
  .orb-box { order: -1; }
  .orb-home, .orb-box canvas.orb { width: min(420px, 96vw); margin: -40px 0 -20px; }
  .orb-layer canvas.orb { width: min(420px, 96vw); }
  .cards, .answers { grid-template-columns: 1fr; }
  .define { padding: 28px 24px; }
  .ink { padding: 48px 28px; border-radius: 32px; }
  .device.phone { width: min(300px, 100%); margin: 0 auto; }
  section { padding-block: 48px; }
}
@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
  .top nav { gap: 14px; font-size: 14px; }
  td:first-child { white-space: normal; }
}

/* Live demo in the iPhone frame: board 26 of the mockups at its native 466 x 678, scaled to fit */
.demo { aspect-ratio: 466 / 678; overflow: hidden; border-radius: 36px; position: relative; }
.dm-stage { --s: .6; position: absolute; left: 0; top: 0; width: 466px; height: 678px; transform: scale(var(--s)); transform-origin: 0 0; overflow: hidden;
  background: radial-gradient(120% 70% at 80% 0%, #F4F7F9 0%, #E4E9EE 55%, #D5DCE3 100%); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.4; }
.dm-stage .glass { border-radius: 22px; border: 0; }
.dm-stage p, .dm-stage h3 { margin: 0; }
.dm-feed, .dm-reply, .dm-sent { position: absolute; inset: 0; visibility: hidden; }
[data-view="feed"] .dm-feed, [data-view="reply"] .dm-reply, [data-view="sent"] .dm-sent { visibility: visible; }
[data-view="feed"] .dm-feed > *, [data-view="reply"] .dm-rhead, [data-view="reply"] .dm-msg, [data-view="sent"] .dm-done > * { animation: dm-rise .8s cubic-bezier(.2,.8,.2,1) both; }
[data-view="feed"] .dm-item { animation: dm-rise .5s cubic-bezier(.2,.8,.2,1) both; }
.dm-item:nth-child(2) { animation-delay: .18s !important; } .dm-item:nth-child(3) { animation-delay: .24s !important; } .dm-item:nth-child(4) { animation-delay: .3s !important; }

.dm-head { padding: 22px 20px 0; display: flex; align-items: flex-end; justify-content: space-between; }
.dm-date { font-size: 13px; font-weight: 500; color: var(--muted); }
.dm-count { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -.6px; line-height: 1; margin-top: 2px !important; }
.dm-av { width: 44px; height: 44px; border-radius: 22px; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-family: var(--serif); font-size: 20px; }
.dm-forb { position: absolute; right: -100px; top: 10px; width: 270px; height: 270px; z-index: 0; animation: dm-drift 7s ease-in-out infinite !important; }
.dm-list { position: absolute; top: 92px; left: 20px; right: 20px; z-index: 1; }
.dm-label { font-size: 12px; font-weight: 600; letter-spacing: .4px; color: var(--muted); margin: 18px 0 14px !important; }
.dm-stack { display: flex; flex-direction: column; }
.dm-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; margin-top: -14px; padding: 9px 14px 23px 10px; transition: opacity .4s, max-height .5s .2s, margin .5s .2s, padding .5s .2s; max-height: 90px; }
.dm-item:first-child { margin-top: 0; }
.dm-item:last-child { padding-bottom: 9px; }
.dm-item img { width: 24px; height: 24px; margin: 0 4px; object-fit: contain; }
.dm-txt { display: flex; flex-direction: column; min-width: 0; flex-grow: 1; }
.dm-txt b { font-weight: 600; }
.dm-txt span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-dot { width: 7px; height: 7px; border-radius: 4px; background: var(--coral); flex: none; animation: dm-blink 2.2s ease-in-out infinite; }
.cleared .dm-item[data-id="dana"] { display: none; }
.dm-start { position: relative; display: flex; align-items: center; justify-content: center; height: 54px; margin-top: 12px; border-radius: 27px; background: var(--lime); font-weight: 600; transition: transform .18s; }
.press .dm-start { transform: scale(.96); }
.cleared .dm-start-l { font-size: 0; } .cleared .dm-start-l::after { content: "Start with Priya"; font-size: 15px; }
.dm-go { position: absolute; right: 5px; top: 5px; width: 44px; height: 44px; border-radius: 22px; background: var(--ink); display: grid; place-items: center; }
.dm-more { margin-top: 22px !important; padding-left: 4px; font-size: 13px; color: var(--muted); }
.dm-toast { position: absolute; left: 16px; right: 16px; bottom: 30px; display: none; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 20px; border-radius: 26px; background: var(--ink); color: #fff; font-size: 13px; }
.dm-toast b { color: var(--lime); font-size: 14px; }
.cleared .dm-toast { display: flex; animation: dm-toast .5s cubic-bezier(.2,.8,.2,1) .3s both !important; }

.dm-rhead { position: absolute; top: 16px; left: 20px; right: 20px; display: flex; align-items: center; gap: 12px; }
.dm-back { width: 44px; height: 44px; border-radius: 22px; background: rgba(255,255,255,.55); display: grid; place-items: center; flex: none; }
.dm-init { width: 40px; height: 40px; border-radius: 20px; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-family: var(--serif); font-size: 17px; flex: none; }
.dm-who { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.dm-who span { font-family: var(--serif); font-size: 23px; line-height: 1.05; }
.dm-who small { font-size: 12px; color: var(--muted); }
.dm-rhead img { width: 24px; height: 24px; }
.dm-msg { position: absolute; top: 66px; left: 32px; right: 32px; height: 128px; padding: 10px 16px 14px; overflow: hidden; background: rgba(255,255,255,.45) !important; font-size: 14px; line-height: 1.45; color: #2A333C; }
.dm-ml { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px !important; }
.dm-card { position: absolute; top: 176px; left: 20px; right: 20px; z-index: 3; border-radius: 28px !important; padding: 16px 18px 8px; background: rgba(255,255,255,.82) !important; transform: translateY(40px); opacity: 0; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .5s; }
[data-view="reply"] .dm-card { transform: none; opacity: 1; transition-delay: .25s; }
.dm-status { display: flex; align-items: center; height: 36px; padding-left: 46px; font-size: 13px; font-weight: 600; }
.dm-status small { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); }
.dm-to { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid rgba(14,20,17,.08); font-size: 13px; color: var(--ink-2); }
.dm-body { margin-top: 10px; min-height: 124px; }
.dm-shims { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.dm-shims i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(14,20,17,.06) 0%, rgba(212,255,0,.55) 50%, rgba(14,20,17,.06) 100%); background-size: 200% 100%; animation: dm-shim 1.3s linear infinite; }
.writing .dm-shims { display: none; }
.dm-text { font-size: 15px; line-height: 1.5; white-space: pre-line; }
.writing:not(.ready) .dm-text::after { content: ""; display: inline-block; width: 2px; height: 18px; background: #2448C8; margin-left: 2px; vertical-align: -3px; animation: dm-caret .8s steps(2) infinite; }
.dm-tools { display: flex; gap: 2px; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(14,20,17,.08); }
.dm-tool { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; height: 58px; font-size: 12px; font-weight: 500; }
.dm-left { position: absolute; top: 494px; left: 20px; right: 20px; text-align: center; font-size: 12px; color: var(--muted); }
.dm-bottom { position: absolute; left: 20px; right: 20px; bottom: 26px; display: flex; flex-direction: column; gap: 12px; }
.dm-row { display: flex; gap: 8px; }
.dm-row span { flex: 1; display: grid; place-items: center; height: 48px; border-radius: 24px !important; font-size: 14px; font-weight: 600; opacity: .5; transition: opacity .4s; }
.ready .dm-row span { opacity: 1; }
.dm-sw { position: relative; height: 60px; border-radius: 30px; background: rgba(255,255,255,.36); box-shadow: inset 0 1px 1px rgba(255,255,255,.9), inset 0 0 0 1px rgba(255,255,255,.5), inset 0 -6px 14px rgba(14,20,17,.05); overflow: hidden; opacity: .55; transition: opacity .4s; }
.ready .dm-sw { opacity: 1; }
.dm-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 76px; border-radius: 30px; background: rgba(212,255,0,.62); transition: width .9s cubic-bezier(.5,0,.2,1); }
.dm-swl { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 600; }
.dm-knob { position: absolute; top: 4px; left: 4px; width: 72px; height: 52px; border-radius: 26px; background: rgba(255,255,255,.88); box-shadow: inset 0 1px 1px #fff, 0 2px 8px rgba(14,20,17,.12); display: grid; place-items: center; transition: left .9s cubic-bezier(.5,0,.2,1); }
.sliding .dm-fill { width: 100%; } .sliding .dm-knob { left: calc(100% - 76px); }

.dm-post { position: absolute; top: 92px; left: 34px; right: 34px; z-index: 4; }
[data-view="sent"] .dm-post { animation: dm-post .9s cubic-bezier(.2,.8,.2,1) .2s both; }
.dm-paper { border-radius: 26px !important; padding: 18px 20px 16px; background: rgba(255,255,255,.88) !important; box-shadow: 0 18px 40px rgba(14,20,17,.10); }
.dm-pto { padding-right: 64px; font-size: 12px; color: var(--muted); }
.dm-pt { margin-top: 4px !important; padding-right: 64px; font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.dm-pd { margin-top: 10px !important; font-size: 14px; line-height: 1.5; color: #2A333C; white-space: pre-line; }
.dm-via { display: flex; align-items: center; gap: 8px; margin-top: 12px !important; padding-top: 10px; border-top: 1px dashed rgba(14,20,17,.14); font-size: 12px; color: var(--muted); }
.dm-via img { width: 16px; height: 16px; }
.dm-stamp { position: absolute; left: 346px; top: 22px; width: 104px; height: 104px; z-index: 5; opacity: 0; }
[data-view="sent"] .dm-stamp { animation: dm-stamp .45s cubic-bezier(.3,1.4,.5,1) .95s both; }
.dm-ring { animation: dm-spin 24s linear infinite; }
.dm-done { position: absolute; top: 336px; left: 20px; right: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.dm-done h3 { font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1; letter-spacing: -1.2px; }
.dm-done > p { margin-top: 6px !important; font-size: 14px; color: var(--ink-2); }
.dm-next { align-self: stretch; margin-top: 22px; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; border-radius: 24px !important; text-align: left; }
.dm-next > span { display: flex; flex-direction: column; flex-grow: 1; }
.dm-next small { font-size: 12px; font-weight: 600; letter-spacing: .4px; color: var(--muted); }
.dm-next b { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.1; }
.dm-next span span { font-size: 13px; color: var(--muted); }
.dm-next i { width: 48px; height: 48px; border-radius: 24px; background: var(--lime); display: grid; place-items: center; }
[data-view="sent"] .dm-done > :nth-child(-n+2) { animation-delay: .24s; } [data-view="sent"] .dm-next { animation-delay: .4s; }

.dm-orb { position: absolute; left: 0; top: 0; width: 100px; height: 100px; z-index: 6; pointer-events: none; transition: transform .95s cubic-bezier(.2,.8,.2,1); }
[data-view="feed"] .dm-orb { opacity: 0; }

@keyframes dm-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dm-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-8px, 10px); } }
@keyframes dm-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes dm-shim { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes dm-caret { to { opacity: 0; } }
@keyframes dm-post { from { opacity: 0; transform: translateY(80px) scale(.9) rotate(3deg); } to { opacity: 1; transform: rotate(-2deg); } }
@keyframes dm-stamp { from { opacity: 0; transform: scale(1.9) rotate(-25deg); } to { opacity: 1; transform: rotate(-8deg); } }
@keyframes dm-spin { to { transform: rotate(360deg); } }
@keyframes dm-toast { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
