/*
 * Ploydr landing, redesign preview.
 * Every rule is scoped to `lp-` classes so the file can sit next to the portal's main.css without collisions.
 * Idea: the page is about one moment — your sentence turns into a running app. The teal light means "running"
 * and appears only where an app is live (hero result, step 3, final call to action). Monospace is used only
 * for real things a user would see in Claude or ChatGPT: tool names and addresses.
 */

@font-face { font-family: 'Funnel Display'; font-style: normal; font-display: swap; font-weight: 300 800;
  src: url(/fonts/funnel-display-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Funnel Display'; font-style: normal; font-display: swap; font-weight: 300 800;
  src: url(/fonts/funnel-display-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Funnel Sans'; font-style: normal; font-display: swap; font-weight: 300 800;
  src: url(/fonts/funnel-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Funnel Sans'; font-style: normal; font-display: swap; font-weight: 300 800;
  src: url(/fonts/funnel-sans-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

.lp {
  /* Palette: the brand's own violet and teal, the brand ink, and two quiet grounds. No gradients anywhere. */
  --violet: #4831fa;
  --violet-press: #3720e0;
  --teal: #01dbca;
  --ink: #081534;
  --ink-soft: #3b4663;
  --paper: #ffffff;
  --haze: #f0f1f9;
  --line: #dde0ed;
  --track: #cfc8ff;
  --on-violet-soft: #e1ddff;
  --on-ink-soft: #b4bbd3;
  --focus: var(--violet);

  --display: 'Funnel Display', 'Funnel Sans', system-ui, sans-serif;
  --text: 'Funnel Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Type scale, perfect fourth on a 17px base */
  --t-sm: .9375rem;
  --t-0: 1.0625rem;
  --t-1: 1.25rem;
  --t-2: 1.5rem;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --sec: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(.22, 1, .36, 1);

  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-0)/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp img { display: block; max-width: 100%; height: auto; }
:where(.lp) :is(h1, h2, h3) { font-family: var(--display); text-wrap: balance; }
:where(.lp) p { margin: 0; }
:where(.lp) a { color: var(--violet); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
.lp code { font-family: var(--mono); }
.lp :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.lp-top, .lp-hero, .lp-can, .lp-final, .lp-foot { --focus: var(--teal); }

.lp-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.lp-skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.lp-skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 12px; border: 1.5px solid transparent;
  font: 600 var(--t-0)/1 var(--text); text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.lp .lp-btn-light { background: var(--paper); color: var(--ink); }
.lp .lp-btn-light:hover { background: #e9e6ff; color: var(--ink); }
.lp .lp-btn-ghost { color: var(--paper); border-color: rgba(255, 255, 255, .5); }
.lp .lp-btn-ghost:hover { border-color: var(--paper); background: rgba(255, 255, 255, .08); color: var(--paper); }
.lp .lp-btn-violet { background: var(--violet); color: var(--paper); }
.lp .lp-btn-violet:hover { background: var(--violet-press); color: var(--paper); }
.lp-btn-sm { min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: var(--t-sm); }

/* ---------- Header (sits on the hero's violet) ---------- */
.lp-top { background: var(--violet); color: var(--paper); }
.lp-top-in { display: flex; align-items: center; gap: 40px; min-height: 84px; }
.lp-brand img { width: 112px; }
.lp-nav { display: flex; gap: 28px; }
.lp .lp-nav a, .lp .lp-link-quiet { color: var(--on-violet-soft); text-decoration: none; font-size: var(--t-0); }
.lp .lp-nav a:hover, .lp .lp-link-quiet:hover { color: var(--paper); text-decoration: underline; }
.lp-who { margin-left: auto; display: flex; align-items: center; gap: 20px; }

/* ---------- Hero ---------- */
.lp-hero { background: var(--violet); color: var(--paper); padding: clamp(32px, 5vw, 72px) 0 clamp(72px, 9vw, 132px); overflow: hidden; }
.lp-hero-in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(40px, 5vw, 88px); align-items: center; }
.lp-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.lp-badge { border: 1px solid rgba(255, 255, 255, .45); border-radius: 6px; padding: 3px 10px; font-size: .875rem; color: var(--on-violet-soft); }
.lp-kicker-text { color: var(--on-violet-soft); }
.lp-hero h1 {
  margin: 28px 0 28px;
  font-size: clamp(3rem, 1.1rem + 4.9vw, 5.9rem); font-weight: 650; line-height: .96; letter-spacing: -.03em;
}
@media (min-width: 640px) {
  .lp-hero-copy { container-type: inline-size; }
  .lp-hero h1 { font-size: clamp(3rem, 13.4cqi, 5.9rem); }
  .lp-h1-line { display: block; white-space: nowrap; }
}
.lp-lead { font-size: var(--t-1); line-height: 1.5; color: var(--on-violet-soft); max-width: 34em; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.lp-trust { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: var(--t-sm); color: var(--on-violet-soft); }
.lp-trust li { display: flex; align-items: center; gap: 10px; }
.lp-trust li::before { content: ''; width: 11px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg) translateY(-2px); }

/* The conversation: what the user actually sees in Claude or ChatGPT with the connector on. */
.lp-demo { justify-self: end; width: 100%; max-width: 500px; }
.lp-convo {
  background: var(--paper); color: var(--ink); border-radius: 22px; padding: 26px 24px 24px;
  box-shadow: 0 40px 80px -32px rgba(8, 21, 52, .55);
  font-size: var(--t-0);
}
.lp .lp-msg-you { width: fit-content; max-width: 86%; margin-left: auto; background: var(--haze); padding: 12px 16px; border-radius: 18px 18px 6px 18px; }
.lp-calls { list-style: none; margin: 18px 0 14px; padding: 0; display: grid; gap: 8px; font-size: .875rem; color: var(--ink-soft); }
.lp-calls li { display: flex; align-items: center; gap: 8px; }
.lp-calls li::before { content: ''; flex: none; width: 9px; height: 5px; margin: 0 4px 3px 2px; border-left: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: rotate(-45deg); }
.lp-calls code { font-size: .8125rem; color: var(--ink); background: var(--haze); padding: 2px 7px; border-radius: 6px; }
.lp-msg-ai { display: grid; gap: 10px; }
.lp-done { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: var(--ink-soft); }
.lp-done li::before { content: '✓'; color: var(--violet); font-weight: 700; margin-right: 10px; }
.lp-live { display: inline-flex; align-items: center; gap: 12px; width: fit-content; background: var(--ink); color: var(--paper); padding: 10px 16px 10px 14px; border-radius: 12px; }
.lp-live code { font-size: .9375rem; white-space: nowrap; }
.lp-convo .lp-msg-you + .lp-calls { margin-top: 18px; }
.lp-convo > .lp-msg-you:last-child { margin-top: 20px; }

.lp-light { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(1, 219, 202, .22); }

/* ---------- Sections ---------- */
.lp-sec { padding-block: var(--sec); }
.lp-sec-head { max-width: 40rem; margin-bottom: clamp(44px, 5vw, 72px); }
.lp-sec-head h2 { margin: 0 0 18px; font-size: clamp(2.3rem, 1.5rem + 2.9vw, 3.9rem); font-weight: 650; line-height: 1; letter-spacing: -.025em; }
.lp-sub { font-size: var(--t-1); line-height: 1.5; color: var(--ink-soft); max-width: 36em; }
:where(.lp) h3 { margin: 0 0 10px; font-size: var(--t-2); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }

/* How it works: a real sequence, so it is numbered. One continuous track runs under the numbers and ends at the light. */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-steps li { padding-right: clamp(24px, 4vw, 56px); }
.lp-step-num { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 2px solid var(--track); margin-bottom: 26px; font: 600 clamp(3.2rem, 2rem + 3vw, 4.6rem)/1 var(--display); color: var(--violet); letter-spacing: -.03em; }
.lp-step-num { position: relative; }
.lp-step-num .lp-light { position: absolute; right: -7px; bottom: -8px; width: 14px; height: 14px; }
.lp-steps p { color: var(--ink-soft); max-width: 32ch; }

/* What it can do: on ink. Each ability names the tools your AI calls for it. */
.lp-can { background: var(--ink); color: var(--paper); }
.lp-can .lp-sub { color: var(--on-ink-soft); }
.lp-abilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 48px; }
.lp-abilities article { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 26px; display: flex; flex-direction: column; }
.lp-abilities h3 { font-size: 1.4rem; }
.lp-abilities p { color: var(--on-ink-soft); max-width: 38ch; }
.lp .lp-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.lp-tools code { font-size: .8125rem; color: var(--teal); background: rgba(1, 219, 202, .07); border: 1px solid rgba(1, 219, 202, .3); padding: 4px 9px; border-radius: 6px; }

/* Pricing: five columns that line up row by row like a table, but each plan stays its own article with an h3. */
.lp-plans {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(8, auto);
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
}
.lp-plan { grid-row: span 8; display: grid; grid-template-rows: subgrid; padding: 28px 22px 30px; border-left: 1px solid var(--line); }
.lp-plan:first-child { border-left: 0; }
.lp-plan-free { background: var(--haze); }
.lp-plan h3 { margin: 0; font-size: 1.5rem; }
.lp-plan-price { margin: 14px 0 22px; font: 600 clamp(2.4rem, 1.8rem + 1.4vw, 3.1rem)/1 var(--display); letter-spacing: -.03em; }
.lp-plan-price span { font: 400 var(--t-sm)/1 var(--text); letter-spacing: 0; color: var(--ink-soft); }
.lp-plan ul { grid-row: span 6; display: grid; grid-template-rows: subgrid; list-style: none; margin: 0; padding: 0; font-size: var(--t-sm); }
.lp-plan li { padding: 11px 0; border-top: 1px solid var(--line); line-height: 1.35; }
.lp-plan-free li { border-top-color: #d6d9e8; }
.lp-yes::before { content: '✓'; color: var(--violet); font-weight: 700; margin-right: 8px; }
.lp-no { color: var(--ink-soft); }
.lp-no::before { content: '–'; margin-right: 8px; }

.lp-price-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; margin-top: 44px; align-items: start; }
.lp-price-act { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.lp-small { font-size: var(--t-sm); color: var(--ink-soft); max-width: 48ch; }
.lp-note { background: #fdf0cf; color: #4f3200; border-radius: 14px; padding: 18px 20px; font-size: var(--t-sm); line-height: 1.55; }

/* Two-column sections: heading stays in view while the list scrolls. */
.lp-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.lp-sticky { position: sticky; top: 40px; margin-bottom: 0; }

.lp-safe { background: var(--haze); }
.lp-safe-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; }
.lp-safe-list svg { width: 30px; height: 30px; color: var(--violet); margin-bottom: 16px; }
.lp-safe-list h3 { font-size: 1.3rem; }
.lp-safe-list p { color: var(--ink-soft); }

.lp-faq-list details { border-top: 1px solid var(--line); }
.lp-faq-list details:last-child { border-bottom: 1px solid var(--line); }
.lp-faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; }
.lp-faq-list summary::-webkit-details-marker { display: none; }
.lp-faq-list summary h3 { margin: 0; font-size: 1.25rem; }
.lp-faq-list summary::after {
  content: ''; flex: none; width: 16px; height: 16px; color: var(--violet);
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform .25s var(--ease);
}
.lp-faq-list details[open] summary::after { transform: rotate(45deg); }
.lp-faq-list summary:hover h3 { color: var(--violet); }
.lp-faq-list details p { padding: 0 0 26px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Final call to action ---------- */
.lp-final { background: var(--violet); color: var(--paper); padding-block: clamp(72px, 9vw, 128px); }
.lp-final-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 64px; align-items: end; }
.lp-final h2 { margin: 0 0 16px; font-size: clamp(2.8rem, 1.6rem + 4vw, 5.2rem); font-weight: 650; line-height: .95; letter-spacing: -.03em; }
.lp-final p { font-size: var(--t-1); color: var(--on-violet-soft); max-width: 30em; }
.lp-final-act { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.lp-final .lp-live { color: var(--paper); }

/* ---------- Footer ---------- */
.lp-foot { background: var(--ink); color: var(--on-ink-soft); padding: 72px 0 40px; font-size: var(--t-sm); }
.lp-foot-in { display: grid; grid-template-columns: 4fr 3fr 5fr; gap: 48px; }
.lp-foot-brand img { width: 112px; margin-bottom: 18px; }
.lp-foot-brand p { max-width: 28ch; }
.lp-foot h2 { margin: 0 0 14px; font: 600 var(--t-0)/1.2 var(--display); color: var(--paper); }
.lp-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-foot-legal ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.lp-foot-note { margin-bottom: 14px; font-size: .875rem; }
.lp .lp-foot a, .lp-linklike { color: #d7dcec; text-decoration: none; }
.lp .lp-foot a:hover, .lp-linklike:hover { color: var(--paper); text-decoration: underline; }
.lp-linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.lp-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 24px; font-size: .875rem; }

/* ---------- One orchestrated moment: the conversation plays once on load ---------- */
@media (prefers-reduced-motion: no-preference) {
  .lp-seq { animation: lp-in .5s var(--ease) both; }
  .lp-seq-type { animation: lp-in .3s var(--ease) .2s both; }
  .lp-type { display: inline-block; animation: lp-type 1.5s steps(48, end) .45s both; }
  .lp-seq-c1 { animation-delay: 2.1s; }
  .lp-seq-c2 { animation-delay: 2.5s; }
  .lp-seq-c3 { animation-delay: 2.9s; }
  .lp-seq-ai { animation-delay: 3.4s; }
  .lp-seq-li1 { animation-delay: 3.6s; }
  .lp-seq-li2 { animation-delay: 3.8s; }
  .lp-seq-li3 { animation-delay: 4s; }
  .lp-seq-url { animation-delay: 4.35s; }
  .lp-seq-msg2 { animation-delay: 5.3s; }
  .lp-light-pulse { animation: lp-pulse 2.4s ease-out 4.6s infinite; }
}
@keyframes lp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes lp-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(1, 219, 202, .55); }
  70% { box-shadow: 0 0 0 12px rgba(1, 219, 202, 0); }
  100% { box-shadow: 0 0 0 0 rgba(1, 219, 202, 0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .lp-nav { display: none; }
  .lp-hero-in { grid-template-columns: minmax(0, 1fr); }
  .lp-demo { justify-self: start; }
  .lp-abilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; border-bottom: 0; }
  .lp-plan { grid-row: auto; grid-template-rows: none; display: block; padding: 26px 22px 28px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .lp-plan:nth-child(3n + 1) { border-left: 0; }
  .lp-plan ul { grid-row: auto; grid-template-rows: none; display: block; }
  .lp-foot-in { grid-template-columns: 1fr 1fr; }
  .lp-foot-legal { grid-column: 1 / -1; }
  .lp-split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lp-sticky { position: static; margin-bottom: clamp(40px, 5vw, 56px); }
}
@media (max-width: 760px) {
  .lp-who .lp-link-quiet { font-size: var(--t-sm); }
  .lp-top-in { gap: 16px; min-height: 72px; }
  .lp-brand img { width: 96px; }
  .lp-convo { padding: 20px 16px; }
  .lp-live code { font-size: .8125rem; }
  .lp-steps { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .lp-steps li { padding-right: 0; }
  .lp-abilities, .lp-safe-list { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lp-plans { grid-template-columns: minmax(0, 1fr); }
  .lp-plan { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 16px; padding: 22px 4px; border-left: 0; }
  .lp-plan-free { padding-inline: 16px; }
  .lp-plan-price { margin: 0; font-size: 2.1rem; text-align: right; }
  .lp-plan ul { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
  .lp-plan li { border: 0; padding: 0; }
  .lp-price-foot, .lp-split, .lp-final-in { grid-template-columns: minmax(0, 1fr); }
  .lp-sticky { position: static; }
  .lp-foot-in { grid-template-columns: minmax(0, 1fr); }
}
