/*
 * Postoteka — public landing page CSS.
 * Completely isolated from admin UI (app.css).
 * Namespaced with `lp-` prefix. No external resources.
 */

:root {
  --lp-bg: #fcf8ff;
  --lp-surface: #ffffff;
  --lp-surface-lilac: #f4ecff;
  --lp-ink: #31263d;
  --lp-muted: #74687e;
  --lp-purple: #7c4dff;
  --lp-purple-deep: #5931bd;
  --lp-action: #16794a;
  --lp-action-hover: #0f5f39;
  --lp-action-focus: #16794a;
  --lp-lime: #c8f35b;
  --lp-lime-deep: #5e7c12;
  --lp-peach: #ffb09c;
  --lp-sky: #9fe7f5;
  --lp-line: rgba(124, 77, 255, 0.16);
  --lp-shadow: 0 18px 55px rgba(91, 49, 189, 0.14);
}

/* soft reset, scoped to landing only */
.lp-page {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--lp-ink);
  background: var(--lp-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.lp-page a { color: inherit; text-decoration: none; }
.lp-page a:focus-visible,
.lp-page button:focus-visible {
  outline: 3px solid var(--lp-action-focus);
  outline-offset: 3px;
}

/* reduce motion: no auto animation/transitions that move things */
@media (prefers-reduced-motion: reduce) {
  .lp-page * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.lp-container {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
  padding-block: 1.5rem;
}

/* ===================== floating shapes ===================== */
.lp-floating {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.lp-floating::before,
.lp-floating::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lp-peach) 0%, transparent 70%);
  opacity: 0.35;
  filter: blur(2px);
  animation: lp-float 22s ease-in-out infinite;
}
.lp-floating::before {
  width: 260px; height: 260px;
  top: 10%; left: 6%;
  animation-delay: 0s;
}
.lp-floating::after {
  width: 190px; height: 190px;
  bottom: 14%; right: 6%;
  background: radial-gradient(circle, var(--lp-sky) 0%, transparent 70%);
  opacity: 0.3;
  animation-delay: -7s;
}
@keyframes lp-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(6px, -4px) scale(1.03); }
  66% { transform: translate(-4px, 6px) scale(0.98); }
}

/* ===================== header ===================== */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, color-mix(in srgb, var(--lp-surface) 80%, #fff) 0%, #fff 40%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lp-line);
  box-shadow: 0 1px 4px rgba(91, 49, 189, 0.04);
}
.lp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.lp-brand { display: inline-flex; align-items: center; gap: 0.4rem; }
.lp-wordmark {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--lp-purple-deep);
}
.lp-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lp-lime) 22%, transparent);
  color: var(--lp-lime-deep);
  border: 1px solid var(--lp-line);
}

/* nav */
.lp-nav { display: flex; align-items: center; }
.lp-nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lp-nav-list a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--lp-muted);
  position: relative;
}
.lp-nav-list a:hover, .lp-nav-list a:focus-visible { color: var(--lp-action); }
.lp-nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--lp-action);
  transition: width 0.2s ease;
}
.lp-nav-list a:hover::after, .lp-nav-list a:focus-visible::after { width: 100%; }

.lp-language {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--lp-muted);
  white-space: nowrap;
}
.lp-language a { padding: 3px 2px; }
.lp-language a[aria-current="page"] { color: var(--lp-action); }

.lp-cta-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lp-ink);
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  box-shadow: var(--lp-shadow);
  transition: background 0.15s, transform 0.05s;
}
.lp-cta-header:hover { background: var(--lp-surface-lilac); }
.lp-cta-header:active { transform: translateY(1px); }

/* mobile menu button */
.lp-menu-toggle {
  display: none;
  flex-direction: column;
  width: 34px; height: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 5px;
  justify-content: center;
}
.lp-menu-bar {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  background: var(--lp-ink);
  transition: transform 0.2s ease;
}

