/* WotPan AI site: white page, sharp black text, dark UI, and the logo's
   cyan -> purple -> pink gradient as the accent. */
:root {
  /* WotPan AI's logo gradient: cyan -> purple -> pink. */
  --cyan: #00e5ff;
  --purple: #8a2be2;
  --pink: #ff007f;
  --grad: linear-gradient(100deg, #00e5ff 0%, #8a2be2 50%, #ff007f 100%);
  --grad-soft: linear-gradient(100deg, rgba(0,229,255,.14), rgba(138,43,226,.14), rgba(255,0,127,.14));
  --accent: #8a2be2;      /* one solid colour, where a gradient can't go */
  --accent-ink: #6a1bb8;  /* purple text on light backgrounds */
  --ink: #0b0c0e;
  --ink-soft: #5b616b;
  --line: #e4e7eb;
  --panel: #f6f7f8;
  --dark: #111214;
  --dark-2: #1a1c1f;
  --radius: 16px;
  --wrap: 1180px;
}

/* Inter, self-hosted (no third-party font requests; OFL: assets/fonts/OFL.txt). */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/Inter-latin.woff2") format("woff2");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; padding-top: 64px; color: var(--ink);
  /* The logo's colours, mixed softly into the page all the way down
     (static gradients: no scroll cost). */
  background-color: #fff;
  background-image:
    radial-gradient(1000px 760px at -6% 16%, rgba(0,229,255,.18), rgba(0,229,255,0) 70%),
    radial-gradient(1000px 760px at 106% 26%, rgba(255,0,127,.14), rgba(255,0,127,0) 70%),
    radial-gradient(1100px 820px at 8% 44%, rgba(138,43,226,.14), rgba(138,43,226,0) 70%),
    radial-gradient(1000px 760px at 100% 58%, rgba(0,229,255,.17), rgba(0,229,255,0) 70%),
    radial-gradient(1100px 820px at 0% 74%, rgba(255,0,127,.13), rgba(255,0,127,0) 70%),
    radial-gradient(1000px 760px at 96% 88%, rgba(138,43,226,.14), rgba(138,43,226,0) 70%);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-soft); }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Buttons and badges */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px;
  border-radius: 999px; font-weight: 700; text-decoration: none; line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer; font-size: 15px;
  transition: transform .12s, background .15s, box-shadow .15s;
}
.btn:active { transform: scale(.98); }
/* Hidden on phones by assets/get-app.js (over .btn's display). */
[data-phone][hidden] { display: none !important; }
.btn-grad {
  background: var(--grad); background-size: 140% 100%; background-position: 0 0; color: #fff;
  text-shadow: 0 1px 2px rgba(40,0,80,.35);
  box-shadow: 0 10px 26px -10px rgba(138,43,226,.75), 0 0 0 1px rgba(255,255,255,.15) inset;
  transition: background-position .4s, transform .12s, box-shadow .2s;
}
.btn-grad:hover { background-position: 100% 0; box-shadow: 0 14px 30px -10px rgba(255,0,127,.6); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #24272c; }
.btn-soft { background: var(--panel); color: var(--ink); }
.btn-soft:hover { background: #eceef1; }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: 999px; font-weight: 700; font-size: 13px; line-height: 1.3;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.badge-glow { background: var(--grad-soft); border-color: rgba(138,43,226,.25); color: var(--accent-ink); }
.badge-new { background: var(--ink); color: #fff; border-color: transparent; }
.badge-new::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 8px var(--pink); }
/* A glowing gradient border (on any element with a background). */
.glow-border { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }

/* Nav */
/* Fixed on top, on its own layer, with a near-solid frosted colour rather
   than a live backdrop blur: the page now has videos playing under it, and a
   blur re-computed over a playing video on every frame made the bar blink
   while scrolling. Nothing about it changes on scroll. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: rgba(255,255,255,.93);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 1px 12px -6px rgba(40,0,80,.12);
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout paint;
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) {
  position: relative; padding: 6px 0; text-decoration: none;
  color: #3a3e45; font-weight: 550; font-size: 15px; letter-spacing: -0.006em;
  transition: color .2s ease;
}
.nav-links a:not(.btn)::after { /* the hover underline, in the brand gradient */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after, .nav-links a:not(.btn):focus-visible::after { transform: scaleX(1); }
.nav-links a:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; border-radius: 4px; }
.brand { letter-spacing: -0.015em; }
.nav-links .btn { padding: 9px 18px; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; margin-top: -64px; padding: 148px 0 40px; text-align: center; }
/* The cloudy aura: blurred cyan / purple / pink blobs, drifting slowly. */
.mesh { position: absolute; inset: -10% -10% auto; height: 760px; z-index: -1; pointer-events: none; }
.mesh i {
  /* Soft by nature (radial gradients): nothing to re-blur each frame. */
  position: absolute; width: 760px; height: 620px; border-radius: 50%; opacity: .5;
  will-change: transform; animation: drift 18s ease-in-out infinite alternate;
}
.mesh i:nth-child(1) { left: -4%; top: -8%; background: radial-gradient(closest-side, rgba(0,229,255,.85), rgba(0,229,255,0)); }
.mesh i:nth-child(2) { left: 28%; top: -18%; background: radial-gradient(closest-side, rgba(138,43,226,.7), rgba(138,43,226,0)); animation-delay: -6s; }
.mesh i:nth-child(3) { right: -6%; top: -2%; background: radial-gradient(closest-side, rgba(255,0,127,.62), rgba(255,0,127,0)); animation-delay: -12s; }
.mesh::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 40%, #fff 92%); }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(40px, 30px, 0) scale(1.12); } }
.hero .badges { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
h1 { font-size: clamp(38px, 6.2vw, 74px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 auto 20px; max-width: 14em; font-weight: 850; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); margin: 0 auto 30px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.note { margin-top: 14px; color: var(--ink-soft); font-size: 14px; }

/* The editor mock (pure CSS) */
.mock-wrap { position: relative; max-width: 940px; margin: 54px auto 0; }
.mock {
  border-radius: 20px; overflow: hidden; background: var(--dark); text-align: left;
  box-shadow: 0 40px 80px -30px rgba(11,12,14,.45), 0 0 0 1px rgba(11,12,14,.06);
}
.mock-top { display: flex; align-items: center; gap: 8px; padding: 11px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.mock-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-top span { margin-left: auto; font-size: 12px; font-weight: 700; color: #fff; background: var(--grad); padding: 4px 12px; border-radius: 999px; }
.mock-body { display: grid; grid-template-columns: 60px 1fr; }
.mock-tools { background: #fff; border-right: 1px solid var(--line); padding: 12px 0; display: grid; gap: 12px; justify-items: center; align-content: start; }
.mock-tools b { width: 28px; height: 28px; border-radius: 9px; background: var(--panel); }
.mock-tools b:first-child { background: var(--grad-soft); outline: 2px solid var(--purple); }
.mock-stage { padding: 22px; display: grid; place-items: center; }
.mock-frame { width: 74%; aspect-ratio: 16 / 9; border-radius: 10px; position: relative; overflow: hidden; }
.mock-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: #0b0c10; }
.mock-frame em {
  position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); font-style: normal;
  font-weight: 800; color: #fff; font-size: clamp(11px, 1.6vw, 18px); text-shadow: 0 2px 8px rgba(0,0,0,.55);
  white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis;
}
.mock-timeline { background: var(--dark-2); padding: 12px 14px 16px; position: relative; overflow: hidden; }
.mock-track { display: flex; gap: 3px; height: 28px; margin-top: 6px; }
.mock-track b { border-radius: 6px; background: linear-gradient(90deg, #12406b, #2b2f7a); }
.mock-track.text b { background: #7a4e2b; height: 16px; }
.mock-track.audio b { background: #4a3c7a; height: 18px; }
.mock-head { /* spans the timeline; moved with transform (no layout per frame) */
  position: absolute; top: 4px; bottom: 6px; left: 0; right: 0; pointer-events: none;
  will-change: transform; animation: scrub 8s linear infinite;
}
.mock-head::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.mock-head::after { content: ""; position: absolute; top: -2px; left: -5px; width: 12px; height: 8px; border-radius: 0 0 6px 6px; background: var(--grad); }
@keyframes scrub { from { transform: translate3d(4%, 0, 0); } to { transform: translate3d(94%, 0, 0); } }
.float-chip {
  position: absolute; z-index: 2; will-change: transform; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  border-radius: 14px; background: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 16px 34px -14px rgba(11,12,14,.35); animation: bob 5s ease-in-out infinite;
}
.float-chip i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--grad); color: #fff; font-style: normal; font-size: 12px; }
.float-chip.c1 { left: -24px; top: 26%; }
.float-chip.c2 { right: -28px; top: 14%; animation-delay: -1.6s; }
.float-chip.c3 { right: 6%; bottom: -18px; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -8px, 0); } }

/* Scenes (drawn in CSS: no photos needed) */
.scene { position: absolute; inset: 0; background: linear-gradient(160deg, #3a6b8f 0%, #a8c8de 42%, #e9e2d0 58%, #4b6b45 100%); }
.scene::before { /* mountains */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 22%; height: 46%;
  background: linear-gradient(140deg, #5b7f97, #2f4b5f);
  clip-path: polygon(0 100%, 18% 38%, 30% 62%, 48% 10%, 64% 52%, 78% 26%, 100% 100%);
}
.scene::after { /* lake */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24%;
  background: linear-gradient(180deg, #7aa6b8, #3e6b5b);
}
.busy { position: absolute; inset: 0; background:
  repeating-linear-gradient(45deg, #c8b49a 0 18px, #b29a7c 18px 36px),
  linear-gradient(#000, #000); }
.clean { position: absolute; inset: 0; background: linear-gradient(135deg, #e3fbff, #efe4ff 55%, #ffe3f1); }
.person { /* a simple portrait, drawn */
  position: absolute; left: 50%; bottom: 0; width: 46%; height: 82%; transform: translateX(-50%);
}
.person .head { position: absolute; left: 50%; top: 4%; width: 38%; aspect-ratio: 1 / 1.15; transform: translateX(-50%); border-radius: 48% 48% 44% 44%; background: #e3b190; box-shadow: inset -6px -8px 0 rgba(0,0,0,.06); }
.person .hair { position: absolute; left: 50%; top: 1%; width: 44%; aspect-ratio: 1 / .6; transform: translateX(-50%); border-radius: 50% 50% 38% 38%; background: #2d2220; }
.person .body { position: absolute; left: 50%; bottom: 0; width: 100%; height: 50%; transform: translateX(-50%); border-radius: 46% 46% 0 0; background: linear-gradient(160deg, #1f2937, #374151); }

/* Sections */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 42em; margin: 0 auto 44px; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 850; }
h3 { margin: 0; }

/* Smart editor & generator: a big card + a list that switches it. */
.smart { display: grid; grid-template-columns: 0.9fr 1.5fr 0.9fr; gap: 28px; align-items: center; }
.smart h2 { font-size: clamp(30px, 3.4vw, 44px); }
.smart-card { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: var(--dark); box-shadow: 0 30px 60px -28px rgba(11,12,14,.45); }
.smart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.smart-list button {
  all: unset; cursor: pointer; display: block; font-size: clamp(18px, 1.8vw, 24px); font-weight: 750;
  color: #b7bcc4; line-height: 1.35; transition: color .15s;
}
.smart-list button[aria-selected="true"], .smart-list button:hover { color: var(--ink); }
.smart-list button[aria-selected="true"] { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.smart-list button[aria-selected="true"]::after { content: " +"; color: var(--pink); }
.smart-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; color: #fff; font-size: 14px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }

/* Visual previews (shared by the smart card and the tools) */
.vis { position: absolute; inset: 0; display: none; }
.vis.on { display: block; }
.ba { position: absolute; inset: 0; }
.ba .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--cut, 50%)); }
.ba .line { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 10px rgba(0,0,0,.35); pointer-events: none; }
.ba .line::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink); font-weight: 800; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(0,0,0,.55); color: #fff; letter-spacing: .02em; }
.tag.l { left: 12px; } .tag.r { right: 12px; background: var(--grad); }
.dull { filter: saturate(.35) brightness(.82) contrast(.85); }
.blurred { filter: blur(3.5px) saturate(.8); }
.cap {
  position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); white-space: nowrap;
  font-weight: 850; font-size: clamp(16px, 2.6vw, 28px); color: #fff; text-shadow: 0 3px 10px rgba(0,0,0,.6);
}
.cap span { animation: word 3.6s infinite; opacity: .55; }
.cap span:nth-child(2) { animation-delay: .6s; } .cap span:nth-child(3) { animation-delay: 1.2s; }
.cap span:nth-child(4) { animation-delay: 1.8s; } .cap span:nth-child(5) { animation-delay: 2.4s; }
@keyframes word { 0%, 12% { opacity: 1; color: var(--cyan); } 20%, 100% { opacity: .55; color: #fff; } }
.cap-tag { position: absolute; top: 14px; left: 14px; }
.k4 { position: absolute; right: 14px; bottom: 14px; padding: 6px 12px; border-radius: 10px; background: #fff; font-weight: 900; color: var(--ink); }
.prompt {
  position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%); width: 82%;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,.95); color: var(--ink); font-weight: 600; font-size: 14px;
}
.prompt .typed { overflow: hidden; white-space: nowrap; clip-path: inset(0 100% 0 0); animation: type 5s steps(34) infinite; }
@keyframes type { 0% { clip-path: inset(0 100% 0 0); } 55%, 85% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
.prompt b { margin-left: auto; flex: none; padding: 6px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 13px; }
.ai-art { position: absolute; inset: 0; background:
  radial-gradient(circle at 30% 30%, #ffd166 0 12%, transparent 13%),
  radial-gradient(ellipse at 50% 120%, #6d28d9 0 40%, transparent 41%),
  linear-gradient(180deg, #0f172a, #4c1d95 55%, #f472b6); animation: art 5s infinite; }
@keyframes art { 0%, 40% { opacity: .35; transform: scale(1.08); } 60%, 100% { opacity: 1; transform: scale(1); } }
.wave { position: absolute; left: 8%; right: 8%; top: 50%; height: 40%; transform: translateY(-50%); display: flex; align-items: center; gap: 4px; }
.wave i { flex: 1; height: 100%; border-radius: 3px; background: var(--grad); transform: scaleY(.2); will-change: transform; animation: eq 1.2s ease-in-out infinite; }
@keyframes eq { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
.tracks { position: absolute; left: 8%; right: 8%; bottom: 8%; display: grid; gap: 6px; }
.tracks div { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.08); color: #e8eaed; font-size: 13px; }
.tracks div b { color: var(--cyan); }
.on-dark { background: var(--dark); }

/* AI editing tools: numbered groups, items switch the preview. */
.tools-box { background: rgba(255,255,255,.55); border: 1px solid rgba(138,43,226,.08); border-radius: 26px; padding: 34px; }
.tools-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 34px; align-items: start; }
.group { border-bottom: 1px solid var(--line); padding: 18px 0; }
.group:first-child { padding-top: 0; }
.group-head { display: flex; align-items: baseline; gap: 18px; }
.group-head span { font-size: 15px; color: var(--ink-soft); font-weight: 700; font-variant-numeric: tabular-nums; }
.group-head h3 { font-size: 24px; letter-spacing: -.01em; }
.group ul { list-style: none; margin: 12px 0 0 38px; padding: 0; display: grid; gap: 4px; }
.group button { all: unset; cursor: pointer; display: block; padding: 8px 12px; border-radius: 12px; font-weight: 650; color: var(--ink-soft); }
.group button:hover { color: var(--ink); background: rgba(255,255,255,.7); }
.group button[aria-selected="true"] { color: var(--ink); background: #fff; box-shadow: 0 6px 18px -10px rgba(11,12,14,.25); }
.group button[aria-selected="true"] { border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.group button[aria-selected="true"]::before { content: "● "; color: var(--pink); font-size: 11px; vertical-align: 2px; }
.group button small { display: none; font-weight: 500; color: var(--ink-soft); margin-top: 4px; font-size: 14px; line-height: 1.45; }
.group button[aria-selected="true"] small { display: block; }
/* Sticky while its list scrolls: its own layer, so the animations inside
   don't repaint (and flash) the page around it. */
.tools-preview { position: sticky; top: 90px; aspect-ratio: 4 / 3.4; border-radius: 22px; overflow: hidden; background: var(--dark); box-shadow: 0 30px 60px -30px rgba(11,12,14,.45); transform: translateZ(0); isolation: isolate; contain: paint; }

/* Before / after showcase cards */
.showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.show-card { border-radius: 22px; padding: 10px; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 24px 44px -30px rgba(40,0,80,.55); }
.show-card .frame { position: relative; aspect-ratio: 4 / 4.6; border-radius: 15px; overflow: hidden; background: var(--dark); }
.show-card h3 { font-size: 17px; margin: 14px 8px 4px; }
.show-card p { margin: 0 8px 8px; color: var(--ink-soft); font-size: 14px; }
/* Real before/after pictures: each fills the card, the same crop on both
   sides so the divider lines up. */
.show-card .dimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.show-card .fmt-video { z-index: auto; }
/* Background Remover's new background: the logo's colours, glowing. */
.glow-bg { position: absolute; inset: 0;
  background: radial-gradient(70% 55% at 50% 40%, rgba(255,255,255,.35), rgba(255,255,255,0) 70%),
    linear-gradient(160deg, #00e5ff, #8a2be2 55%, #ff007f); }
/* "1080p": the same picture, slightly soft. */
/* A single before/after picture with the split made in it: the line
   marks its seam (--cut, where the picture changes); nothing to drag. */
.ba.split .line::after { content: ""; width: 14px; height: 14px; }
.frame > .tag { position: absolute; }
.soft-1080 { filter: blur(1.6px) saturate(.92); transform: scale(1.02); }
.kb { animation: kb 6s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.18) translate(-4%, -3%); } }
.play { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--purple); font-size: 18px; box-shadow: 0 8px 20px rgba(0,0,0,.3); }

/* Formats gallery */
.formats { display: flex; gap: 16px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.fmt { position: relative; border-radius: 20px; overflow: hidden; color: #fff; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: 0 24px 40px -22px rgba(11,12,14,.5); transition: transform .2s; }
.fmt:hover { transform: translateY(-6px); }
.fmt b { font-size: 18px; } .fmt small { opacity: .85; }
.fmt .ratio { position: absolute; top: 12px; left: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.35); font-size: 12px; font-weight: 700; }
.fmt.reel { width: 190px; aspect-ratio: 9 / 16; background: linear-gradient(170deg, #ff7ab6, #ff007f 55%, #8a2be2); }
.fmt.short { width: 168px; aspect-ratio: 9 / 16; background: linear-gradient(170deg, #00e5ff, #0891b2 60%, #1e1b4b); }
.fmt.yt { width: 320px; aspect-ratio: 16 / 9; background: linear-gradient(140deg, #0b0c1e, #3b1d6e 60%, #ff007f); }
.fmt.post { width: 200px; aspect-ratio: 1; background: linear-gradient(150deg, #fde68a, #f59e0b 55%, #ef4444); }
.fmt.feed { width: 180px; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #a5f3fc, #8a2be2 60%, #1e1b4b); }
/* The cards' videos fill them (cropped to the card's shape, behind the
   labels); the gradients stay underneath until the first frame shows. */
.fmt-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; z-index: 0; pointer-events: none; }
.fmt .ratio { z-index: 2; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.45);
  text-shadow: 0 1px 3px rgba(0,0,0,.55); }
/* The name floats on the video itself (no box, no fade): a soft shadow
   keeps it crisp over any frame. */
.fmt-label { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 1px;
  text-shadow: 0 1px 2px rgba(0,0,0,.7), 0 2px 12px rgba(0,0,0,.55); }
.fmt-label small { line-height: 1.3; opacity: .95; }

/* Voice of our users: overlapping, glassy gradient cards over a glow. */
.voices-stage { position: relative; isolation: isolate; padding: 30px 0 20px; }
.voices-stage::before { content: ""; position: absolute; z-index: -1; inset: 0 4%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(138,43,226,.32), rgba(0,229,255,.16) 55%, rgba(255,0,127,0)); }
.voices { display: flex; justify-content: center; padding: 20px 0 10px; }
.voice {
  position: relative; width: 272px; min-height: 340px; margin: 0 -16px; padding: 26px 22px;
  border-radius: 24px; color: #fff; display: flex; flex-direction: column;
  border: 1px solid rgba(255,255,255,.45);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 30px 50px -28px rgba(40,0,80,.55), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .25s;
}
.voice:nth-child(1) { transform: rotate(-4deg); background: linear-gradient(165deg, rgba(0,229,255,.85), rgba(56,120,255,.65)); }
.voice:nth-child(2) { transform: rotate(2deg) translateY(12px); background: linear-gradient(165deg, rgba(20,18,40,.9), rgba(138,43,226,.75)); }
.voice:nth-child(3) { transform: rotate(-1deg); background: linear-gradient(165deg, rgba(255,0,127,.8), rgba(255,122,182,.65)); }
.voice:nth-child(4) { transform: rotate(4deg) translateY(6px); background: linear-gradient(165deg, rgba(138,43,226,.8), rgba(0,229,255,.6)); }
.voice:hover { transform: rotate(0) translateY(-12px); z-index: 2; }
.voice .mark { font-size: 44px; line-height: .6; opacity: .55; font-weight: 900; }
.voice p { font-size: 18px; font-weight: 750; line-height: 1.42; margin: 8px 0 auto; }
.voice footer { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-weight: 700; font-size: 14px; }
.voice footer small { display: block; font-weight: 500; opacity: .85; }
.avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; padding: 2px; background: var(--grad); }
.avatar span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 54px; text-align: center; }
.stats b { display: block; font-size: clamp(34px, 4.6vw, 56px); font-weight: 850; letter-spacing: -.02em; line-height: 1.05; }
.stats span { color: var(--ink-soft); font-weight: 600; }

/* Privacy band, web editor and download */
.band { background: var(--dark); color: #fff; border-radius: 28px; padding: 50px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; width: 480px; height: 480px; right: -160px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(138,43,226,.55), rgba(255,0,127,.25) 45%, transparent 70%); }
.band p { color: #b9bec6; }
.band ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; position: relative; z-index: 1; }
.band li { display: flex; gap: 10px; color: #e8eaed; }
.band li::before { content: "✓"; color: var(--cyan); font-weight: 900; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; }
.store small { display: block; font-size: 11px; opacity: .75; line-height: 1.1; }
.store b { display: block; font-size: 15px; line-height: 1.2; }
.store svg { width: 22px; height: 22px; flex: none; }
.store[aria-disabled="true"] { opacity: .8; cursor: default; }
.store-live { transition: transform .15s, box-shadow .15s; }
.store-live:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(138,43,226,.6); }

/* Floating CTA pill */
.pill {
  position: fixed; left: 50%; bottom: 22px; z-index: 30; display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(17,18,20,.92); color: #fff;
  box-shadow: 0 20px 40px -12px rgba(40,0,80,.6), 0 0 0 1px rgba(138,43,226,.55), 0 0 24px -6px rgba(0,229,255,.45);
  transform: translate3d(-50%, 140%, 0); opacity: 0; will-change: transform, opacity;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s;
  max-width: calc(100vw - 24px);
}
.pill.show { transform: translate3d(-50%, 0, 0); opacity: 1; }
.pill img { width: 30px; height: 30px; border-radius: 9px; }
.pill span { font-weight: 700; white-space: nowrap; }
.pill .btn { padding: 11px 20px; }

/* Legal pages */
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 64px; }
.legal h1 { font-size: 40px; margin: 0 0 4px; text-align: left; max-width: none; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; }
.legal p, .legal li { color: #2e3238; }
.legal ul { padding-left: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.publisher { margin-top: 36px; background: var(--panel); border: none; }
.publisher h2 { margin-top: 0; }
.publisher p { margin: 6px 0; }

/* Footer: link columns over a big faded wordmark */
.footer { position: relative; padding: 28px 16px 16px; color: var(--ink-soft); font-size: 14px; }
/* One footer card: links, socials and the copyright over a big, soft
   "WotPan AI" watermark, with the logo's colours glowing from below. */
.footer-card {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: 1400px; margin: 0 auto; padding: 60px 0 30px; border-radius: 32px;
  border: 1px solid rgba(138,43,226,.10);
  /* A rich neon aura (CapCut-style): light where the links are, deep
     cyan / purple / magenta below (static gradients: smooth to scroll). */
  background:
    radial-gradient(58% 72% at 6% 104%, rgba(0,229,255,.95), rgba(0,229,255,0) 70%),
    radial-gradient(62% 80% at 50% 112%, rgba(138,43,226,1), rgba(138,43,226,0) 72%),
    radial-gradient(58% 72% at 96% 104%, rgba(255,0,127,.92), rgba(255,0,127,0) 70%),
    radial-gradient(40% 55% at 8% 8%, rgba(0,229,255,.24), rgba(0,229,255,0) 70%),
    radial-gradient(36% 50% at 52% 26%, rgba(138,43,226,.14), rgba(138,43,226,0) 70%),
    radial-gradient(40% 55% at 94% 12%, rgba(255,0,127,.2), rgba(255,0,127,0) 70%),
    linear-gradient(180deg, #ffffff 0%, #f7f2ff 42%, #c9a4f7 78%, #9a5cf0 100%);
  box-shadow: 0 30px 60px -42px rgba(40,0,80,.4);
}
.footer-content { position: relative; z-index: 1; }
.footer > .footer-row { max-width: var(--wrap); margin: 0 auto; padding: 22px 20px; border-top: 1px solid var(--line); }
.watermark {
  position: absolute; z-index: 0; left: 0; right: 0; bottom: -.06em;
  text-align: center; white-space: nowrap; pointer-events: none; user-select: none;
  font-size: clamp(56px, 18vw, 270px); font-weight: 900; letter-spacing: -.045em; line-height: 1;
  color: rgba(255,255,255,.62);
  text-shadow: 0 0 60px rgba(255,255,255,.35), 0 10px 40px rgba(70,0,140,.18);
}
.watermark span { display: inline-block; }
.watermark .w2 { transform: translateY(-.24em); }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; position: relative; z-index: 1; }
.footer h4 { color: var(--ink); margin: 0 0 12px; font-size: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: #3a3e45; text-decoration: none; }
.footer a:hover { color: var(--ink); }
/* Social buttons: glass circles that light up in the brand gradient. */
.socials { display: flex; gap: 10px; margin-top: 16px; }
.social {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink) !important;
  background: rgba(255,255,255,.7); border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 6px 16px -10px rgba(40,0,80,.35);
  transition: transform .2s ease, color .2s ease, box-shadow .2s ease;
  isolation: isolate; overflow: hidden;
}
.social::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--grad); opacity: 0; transition: opacity .2s ease;
}
.social svg { width: 20px; height: 20px; }
.social:hover, .social:focus-visible { color: #fff !important; transform: translateY(-3px); box-shadow: 0 12px 24px -10px rgba(138,43,226,.6); }
.social:hover::before, .social:focus-visible::before { opacity: 1; }
.social:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

.footer-bottom {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
  margin-top: clamp(80px, 13vw, 170px); padding: 12px 18px; border-radius: 16px; color: #1f2329;
  background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.7);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 10px 30px -18px rgba(40,0,80,.5);
}
.footer-bottom a { color: #1f2329 !important; font-weight: 600; }
.footer-bottom a:hover { color: var(--accent-ink) !important; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* Grid children may shrink below their content (no sideways scroll). */
.smart > *, .tools-grid > *, .band > *, .footer-cols > *, .stats > *, .showcase > * { min-width: 0; }

/* Responsive */
@media (max-width: 1000px) {
  .smart { grid-template-columns: 1fr; text-align: center; }
  .smart-list { justify-items: center; }
  .tools-grid { grid-template-columns: 1fr; }
  .tools-preview { position: relative; top: 0; order: -1; }
  .band { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .float-chip { display: none; }
  .showcase { grid-template-columns: repeat(2, 1fr); }
  .voices { flex-wrap: wrap; gap: 18px; }
  .voice { margin: 0; }
}
@media (max-width: 640px) {
  section { padding: 56px 0; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links .btn { padding: 8px 14px; font-size: 14px; }
  .brand { font-size: 16px; }
  .hero { padding-top: 112px; }
  .mesh i { width: 420px; height: 380px; }
  .mesh i:nth-child(2) { opacity: .32; }
  .tools-box, .band { padding: 22px; border-radius: 20px; }
  .group ul { margin-left: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .voice { width: 100%; min-height: 0; transform: none !important; }
  .fmt.yt { width: 100%; }
  .pill { gap: 10px; padding-left: 12px; bottom: 14px; }
  .pill span { font-size: 13px; white-space: normal; line-height: 1.25; }
  .pill img { display: none; }
  .pill .btn { padding: 10px 14px; font-size: 14px; white-space: nowrap; }
  .mock-body { grid-template-columns: 44px 1fr; }
}

/* -- Account & data deletion (data-deletion.html): dark glass ------------- */
.page-dark {
  color: #eef0f4;
  background-color: #0b0c10;
  background-image:
    radial-gradient(900px 640px at -8% 8%, rgba(0,229,255,.20), rgba(0,229,255,0) 70%),
    radial-gradient(900px 640px at 108% 30%, rgba(255,0,127,.18), rgba(255,0,127,0) 70%),
    radial-gradient(1000px 720px at 30% 100%, rgba(138,43,226,.24), rgba(138,43,226,0) 70%);
  background-attachment: scroll;
}
.page-dark .nav { background: rgba(11,12,16,.62); border-bottom-color: rgba(255,255,255,.08); }
.page-dark .nav-links a:not(.btn) { color: #c9ccd4; }
.page-dark .nav-links a:not(.btn):hover { color: #fff; }
.page-dark .footer { color: #9aa0ab; }
.page-dark .footer > .footer-row { border-top-color: rgba(255,255,255,.10); }
.page-dark a { color: #fff; }
.page-dark .btn-grad { color: #fff; }

.dd { max-width: 980px; padding-top: 44px; padding-bottom: 56px; }
.dd-kicker {
  display: inline-block; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #e2ccff;
  background: var(--grad-soft); border: 1px solid rgba(138,43,226,.45);
}
.dd h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.12; margin: 0 0 12px; letter-spacing: -.02em; }
.dd-lead { font-size: 18px; color: #c4c8d0; max-width: 760px; margin: 0 0 28px; }
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.glass {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px; padding: 24px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -30px rgba(0,0,0,.8);
}
.glass + .glass { margin-top: 18px; }
.dd-grid .glass + .glass { margin-top: 0; }
.glass h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 12px; }
.dd-num {
  display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none;
  border-radius: 50%; background: var(--grad); color: #fff; font-size: 14px; font-weight: 800;
  box-shadow: 0 0 18px rgba(138,43,226,.55);
}
.dd-steps, .dd-list, .dd-timeline ol { margin: 0; padding-left: 20px; color: #d6d9e0; }
.dd-steps li, .dd-list li, .dd-timeline li { margin: 6px 0; }
.dd-list { padding-left: 18px; }
.dd-small { font-size: 14px; color: #a7acb6; margin: 12px 0 0; }

.dd-form-card form { display: grid; gap: 16px; margin-top: 16px; }
.dd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dd-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #d6d9e0; }
.dd-field input, .dd-field textarea {
  font: inherit; font-weight: 400; color: #fff; width: 100%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 12px 14px; resize: vertical;
}
.dd-field input::placeholder, .dd-field textarea::placeholder { color: #7d838e; }
.dd-field input:focus, .dd-field textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(138,43,226,.35);
}
.dd-scope { border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px 16px 6px; margin: 0; }
.dd-scope legend { padding: 0 6px; font-size: 14px; font-weight: 700; color: #d6d9e0; }
.dd-check { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; cursor: pointer; color: #d6d9e0; }
.dd-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--purple); flex: none; }
.dd-check small { display: block; color: #9aa0ab; font-size: 13px; }
.dd-confirm { font-size: 14px; }
.dd-error { margin: 0; color: #ff7aa8; font-weight: 600; }
.dd-form-card .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.dd-sent { margin-top: 18px; padding: 16px; border-radius: 14px; background: rgba(0,229,255,.07); border: 1px solid rgba(0,229,255,.25); }
.dd-sent p { margin: 0 0 8px; }
.dd-sent pre {
  white-space: pre-wrap; margin: 8px 0 0; padding: 12px; border-radius: 10px;
  background: rgba(0,0,0,.35); color: #d6d9e0; font-size: 13px;
}
@media (max-width: 760px) {
  .dd-grid, .dd-row { grid-template-columns: 1fr; }
  .dd-lead { font-size: 16px; }
  .glass { padding: 18px; }
}

/* Sign-in (opens from every link into the web editor). */
.auth-open { overflow: hidden; }
.auth-backdrop {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(8,8,12,.62);
  animation: auth-fade .18s ease;
}
.auth-backdrop[hidden] { display: none; }
@keyframes auth-fade { from { opacity: 0; } }
.auth-card {
  display: grid; grid-template-columns: 1fr 1fr; width: min(860px, 100%); max-height: calc(100vh - 32px);
  background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
  animation: auth-rise .22s ease;
}
@keyframes auth-rise { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.auth-visual { position: relative; background: #0b0c0e; min-height: 460px; }
.auth-visual video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-visual-text {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 26px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  display: flex; flex-direction: column; gap: 6px;
}
.auth-visual-text b { font-size: 22px; line-height: 1.2; }
.auth-visual-text small { font-size: 14px; opacity: .85; line-height: 1.45; }
.auth-chip { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--grad); }
.auth-panel { position: relative; padding: 48px 40px 28px; display: flex; flex-direction: column; overflow-y: auto; }
.auth-panel h2 { font-size: 26px; margin: 0 0 6px; color: var(--ink); }
.auth-sub { margin: 0 0 26px; color: #5b6068; }
.auth-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: #f1f2f4; color: #333; font-size: 22px; line-height: 1; cursor: pointer;
}
.auth-close:hover { background: #e4e6e9; }
.auth-step { display: flex; flex-direction: column; gap: 12px; }
.auth-step[hidden] { display: none; }
.auth-google { min-height: 44px; display: flex; justify-content: center; }
.auth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 320px; align-self: center;
  height: 44px; border-radius: 999px; border: 1px solid #dadce0; background: #fff; color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.auth-btn:hover { background: #f6f7f8; }
.auth-btn svg { width: 20px; height: 20px; }
.auth-step label { font-size: 13px; font-weight: 600; color: #3b3f45; }
.auth-step input {
  height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid #d5d8dc; font: inherit; font-size: 16px;
}
.auth-step input:focus { outline: 2px solid var(--purple); outline-offset: 0; border-color: transparent; }
.auth-wide { width: 100%; justify-content: center; }
.auth-wide:disabled { opacity: .6; cursor: default; }
.auth-link { border: 0; background: none; color: var(--accent-ink); font: inherit; font-size: 14px; cursor: pointer; padding: 4px; }
.auth-sent { margin: 0; color: #3b3f45; font-size: 14px; }
.auth-error { margin: 14px 0 0; color: #c0123c; font-size: 14px; }
.auth-terms { margin: auto 0 0; padding-top: 26px; font-size: 12px; color: #80858c; line-height: 1.5; }
.auth-terms a { color: inherit; text-decoration: underline; }
@media (max-width: 720px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { padding: 44px 22px 22px; }
}
.auth-row { display: flex; justify-content: space-between; gap: 8px; }
.auth-reset { display: flex; flex-direction: column; gap: 12px; }
.auth-reset[hidden] { display: none; }

/* -- Tool pages (/ai-captions, /video-templates, /online-editor) ---------- */
.tp-hero { padding: 40px 0 56px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; font-size: 14px; color: var(--ink-soft); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.tp-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.tp-grid > * { min-width: 0; }
.tp-hero h1 { font-size: clamp(34px, 5vw, 60px); text-align: left; margin: 14px 0 18px; max-width: 13em; }
.tp-hero .lead { margin: 0 0 26px; }
.tp-hero .cta-row { justify-content: flex-start; }
.tp-shot { position: relative; justify-self: center; width: min(100%, 340px); }
.tp-shot > img { display: block; width: 100%; height: auto; border-radius: 26px; box-shadow: 0 30px 60px -30px rgba(40,0,80,.55); }
.tp-shot.wide { width: 100%; }
.tp-shot .tag { position: absolute; top: 14px; left: 14px; }
/* The caption over a hero photo: sized to the card (at most 340 px), not the window. */
.tp-shot .cap { font-size: 22px; width: 88%; white-space: normal; text-align: center; }
.tp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tp-cards > * { min-width: 0; }
.tp-card { background: rgba(255,255,255,.7); border: 1px solid rgba(138,43,226,.10); border-radius: 20px; padding: 24px; }
.tp-card h3 { font-size: 18px; margin: 0 0 8px; }
.tp-card p { margin: 0; color: var(--ink-soft); }
.tp-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 14px; }
.tp-langs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.tp-langs li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.tp-faq { max-width: 820px; margin: 0 auto; }
.tp-faq details { background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-bottom: 10px; }
.tp-faq summary { cursor: pointer; padding: 14px 0; }
.tp-faq summary h3 { display: inline; font-size: 17px; }
.tp-faq details p { margin: 0 0 16px; color: #2e3238; }
.tp-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tp-more a { display: block; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.tp-more a small { display: block; font-weight: 500; color: var(--ink-soft); }
.tp-more a:hover { border-color: rgba(138,43,226,.4); }
.tp-note { font-size: 14px; color: var(--ink-soft); text-align: center; margin-top: 18px; }
@media (max-width: 900px) {
  .tp-grid { grid-template-columns: 1fr; gap: 36px; }
  .tp-cards, .tp-more { grid-template-columns: 1fr; }
}
