/* The platform landing (S08a). Every colour, space, radius and duration is a theme token (static/css/theme.css); the page needs no
 * script. Mobile first: one column under 640px, adaptive grids above, a wide hero from 1024px. */

* { box-sizing: border-box; }

/* The poster face, served locally (static/fonts, SIL Open Font License 1.1: static/fonts/OFL-SofiaSans.txt). One variable italic file
 * covers every weight; only the landing loads it. */
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("/fonts/SofiaSansExtraCondensed-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 1 1000;
  font-display: swap;
}

body.lp {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.lp img { max-width: 100%; display: block; }

.lp a { color: inherit; }

.lp :focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-control);
}

.lp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lp-skip {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  border-radius: var(--radius-pill);
  z-index: 10;
}

.lp-skip:focus { top: var(--space-2); }

.lp-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.lp-wrap--narrow { max-width: 760px; }

/* The staff preview of the draft. */
.lp-preview {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: var(--space-2) var(--space-4);
  background: var(--color-waiting);
  color: var(--color-text-on-primary);
  font-weight: 700;
  text-align: center;
}

/* Header */
.lp-header {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--color-border-subtle);
  background: var(--color-canvas);
}

.lp-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  min-height: 64px;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--touch-min);
  text-decoration: none;
  font-family: var(--font-poster);
  font-weight: 900;
  font-style: italic;
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: skewX(-6deg);
}

.lp-brand__logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-control);
  object-fit: cover;
}

.lp-nav {
  display: flex;
  gap: var(--space-4);
  order: 3;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.lp-nav::-webkit-scrollbar { display: none; }

.lp-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.lp-nav a:hover { color: var(--color-primary); }

.lp-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2) var(--space-3);
  margin-left: auto;
}

.lp .locale-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.lp .locale-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  text-decoration: none;
}

.lp .locale-switch a[aria-current="page"] { color: var(--color-text); font-weight: 700; }

.lp-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-small);
}

.lp-link:hover { color: var(--color-text); }

/* The header's bot button: an outlined pill with the Telegram plane (after the concept). */
.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--touch-min);
  padding: 0 var(--space-5);
  border: 2px solid var(--color-text);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color var(--motion-duration) ease, color var(--motion-duration) ease;
}

.lp-pill:hover { border-color: var(--color-primary); color: var(--color-primary); }

.lp-icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
}

.lp-icon--accent { color: var(--color-accent); }

/* The primary action: lime, dark text. */
.lp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--cta-height);
  padding: 0 var(--space-6);
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  font-weight: 800;
  text-decoration: none;
  transition: background var(--motion-duration) ease;
}

.lp .lp-cta { color: var(--color-text-on-primary); }

.lp-cta:hover { background: var(--color-primary-hover); }

.lp-cta--block { width: 100%; }

.lp-cta--hero {
  gap: var(--space-2);
  min-height: 60px;
  padding: 0 var(--space-6);
  font-size: 1.2rem;
  box-shadow: var(--glow-primary);
}

/* Hero: copy on the left over the picture, which fills the right and fades into the canvas (after the concept). Without a picture the
 * copy stands alone on the hero gradient. */
.lp-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--glow-hero);
}

/* With a picture the canvas shows around it, so the picture's fade has no seam. */
.lp-hero--picture { background: var(--color-canvas); }

.lp-hero__art {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 72vh;
  width: 100%;
}

.lp-hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-fade-narrow);
  pointer-events: none;
}

.lp-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.lp-hero__sticker {
  position: absolute;
  z-index: 1;
  right: var(--space-4);
  top: 38%;
  max-width: 11ch;
  font-family: var(--font-poster);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2.25rem, 8vw, 3.75rem);
  line-height: 0.92;
  text-transform: uppercase;
  text-align: right;
  color: var(--color-canvas);
  -webkit-text-stroke: 1px var(--color-canvas);
  transform: rotate(-8deg);
  text-shadow: 0 0 18px var(--color-accent-soft);
  overflow-wrap: break-word;
}

.lp-hero__inset {
  position: absolute;
  z-index: 1;
  left: var(--space-4);
  bottom: 18%;
  width: clamp(96px, 26%, 170px);
  margin: 0;
  transform: rotate(-5deg);
}

.lp-hero__inset img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 4px solid var(--color-text);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-raised);
}