/* ===================== hero ===================== */
.lp-hero {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 4rem;
  z-index: 1;
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1100px circle at 50% 0%, color-mix(in srgb, var(--lp-purple) 6%, transparent) 0%, transparent 60%);
  z-index: -1;
}
.lp-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.lp-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lp-purple-deep);
  margin-bottom: 0.75rem;
}
.lp-h1 {
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--lp-ink);
}
.lp-lead {
  margin-top: 1rem;
  max-width: 640px;
  color: var(--lp-muted);
  font-size: 1.05rem;
}
.lp-hero-ctas {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 600;
  padding: 12px 22px;
  border: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.18s ease, background 0.18s ease;
  font-size: 0.95rem;
}
.lp-btn-primary {
  background: var(--lp-action);
  color: #fff;
  box-shadow: var(--lp-shadow);
}
.lp-btn-primary:hover { background: var(--lp-action-hover); }
.lp-btn-primary:active { transform: translateY(1px); }
.lp-btn-ghost {
  background: var(--lp-surface);
  color: var(--lp-ink);
  border: 1px solid var(--lp-line);
}
.lp-btn-ghost:hover { background: var(--lp-surface-lilac); }
.lp-disclaimer-small {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--lp-muted);
}
.lp-cta-caption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lp-purple-deep);
}
.lp-positioning {
  margin-top: 1.4rem;
  max-width: 720px;
  font-size: 0.92rem;
  color: var(--lp-muted);
  line-height: 1.5;
}

.lp-hero-aside {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.lp-mascot {
  width: 170px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 12px 24px rgba(91, 49, 189, 0.12));
}

/* mock interface card */
.lp-mock-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--lp-shadow);
  margin: 0 auto;
}
.lp-mock-header { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.lp-mock-title { font-size: 0.9rem; font-weight: 700; color: var(--lp-ink); }
.lp-mock-sub { font-size: 0.8rem; color: var(--lp-muted); }
.lp-mock-body { display: flex; flex-direction: column; gap: 8px; }
.lp-mock-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.lp-mock-row {
  height: 10px;
  background: color-mix(in srgb, var(--lp-purple) 12%, var(--lp-bg));
  border-radius: 6px;
  width: var(--w, 80%);
}
.lp-mock-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.lp-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.lp-chip-soft {
  background: color-mix(in srgb, var(--lp-purple) 14%, var(--lp-bg));
  color: var(--lp-purple-deep);
  border: 1px solid var(--lp-line);
}

/* ===================== value strip ===================== */
.lp-value {
  background: var(--lp-surface);
  border-top: 1px solid var(--lp-line);
  border-bottom: 1px solid var(--lp-line);
  padding: 0.9rem 0;
}
.lp-value-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.lp-value-chip {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lp-muted);
  background: color-mix(in srgb, var(--lp-purple) 7%, transparent);
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  padding: 5px 13px;
}

/* ===================== sections ===================== */
.lp-section {
  padding: clamp(3.2rem, 7vw, 4.5rem) 0;
}
.lp-section-alt { background: var(--lp-surface-lilac); }
.lp-h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.6rem;
  color: var(--lp-ink);
}
.lp-hint {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  color: var(--lp-muted);
  margin-bottom: 2.4rem;
  font-size: 1.02rem;
}

.lp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

/* Features section: fixed 3 / 2 / 1 column layout */
.lp-grid--features {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
  .lp-grid--features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .lp-grid--features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lp-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: var(--lp-shadow);
  transition: transform 0.15s ease, border-color 0.18s ease;
}
.lp-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--lp-purple) 26%, transparent); }
.lp-card-ico {
  font-size: 1.6rem;
  margin-bottom: 0.85rem;
}
.lp-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--lp-purple-deep);
}
.lp-card-text { color: var(--lp-muted); font-size: 0.95rem; }

/* ===================== steps ===================== */
.lp-steps {
  counter-reset: lp-step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.lp-step {
  counter-increment: lp-step;
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: var(--lp-shadow);
}
.lp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--lp-purple);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.lp-step-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--lp-ink); }

/* decorative layer behind the three step cards */
.lp-steps-figure {
  position: relative;
}
.lp-how-decor {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 108%;
  max-width: 1400px;
  height: auto;
  opacity: 0.18;
  pointer-events: none;
}
.lp-steps {
  position: relative;
  z-index: 1;
}

