/* Website design (www.telekinesis.now): the app's tokens, a wider reading column for the legal pages. */

/* Tokens: the design kit is dark only, with purple (actions) and teal (links, focus) accents; the same values as the
   app (design/app/app.css). */
:root {
  --bg: #0d0b12; --card: #16131d; --ink: #f1eef7; --muted: #a59eb5; --line: #2a2535;
  --purple: #7c3aed; --purple-soft: #a78bfa; --teal: #2dd4bf; --teal-deep: #0f9b8e;
  --accent: var(--purple); --link: var(--teal);
  color-scheme: dark;
}

/* Base */
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
main { max-width: 42rem; margin: 0 auto; padding: 2.5rem 1.25rem 2rem; }
a { color: var(--link); }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
h3 { font-size: 1rem; margin: 1.25rem 0 .25rem; }
p { margin: .5rem 0; }
address { font-style: normal; }
.lead { font-size: 1.2rem; color: var(--muted); }
.muted { color: var(--muted); font-size: .9rem; }
.part { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: .5rem; }
.part[hidden], section[hidden] { display: none; }
/* With the switch, only one part shows at a time: no separator above it. */
html:has(section[hidden]) .part { border-top: 0; margin-top: 0; padding-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* c-brand */
.c-brand { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; font-weight: 700; letter-spacing: .02em;
  margin-bottom: 2rem; color: var(--ink); text-decoration: none; }
/* The mark: a 3D canvas (logo.js) a bit taller than the name. */
.c-brand__name { font-size: min(2em, 7vw); line-height: 1; }
.c-brand__tld { background: linear-gradient(90deg, var(--purple-soft), var(--teal)); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; color: var(--purple-soft); }
/* The stage: the open hand at the bottom (as wide as the stage), the floating T above its palm, almost as wide as
   the hand. The top padding is the room the T floats in; the hand image is 1600 × 452. */
.c-brand__stage { --w: min(13rem, 34vw); position: relative; display: block; width: var(--w);
  padding-top: calc(var(--w) * .7); } /* not a %: padding % refers to the parent's width */
.c-brand__stage::before { content: ""; position: absolute; left: 30%; width: 42%; top: 74%; height: 9%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 58, 237, .35), rgba(45, 212, 191, .12) 60%, transparent);
  filter: blur(.6rem); pointer-events: none; }
.c-brand__hand { position: relative; display: block; width: 100%; height: auto; }
.c-brand__logo { position: absolute; z-index: 1; top: 0; left: 51%; transform: translateX(-50%); width: 92%; height: auto;
  aspect-ratio: 6 / 5; filter: drop-shadow(0 0 1.2rem rgba(124, 58, 237, .4)); }

/* c-lang-switch: flag buttons; the current language's flag is lit, the other dimmed */
.c-lang-switch { display: flex; gap: .6rem; margin-bottom: 1rem; }
.c-lang-switch__flag { display: inline-flex; padding: .35rem; border-radius: 8px; border: 1px solid var(--line);
  opacity: .55; transition: opacity .15s ease, border-color .15s ease; }
.c-lang-switch__flag img { display: block; width: 30px; height: 18px; object-fit: cover; border-radius: 2px; }
.c-lang-switch__flag:hover, .c-lang-switch__flag[aria-current="true"] { opacity: 1; border-color: var(--purple-soft); }

/* c-site-footer */
.c-site-footer { max-width: 42rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line);
  text-align: center; }
.c-site-footer__nav a { color: var(--muted); }
.c-site-footer__copy { margin-top: .5rem; }

/* Homepage: one statement and one action, centered in the viewport */
.page-index { min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(ellipse 60% 45% at 15% 10%, rgba(124, 58, 237, .16), transparent 70%),
    radial-gradient(ellipse 55% 45% at 85% 90%, rgba(45, 212, 191, .10), transparent 70%), var(--bg); }
