/* Amiku public site styles */

:root {
  --bg-primary: #0f0a1a;
  --bg-secondary: #1a1128;
  --bg-card: #231838;
  --text-primary: #f0e6ff;
  --text-secondary: #b8a4d6;
  --text-muted: #7c6a9a;
  --accent: #d6336c;
  --accent-hover: #e8437a;
  --accent-glow: rgba(214, 51, 108, 0.3);
  --border: #2d1f45;
  --success: #4dd67a;
  --radius: 18px;
  --radius-sm: 12px;
  --container-pad: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.desktop-bg {
  display: none;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  position: relative;
  z-index: 1;
}

header {
  padding: 24px 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-text {
  width: 200px;
  height: auto;
}

.btn-login {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-login:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(214, 51, 108, 0.08);
}

.landing-main {
  padding: 12px 0 64px;
}

.hero {
  text-align: center;
  padding: 14px 0 28px;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1rem;
}

.carousel-section {
  padding: 0 0 28px;
  margin: 0 calc(var(--container-pad) * -1);
}

.carousel-viewport {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--container-pad);
  scrollbar-width: none;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.tpl-card {
  flex-shrink: 0;
  width: 160px;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 2px solid transparent;
  transition: border-color 0.3s, transform 0.3s;
  cursor: pointer;
}

.tpl-card.active {
  border-color: var(--accent);
  transform: scale(1.04);
}

.tpl-media,
.tpl-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpl-video {
  opacity: 0;
  transition: opacity 0.4s;
}

.tpl-card.active .tpl-video {
  opacity: 1;
}

.tpl-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 14px 12px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.32) 58%, transparent 100%);
  pointer-events: none;
}

.tpl-info {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 3px;
}

.tpl-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.tpl-age {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.tpl-tagline {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.welcome-stack {
  max-width: 560px;
  margin: 0 auto;
  padding: 4px 0 30px;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.feature-title {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.btn-primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 16px 34px rgba(214, 51, 108, 0.24);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:active {
  transform: scale(0.99);
}

.continue-button {
  margin-bottom: 18px;
}

.pricing-info {
  background: linear-gradient(180deg, rgba(35, 24, 56, 0.96), rgba(26, 17, 40, 0.96));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px 18px 20px;
}

.trial-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(232, 67, 122, 0.92), rgba(214, 51, 108, 0.94) 42%, rgba(112, 31, 74, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 22px 18px 18px;
  box-shadow: 0 26px 48px rgba(214, 51, 108, 0.24);
  margin-bottom: 18px;
}

.trial-hero::after {
  content: '';
  position: absolute;
  inset: auto -12% -42% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.trial-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px 11px;
  background: rgba(15, 10, 26, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  margin-bottom: 12px;
}

.trial-badge-top {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trial-badge-main {
  color: #fff;
  font-size: 2rem;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trial-hero-copy {
  max-width: 460px;
}

.trial-hero-kicker {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 8px;
}

.trial-hero-subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.93rem;
  line-height: 1.45;
}

.pricing-header {
  text-align: center;
  margin-bottom: 18px;
}

.pricing-kicker {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pricing-header h2 {
  font-size: 1.35rem;
  line-height: 1.15;
  margin-bottom: 8px;
}

.pricing-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.pricing-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.pricing-card {
  background: rgba(15, 10, 26, 0.5);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 16px;
}

.pricing-card-free {
  background: rgba(26, 17, 40, 0.72);
}

.pricing-card-premium {
  background: rgba(35, 24, 56, 0.86);
}

.pricing-card-best {
  border-color: rgba(214, 51, 108, 0.6);
  box-shadow: 0 0 0 1px rgba(214, 51, 108, 0.18), 0 18px 34px rgba(214, 51, 108, 0.14);
}

.pricing-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.pricing-plan {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.pricing-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
}

.pricing-price {
  color: var(--text-primary);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 10px;
}

.pricing-price span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 4px;
}

.pricing-copy {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.pricing-points {
  list-style: none;
  display: grid;
  gap: 8px;
}

.pricing-points li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.83rem;
}

.pricing-points li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.trial-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
  max-width: 560px;
  margin: 0 auto;
}

.trial-note-emphasis {
  display: block;
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 6px;
}

footer {
  padding: 0 0 32px;
  text-align: center;
}

footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  :root {
    --container-pad: 32px;
  }

  .landing-main {
    padding-bottom: 80px;
  }

  .hero {
    padding: 18px 0 34px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.08rem;
  }

  .carousel-section {
    padding-bottom: 36px;
  }

  .tpl-card {
    width: 190px;
  }

  .welcome-stack {
    max-width: none;
    padding-bottom: 38px;
  }

  .pricing-info {
    padding: 26px 24px 24px;
  }

  .trial-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 24px 22px 22px;
  }

  .trial-badge {
    margin-bottom: 0;
    padding: 14px 18px 15px;
  }

  .trial-badge-main {
    font-size: 2.45rem;
  }

  .trial-hero-kicker {
    font-size: 1.35rem;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (min-width: 1024px) {
  html:not(.wide-tablet-shell) .desktop-bg {
    display: block;
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
  }

  html:not(.wide-tablet-shell) .desktop-bg .desktop-glow-pink {
    position: absolute;
    top: -10%;
    left: -5%;
    width: 40%;
    height: 50%;
    background: radial-gradient(ellipse, rgba(214, 51, 108, 0.07) 0%, transparent 70%);
  }

  html:not(.wide-tablet-shell) .desktop-bg .desktop-glow-purple {
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 40%;
    height: 50%;
    background: radial-gradient(ellipse, rgba(26, 17, 40, 0.5) 0%, transparent 70%);
  }

  html:not(.wide-tablet-shell) .container {
    max-width: 960px;
    border-left: 1px solid rgba(45, 31, 69, 0.3);
    border-right: 1px solid rgba(45, 31, 69, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    min-height: 100vh;
    background: var(--bg-primary);
  }

  .hero {
    padding-top: 26px;
  }

  .hero h1 {
    font-size: 3.3rem;
  }

  .tpl-card {
    width: 210px;
  }

  .trial-badge-main {
    font-size: 2.8rem;
  }
}
