/* ============================================================
   StilUp landing — design tokens taken from the app itself
   ============================================================ */
:root {
  --ink: #1E2433;
  --ink-soft: #4B5265;
  --muted: #6B7280;
  --cloud: #F4F5F9;
  --white: #FFFFFF;
  --iris: #6366F1;
  --iris-deep: #4F46E5;
  --violet: #8B5CF6;
  --lavender: #E4E7FD;
  --lavender-soft: #EEF0FE;
  --sunrise-a: #FFA53D;
  --sunrise-b: #FF7043;
  --line: #E5E7EF;
  --radius: 24px;
  --radius-sm: 14px;
  --grad-brand: linear-gradient(120deg, #6366F1, #8B5CF6 55%, #A855F7);
  --grad-sunrise: linear-gradient(135deg, #FFB84D, #FF8A3D 55%, #FF7043);
  --shadow-card: 0 6px 24px rgba(30, 36, 51, 0.07);
  --shadow-phone: 0 32px 64px -24px rgba(79, 70, 229, 0.35), 0 8px 24px rgba(30,36,51,.12);
  --font: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-script: "Yellowtail", "Snell Roundhand", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }

body {
  font-family: var(--font);
  background: var(--cloud);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid var(--iris);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- shared ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--iris);
  margin-bottom: 14px;
}
.section { padding: 104px 24px; }
.section-alt { background: var(--white); }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-inner.narrow { max-width: 760px; }
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 640px;
  margin-bottom: 56px;
}
.section-title.center { margin-left: auto; margin-right: auto; text-align: center; }
.grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  font-family: var(--font);
  font-weight: 600; text-decoration: none;
  border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, .35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(99,102,241,.42); }
.btn-sm { padding: 10px 20px; font-size: 15px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 245, 249, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 239, .8);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-hanger { width: 30px; height: 30px; }
.brand-word {
  font-family: var(--font-script);
  font-size: 27px; line-height: 1;
  background: linear-gradient(100deg, #F472B6, #8B5CF6 55%, #38BDF8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 4px; /* keep script tail from clipping */
}
.brand-word.sm { font-size: 24px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15px;
}
.nav-links a:hover { color: var(--iris-deep); }
.nav-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav-links + .nav-right { margin-left: 0; }

.lang-switch {
  display: inline-flex; background: var(--lavender-soft);
  border: 1px solid var(--lavender); border-radius: 999px; padding: 3px;
}
.lang-btn {
  font-family: var(--font); font-size: 12.5px; font-weight: 700;
  color: var(--muted); background: transparent; border: 0;
  border-radius: 999px; padding: 5px 11px; cursor: pointer;
}
.lang-btn.is-active { background: var(--white); color: var(--iris-deep); box-shadow: 0 1px 4px rgba(30,36,51,.12); }

/* ---------- hero ---------- */
.hero { overflow: hidden; padding: 72px 24px 110px; }
.hero-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-title {
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 800; line-height: 1.06; letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-sub { font-size: 19px; color: var(--ink-soft); max-width: 480px; margin-bottom: 34px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badges.center { justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff; text-decoration: none;
  border-radius: 14px; padding: 10px 20px 10px 16px;
  transition: transform .15s ease, background .15s ease;
}
.store-badge:hover { transform: translateY(-2px); background: #2A3147; }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 11px; opacity: .75; line-height: 1.2; }
.store-badge strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.2; }
.store-badge.light { background: #fff; color: var(--ink); }
.store-badge.light:hover { background: var(--lavender-soft); }

.trial-note {
  display: flex; align-items: center; gap: 10px;
  margin-top: 22px; font-size: 15px; font-weight: 500; color: var(--ink-soft);
}
.trial-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--grad-sunrise);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, .18);
}

/* ---------- hero demo (signature element) ---------- */
.hero-demo { position: relative; }
.demo-hint {
  display: flex; align-items: flex-end; gap: 6px;
  color: var(--iris); margin: 0 0 6px 8px;
}
.script-note { font-family: "Caveat", var(--font-script); font-size: 27px; font-weight: 600; line-height: 1.1; }
.hint-arrow { width: 44px; height: 30px; margin-bottom: -8px; }

.occasion-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  font-family: var(--font); font-size: 14px; font-weight: 600;
  color: var(--ink-soft); background: var(--white);
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 15px; cursor: pointer;
  transition: all .18s ease;
}
.chip:hover { border-color: var(--iris); color: var(--iris-deep); }
.chip.is-active {
  background: var(--lavender); border-color: var(--iris);
  color: var(--iris-deep);
}

