/* ============================================
   "Kai gyvūnai jaučia" – Oria Soul Style
   ============================================
   Tikslios Oria Soul specifikacijos:
   - Heading font: Holy River (Bold) → fallback: Great Vibes
   - Body font: Agrandir Thin (Bold) → fallback: DM Sans
   - Šrifto spalva: #436407 (olive green)
   - Background: #F8F2E9 (warm cream)
   - Accent (mygtukai): #c8922a (golden)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  /* Oria Soul tikslios spalvos */
  --color-bg: #F8F2E9;
  --color-bg-warm: #f0e8db;
  --color-text: #436407;
  --color-text-soft: #5a7a2a;
  --color-accent: #c8922a;
  --color-accent-hover: #a87820;
  --color-green: #436407;
  --color-green-light: #5a7a2a;
  --color-card-bg: #fdf8f0;
  --color-card-back: #3a3024;
  --color-card-back-pattern: #4d4135;
  --color-muted: #7a8a60;
  --color-light: #e8dfd2;
  --color-overlay: rgba(30, 20, 10, 0.65);
  --color-cream: #FBF6EE;

  /*
   * Tikslūs Oria Soul šriftai:
   *   Heading: "Holy River" (Wix custom font)
   *   Body: "Agrandir Thin" (Wix custom font)
   *
   * Web fallback'ai (Google Fonts):
   *   Heading: "Great Vibes" (artimas Holy River script stilius)
   *   Body: "DM Sans" (švarus, geometrinis – artimas Agrandir)
   *
   * Kai embed'insit į Wix – pakeiskite į tikrus fontus:
   *   --font-display: 'Holy River', 'Great Vibes', cursive;
   *   --font-body: 'Agrandir Thin', 'DM Sans', sans-serif;
   */
  --font-display: 'Great Vibes', 'Holy River', cursive;
  --font-body: 'DM Sans', 'Agrandir Thin', sans-serif;
  --font-ui: 'DM Sans', 'Segoe UI', system-ui, sans-serif;

  --radius: 16px;
  --shadow: 0 4px 24px rgba(58, 48, 36, 0.08);
  --shadow-lg: 0 12px 48px rgba(58, 48, 36, 0.15);
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

/* ============================================
   Typography – Oria Soul style
   ============================================ */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-green);
  font-style: normal;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--color-green);
}

/* ============================================
   Language Switcher (flags)
   ============================================ */

