/* Tokens from the motionsites.ai hero prompt (light only) */
:root {
  --background: 0 0% 100%;
  --foreground: 210 14% 17%;
  --primary: 210 14% 17%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 96%;
  --secondary-foreground: 0 0% 9%;
  --muted: 0 0% 96%;
  --muted-foreground: 184 5% 55%;
  --accent: 239 84% 67%;
  --accent-foreground: 0 0% 100%;
  --border: 0 0% 90%;
  --ring: 239 84% 67%;
  --radius: 0.5rem;
  --font-display: "Instrument Serif", serif;
  --font-body: "Inter", sans-serif;
  --shadow-dashboard: 0 25px 80px -12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.06);
  /* Scrub's own highlight colours */
  --pii: 343 72% 86%;
  --pii-fg: 340 30% 15%;
  --ph: 152 47% 83%;
  --ph-fg: 155 66% 21%;
  --ok: 148 55% 40%;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: hsl(var(--background)); color: hsl(var(--foreground)); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

/* The page scrolls: the hero, then the feature sections */
[hidden] { display: none !important; }
.page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* Navbar */
/* Stays at the top while scrolling, frosted so it reads over every band */
.navbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: hsl(0 0% 100% / .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid hsl(252 30% 92% / .8); }
section[id] { scroll-margin-top: 64px; } /* section links land below the bar */
@media (min-width: 768px) { .navbar { padding: 14px 48px; } }
@media (min-width: 1024px) { .navbar { padding: 14px 80px; } }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em; }
.nav-links { display: none; gap: 32px; font-size: 14px; }
.nav-links a { color: hsl(var(--muted-foreground)); transition: color .15s; }
.nav-links a:hover { color: hsl(var(--foreground)); }
.nav-links a[aria-current="page"] { color: hsl(var(--foreground)); font-weight: 500; }
@media (min-width: 768px) { .nav-links { display: flex; } }
/* Phones: the page links open from a hamburger, in a panel under the bar */
.menu-btn { display: none; }
@media (max-width: 767px) {
  .navbar { gap: 10px; }
  .btn-nav { margin-left: auto; }
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
  @media (hover: hover) { .menu-btn:hover { background: hsl(252 30% 95%); } } /* not on touch: a tap would leave it grey */
  .menu-btn { -webkit-tap-highlight-color: transparent; }
  .menu-btn:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
  .menu-btn span { display: block; height: 2px; border-radius: 2px; background: hsl(var(--foreground)); transition: transform .2s, opacity .2s; }
  .navbar.is-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navbar.is-open .menu-btn span:nth-child(2) { opacity: 0; }
  .navbar.is-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* Always laid out on phones, but folded up out of sight until opened: it unrolls downward */
  .nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px 24px 14px; background: #fff; border-bottom: 1px solid hsl(252 30% 92%); box-shadow: 0 16px 30px -18px rgba(0,0,0,.25); font-size: 16px;
    clip-path: inset(0 0 100% 0); opacity: 0; visibility: hidden; pointer-events: none;
    transition: clip-path .28s cubic-bezier(.2,.7,.2,1), opacity .2s, visibility 0s linear .28s; }
  .navbar.is-open .nav-links { clip-path: inset(0 0 -40px 0); opacity: 1; visibility: visible; pointer-events: auto; transition: clip-path .32s cubic-bezier(.2,.7,.2,1), opacity .15s, visibility 0s; }
  .nav-links a { transform: translateY(-6px); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
  .navbar.is-open .nav-links a { transform: none; }
  .nav-links a { padding: 13px 0; border-top: 1px solid hsl(252 30% 95%); color: hsl(var(--foreground)); }
  @media (prefers-reduced-motion: reduce) { .nav-links, .nav-links a, .menu-btn span { transition: none !important; } }
  .nav-links a:first-child { border-top: 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 14px; font-weight: 500; transition: opacity .15s; }
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-primary:hover { opacity: .9; }
.btn-nav { height: 36px; padding: 0 20px; }
.btn-lg { height: 44px; padding: 0 24px; }
.btn-play { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: hsl(var(--background)); color: hsl(var(--foreground)); box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.btn-play:hover { background: hsl(var(--background) / .8); }
.btn:focus-visible, .btn-play:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }

/* Hero */
.hero { position: relative; flex: 1; background: radial-gradient(ellipse 70% 60% at 50% 100%, hsl(252 70% 95%), transparent 70%); min-height: 0; display: flex; justify-content: center; padding: 0 16px; }
.hero-content { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; width: 100%; padding-top: 24px; }
@media (min-width: 768px) { .hero-content { padding-top: 40px; } }

.badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 24px; padding: 6px 16px; border: 1px solid hsl(var(--border)); border-radius: 999px; background: hsl(var(--background)); color: hsl(var(--muted-foreground)); font-size: 14px; }