.phone {
  position: relative;
  width: min(330px, 88vw);
  border-radius: 46px;
  background: var(--white);
  border: 6px solid var(--ink);
  box-shadow: var(--shadow-phone);
  transform: rotate(1.6deg);
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 24px; border-radius: 999px; background: var(--ink);
  z-index: 2;
}
.phone-screen {
  border-radius: 40px; overflow: hidden;
  background: var(--cloud);
  padding: 46px 14px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.phone-logo { text-align: center; margin-bottom: -2px; }

.weather-card {
  background: var(--grad-sunrise);
  border-radius: 18px; color: #fff; padding: 12px 15px;
  box-shadow: 0 10px 24px -10px rgba(255, 122, 60, .55);
}
.weather-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 600; }
.weather-icon { font-size: 20px; }
.weather-temp { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.weather-temp span:first-child { font-size: 34px; font-weight: 300; line-height: 1.1; }
.weather-cond { font-size: 13px; font-weight: 600; opacity: .95; }

.outfit-head { display: flex; align-items: center; gap: 10px; padding: 0 2px; }
.occ-pill {
  background: var(--lavender); color: var(--iris-deep);
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 12px;
}
.occ-temp { font-size: 12.5px; color: var(--muted); font-weight: 600; }

.flatlay {
  position: relative; height: 158px;
  background: #FAF9F6; border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.flatlay .fl {
  position: absolute; line-height: 1;
  filter: drop-shadow(0 6px 8px rgba(30,36,51,.14));
  animation: flIn .45s cubic-bezier(.2,.9,.3,1.2) backwards;
}
.flatlay .fl-1 { font-size: 74px; top: 12px; left: 16px; transform: rotate(-6deg); animation-delay: .02s; }
.flatlay .fl-2 { font-size: 56px; top: 64px; left: 108px; transform: rotate(5deg); animation-delay: .1s; }
.flatlay .fl-3 { font-size: 44px; top: 18px; right: 26px; transform: rotate(10deg); animation-delay: .18s; }
.flatlay .fl-4 { font-size: 36px; bottom: 12px; right: 60px; transform: rotate(-8deg); animation-delay: .26s; }
@keyframes flIn {
  from { opacity: 0; translate: 0 14px; scale: .7; }
  to   { opacity: 1; translate: 0 0;   scale: 1; }
}

.why-box {
  background: var(--white); border-radius: 16px; padding: 12px 14px;
  box-shadow: var(--shadow-card);
}
.why-box h4 { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.why-box p { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }

.items-row { display: flex; flex-wrap: wrap; gap: 6px; }
.items-row .item-chip {
  background: var(--white); border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 600; color: var(--ink-soft);
  border-radius: 999px; padding: 4px 10px;
}
.askai {
  align-self: flex-end;
  background: var(--grad-brand); color: #fff;
  font-size: 13px; font-weight: 700;
  border-radius: 999px; padding: 8px 16px;
  box-shadow: 0 8px 18px -6px rgba(139, 92, 246, .6);
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; background: var(--white);
  border-radius: var(--radius); padding: 34px 28px 30px;
  box-shadow: var(--shadow-card);
}
.step-num {
  position: absolute; top: 22px; right: 24px;
  font-size: 44px; font-weight: 800; line-height: 1;
  color: var(--lavender);
}
.step-emoji { font-size: 34px; margin-bottom: 16px; }
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-soft); }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--cloud); border-radius: var(--radius);
  padding: 30px 26px;
}
.feature-ico {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; font-size: 24px;
  margin-bottom: 18px;
}
.feature-ico.lavender { background: var(--lavender); }
.feature-ico.sunrise { background: linear-gradient(135deg, #FFE3C2, #FFD0B5); }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 7px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- screens ---------- */
.screens {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 34px; align-items: end; max-width: 940px; margin: 0 auto;
}
.screen img {
  border-radius: 34px;
  box-shadow: 0 24px 48px -20px rgba(30, 36, 51, .3);
  border: 1px solid var(--line);
}
.screen.is-mid { transform: translateY(-22px); }
.screen figcaption {
  text-align: center; margin-top: 16px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
}

/* ---------- pricing ---------- */
.trial-banner {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #FFF3E4, #FFE8DC);
  border: 1px solid #FFD9BC; color: #A14E1B;
  font-size: 15px; font-weight: 600;
  border-radius: 999px; padding: 10px 20px; margin-bottom: 36px;
}
.billing-toggle {
  display: inline-flex; background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px;
  margin-bottom: 40px; margin-left: 18px; vertical-align: middle;
}
.trial-banner + .billing-toggle { display: flex; width: max-content; margin-left: 0; }
.bt-btn {
  font-family: var(--font); font-size: 14px; font-weight: 600;
  color: var(--muted); background: transparent; border: 0;
  border-radius: 999px; padding: 9px 20px; cursor: pointer;
}
.bt-btn.is-active { background: var(--lavender); color: var(--iris-deep); }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative; background: var(--cloud);
  border-radius: var(--radius); padding: 30px 24px;
  border: 1.5px solid transparent;
  display: flex; flex-direction: column;
}
.plan-popular {
  background: var(--white); border-color: var(--iris);
  box-shadow: 0 18px 40px -18px rgba(99, 102, 241, .4);
}
.popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad-brand); color: #fff; white-space: nowrap;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; padding: 5px 14px;
}
.plan h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.plan-price strong { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.plan-price .per { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.plan-eff { min-height: 22px; font-size: 13.5px; color: var(--iris-deep); font-weight: 600; margin: 2px 0 14px; }
.plan ul { list-style: none; display: grid; gap: 9px; }
.plan li { font-size: 14px; color: var(--ink-soft); padding-left: 24px; position: relative; }
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--iris); font-weight: 800;
}
.credits-note {
  margin-top: 34px; font-size: 14.5px; color: var(--muted);
  max-width: 640px;
}

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--white); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 0 22px;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  font-size: 16.5px; font-weight: 600;
  padding: 18px 30px 18px 0;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%;
  translate: 0 -50%;
  font-size: 24px; font-weight: 400; color: var(--iris);
  transition: rotate .2s ease;
}
.faq-item[open] summary::after { rotate: 45deg; }
.faq-item p { padding: 0 0 20px; color: var(--ink-soft); font-size: 15px; max-width: 620px; }