.hero__header { max-width: 72rem; width: 100%; margin: 0 auto; padding: 1.5rem 1.25rem 0; }
.hero__header .c-brand { margin: 0; }
.hero { flex: 1; width: 100%; max-width: none; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem 1.25rem 4rem; }
.hero > * { max-width: 100%; }
.hero__title { width: 100%; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0;
  font-size: clamp(2.2rem, 7vw, 4rem); }
/* Small screens: prefix and word on separate lines, both centred. */
.hero__line { display: flex; flex-direction: column; align-items: center; gap: .1em; }
/* The word's slot: every word lies in the same grid cell, the others invisible, so the slot is as wide as the
   longest word (SUBSCRIPTIONS today) and nothing moves when the word changes; the visible word is centred in it. */
.hero__slot { display: inline-grid; justify-items: center; white-space: nowrap; font-size: min(1em, 10.5vw); }
.hero__slot > * { grid-area: 1 / 1; }
.hero__sizer { visibility: hidden; }
/* A purple → teal line under the slot, glowing (a blurred copy of the line; a box-shadow shows as a faint box); as
   wide as the slot, so it stays still while the words change. */
.hero__slot { position: relative; padding-bottom: .19em;
  background: linear-gradient(90deg, var(--purple-soft), var(--teal)) bottom / 100% .07em no-repeat; }
.hero__slot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .07em;
  background: linear-gradient(90deg, var(--purple-soft), var(--teal)); filter: blur(.25em); opacity: .85;
  pointer-events: none; }
/* Desktop and larger: the prefix with the slot to its right, sized so both fit on one line. */
@media (min-width: 64rem) {
  .hero__title { font-size: clamp(2.6rem, 4.1vw, 4.6rem); }
  .hero__line { flex-direction: row; align-items: baseline; justify-content: center; gap: .3em; }
  .hero__slot { font-size: 1em; }
}
.cta { position: relative; z-index: 1; display: inline-block; margin-top: 3.5rem; padding: 1.15rem 2.6rem; border-radius: 999px;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 700; text-decoration: none;
  background: linear-gradient(120deg, var(--purple), var(--teal-deep)); color: #fff;
  box-shadow: 0 0 0 0 rgba(45, 212, 191, .5);
  transition: transform .15s ease, box-shadow .3s ease; }
.cta:hover { transform: translateY(-2px);
  box-shadow: 0 0 2.5rem .2rem rgba(124, 58, 237, .45), 0 0 3.5rem .4rem rgba(45, 212, 191, .25); }
.cta:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
@media (max-width: 40rem) {
  .cta { padding: 1rem 1.8rem; }
}
/* The same WhatsApp link as a QR code, on computers only (primary input a mouse or trackpad): the first click on
   the button reveals it and index.js assembles it from four pieces. Its space is reserved so the headline doesn't
   jump. Phones and tablets: the button opens WhatsApp. */
.hero__qr { display: none; margin: 2rem 0 0; }
.hero__qr-stage { position: relative; width: 7.5rem; height: 7.5rem; margin: 0 auto; }
.hero__qr .qr { display: block; width: 100%; height: 100%; border-radius: 6px; }
.hero__qr .qr-piece { position: absolute; inset: 0; will-change: transform, opacity; }
@media (hover: hover) and (pointer: fine) {
  .hero__qr { display: block; visibility: hidden; }
  .hero__qr.is-open { visibility: visible; }
}


/* The swapped word: interference. Two colour-split copies (::before/::after) tear across the word in thin slices
   and far offsets while the word itself jitters, skews, squashes, blurs, shifts colour and drops out for a moment;
   the script swaps the text in the middle of the noise. */
.glitch { position: relative; display: inline-block; color: var(--purple-soft);
  background: linear-gradient(90deg, var(--purple-soft), var(--teal)); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0;
  pointer-events: none; }