.lang-switcher {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 500;
  display: flex;
  gap: 6px;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.lang-switcher__btn {
  width: 32px;
  height: 22px;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  background: none;
  padding: 0;
  transition: all var(--transition);
  opacity: 0.5;
  font-size: 0;
  position: relative;
}

.lang-switcher__btn.is-active {
  border-color: var(--color-accent);
  opacity: 1;
  box-shadow: 0 0 8px rgba(200, 146, 42, 0.3);
}

.lang-switcher__btn:hover {
  opacity: 1;
}

/* CSS flags */
.lang-switcher__btn::before {
  content: '';
  position: absolute;
  inset: 0;
}

.lang-switcher__btn[data-lang="lt"]::before {
  background: linear-gradient(to bottom, #fdb913 33.3%, #006a44 33.3%, #006a44 66.6%, #c1272d 66.6%);
}

.lang-switcher__btn[data-lang="en"]::before {
  background:
    linear-gradient(to bottom, #012169 0% 100%);
}

.lang-switcher__btn[data-lang="en"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 30%, #fff 30%, #fff 37%, #c8102e 37%, #c8102e 43%, transparent 43%, transparent 57%, #c8102e 57%, #c8102e 63%, #fff 63%, #fff 70%, transparent 70%),
    linear-gradient(to right, transparent 40%, #fff 40%, #fff 46%, #c8102e 46%, #c8102e 54%, #fff 54%, #fff 60%, transparent 60%);
}

.lang-switcher__btn[data-lang="ru"]::before {
  background: linear-gradient(to bottom, #fff 33.3%, #0039a6 33.3%, #0039a6 66.6%, #d52b1e 66.6%);
}

/* ============================================
   Layout
   ============================================ */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--color-cream);
}

.section--warm {
  background: var(--color-bg-warm);
}

.text-center {
  text-align: center;
}

/* ============================================
   Buttons – Oria Soul golden style
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(200, 146, 42, 0.35);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn--large {
  padding: 18px 48px;
  font-size: 1.05rem;
}

/* ============================================
   LANDING PAGE – Hero
   ============================================ */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  background: var(--color-bg);
}

.hero__content {
  max-width: 720px;
}

.hero__badge {
  display: inline-block;
  padding: 6px 20px;
  background: var(--color-light);
  border-radius: 50px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 28px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__title {
  margin-bottom: 24px;
  color: var(--color-green);
}

.hero__title em {
  color: var(--color-accent);
  font-style: normal;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--color-text-soft);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   LANDING PAGE – Features
   ============================================ */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.feature-card {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition);
  border: 1px solid var(--color-light);
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card__icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.feature-card__title {
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-green);
  font-family: var(--font-display);
}

.feature-card__text {
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

/* ============================================
   LANDING PAGE – Steps / How it Works
   ============================================ */

.steps {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  text-align: center;
}

.step__number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-family: var(--font-display);
}

.step__title {
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-green);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.step__text {
  color: var(--color-text-soft);
  font-size: 0.88rem;
}

/* ============================================
   LANDING PAGE – CTA
   ============================================ */

.cta-section {
  background: var(--color-card-back);
  color: #fff;
  text-align: center;
  padding: 80px 24px;
}

.cta-section h2 {
  color: var(--color-accent);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-style: normal;
}

/* ============================================
   LANDING PAGE – Demo Preview
   ============================================ */

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin-top: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.demo-card {
  aspect-ratio: 2/3;
  background: var(--color-card-back);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-style: normal;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.demo-card:hover {
  transform: rotate(-2deg) scale(1.05);
}

/* ============================================
   LANDING PAGE – Footer
   ============================================ */

.footer {
  padding: 40px 24px;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-family: var(--font-ui);
}

.footer a {
  color: var(--color-muted);
}

.footer a:hover {
  color: var(--color-accent);
}

/* ============================================
   FAQ – Details/Summary
   ============================================ */

.faq-item {
  margin-bottom: 14px;
  padding: 20px 24px;
  background: var(--color-card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-light);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-text);
}

.faq-item p {
  margin-top: 12px;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

/* ============================================
   CARD APP – Header
   ============================================ */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--color-cream);
  box-shadow: 0 1px 8px rgba(58, 48, 36, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-light);
}

.app-header__logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: normal;
  color: var(--color-green);
}

.app-header__counter {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-family: var(--font-ui);
}

.app-header__nav {
  display: flex;
  gap: 8px;
}

.app-header__btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-light);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  color: var(--color-text);
}

.app-header__btn:hover {
  background: var(--color-light);
  color: var(--color-accent);
}

.app-header__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ============================================
   CARD APP – Card Stage
   ============================================ */

.card-stage {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100vh - 68px);
  padding: 24px 24px 0;
  perspective: 1200px;
  background: var(--color-bg);
  position: relative;
}

/* ============================================
   CARD APP – Card (Flip)
   ============================================ */

.card-container {
  width: 280px;
  max-width: 75vw;
  aspect-ratio: 2 / 3;
  max-height: calc(100vh - 320px);
  position: relative;
  cursor: pointer;
}

.card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.card.is-flipped {
  transform: rotateY(180deg);
}

.card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Back face — dark green with gold accents */
.card__back {
  background: linear-gradient(160deg, #2d4a0a 0%, #1a3206 40%, #254108 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
}

/* Double gold border frame */
.card__back-pattern {
  position: absolute;
  inset: 10px;
  border: 1.5px solid rgba(200, 146, 42, 0.4);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
}

.card__back-pattern::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(200, 146, 42, 0.2);
  border-radius: calc(var(--radius) - 8px);
}

/* Gold hearts in corners */
.card__back-pattern::before {
  content: '♡  ♡';
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(200, 146, 42, 0.35);
  letter-spacing: 0.3em;
}

.card__back::before {
  content: '♡  ♡';
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(200, 146, 42, 0.35);
  letter-spacing: 0.3em;
  z-index: 1;
}

.card__back-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: normal;
  color: rgba(200, 146, 42, 0.85);
  text-align: center;
  z-index: 1;
  line-height: 1.5;
}

.card__back-logo small {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-style: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(200, 146, 42, 0.4);
  margin-top: 8px;
}

.card__back-heart {
  font-size: 2rem;
  color: rgba(200, 146, 42, 0.5);
  z-index: 1;
  opacity: 1;
}