.headline { margin: 0; max-width: 36rem; text-align: center; font-family: var(--font-display); font-weight: 400; font-size: 3rem; line-height: .95; letter-spacing: -0.025em; }
@media (min-width: 768px) { .headline { font-size: 3.75rem; } }
@media (min-width: 1024px) { .headline { font-size: 5rem; } }
.headline em { font-style: italic; }

.subheadline { margin: 16px 0 0; max-width: 650px; text-align: center; color: hsl(var(--muted-foreground)); font-size: 1rem; line-height: 1.625; }
@media (min-width: 768px) { .subheadline { font-size: 1.125rem; } }

.cta-row { margin-top: 20px; display: flex; align-items: center; gap: 12px; }

/* Product preview: frosted glass, clipped by the page at the bottom */
.preview { margin-top: 56px; width: 100%; max-width: 64rem; }
.glass { border-radius: 16px; overflow: visible; padding: 12px; background: hsl(252 60% 97% / .7); border: 1px solid hsl(252 40% 92%); box-shadow: var(--shadow-dashboard); backdrop-filter: blur(12px); }
@media (min-width: 768px) { .glass { padding: 16px; } }

.glass { position: relative; }
.lights { display: inline-flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; }
.lights i:nth-child(1) { background: #ff5f57; } .lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }

/* V2 stage: the Mac (menu bar + Claude) | the border Scrub guards | Claude's servers */
.stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); text-align: left; user-select: none; }
@media (min-width: 860px) { .stage { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 300px); } }

.mac { position: relative; display: flex; flex-direction: column; border-radius: 12px; border: 1px solid hsl(var(--border)); background: linear-gradient(160deg, hsl(252 60% 93%), hsl(215 60% 93%)); padding-bottom: 14px; }
.menubar { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; height: 28px; padding: 0 12px; border-radius: 12px 12px 0 0; background: hsl(0 0% 100% / .75); backdrop-filter: blur(8px); font-size: 12px; }
.mb-left { display: flex; gap: 14px; white-space: nowrap; overflow: hidden; }
.mb-left span { color: hsl(var(--foreground) / .8); }
@media (max-width: 480px) { .mb-left span { display: none; } }
.mb-right { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.mb-glyph { opacity: .75; }
.mb-scrub { position: relative; display: flex; }
.mb-scrub-btn { position: relative; display: grid; place-items: center; width: 26px; height: 22px; padding: 0; border: 0; border-radius: 5px; background: transparent; cursor: pointer; }
.mb-scrub-btn:hover, .mb-scrub.is-open .mb-scrub-btn { background: hsl(0 0% 0% / .08); }
.mb-scrub-btn:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 1px; }
.mb-dot { position: absolute; right: 2px; bottom: 2px; width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--ok)); box-shadow: 0 0 0 1.5px #fff; transition: background .25s; }
.stage.is-paused .mb-dot { background: hsl(0 0% 62%); }