.glitch.is-glitching { animation: glitch-jitter .9s steps(1, end); }
.glitch.is-glitching::before { opacity: .9; color: var(--teal); -webkit-text-fill-color: var(--teal); animation: glitch-slice-a .9s steps(1, end); }
.glitch.is-glitching::after { opacity: .9; color: #c084fc; -webkit-text-fill-color: #c084fc; animation: glitch-slice-b .9s steps(1, end); }
@keyframes glitch-jitter {
  0% { transform: none; filter: none; opacity: 1; }
  6% { transform: translate(6px, -3px) skewX(18deg); filter: blur(1px) hue-rotate(40deg); }
  12% { transform: translate(-10px, 2px) skewX(-22deg) scaleX(1.15); filter: contrast(3); }
  18% { transform: translate(3px, 5px) scaleY(.6); opacity: .5; }
  24% { transform: translate(-6px, -4px) skewX(28deg); filter: blur(2px) hue-rotate(-60deg); opacity: 1; }
  30% { transform: translate(12px, 0) scaleX(.85); filter: contrast(4) saturate(3); }
  36% { transform: scaleY(.08) translateX(-14px); opacity: .15; }
  42% { transform: scaleY(.02); opacity: 0; }
  48% { transform: scaleY(1.25) translateX(10px); opacity: 1; filter: blur(3px); }
  54% { transform: translate(-8px, 2px) skewX(-30deg); filter: hue-rotate(90deg) contrast(3); }
  62% { transform: translate(5px, -2px) skewX(14deg); filter: blur(1px); }
  70% { transform: translate(-3px, 1px) scaleX(1.08); opacity: .7; }
  80% { transform: translate(2px, 0) skewX(-6deg); filter: none; opacity: 1; }
  90% { transform: translate(-1px, 0); }
  100% { transform: none; filter: none; opacity: 1; }
}
@keyframes glitch-slice-a {
  0% { clip-path: inset(0 0 88% 0); transform: translate(-16px, 0); }
  10% { clip-path: inset(42% 0 40% 0); transform: translate(14px, 0); }
  20% { clip-path: inset(72% 0 6% 0); transform: translate(-12px, 2px); }
  30% { clip-path: inset(12% 0 70% 0); transform: translate(18px, -2px); }
  40% { clip-path: inset(55% 0 25% 0); transform: translate(-20px, 0); }
  50% { clip-path: inset(30% 0 52% 0); transform: translate(10px, 3px); }
  60% { clip-path: inset(85% 0 2% 0); transform: translate(-8px, 0); }
  70% { clip-path: inset(5% 0 82% 0); transform: translate(12px, 0); }
  80% { clip-path: inset(48% 0 38% 0); transform: translate(-6px, 0); }
  100% { clip-path: inset(0 0 100% 0); transform: none; }
}
@keyframes glitch-slice-b {
  0% { clip-path: inset(62% 0 12% 0); transform: translate(14px, 0); }
  10% { clip-path: inset(4% 0 80% 0); transform: translate(-18px, 2px); }
  20% { clip-path: inset(34% 0 46% 0); transform: translate(10px, -3px); }
  30% { clip-path: inset(80% 0 3% 0); transform: translate(-16px, 0); }
  40% { clip-path: inset(18% 0 64% 0); transform: translate(20px, 0); }
  50% { clip-path: inset(66% 0 18% 0); transform: translate(-12px, 2px); }
  60% { clip-path: inset(25% 0 60% 0); transform: translate(9px, 0); }
  70% { clip-path: inset(90% 0 0 0); transform: translate(-14px, 0); }
  80% { clip-path: inset(38% 0 48% 0); transform: translate(7px, 0); }
  100% { clip-path: inset(100% 0 0 0); transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .glitch.is-glitching, .glitch.is-glitching::before, .glitch.is-glitching::after { animation: none; opacity: 0; }
  .glitch.is-glitching { opacity: 1; }
  .cta { transition: none; }
}
