/* posi landing — theme aligned with posi app (primary #030213, radius 0.625rem) */
:root {
  --primary: #030213;
  --primary-foreground: #ffffff;
  --background: #ffffff;
  --foreground: #1a1a1f;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --border: rgba(0, 0, 0, 0.1);
  --radius: 0.625rem;
  --radius-lg: 0.875rem;
  --font-sans: ui-sans-serif, system-ui, -apple-system, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
}

.logo {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--primary);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

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

.lang-switcher {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-btn {
  padding: 0.35rem 0.6rem;
  font-size: 0.8125rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--muted-foreground);
  background: transparent;
  border: none;
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--foreground);
  background: var(--muted);
}

.lang-btn.active {
  color: var(--primary-foreground);
  background: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  opacity: 0.9;
}

.btn-primary {
  color: var(--primary-foreground);
  background: var(--primary);
}

.btn-secondary {
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--muted);
}

.btn-large {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
}

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

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--primary);
}

.hero-sub {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.0625rem;
  color: var(--muted-foreground);
}

/* Problem / Why */
.problem {
  padding: 3rem 0;
  background: var(--muted);
}

.problem--compact {
  padding: 2rem 0;
}

.problem-punch {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--primary);
  text-align: center;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

.problem-plans {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--background);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.problem-plans__list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--foreground);
  line-height: 1.5;
}

.problem-plans__list li {
  margin-bottom: 0.5rem;
}

.problem-plans__list li:last-child {
  margin-bottom: 0;
}

.problem-plans__list .tier-badge {
  vertical-align: middle;
}

.problem-rest__label {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-align: center;
}

.problem-rest__list {
  margin: 0 auto;
  padding-left: 0;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem 1.5rem;
  max-width: 620px;
  list-style: none;
}

.problem-rest__list li {
  margin-bottom: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.problem-rest__emoji {
  flex-shrink: 0;
  font-size: 1.1em;
  line-height: 1.4;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--primary);
}

.section-sub {
  margin: 0 0 2rem;
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 60ch;
}

.problem-intro,
.problem-outro {
  margin: 0 0 1rem;
  color: var(--foreground);
  max-width: 65ch;
}

.problem-list {
  margin: 1rem 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--foreground);
}

.problem-list li {
  margin-bottom: 0.35rem;
}

/* Screenshots — carousel */
.screenshots {
  padding: 3rem 0 4rem;
}

.screenshots .section-title {
  text-align: center;
}

.screenshots .section-sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.carousel {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--muted);
  height: 70vh;
  min-height: 360px;
}

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.carousel__slide img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
  background: var(--background);
}

.carousel__slide--mobile img {
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 9/19;
  object-fit: cover;
}

.carousel__caption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-align: center;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.carousel__btn {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.carousel__btn:hover:not(:disabled) {
  background: var(--primary);
  color: var(--primary-foreground);
}

.carousel__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.carousel__dots {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--muted-foreground);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.carousel__dot:hover {
  opacity: 0.7;
}

.carousel__dot[aria-current="true"] {
  opacity: 1;
  background: var(--primary);
  transform: scale(1.2);
}

/* Features */
.features {
  padding: 3rem 0 4rem;
  background: var(--muted);
}

.features .section-title {
  text-align: center;
}

.features-intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 0;
}

.feature-card {
  padding: 1.5rem 1.5rem;
  background: var(--background);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  padding-left: 1.75rem;
  border-left: 3px solid var(--muted-foreground);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.feature-card h3 .tier-badge {
  margin-left: auto;
  flex-shrink: 0;
  vertical-align: middle;
}

.feature-card ul {
  margin: 0;
  padding-left: 1.25rem;
}

.feature-card li {
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
  color: var(--foreground);
  line-height: 1.4;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 4px;
}

.badge-plus {
  background: var(--primary);
  color: var(--primary-foreground);
}

.feature-card-plus {
  border-left-color: var(--primary);
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(3, 2, 19, 0.06);
}

/* Pricing / Tiers */
.pricing {
  padding: 3rem 0 4rem;
}

.pricing .section-title {
  text-align: center;
}

.pricing .section-sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.tier-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 720px;
  margin: 0 auto;
  align-items: stretch;
}

.tier-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  background: var(--background);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.tier-card h3,
.tier-card > .tier-badge {
  min-height: 2.25rem;
  margin: 0 0 0.5rem;
  box-sizing: border-box;
}

.tier-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.tier-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 4px;
}

.tier-card > .tier-badge {
  display: inline-flex;
  align-items: center;
}

.tier-desc {
  margin: 0 0 1.25rem;
  min-height: 2.8em;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.tier-features {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--foreground);
  flex: 1 1 auto;
  min-height: 0;
}

.tier-card > a {
  margin-top: auto;
  flex-shrink: 0;
}

.tier-features li {
  margin-bottom: 0.35rem;
}

.tier-plus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.tier-card .btn {
  width: 100%;
  box-sizing: border-box;
}

/* CTA */
.cta {
  padding: 3rem 0;
  background: var(--primary);
  color: var(--primary-foreground);
  text-align: center;
}

.cta-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
}

.cta .btn-primary {
  color: var(--primary);
  background: var(--primary-foreground);
}

.cta .btn-primary:hover {
  opacity: 0.92;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  margin: 0 0 0.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
}

.footer-tagline {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-site {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* Responsive */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .problem-rest__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .hero {
    padding: 2rem 0 3rem;
  }

  .carousel__slide {
    padding: 0.75rem;
  }

  .carousel__slide img {
    max-height: 60vh;
  }

  .carousel__slide--mobile img {
    max-width: 200px;
  }

  .carousel__btn {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.1rem;
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
