:root {
  --bg: #f0efeb;
  --bg-deep: #e8e6e0;
  --surface: #ffffff;
  --surface-subtle: #f5f5f5;
  --text: #0a0a0a;
  --text-muted: #6b6b66;
  --text-soft: #9e9e9e;
  --border: #e0ded7;
  --border-strong: #1a1a1a;
  --brand: #ffc857;
  --brand-deep: #f5b82e;
  --link-blue: #1e90ff;
  --accent-brown: #754121;
  --success: #58bb51;
  --success-subtle: #eaf7ee;
  --danger: #f86b6b;
  --danger-subtle: #ffcfcf;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Roboto', system-ui, -apple-system, Segoe UI, sans-serif;
  --cond: 'Roboto Condensed', 'Roboto', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg:
    0 30px 60px -20px rgba(20, 16, 8, 0.18),
    0 18px 36px -18px rgba(20, 16, 8, 0.14);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #1a1a1a;
}
.btn-primary:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface);
}

/* App store badges */
.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 14px;
  background: #0a0a0a;
  color: #fff;
  border: 1px solid #0a0a0a;
  transition:
    transform 0.15s ease,
    background 0.2s ease;
}
.badge:hover {
  transform: translateY(-2px);
  background: #1f1f1f;
}
.badge svg {
  flex-shrink: 0;
}
.badge .label {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}
.badge .label .top {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.78;
  font-weight: 500;
}
.badge .label .bot {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 239, 235, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
header.site.scrolled {
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 96px;
  height: 44px;
  display: grid;
  place-items: center;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav-cta .btn {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}
@media (max-width: 800px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 56px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  color: #1a1a1a;
}
h1.headline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  text-wrap: balance;
}
h1.headline .accent {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
h1.headline .accent::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 6%;
  height: 36%;
  background: var(--brand);
  z-index: -1;
  border-radius: 4px;
}
.subhead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 520px;
  line-height: 1.55;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 13px;
}
.stars {
  display: inline-flex;
  gap: 1px;
  color: #f5b82e;
  font-size: 14px;
  letter-spacing: -1px;
}

/* Phone frame */
.phone {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1080 / 2424;
  margin: 0 auto;
  background: #0a0a0a;
  border-radius: 46px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-phone-wrap {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-phone-wrap .phone {
  max-width: 340px;
  transform: rotate(-1.5deg);
}
.hero-phone-wrap .phone-bg-blob {
  position: absolute;
  inset: 10% -10% 10% -10%;
  background: radial-gradient(
    circle at 60% 40%,
    rgba(255, 200, 87, 0.55),
    rgba(255, 200, 87, 0) 60%
  );
  z-index: -1;
  filter: blur(20px);
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero {
    padding: 32px 0 64px;
  }
  .hero-phone-wrap .phone {
    max-width: 280px;
    transform: rotate(0);
  }
}

/* ---------- Section heading ---------- */
.section {
  padding: 120px 0;
}
.section.tight {
  padding: 88px 0;
}
.section-head {
  text-align: center;
  margin: 0 auto 64px;
  max-width: 720px;
}
.kicker {
  display: inline-block;
  font-family: var(--cond);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 700;
}
h2.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.section-sub {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  margin-bottom: 4px;
}
.feature-icon.brand {
  background: var(--brand);
  border-color: transparent;
}

@media (max-width: 980px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* ---------- How it works ---------- */
.how-section {
  background: #1a1a1a;
  color: #fff;
  border-radius: 36px;
  margin: 24px;
}
.how-section h2.section-title {
  color: #fff;
}
.how-section .kicker {
  color: rgba(255, 255, 255, 0.55);
}
.how-section .section-sub {
  color: rgba(255, 255, 255, 0.65);
}
.how-section .section {
  padding-left: 24px;
  padding-right: 24px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  align-items: start;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.step-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 52px;
  line-height: 0.9;
  color: var(--brand);
  letter-spacing: -0.03em;
}
.step h3 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.step p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.step-phone .phone {
  max-width: 220px;
  background: transparent;
  padding: 0;
  box-shadow: none;
  margin: 0;
}
.step-phone .phone-screen {
  border-radius: 28px;
  position: relative;
}
.step-phone .phone-screen img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: unset;
}
@media (max-width: 880px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .step-phone .phone {
    max-width: 240px;
  }
  .how-section {
    margin: 12px;
    border-radius: 28px;
  }
}

/* ---------- AI Highlight ---------- */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ai-copy h2 {
  text-align: left;
  margin-top: 0;
}
.ai-copy .section-head {
  text-align: left;
  margin: 0 0 28px;
}
.ai-copy ul {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ai-copy ul li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--text);
}
.ai-copy ul li .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #1a1a1a;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.ai-demo {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.ai-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 15px;
}
.ai-input .you {
  color: var(--text-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--cond);
  font-weight: 700;
}
.ai-arrow {
  display: grid;
  place-items: center;
  color: var(--text-soft);
  padding: 14px 0;
  font-size: 14px;
  gap: 8px;
}
.ai-arrow .gen {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.ai-output {
  background: var(--bg);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ai-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ai-field .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  font-family: var(--cond);
  font-weight: 700;
}
.ai-field .val {
  font-size: 16px;
  font-weight: 500;
}
.ai-field .val.serif {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}
.ai-field .val.mono {
  font-family: var(--mono);
  color: var(--text-muted);
  font-size: 14px;
}
.ai-field .examples {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.ai-field .examples i {
  font-style: italic;
}
.ai-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 880px) {
  .ai-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}
.plan {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.plan.premium {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
  position: relative;
}
.plan .plan-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}
.plan h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.01em;
}
.plan .price-note {
  color: var(--text-muted);
  font-size: 14px;
}
.plan.premium .price-note {
  color: rgba(255, 255, 255, 0.6);
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
}
.plan li .tick {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--bg);
  color: var(--text);
}
.plan.premium li .tick {
  background: var(--brand);
  color: #1a1a1a;
}
.plan .pill-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.plan .free-note {
  font-family: var(--cond);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  font-weight: 700;
}
@media (max-width: 720px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 100px 0;
}
.final-cta h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 54px);
  margin: 0 0 18px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
.final-cta p {
  color: var(--text-muted);
  font-size: 18px;
  margin: 0 0 36px;
}
.final-cta .badges {
  justify-content: center;
}

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  background: var(--bg);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-row .copy {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: var(--text);
}
@media (max-width: 720px) {
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ---------- Lang carousel ---------- */
.lang-strip {
  overflow: hidden;
  padding: 32px 0;
}
.lang-track {
  display: flex;
  gap: 48px;
  animation: scroll 40s linear infinite;
  width: max-content;
}
.lang-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  color: var(--text-soft);
  white-space: nowrap;
}
.lang-item .flag {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
  display: inline-block;
  border: 1px solid var(--border);
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* selection */
::selection {
  background: var(--brand);
  color: #1a1a1a;
}
