/* Pranan motion prototype. Tokens taken from the live pranan.ai home page. */
:root {
  --bg: #09090b;
  --ink: #fafafa;
  --muted: rgba(250, 250, 250, .62);
  --dim: rgba(250, 250, 250, .38);
  --line: rgba(255, 255, 255, .08);
  --violet: #8b5cf6;
  --violet-deep: #4c1d95;
  --lilac: #a78bfa;
  --lilac-soft: #c4b5fd;
  --green: #34d399;
  --card: #111114;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 4vw, 48px);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.7 1.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
main { position: relative; z-index: 1; }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.02; }
h1 em, h2 em { color: var(--lilac); }
h1 { font-size: clamp(46px, 8.2vw, 124px); }
h2 { font-size: clamp(34px, 4.2vw, 58px); }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }

.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--lilac); margin-bottom: 18px;
}
.fine { font-size: 13px; color: var(--dim); }
.fine-dim { margin-top: 6px; }
/* The trust line under the hero buttons: readable, with a visible link. */
.fine-trust { color: rgba(250, 250, 250, .72); }
.fine-trust a { text-decoration: underline; text-underline-offset: 3px; }
.hero .fine-trust + .fine { margin-top: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: 12px;
  font-weight: 600; font-size: 15px; border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.btn-primary { background: linear-gradient(135deg, var(--lilac), #6d3fe0); border-color: transparent; color: #fff; box-shadow: 0 10px 40px -10px rgba(139, 92, 246, .7); }
.btn-ghost { background: rgba(255, 255, 255, .02); }
.btn:hover { transform: translateY(-2px); border-color: rgba(167, 139, 250, .5); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 13.5px; border-radius: 10px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Frame and nav ---------- */
.frame {
  position: fixed; inset: 8px; z-index: 1001; pointer-events: none;
  border: 1px solid rgba(167, 139, 250, .2); border-radius: 18px;
  box-shadow: 0 0 0 24px var(--bg);
}
.frame-label {
  position: absolute; bottom: 12px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--dim);
  background: rgba(9, 9, 11, .7); padding: 4px 8px; border-radius: 6px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.frame-bl { left: 12px; }
.frame-br { right: 12px; display: flex; align-items: center; gap: 10px; color: var(--lilac); }
.frame-bar { display: block; width: 64px; height: 2px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; }
.frame-bar b { display: block; height: 100%; background: var(--lilac); transform-origin: left; transform: scaleX(0); }
html:not(.motion) .frame-br { display: none; }


/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(104px, 15vh, 160px) var(--gutter) 40px; text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 38%, rgba(139, 92, 246, .2), transparent 70%);
}
.hero-copy { position: relative; z-index: 2; max-width: 900px; }
.lede { font-size: clamp(17px, 1.7vw, 22px); color: var(--muted); max-width: 30em; margin: 22px auto 30px; line-height: 1.5; }
.hero .fine { margin-top: 18px; }
.hero .fine-dim { margin-top: 6px; }

/* ---------- Ghost (stamped) display type ---------- */
.ghost {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.ghost span {
  font-family: var(--serif); font-style: italic; font-size: clamp(120px, 25vw, 420px); line-height: 1;
  white-space: nowrap; color: transparent;
  background: linear-gradient(120deg, var(--violet), var(--violet-deep)); -webkit-background-clip: text; background-clip: text;
  opacity: .34; -webkit-mask-image: var(--noise); mask-image: var(--noise); mask-size: 320px;
  will-change: transform;
}
.ghost-hero { align-items: flex-end; }
.ghost-hero span { font-size: clamp(160px, 34vw, 560px); transform: translateY(18%); opacity: .22; }

/* ---------- Beats ---------- */
.beat { position: relative; display: flex; align-items: center; justify-content: center; padding: 9vh var(--gutter); }
.motion .beat { min-height: 110vh; justify-content: flex-start; padding: 0 var(--gutter); }
html:not(.motion) .beat-copy { width: min(100%, 620px); }
.beat-copy { position: relative; z-index: 2; width: min(100%, 372px); }
.beat-copy h2 { margin-bottom: 20px; }
.beat-copy p:not(.eyebrow) { color: var(--muted); font-size: 16px; }

/* ---------- The hero object: static figure by default ---------- */
.stage {
  position: relative; z-index: 2; display: grid; gap: 20px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 420px)); justify-content: center;
  padding: 0 var(--gutter) 40px;
}
.stage-veil { display: none; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 18px 22px 22px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
  font-size: 13.5px; line-height: 1.5; text-align: left; overflow: hidden;
}
.card-twin {
  border-color: rgba(167, 139, 250, .45);
  background: linear-gradient(160deg, #17122a 0%, #111114 46%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 90px -20px rgba(139, 92, 246, .55), inset 0 1px 0 rgba(196, 181, 253, .18);
}
.card-head { display: flex; align-items: center; gap: 12px; height: 40px; margin-bottom: 14px; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; }
.avatar-you { display: grid; place-items: center; background: #26262b; color: var(--muted); font-size: 11px; font-weight: 600; }
.card-who { display: flex; flex-direction: column; line-height: 1.25; }
.card-who b { font-weight: 600; font-size: 14.5px; }
.card-who i { font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.card-twin .card-who i { color: var(--lilac); }
.quote { font-family: var(--serif); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.32; margin-bottom: 16px; }
.pill {
  display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px; color: rgb(var(--c)); background: rgba(var(--c), .12);
}
.pill-green { --c: 52, 211, 153; }
.panel { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.panel-label { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.panel-label-ok { color: var(--green); margin: 14px 0 8px; }
.panel-label-ok::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: 1px; }

.bars li { display: grid; grid-template-columns: 84px 1fr 38px; align-items: center; gap: 12px; padding: 7px 0; color: var(--muted); }
.bars i { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bars b { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--violet-deep), var(--lilac)); }
.bars b[data-bar="82"] { width: 82%; } .bars b[data-bar="91"] { width: 91%; } .bars b[data-bar="38"] { width: 38%; }
.bars b[data-bar="67"] { width: 67%; } .bars b[data-bar="54"] { width: 54%; }
.bars em { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--ink); text-align: right; }

.contacts li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.contacts li:last-child { border-bottom: 0; }
.contacts .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.contacts .pill { margin-left: auto; }

.msg { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--muted); }
.msg-you { background: rgba(139, 92, 246, .1); border-color: rgba(167, 139, 250, .25); }
.msg-from { font-size: 11.5px; color: var(--dim); margin-bottom: 2px; }
.msg-from b { color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips span { font-family: var(--mono); font-size: 9.5px; padding: 3px 8px; border-radius: 999px; color: var(--lilac-soft); background: rgba(167, 139, 250, .12); white-space: nowrap; }
.draft { color: var(--ink); }
.draft .rest { opacity: 0; }
.draft .caret { display: inline-block; width: 1.5px; height: 1.05em; background: var(--lilac); vertical-align: -2px; margin-left: 1px; }
.panel-clone, .panel-row { display: none; }

/* ---------- Morning brief ---------- */
.brief { position: relative; padding: 14vh var(--gutter) 16vh; }
.section-title { text-align: center; max-width: 16em; margin: 0 auto clamp(36px, 6vh, 64px); }
.brief-grid { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 1040px; margin: 0 auto; align-items: start; }
.brief-col { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: rgba(255, 255, 255, .015); }
.brief-out { border-color: rgba(167, 139, 250, .28); background: rgba(139, 92, 246, .05); }
.brief-col ul { display: grid; gap: 10px; }
.brief-inbox li, .brief-out li, .panel-row {
  display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 12px; font-size: 14px; background: rgba(255, 255, 255, .02);
}
.brief-inbox li { color: var(--dim); }
.row-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.tag { font-family: var(--mono); font-size: 9.5px; padding: 3px 8px; border-radius: 999px; color: var(--lilac-soft); background: rgba(167, 139, 250, .12); white-space: nowrap; }
.tag-ok { color: var(--green); background: rgba(52, 211, 153, .12); }
.check { color: var(--green); font-size: 14px; }
.brief-arrow { text-align: center; font-size: 26px; color: var(--lilac); transform: rotate(90deg); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; background: rgba(139, 92, 246, .04); }
.marquee-track { display: flex; align-items: center; gap: 44px; width: max-content; animation: marquee 36s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(34px, 5vw, 68px); line-height: 1; white-space: nowrap; }
.marquee i { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--violet); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Plain sections ---------- */
.plain { position: relative; padding: 13vh var(--gutter); max-width: 1180px; margin: 0 auto; }
.grid-4, .grid-3 { position: relative; z-index: 2; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-3 { margin-top: 14px; }
.tile { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: rgba(255, 255, 255, .02); }
.tile h3 { margin-bottom: 8px; font-family: var(--serif); font-weight: 400; font-size: 26px; }
.tile-quiet h3 { font-family: var(--sans); font-weight: 600; font-size: 16px; }
.tile p { color: var(--muted); font-size: 14.5px; }
.praise { text-align: center; max-width: none; overflow: hidden; }
.praise .section-title, .praise-body { position: relative; z-index: 2; }
.praise-body { max-width: 44em; margin: 0 auto; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { border-top: 1px solid rgba(167, 139, 250, .35); padding: 22px 4px 0; }
.steps b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 54px; line-height: 1; color: var(--lilac); display: block; margin-bottom: 12px; }
.steps p { color: var(--muted); font-size: 15px; margin-top: 6px; }

.final { position: relative; text-align: center; padding: 16vh var(--gutter) 18vh; }
.final::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 55% at 50% 45%, rgba(139, 92, 246, .22), transparent 70%); pointer-events: none; }
.final > * { position: relative; }
.final-mark { width: 84px; height: 84px; margin-bottom: 26px; filter: drop-shadow(0 0 30px rgba(139, 92, 246, .8)); }
.final h2 { font-size: clamp(40px, 6.4vw, 96px); margin-bottom: 34px; }
.final .fine { margin-top: 18px; }


/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .brief-grid { grid-template-columns: 1fr auto 1.3fr; align-items: center; }
  .brief-arrow { transform: none; }
}
@media (max-width: 767px) {
  .frame-bl { display: none; }
  .frame { inset: 5px; border-radius: 14px; }
  .frame-br { right: 8px; bottom: 8px; }
  .cta-row .btn { flex: 1 1 100%; }
  .hero { padding-top: 96px; }
}
@media (max-width: 479px) {
  .brief-col { padding: 14px; }
  .brief-out li, .panel-row { padding: 0 12px; font-size: 13px; gap: 6px; }
  .brief-out .tag:not(.tag-ok), .panel-row .tag:not(.tag-ok) { display: none; }
}

/* =====================================================================
   MOTION LAYOUT: only when html.motion is set (scripts on, no reduced-motion)
   ===================================================================== */
.motion .stage {
  position: fixed; inset: 0; z-index: 20; display: block; padding: 0;
  pointer-events: none; perspective: 1500px; overflow: hidden;
}
.motion .stage-veil {
  display: block; position: absolute; top: 0; left: 0; right: 0; height: 0; opacity: 0;
  background: linear-gradient(var(--bg) 0, var(--bg) 84%, transparent);
}
.motion .card { position: absolute; top: 0; left: 0; will-change: transform, width, height; backface-visibility: hidden; visibility: hidden; }
.motion.ready .card { visibility: visible; }
.motion .card-twin .panel {
  position: absolute; inset: 72px 22px 18px; margin: 0; padding: 0; border: 0; display: block;
  opacity: 0; will-change: opacity, transform;
}
.motion .card-twin .panel-row { inset: 0; display: flex; border: 0; height: auto; background: none; padding: 0 16px; }
.motion .card-twin .bars b { width: 100%; transform-origin: left; transform: scaleX(0); }
.motion .contacts li { opacity: 0; }
.motion .dock-slot { border-style: dashed; border-color: rgba(167, 139, 250, .3); background: none; }
.motion .dock-slot > * { visibility: hidden; }

.motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.motion [data-reveal].in { opacity: 1; transform: none; }

@media (min-width: 1280px) {
  .motion .beat-left .beat-copy { margin-left: max(24px, calc(50vw - 690px)); }
  .motion .beat-right .beat-copy { margin-left: auto; margin-right: max(24px, calc(50vw - 690px)); }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .motion .beat-copy { width: min(40vw, 400px); }
}
@media (max-width: 767px) {
  .motion .beat { min-height: 100vh; min-height: 100svh; align-items: flex-end; padding-bottom: 7vh; }
  .motion .beat-copy { width: 100%; }
  .motion .beat-copy h2 { font-size: 31px; margin-bottom: 12px; }
  .motion .beat-copy p:not(.eyebrow) { font-size: 14.5px; line-height: 1.5; }
  .motion .beat .eyebrow { margin-bottom: 10px; }
  .motion .ghost span { opacity: .2; }
  .motion .card { font-size: 12px; padding: 12px 16px 14px; border-radius: 16px; }
  .motion .card-head { height: 32px; margin-bottom: 8px; gap: 10px; }
  .motion .avatar { width: 30px; height: 30px; }
  .motion .card-twin .panel { inset: 54px 16px 12px; }
  .motion .card-twin .panel-row { inset: 0; padding: 0 12px; }
  .motion .quote { font-size: 18px; margin-bottom: 10px; }
  .motion .bars li { padding: 5px 0; grid-template-columns: 74px 1fr 34px; }
  .motion .contacts li { padding: 6px 0; }
  .motion .msg { padding: 7px 10px; }
  .motion .chips { flex-wrap: nowrap; overflow: hidden; margin-top: 7px; }
  .motion .panel-label { margin-bottom: 8px; }
  .motion .panel-label-ok { margin: 9px 0 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .btn { transition: none; }
}

.motion .card-twin .panel-voice, .motion .card-twin .panel-rel { display: flex; flex-direction: column; justify-content: center; }

html:not(.motion) .panel-row { display: none; }

/* ---------- Split variants (split-a.html, split-b.html) ---------- */
.split-gap { position: relative; height: 0; }
.motion .split-gap { height: 120vh; }
.stage-burst, .stage-beam { display: none; }
.motion .stage-burst {
  display: block; position: absolute; width: 130vmin; height: 130vmin; opacity: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(196, 181, 253, .5), rgba(139, 92, 246, .28) 34%, rgba(76, 29, 149, .12) 60%, transparent);
  will-change: transform, opacity;
}
.motion .stage-beam {
  display: block; position: absolute; opacity: 0; border-radius: 4px; background: #fff;
  box-shadow: 0 0 18px 4px rgba(196, 181, 253, .95), 0 0 70px 18px rgba(139, 92, 246, .8);
  will-change: transform, opacity;
}

/* ---------- The dock ---------- */
.stage-ring, .dock-core { display: none; }
.motion .stage-ring {
  display: block; position: absolute; top: 0; left: 0; width: 80px; height: 80px; border-radius: 50%; opacity: 0;
  border: 2px solid rgba(196, 181, 253, .95);
  box-shadow: 0 0 24px 2px rgba(139, 92, 246, .8), inset 0 0 24px 2px rgba(139, 92, 246, .5);
  will-change: transform, opacity;
}
.motion .stage > .stage-burst { top: 0; left: 0; }
.motion .card-twin .dock-core { display: grid; place-items: center; position: absolute; inset: 0; opacity: 0; }
.motion .dock-core svg { height: 46%; max-height: 150px; aspect-ratio: 1; filter: drop-shadow(0 0 26px rgba(139, 92, 246, .9)); }
.motion .card-twin::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, #fff, #c4b5fd); opacity: var(--hit, 0);
}
.motion .brief-out { box-shadow: 0 0 calc(var(--lit, 0) * 110px) calc(var(--lit, 0) * -12px) rgba(139, 92, 246, .75); }

/* ---------- Inside the real site: shared.css supplies the header and footer ---------- */
html.motion { scroll-behavior: auto; }
.nav { border-radius: 18px 18px 0 0; }
.footer { position: relative; z-index: 1; background: var(--bg); }
.footer { padding-bottom: 76px; }
.menu-open .frame-label { display: none; }
@media (max-width: 768px) and (max-height: 820px) {
  /* Short phones: stop the last menu link colliding with the sign-up buttons. */
  .nav-links.open { justify-content: flex-start !important; padding-top: 96px !important; gap: 20px !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sr-only:focus { position: fixed; top: 12px; left: 12px; width: auto; height: auto; margin: 0; padding: 10px 16px; clip: auto; z-index: 2000; background: var(--lilac); color: #000; border-radius: 8px; }