.lp-hero__arrow {
  position: absolute;
  right: -56px;
  top: 30%;
  width: 56px;
  color: var(--color-text);
}

.lp-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: var(--space-6);
  padding-bottom: var(--space-7);
}

.lp-hero--picture .lp-hero__inner { margin-top: calc(-1 * var(--space-8)); }

.lp-hero__copy {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
  max-width: 560px;
}

.lp-display {
  position: relative;
  margin: 0 0 var(--space-3);
  font-family: var(--font-poster);
  font-size: clamp(3.4rem, 15vw, 7.25rem);
  font-weight: 900;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-shadow: var(--shadow-poster);
  overflow-wrap: anywhere;
}

/* The pink brush stroke under the headline. */
.lp-display::after {
  content: "";
  display: block;
  width: min(62%, 320px);
  height: 0;
  margin-top: var(--space-3);
  border-top: 7px solid var(--color-accent);
  border-radius: var(--radius-pill);
  transform: rotate(-2deg);
}

.lp-hero__lead {
  margin: 0;
  max-width: 34ch;
  color: var(--color-text);
  font-size: 1.25rem;
  line-height: 1.35;
}

.lp-hero__gift {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 0 var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

/* The band: a slanted pink ribbon with a poster line (after the concept). */
.lp-band {
  position: relative;
  z-index: 2;
  margin: calc(-1 * var(--space-5)) 0 0;
  padding: 0 var(--space-3);
  overflow: hidden;
}

.lp-band__text {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: var(--space-3) 0 var(--space-3) var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--color-accent-deep);
  color: var(--color-text);
  font-family: var(--font-poster);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.75rem, 7vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: var(--shadow-poster);
  transform: rotate(-2deg) skewX(-10deg);
  overflow-wrap: anywhere;
}

/* Styles: large result pictures with the style's title over them. */
.lp-section--styles { border-bottom: 0; padding-top: var(--space-5); }

/* On a phone the styles are one row that scrolls sideways; from 640px a grid of three. */
.lp-styles {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--space-2);
  display: grid;
  gap: var(--space-3);
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.lp-styles::-webkit-scrollbar { display: none; }

.lp-style { scroll-snap-align: start; }

.lp-style {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--gradient-thumbnail);
  box-shadow: var(--shadow-card);
}

.lp-style::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-style-caption);
}

.lp-style__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-duration) ease;
}

.lp-style:hover .lp-style__image { transform: scale(1.03); }

.lp-style__title {
  position: absolute;
  z-index: 1;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-3);
  color: var(--color-caption);
  font-family: var(--font-poster);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.4rem, 4.6vw, 2.2rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

/* Sections */
.lp-section {
  padding: var(--space-7) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.lp-title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-poster);
  font-size: clamp(2.3rem, 8vw, 3.5rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.lp-lead {
  margin: 0 0 var(--space-5);
  max-width: 60ch;
  color: var(--color-text-muted);
}

.lp-empty,
.lp-notice {
  margin: 0 0 var(--space-5);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text-muted);
}

.lp-notice {
  border-color: var(--color-waiting);
  color: var(--color-waiting);
}