/* ===================== pricing ===================== */
.lp-pricing {
  background: var(--lp-bg);
}
.lp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .lp-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .lp-pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.lp-pricing-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--lp-shadow);
  display: flex;
  flex-direction: column;
}
.lp-pricing-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--lp-line);
}
.lp-pricing-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lp-purple-deep);
  margin: 0;
}
.lp-pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.lp-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--lp-ink);
  line-height: 1.1;
}
.lp-pricing-price {
  color: var(--lp-muted);
  font-size: 1rem;
  font-weight: 500;
}
.lp-pricing-note {
  font-size: 0.82rem;
  color: var(--lp-muted);
  margin: 0 0 0.75rem;
}
.lp-pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.lp-pricing-list li {
  font-size: 0.9rem;
  color: var(--lp-ink);
  line-height: 1.45;
  position: relative;
  padding-left: 1.25rem;
}
.lp-pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lp-action);
}
.lp-pricing-custom {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--lp-ink);
  text-align: center;
}
/* ===================== contact ===================== */
.lp-contact {
  background: linear-gradient(135deg, color-mix(in srgb, var(--lp-purple) 8%, var(--lp-bg)) 0%, color-mix(in srgb, var(--lp-surface-lilac) 40%, var(--lp-bg)) 100%);
}
.lp-form {
  max-width: 560px;
  margin-inline: auto;
  display: grid;
  gap: 1rem;
  text-align: left;
}
.lp-form-description {
  margin-inline: auto;
  margin-bottom: 1.75rem;
  text-align: center;
}
.lp-field { display: flex; flex-direction: column; gap: 4px; }
.lp-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lp-ink);
}
.lp-optional { color: var(--lp-muted); font-weight: 400; }
.lp-field input,
.lp-field textarea {
  padding: 10px 12px;
  border: 1px solid var(--lp-line);
  border-radius: 10px;
  background: var(--lp-surface);
  color: var(--lp-ink);
  font-size: 0.95rem;
  resize: vertical;
}
.lp-field input:focus, .lp-field textarea:focus {
  border-color: var(--lp-action-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-action-focus) 18%, transparent);
}
.lp-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--lp-muted);
}
.lp-consent input { margin: 0.25rem 0 0; flex: 0 0 auto; }
.lp-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lp-form button:disabled { opacity: 0.65; cursor: wait; }
.lp-form-notice {
  min-height: 1.2em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lp-lime-deep);
}
.lp-form-notice.is-error { color: #a12b2b; }
.lp-form-hint {
  font-size: 0.8rem;
  color: var(--lp-muted);
  margin-top: 0.25rem;
}

/* ===================== footer ===================== */
.lp-footer {
  background: var(--lp-purple-deep);
  color: color-mix(in srgb, var(--lp-surface) 82%, var(--lp-ink));
  border-top: 1px solid var(--lp-line);
  font-size: 0.88rem;
}
.lp-footer a { color: color-mix(in srgb, var(--lp-surface) 82%, var(--lp-ink)); }
.lp-footer a:hover { color: var(--lp-surface); }
.lp-footer-inner {
  display: grid;
  gap: 1rem;
}
.lp-footer-brand .lp-wordmark { color: var(--lp-surface); }
.lp-footer-desc {
  color: color-mix(in srgb, var(--lp-surface) 74%, var(--lp-ink));
  margin-top: 0.3rem;
  max-width: 600px;
}
.lp-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}
.lp-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.lp-placeholder {
  color: color-mix(in srgb, var(--lp-surface) 66%, var(--lp-ink));
  font-style: italic;
}
.lp-placeholder-sep { color: color-mix(in srgb, var(--lp-surface) 50%, var(--lp-ink)); }
.lp-copy { margin-top: 0.5rem; opacity: 0.8; }
.lp-compliance {
  max-width: 860px;
  margin-top: 0.8rem;
  color: color-mix(in srgb, var(--lp-surface) 76%, var(--lp-ink));
  font-size: 0.82rem;
  line-height: 1.45;
}

/* ===================== responsive ===================== */
@media (min-width: 900px) {
  .lp-hero-inner { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}

@media (max-width: 899px) {
  .lp-header-inner { flex-wrap: wrap; gap: 0.5rem; }
  .lp-language { margin-left: auto; }
  .lp-nav { position: relative; }
  .lp-menu-toggle { display: flex; }
  .lp-nav-list {
    display: none;
    position: absolute;
    right: 0; top: 110%;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: var(--lp-shadow);
    min-width: 200px;
    z-index: 1000;
  }
  .lp-nav-list.is-open { display: flex; }
}

@media (max-width: 640px) {
  .lp-hero { padding-top: 3.5rem; }
  .lp-hero-ctas { flex-direction: column; align-items: stretch; }
  .lp-footer-nav { flex-direction: column; gap: 0.7rem; }
  /* toned-down decorative layer on narrow viewports */
  .lp-how-decor { width: 100%; opacity: 0.13; }
}