.scrub-pop { position: absolute; z-index: 6; top: calc(100% + 6px); right: -10px; width: 230px; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; background: hsl(0 0% 100% / .96); border: 1px solid hsl(var(--border)); box-shadow: 0 12px 30px -8px rgba(0,0,0,.2); white-space: normal; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.mb-scrub.is-open .scrub-pop { opacity: 1; transform: none; }
.pop-title { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.pop-state { margin-left: auto; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; background: hsl(var(--ph) / .7); color: hsl(var(--ph-fg)); }
.stage.is-paused .pop-state { background: hsl(var(--secondary)); color: hsl(var(--muted-foreground)); }
.pop-line { font-size: 12px; color: hsl(var(--muted-foreground)); }

/* The Claude window: warm, plain, recognisably a chat app (not Anthropic's artwork) */
.claude { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 14px 14px 0; border-radius: 10px; background: hsl(48 33% 98%); border: 1px solid hsl(40 15% 88%); box-shadow: 0 10px 30px -10px rgba(0,0,0,.18); overflow: hidden; }
.cl-bar { position: relative; display: flex; align-items: center; height: 32px; padding: 0 12px; border-bottom: 1px solid hsl(40 15% 90%); }
.cl-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: hsl(30 10% 35%); }
.cl-body { display: flex; flex-direction: column; gap: 12px; padding: 16px; flex: 1; min-height: 0; overflow: hidden; font-size: 13.5px; line-height: 1.6; color: hsl(30 10% 18%); }
@media (min-width: 768px) { .cl-body { padding: 20px 28px; } }
.msg-user { align-self: flex-end; max-width: 85%; padding: 8px 12px; border-radius: 12px; background: hsl(42 22% 91%); }
.msg-ai { max-width: 95%; transition: opacity .3s; }
.composer { display: flex; align-items: flex-end; gap: 10px; margin-top: auto; padding: 10px 10px 10px 14px; border-radius: 14px; background: #fff; border: 1px solid hsl(40 15% 86%); box-shadow: 0 2px 8px -4px rgba(0,0,0,.1); }
.comp-text { flex: 1; min-height: 22px; }
.comp-ph { color: hsl(30 6% 60%); }
.caret { display: none; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -2px; background: currentColor; }
.composer.is-typing .caret { display: inline-block; }
.composer.is-typing .comp-ph { display: none; }
.send { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: hsl(30 10% 22%); color: #fff; }
.zone-label { margin: 10px 0 0 16px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: hsl(250 20% 45%); }

/* The border between this Mac and the internet: where Scrub acts */
.border { position: relative; display: grid; place-items: center; height: 56px; }
.border-line { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed hsl(250 30% 78%); }
@media (min-width: 860px) { .border { height: auto; } .border-line { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed hsl(250 30% 78%); } }
.border-badge { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid hsl(var(--border)); box-shadow: 0 4px 14px -4px rgba(0,0,0,.18); }
.border-badge.is-pulse { animation: pulse .5s ease-out; }
@keyframes pulse { 40% { transform: scale(1.18); box-shadow: 0 0 0 8px hsl(var(--ph) / .5); } }

/* Claude's servers: outside the Mac */
.cloud { overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; border: 1px dashed hsl(220 15% 78%); background: hsl(220 25% 97%); font-size: 13px; line-height: 1.6; }
.cloud p { margin: 0; }
.cloud-head { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.cloud-sub { margin-top: -8px !important; font-size: 12px; color: hsl(var(--muted-foreground)); }
.cloud-msg { padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid hsl(var(--border)); transition: opacity .3s; }
.cloud-msg.is-ghost { opacity: 0; }
.cloud-tag { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.typing-dots { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: hsl(0 0% 70%); animation: dots 1s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; } .typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 50% { opacity: .3; transform: translateY(-2px); } }

/* The message in transit */
.packet { position: absolute; z-index: 5; top: 0; left: 0; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid hsl(var(--border)); box-shadow: 0 14px 34px -8px rgba(0,0,0,.25); font-size: 12.5px; line-height: 1.6; pointer-events: none; }

/* Client details: pink while real, green once a placeholder */
.tok { display: inline; padding: 1px 5px; border-radius: 4px; font-weight: 600; white-space: nowrap; background: hsl(var(--pii) / .8); color: hsl(var(--pii-fg)); transition: background .3s, color .3s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tok.is-ph { background: hsl(var(--ph)); color: hsl(var(--ph-fg)); white-space: nowrap; }
.tok.is-swapping { display: inline-block; animation: swap .35s ease-in-out; }
@keyframes swap { 50% { transform: scaleY(.6); filter: blur(2px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .tok, .mb-dot, .scrub-pop, .cloud-msg, .msg-ai { transition: none; } .tok.is-swapping, .border-badge.is-pulse, .typing-dots i { animation: none; } }

/* Phones: the round trip runs top to bottom, so let the page scroll
   instead of clipping the servers panel off the screen */
@media (max-width: 859px) {
  .page { height: auto; overflow: visible; }
  .hero { padding-bottom: 32px; }
  .cl-body { min-height: 0; }
}

/* "Try it" hint: says the menu-bar icon is clickable */
.hint { position: absolute; right: 4px; bottom: 100%; display: flex; align-items: flex-start; gap: 2px; white-space: nowrap; font-family: var(--font-display); font-style: italic; font-size: 19px; line-height: 1; color: hsl(250 35% 45%); pointer-events: none; }
.hint svg { margin-top: 4px; }
.mb-scrub-btn::after { content: ""; position: absolute; inset: -3px; border-radius: 7px; border: 2px solid hsl(250 60% 65%); opacity: 0; }
.stage[data-demo=chat]:not(.is-touched) .mb-scrub-btn::after { animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { opacity: .8; transform: scale(.9); } 70%, 100% { opacity: 0; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .stage[data-demo=chat]:not(.is-touched) .mb-scrub-btn::after { animation: none; opacity: .7; } }
@media (min-width: 860px) { .preview { margin-top: 72px; } }
.hero { padding-bottom: 48px; }

/* What reached Claude's servers */
.cloud-state { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: hsl(var(--ph) / .8); color: hsl(var(--ph-fg)); }
.cloud-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cloud-state.is-exposed { background: hsl(var(--pii)); color: hsl(var(--pii-fg)); }
.cloud-state.is-in { animation: pop-in .3s ease-out; }
@keyframes pop-in { from { opacity: 0; transform: scale(.85); } }
.cloud-note { display: block; margin-top: 8px; }

/* Feature sections below the hero */
.feature { display: flex; flex-direction: column; align-items: center; padding: 96px 16px; background: radial-gradient(ellipse 70% 50% at 50% 100%, hsl(252 70% 96%), transparent 70%); }
/* Section bands: white and pale lavender alternate, the signup is dark */
.feature.is-tint { background: radial-gradient(ellipse 70% 50% at 50% 100%, hsl(252 70% 93%), transparent 70%), hsl(252 60% 97.5%); }
.feature.is-tint .glass { background: hsl(0 0% 100% / .55); border-color: hsl(252 40% 90%); }
.feature.is-dark { background: radial-gradient(ellipse 60% 50% at 50% 0%, hsl(252 35% 26%), transparent 70%), hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.feature.is-dark .eyebrow { color: hsl(250 70% 80%); }
.feature.is-dark .booking-card { color: hsl(var(--foreground)); border-color: transparent; box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); }
.feature.is-compact { padding-top: 72px; padding-bottom: 72px; }
.soon-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: hsl(38 90% 90%); color: hsl(30 70% 32%); font-size: 10.5px; letter-spacing: .04em; vertical-align: 1px; }
.feature-head { display: flex; flex-direction: column; align-items: center; max-width: 42rem; text-align: center; }
.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: hsl(250 35% 50%); }
.feature-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 2.5rem; line-height: 1; letter-spacing: -0.02em; }
@media (min-width: 768px) { .feature-title { font-size: 3.5rem; } }
.feature-title em { font-style: italic; }

/* A PDF attachment: the chip in Claude, and the document itself */
.file-icon { flex: none; display: inline-grid; place-items: center; width: 26px; height: 30px; border-radius: 4px; background: hsl(4 70% 52%); color: #fff; font-size: 8.5px; font-weight: 700; letter-spacing: .03em; }
.file { display: flex; align-items: center; gap: 10px; max-width: 270px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid hsl(40 15% 86%); font-size: 12px; line-height: 1.4; }
.file-name { display: flex; flex-direction: column; }
.file-name small { font-size: 11px; color: hsl(var(--muted-foreground)); }
.msg-user .file { margin-bottom: 6px; }
.msg-text { display: block; }
.comp-attach { display: block; margin-bottom: 8px; }
.comp-attach.is-in { animation: drop .35s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }

.doc { position: relative; display: block; overflow: hidden; padding: 10px 12px 12px; border-radius: 8px; background: #fff; border: 1px solid hsl(var(--border)); font-size: 11.5px; line-height: 1.5; }
.doc-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid hsl(var(--border)); font-size: 11px; color: hsl(var(--muted-foreground)); }
.doc-top .file-icon { width: 18px; height: 21px; font-size: 6.5px; }
.doc-title { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; }
.doc-row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; padding: 2px 0; }
.doc-row > span:first-child { color: hsl(var(--muted-foreground)); }
.doc-lines { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.doc-lines i { display: block; height: 5px; border-radius: 3px; background: hsl(0 0% 92%); }
.doc-lines i:nth-child(2) { width: 85%; } .doc-lines i:nth-child(3) { width: 60%; }
.packet.is-doc { padding: 0; background: transparent; border-color: transparent; box-shadow: none; }
.packet.is-doc .doc { box-shadow: 0 14px 34px -8px rgba(0,0,0,.25); }
/* Scrub reading the page as it crosses the border */
.doc::after { content: ""; position: absolute; left: 0; right: 0; top: -40px; height: 40px; background: linear-gradient(transparent, hsl(var(--ph) / .55)); border-bottom: 2px solid hsl(var(--ok)); opacity: 0; pointer-events: none; }
.packet.is-scanning .doc::after { animation: scan 1.3s ease-in-out; }
@keyframes scan { 0% { top: -40px; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .packet.is-scanning .doc::after, .cloud-state.is-in, .comp-attach.is-in { animation: none; } }

/* Fixed heights, sized for each demo's tallest moment, so nothing
   resizes while it plays. Side by side: one height for the stage.
   Stacked (phones): one for each side. */
@media (min-width: 860px) { .stage { height: var(--stage-h); } }
@media (max-width: 859px) { .mac { height: var(--mac-h); } .cloud { height: var(--cloud-h); } }
/* Measured 30 Nov 2026 at 860px and 375px wide, on and off, with the
   three-line message box, plus ~15px spare */
.stage[data-demo=chat] { --stage-h: 500px; --mac-h: 505px; --cloud-h: 355px; }
.stage[data-demo=pdf] { --stage-h: 640px; --mac-h: 495px; --cloud-h: 560px; }
/* A token mid-swap becomes inline-block; keep it within the line so rows don't twitch */
.doc .tok { line-height: 1.25; vertical-align: baseline; }

/* Second half of a trip: the packet reshapes into where it lands.
   Same 650ms and easing as the move itself. */
.packet { transition: padding .65s, background-color .65s, border-color .65s, box-shadow .65s, font-size .65s; transition-timing-function: cubic-bezier(.45,0,.35,1); }
.packet .doc { transition: box-shadow .65s; }
.packet .p-extra { display: block; max-height: 0; margin: 0; opacity: 0; overflow: hidden; transition: max-height .65s, margin .65s, opacity .65s; }
/* Landing in a servers-side box (.cloud-msg) */
.packet.is-landing-box, .packet.is-doc.is-landing-box { padding: 10px 12px; background: #fff; border-color: hsl(var(--border)); box-shadow: none; font-size: 13px; }
.packet.is-landing-box .doc { box-shadow: none; }
.packet.is-landing-box .p-extra { max-height: 4em; opacity: 1; }
.packet.is-landing-box .p-extra.cloud-tag { margin-bottom: 2px; }
.packet.is-landing-box .p-extra.cloud-note { margin-top: 8px; }
/* Landing as Claude's reply: plain text, no box */
.packet.is-landing-plain { padding: 0; background: transparent; border-color: transparent; box-shadow: none; font-size: 13.5px; }
.packet.is-landing-plain .p-extra { max-height: 4em; opacity: 1; } /* the email draft's buttons grow in */
.packet.is-landing-plain .p-extra.draft-actions { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .packet, .packet .doc, .packet .p-extra { transition: none; } }

/* Email: Claude's Gmail step, and the email itself (a .doc) */
.msg-tool { display: flex; flex-direction: column; gap: 6px; max-width: 92%; }
.msg-tool.is-in { animation: drop .35s ease-out; }
.msg-tool .doc { max-width: 330px; }
.tool-line { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: hsl(30 6% 45%); }
.mail-icon { flex: none; color: hsl(4 65% 50%); }
.mail .doc-row { grid-template-columns: 3.5em minmax(0, 1fr); }
.mail .doc-title { margin: 6px 0 2px; }
.draft .doc-row { grid-template-columns: auto minmax(0, 1fr); }
.reply-intro { display: block; margin-bottom: 8px; }
.draft-actions { display: block; margin-top: 8px; }
.btn-mini { display: inline-block; margin-right: 6px; padding: 3px 10px; border-radius: 7px; border: 1px solid hsl(var(--border)); background: #fff; font-size: 12px; line-height: 1.5; color: hsl(30 6% 25%); }
.btn-mini.is-primary { background: hsl(30 6% 15%); border-color: hsl(30 6% 15%); color: #fff; }
/* Three lines either way, so the swap doesn't change its height */
.mail-body { display: block; min-height: 4.5em; }
/* Measured 30 Nov 2026: needs 565px side by side, 600 + 483px stacked */
.stage[data-demo=email] { --stage-h: 755px; --mac-h: 785px; --cloud-h: 600px; }
@media (prefers-reduced-motion: reduce) { .msg-tool.is-in { animation: none; } }
/* Measured 30 Nov 2026: needs 524px side by side, 603 + 465px stacked */
.stage[data-demo=context] { --stage-h: 585px; --mac-h: 660px; --cloud-h: 485px; }

/* Claude's window while waiting for the reply */
.cl-body { position: relative; }
.msg-wait { position: absolute; left: 16px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: hsl(30 8% 50%); }
@media (min-width: 768px) { .msg-wait { left: 28px; } }
.wait-spark { width: 12px; height: 12px; border-radius: 3px; background: hsl(250 45% 62%); animation: spin 1.4s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes spin { 50% { transform: rotate(90deg) scale(.7); border-radius: 50%; opacity: .6; } 100% { transform: rotate(180deg); } }
.wait-text { background: linear-gradient(90deg, hsl(30 8% 55%) 0%, hsl(30 8% 82%) 50%, hsl(30 8% 55%) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
/* The reply being written on the servers side */
.stream-caret { display: inline-block; width: 6px; height: 12px; margin-left: 2px; vertical-align: -1px; border-radius: 1px; background: hsl(var(--foreground) / .5); }
@media (prefers-reduced-motion: reduce) { .wait-spark, .wait-text { animation: none; } }

/* Book a demo */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.booking-card { width: 100%; max-width: 34rem; margin-top: 48px; padding: 24px; border-radius: 16px; background: hsl(var(--background)); border: 1px solid hsl(252 40% 92%); box-shadow: var(--shadow-dashboard); text-align: left; }
@media (min-width: 768px) { .booking-card { padding: 32px; } }
.booking-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; font-size: 13px; font-weight: 500; }
.field small { font-weight: 400; color: hsl(var(--muted-foreground)); }
.field input { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid hsl(var(--border)); background: #fff; font: inherit; font-size: 15px; font-weight: 400; color: hsl(var(--foreground)); }
.field input::placeholder { color: hsl(0 0% 70%); }
.field input:focus { outline: none; border-color: hsl(var(--ring)); box-shadow: 0 0 0 3px hsl(var(--ring) / .15); }
.field-row { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 560px) { .field-row { flex-direction: row; } }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.booking-form .btn { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.booking-form .btn:disabled { opacity: .6; cursor: default; }
.form-error { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 13px; background: hsl(var(--pii) / .5); color: hsl(var(--pii-fg)); }
.form-note { margin: -4px 0 0; text-align: center; font-size: 12px; color: hsl(var(--muted-foreground)); }
.done-title { margin: 0; font-family: var(--font-display); font-size: 2rem; line-height: 1.1; outline: none; }
.calendar iframe { display: block; width: 100%; height: 660px; border: 0; border-radius: 12px; }
.calendar-empty { margin: 0; padding: 48px 16px; border-radius: 12px; border: 1px dashed hsl(var(--border)); text-align: center; font-size: 13px; color: hsl(var(--muted-foreground)); }
.booking { padding-bottom: 120px; }

/* The message box keeps one height while a long prompt is typed: three
   lines, scrolling to the newest, like a real text box */
.comp-lines { display: block; height: 4.8em; overflow: hidden; }

/* After joining: the optional call */
.btn-outline { height: 40px; padding: 0 18px; border: 1px solid hsl(var(--border)); background: #fff; color: hsl(var(--foreground)); font-family: inherit; cursor: pointer; }
.btn-outline:hover { background: hsl(var(--secondary)); }
.btn-outline:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.call-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 12px 12px 16px; border-radius: 12px; background: hsl(252 60% 97%); border: 1px solid hsl(252 40% 92%); }
.call-offer p { margin: 0; font-size: 14px; line-height: 1.6; color: hsl(var(--muted-foreground)); }
.call-offer strong { color: hsl(var(--foreground)); font-weight: 600; }

/* How it works: three numbered steps */
.steps { display: grid; gap: 12px; width: 100%; max-width: 60rem; margin: 40px 0 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.steps li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid hsl(252 40% 92%); font-size: 15px; font-weight: 500; }
.step-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: hsl(252 60% 95%); color: hsl(250 35% 45%); font-size: 13px; font-weight: 600; }

/* Compliance: one card per obligation */
.cards { display: grid; gap: 12px; width: 100%; max-width: 60rem; margin-top: 40px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.card { padding: 20px 22px; border-radius: 14px; background: #fff; border: 1px solid hsl(252 40% 92%); }
.card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.card { display: flex; flex-direction: column; }
.card blockquote { flex: 1; margin: 4px 0 0; padding-left: 12px; border-left: 2px solid hsl(252 40% 88%); font-size: 14px; line-height: 1.6; font-style: italic; color: hsl(var(--foreground) / .8); }
.card cite { display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: hsl(var(--muted-foreground)); }
.card-link { margin-top: 14px; font-size: 13px; font-weight: 500; color: hsl(250 35% 45%); }
.card-link:hover { text-decoration: underline; }
.card h3 small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: hsl(250 35% 50%); }
.card p { margin: 0; font-size: 14px; line-height: 1.55; color: hsl(var(--muted-foreground)); }
.group-label { width: 100%; max-width: 60rem; margin: 48px 0 -24px; display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.group-label::after { content: ""; flex: 1; height: 1px; background: hsl(252 30% 90%); }
.group-label + .cards { margin-top: 40px; }
@media (min-width: 640px) { .card.is-wide { grid-column: 1 / -1; } }
.card .card-date { align-self: flex-start; margin: 0 0 14px; padding: 1px 8px; border-radius: 999px; background: hsl(252 60% 95%); color: hsl(250 35% 45%); font-size: 10.5px; font-weight: 600; line-height: 1.6; }
.fine { margin: 20px 0 0; font-size: 12px; color: hsl(var(--muted-foreground)); text-align: center; }

/* Availability: computers and apps, each with its status */
.avail { display: grid; gap: 16px; width: 100%; max-width: 60rem; margin-top: 40px; }
@media (min-width: 768px) { .avail { grid-template-columns: 1fr 1fr; align-items: start; } }
.avail-col { padding: 20px 22px 8px; border-radius: 14px; background: #fff; border: 1px solid hsl(252 40% 92%); }
.avail-col h3 { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.avail-list { margin: 0; padding: 0; list-style: none; }
.avail-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid hsl(252 30% 94%); }
.avail-list li:first-child { border-top: 0; }
.avail-name { font-size: 15px; font-weight: 500; }
.avail-list li.avail-group { display: block; }
.avail-sub { margin: 8px 0 0; padding: 0 0 0 14px; list-style: none; border-left: 2px solid hsl(252 40% 92%); }
.avail-sub li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 0; font-size: 14px; }
.avail-sub .avail-detail { display: inline; margin-left: 4px; }
.avail-detail { display: block; font-size: 12.5px; font-weight: 400; color: hsl(var(--muted-foreground)); }
.status { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.status.is-ready { background: hsl(var(--ph) / .8); color: hsl(var(--ph-fg)); }
.status.is-soon { background: hsl(38 90% 92%); color: hsl(30 70% 32%); }
.status.is-dev { background: hsl(252 50% 95%); color: hsl(250 35% 45%); }

/* FAQ: tap a question to open it */
.faq { width: 100%; max-width: 44rem; margin-top: 40px; display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 14px; background: #fff; border: 1px solid hsl(252 40% 92%); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 15px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 20px; font-weight: 400; line-height: 1; color: hsl(250 35% 50%); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; border-radius: 14px; }
.faq details p { margin: 0; padding: 0 22px 20px; font-size: 14.5px; line-height: 1.65; color: hsl(var(--muted-foreground)); }
.faq code { padding: 1px 6px; border-radius: 4px; background: hsl(var(--ph)); color: hsl(var(--ph-fg)); font-size: .9em; font-weight: 600; }

/* Separate pages (How it works, Compliance, Availability, FAQ) */
.subpage-main { flex: 1; display: flex; flex-direction: column; }
.feature.subpage { flex: 1; padding-top: 72px; padding-bottom: 96px; background: radial-gradient(ellipse 70% 50% at 50% 100%, hsl(252 70% 96%), transparent 70%); }
@media (min-width: 768px) { .feature.subpage { padding-top: 96px; } }
.cta-band { gap: 24px; padding-top: 72px; padding-bottom: 72px; }
.btn-light { background: #fff; color: hsl(var(--primary)); }
.btn-light:hover { opacity: .9; }