/* Front face */
.card__front {
  transform: rotateY(180deg);
  background: var(--color-card-bg);
  display: flex;
  flex-direction: column;
}

.card__image-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: var(--color-light);
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Subtle watermark overlay */
.card__image-wrapper::after {
  content: 'Oria Soul';
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: 'Great Vibes', cursive;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  z-index: 2;
  letter-spacing: 1px;
}

.card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8dfd2 0%, #d4c9b8 100%);
}

.card__placeholder svg {
  width: 70px;
  height: 70px;
  opacity: 0.25;
  color: var(--color-muted);
}

.card__label {
  padding: 14px 16px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: normal;
  color: var(--color-green);
  background: var(--color-card-bg);
  border-top: 1px solid var(--color-light);
}

/* ============================================
   CARD APP – Question Overlay
   ============================================ */

/* Full access — no purchase buttons, less bottom space needed */
.is-full-access .card-stage {
  padding-bottom: 0;
}
.is-full-access .question-overlay {
  bottom: 80px;
}

.question-overlay {
  position: absolute;
  bottom: 200px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 0 12px;
  pointer-events: none;
}

.question-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.question-panel {
  background: var(--color-cream);
  border-radius: var(--radius);
  padding: 12px 16px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  border: 1px solid var(--color-light);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.question-overlay.is-visible .question-panel {
  transform: translateY(0);
  opacity: 1;
}

.question-panel__icon {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.question-panel__text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: normal;
  color: var(--color-text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.question-panel__subtext {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.question-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.question-panel__next {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 14px;
  transition: color var(--transition);
}

.question-panel__next:hover {
  color: var(--color-accent);
}

/* ============================================
   CARD APP – Navigation arrows
   ============================================ */

.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-light);
  background: var(--color-cream);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 50;
  transition: all var(--transition);
  color: var(--color-text);
}

.nav-arrow:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.nav-arrow--left { left: 16px; }
.nav-arrow--right { right: 16px; }

.nav-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

/* ============================================
   i18n – Language visibility
   ============================================ */

[data-i18n-lang] {
  display: none;
}

[data-i18n-lang].is-active-lang {
  display: revert;
}

/* For inline elements like spans */
span[data-i18n-lang], em[data-i18n-lang], a[data-i18n-lang] {
  display: none;
}

span[data-i18n-lang].is-active-lang,
em[data-i18n-lang].is-active-lang,
a[data-i18n-lang].is-active-lang {
  display: inline;
}

/* ============================================
   Accessibility
   ============================================ */

/* Focus visible – keyboard navigation */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip navigation link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 0;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .card { transition: none; }
  html { scroll-behavior: auto; }
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 600px) {
  .card-container { width: 250px; max-height: calc(100vh - 280px); }
  .card-stage { padding: 16px 16px 0; }
  .hero { min-height: 80vh; padding: 60px 16px 40px; }
  .nav-arrow { width: 38px; height: 38px; font-size: 1rem; }
  .nav-arrow--left { left: 6px; }
  .nav-arrow--right { right: 6px; }
  .question-panel { padding: 10px 14px; max-width: 340px; }
  .question-panel__text { font-size: 0.9rem; }
  .question-panel__subtext { font-size: 0.75rem; }
  .question-panel__next { font-size: 0.75rem; padding: 5px 12px; }
  .app-header { padding: 12px 16px; }
  .steps { flex-direction: column; align-items: center; }
  .lang-switcher { top: 12px; right: 12px; }
  .btn--large { padding: 16px 32px; font-size: 1rem; }
  .section { padding: 56px 0; }
  .is-full-access .card-stage { padding-bottom: 0; }
}

@media (max-width: 360px) {
  .card-container { width: 220px; max-height: calc(100vh - 260px); }
  .card-stage { padding: 12px 12px 0; }
  .hero__title { font-size: 2rem; }
  .hero__actions { flex-direction: column; }
  .question-overlay { bottom: 200px; }
  .question-panel { max-width: 300px; padding: 8px 12px; }
  .is-full-access .card-stage { padding-bottom: 0; }
}

/* ============================================
   Embed mode — compact for Wix iframe
   ============================================ */
body.embed-mode .hero {
  min-height: auto;
  padding: 24px 24px 32px;
}
body.embed-mode .hero__badge {
  margin-bottom: 16px;
}
body.embed-mode .section {
  padding: 40px 16px;
}
body.embed-mode .footer,
body.embed-mode .cookie-bar {
  display: none !important;
}