/* Bot cards */
.lp-bots,
.lp-plans,
.lp-offers {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-bots {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

.lp-bot {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding: var(--space-5);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.lp-bot__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.lp-bot__logo,
.lp-bot__mark {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-control);
  object-fit: cover;
}

.lp-bot__mark { background: var(--gradient-thumbnail); }

.lp-bot__name {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.lp-bot__caption {
  margin: 0;
  color: var(--color-text-muted);
  white-space: pre-line;
}

/* Examples: a genuine before/after pair, labelled as an example. */
.lp-examples {
  display: grid;
  gap: var(--space-5);
}

.lp-example {
  position: relative;
  margin: 0;
  padding: var(--space-3);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.lp-example__label {
  display: inline-block;
  margin-bottom: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-surface-raised);
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.lp-example__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.lp-example__side {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-control);
  background: var(--color-surface-deep);
  aspect-ratio: 3 / 4;
}

.lp-example__side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-example__tag {
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--color-overlay);
  color: var(--color-caption);
  font-size: var(--text-small);
}

.lp-example__tag--after {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
}

.lp-example__caption {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  white-space: pre-line;
}

/* How it works */
.lp-steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.lp-step {
  counter-increment: step;
  position: relative;
  padding: var(--space-5) var(--space-5) var(--space-5) calc(var(--space-5) + 48px);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.lp-step::before {
  content: counter(step);
  position: absolute;
  left: var(--space-5);
  top: var(--space-5);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-text-on-primary);
  font-weight: 800;
}

.lp-step__title { margin: 0 0 var(--space-1); font-size: 1.125rem; }

.lp-step__text { margin: 0; color: var(--color-text-muted); white-space: pre-line; }

/* Plans: prices are never decorated away. */
.lp-plans {
  display: grid;
  gap: var(--space-4);
}

/* Plan tiles (after the concept): the name in the poster face, its icon, the generations line; prices stay plain and readable. */
.lp-plan {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--gradient-wash);
}

.lp-plan--default { background: var(--color-surface); }

.lp-plan__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.lp-plan__name {
  margin: 0;
  font-family: var(--font-poster);
  font-size: 2.6rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  overflow-wrap: anywhere;
}

.lp-plan__icon {
  flex: none;
  width: 34px;
  height: 34px;
  color: var(--color-accent);
}

.lp-plan__lead {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.lp-plan__badge {
  justify-self: start;
  margin: 0;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-success-soft);
  color: var(--color-success);
  font-size: var(--text-small);
  font-weight: 700;
}

.lp-plan__badge--muted {
  background: var(--color-disabled-bg);
  color: var(--color-disabled-text);
}

.lp-offers {
  display: grid;
  gap: var(--space-2);
}

.lp-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-control);
  background: var(--color-surface-raised);
}

.lp-offer__total {
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.lp-offer__period,
.lp-offer__monthly,
.lp-offer__first {
  color: var(--color-text-muted);
  font-size: var(--text-small);
  font-variant-numeric: tabular-nums;
}

.lp-offer__first { flex-basis: 100%; }

.lp-plan__facts {
  display: grid;
  gap: var(--space-1);
  margin: 0;
}

.lp-plan__fact {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.lp-plan__fact dt { color: var(--color-text-muted); }

.lp-plan__fact dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* FAQ */
.lp-faq { display: grid; gap: var(--space-2); }

.lp-faq__item {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  background: var(--color-surface);
}

.lp-faq__q {
  display: flex;
  align-items: center;
  min-height: var(--touch-min);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.lp-faq__a {
  margin: 0;
  padding: 0 var(--space-4) var(--space-4);
  color: var(--color-text-muted);
  white-space: pre-line;
}

/* Footer */
.lp-footer { padding: var(--space-6) 0 var(--space-7); }

.lp-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.lp-footer__brand { margin: 0; font-weight: 800; }

.lp-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
}

.lp-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  color: var(--color-text-muted);
}

@media (min-width: 640px) {
  .lp-wrap { padding: 0 var(--space-5); }
  .lp-nav { order: 0; width: auto; }
  .lp-styles { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); overflow: visible; }
  .lp-bots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lp-hero__inner { padding-top: var(--space-8); padding-bottom: var(--space-8); }
  .lp-hero--picture { min-height: 600px; }
  .lp-hero--picture .lp-hero__art {
    position: absolute;
    inset: 0 0 0 34%;
    aspect-ratio: auto;
    max-height: none;
    width: auto;
  }
  .lp-hero--picture .lp-hero__art::after { background: var(--gradient-hero-fade); }
  .lp-hero--picture .lp-hero__inner { margin-top: 0; padding-top: var(--space-8); padding-bottom: calc(var(--space-8) + var(--space-6)); }
  .lp-hero__sticker { right: 5%; top: 42%; }
  .lp-header .lp-wrap { max-width: 1280px; }
  .lp-header__inner { flex-wrap: nowrap; }
  .lp-nav { flex: 0 1 auto; }
  .lp-header__actions { flex-wrap: nowrap; }
  .lp-hero__inset { left: 16%; bottom: 14%; width: 170px; }
  .lp-band { margin-top: calc(-1 * var(--space-7)); padding: 0 var(--space-5); }
  .lp-band__text { margin-left: max(var(--space-2), calc((100vw - 1120px) / 2 + var(--space-2))); }
  .lp-bots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-cta,
  .lp-pill,
  .lp-style__image { transition: none; }
  .lp-style:hover .lp-style__image { transform: none; }
}

/* A bot card's style previews (after the concept): up to three covers in a row, the storefront's look at a glance. */
.lp-bot__previews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 4px;
}
.lp-bot__preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-control);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-card);
}