/* ---------- final cta ---------- */
.cta {
  margin: 0 24px 24px;
  border-radius: 32px;
  background: var(--grad-brand);
  color: #fff; text-align: center;
  padding: 88px 24px;
}
.cta-inner { max-width: 660px; margin: 0 auto; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px; }
.cta p { font-size: 18px; opacity: .92; margin-bottom: 34px; }
.cta-trial { margin-top: 20px; font-size: 14.5px; opacity: .85 !important; margin-bottom: 0 !important; }

/* ---------- footer ---------- */
.footer { background: var(--cloud); padding: 44px 24px 36px; }
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
}
.footer-brand p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.footer-links { display: flex; gap: 22px; margin-left: auto; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 500; }
.footer-links a:hover { color: var(--iris-deep); }
.footer-copy { width: 100%; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; translate: 0 22px; transition: opacity .55s ease, translate .55s ease; }
.reveal.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
  .flatlay .fl { animation: none; }
  .btn, .store-badge, .chip { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { padding-top: 40px; padding-bottom: 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-demo { justify-self: center; max-width: 460px; }
  .phone { margin: 0 auto; transform: rotate(0); }
  .steps { grid-template-columns: 1fr; }
  .screens { grid-template-columns: 1fr; max-width: 340px; gap: 40px; }
  .screen.is-mid { transform: none; }
  .section { padding: 72px 20px; }
}
@media (max-width: 560px) {
  .features, .plans { grid-template-columns: 1fr; }
  .nav-inner { gap: 12px; }
  .btn-sm { padding: 9px 14px; font-size: 13.5px; }
  .billing-toggle { width: 100%; }
  .bt-btn { flex: 1; }
  .cta { margin: 0 12px 12px; padding: 64px 20px; }
}
