/* ═══════════════════════════════════════════════
   StowingIt — warm, editorial, human
   No dark mode. No glassmorphism. No AI starter kit.
   ═══════════════════════════════════════════════ */

/* — Reset & base — */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #faf7f2;
  --warm-white: #fffefa;
  --sand: #f0ebe3;
  --stone: #d8d0c4;
  --text: #2d2a26;
  --text-mid: #5c574f;
  --text-light: #8a847a;
  --gold: #c8922e;
  --gold-light: #f5e6c8;
  --gold-dark: #a67520;
  --heading: 'Outfit', -apple-system, system-ui, sans-serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.gold { color: var(--gold); }

html {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body { min-height: 100dvh; }

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

/* — Layout — */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.wrap--narrow { max-width: 680px; }

/* — Nav — */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav--scrolled { border-bottom-color: var(--stone); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav__logo {
  font-family: var(--heading);
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-mid);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }

.nav__cta {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--warm-white) !important;
  background: var(--text);
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  transition: background 0.2s !important;
}
.nav__cta:hover { background: var(--gold-dark) !important; }

.lang-select {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.5rem;
  border: 1.5px solid var(--sand);
  border-radius: 6px;
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%235c574f' d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.35rem center;
  padding-right: 1.25rem;
  transition: border-color 0.2s;
}
.lang-select:hover { border-color: var(--gold); }
.lang-select:focus { border-color: var(--gold); outline: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav--open .nav__toggle span:first-child { transform: rotate(45deg) translate(2.5px, 2.5px); }
.nav--open .nav__toggle span:last-child { transform: rotate(-45deg) translate(2.5px, -2.5px); }

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--stone);
    padding: 0.5rem 0;
    z-index: 100;
  }
  .nav--open .nav__links { display: flex; }
  .nav__links a {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  .nav__cta {
    margin: 0.5rem 1.5rem;
    text-align: center;
    display: block;
  }
  .lang-select {
    margin: 0.5rem 1.5rem;
    width: calc(100% - 3rem);
  }
}

/* — Buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }

.btn--warm {
  background: var(--gold);
  color: #fff;
}
.btn--warm:hover { background: var(--gold-dark); }

.btn--outline {
  background: transparent;
  border: 2px solid var(--stone);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold-dark); }

.btn--lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* — Section title — */
.section-title {
  font-family: var(--heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

/* — Hero — */
.hero {
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__kicker {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--heading);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.hero h1 .gold {
  color: var(--gold);
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 440px;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__note {
  font-size: 0.8rem;
  color: var(--text-light);
}

.hero__visual {
  position: relative;
}
.hero__demo {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  background: var(--warm-white);
  border: 1px solid var(--sand);
  border-radius: 16px;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.03);
}
.hero__demo .demo-bubble {
  opacity: 0;
  animation: chat-in 0.4s var(--ease) forwards;
}
.hero__demo .demo-bubble:nth-child(1) { animation-delay: 0.3s; }
.hero__demo .demo-bubble:nth-child(2) { animation-delay: 0.7s; }
.hero__demo .demo-bubble:nth-child(3) { animation-delay: 1.2s; }
.hero__demo .demo-bubble:nth-child(4) { animation-delay: 1.6s; }
.hero__demo .demo-bubble:nth-child(5) { animation-delay: 2.1s; }
.hero__demo .demo-bubble:nth-child(6) { animation-delay: 2.5s; }

@keyframes chat-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero { padding: 6rem 0 3rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visual { order: -1; max-width: 100%; margin: 0 auto; }
  .hero__sub { max-width: 100%; }
  .hero__text { text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__kicker { text-align: center; }
}

/* — Pull quote — */
.pull-quote {
  padding: 3rem 0;
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}
.pull-quote blockquote {
  font-family: var(--heading);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: var(--text-mid);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

/* — Features — staggered sections — */
.features {
  padding: 5rem 0 3rem;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}
.feature:last-child { margin-bottom: 2rem; }

.feature--left .feature__text { order: 2; }
.feature--left .feature__aside { order: 1; }

.feature__text h3 {
  font-family: var(--heading);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.feature__text p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 420px;
}

.feature__aside {
  display: flex;
  justify-content: center;
}

/* Chat demo bubbles */
.feature__demo {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
}

.demo-bubble {
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.demo-bubble--user {
  align-self: flex-end;
  background: var(--text);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.demo-bubble--reply {
  align-self: flex-start;
  background: var(--warm-white);
  border: 1px solid var(--sand);
  border-bottom-left-radius: 4px;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Phone frame for real screenshots */
.feature__phone-frame {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 20px 60px -12px rgba(0,0,0,0.15),
    0 0 0 1px rgba(0,0,0,0.04),
    0 0 0 6px var(--warm-white),
    0 0 0 7px rgba(0,0,0,0.06);
  background: var(--warm-white);
}
.feature__phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.feature__phone {
  border-radius: 16px;
  box-shadow: 0 16px 48px -8px rgba(0,0,0,0.12);
}

/* Tablet: slightly smaller phones */
@media (max-width: 1024px) and (min-width: 769px) {
  .feature__phone-frame {
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3.5rem;
  }
  .feature--left .feature__text,
  .feature--left .feature__aside { order: unset; }
  .feature__demo { max-width: 100%; }
  .feature__text p { max-width: 100%; }

  /* Phone screenshots go prominent on mobile */
  .feature__phone-frame {
    max-width: 300px;
    width: 85vw;
    border-radius: 24px;
  }

  /* Center the aside on mobile */
  .feature__aside {
    display: flex;
    justify-content: center;
  }
}

/* — How it works — */
.how {
  padding: 4rem 0;
  background: var(--sand);
  border-radius: 24px;
  margin: 0 1rem;
}

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

.how__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

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

.how__emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.how__step p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.how__step strong { color: var(--text); }

.how__arrow {
  font-size: 1.5rem;
  color: var(--stone);
  padding-top: 1.25rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .how { margin: 0; border-radius: 0; }
  .how__arrow { display: none; }
  .how__steps { flex-direction: column; align-items: center; }
}

/* — Extras grid — */
.extras {
  padding: 4rem 0;
}
.extras__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.extra {
  padding: 1.5rem;
  background: var(--warm-white);
  border: 1px solid var(--sand);
  border-radius: 12px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.extra:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.extra h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.extra p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .extras__grid { grid-template-columns: 1fr; }
}

/* — Pricing — */
.pricing {
  padding: 5rem 0;
}
.pricing .section-title { text-align: center; }
.pricing__sub {
  text-align: center;
  color: var(--text-mid);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.pricing__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.pricing__billing {
  display: flex;
  gap: 0.5rem;
}

.currency-select {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--sand);
  border-radius: 8px;
  background: var(--warm-white);
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235c574f' d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1.75rem;
  transition: border-color 0.2s;
}
.currency-select:hover { border-color: var(--gold); }
.currency-select:focus { border-color: var(--gold); outline: none; }

.billing-btn {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--sand);
  border-radius: 8px;
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s;
}
.billing-btn--active {
  background: var(--text);
  color: var(--warm-white);
  border-color: var(--text);
}
.billing-save {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
}
.billing-btn--active .billing-save { color: var(--gold-light); }

.pricing__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.pricing-card {
  padding: 2rem 1.75rem;
  background: var(--warm-white);
  border: 1px solid var(--sand);
  border-radius: 16px;
  position: relative;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.06);
}

.pricing-card--pop {
  border: 2px solid var(--gold);
  box-shadow: 0 4px 24px rgba(200, 146, 46, 0.1);
}

.pricing-card__tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-card h3 {
  font-family: var(--heading);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.pricing-card__price {
  margin-bottom: 1.25rem;
}
.pricing-card__amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pricing-card__period {
  font-size: 0.85rem;
  color: var(--text-light);
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}
.pricing-card li {
  font-size: 0.9rem;
  color: var(--text-mid);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--sand);
}
.pricing-card li:last-child { border-bottom: none; }
.pricing-card li::before {
  content: '✓ ';
  color: var(--gold);
  font-weight: 700;
}

.pricing-card .btn { width: 100%; }

@media (max-width: 768px) {
  .pricing__cards { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing { padding: 3.5rem 0; }
  .pricing__controls { gap: 0.75rem; }
}

/* — FAQ — */
.faq {
  padding: 5rem 0;
}
.faq .section-title { text-align: center; }

.faq__list { margin-top: 2rem; }

.faq__item {
  border-bottom: 1px solid var(--sand);
  padding: 1.25rem 0;
}
.faq__item summary {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  color: var(--text);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-light);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}
.faq__item p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 580px;
}

/* — Closer CTA — */
.closer {
  padding: 5rem 0;
  text-align: center;
  background: var(--sand);
  border-radius: 24px;
  margin: 0 1rem 3rem;
}
.closer h2 {
  font-family: var(--heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.closer p {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
}

@media (max-width: 640px) {
  .closer { margin: 0; border-radius: 0; }
}

/* — Footer — */
.foot {
  padding: 2rem 0;
  border-top: 1px solid var(--sand);
}
.foot__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.foot__brand {
  font-family: var(--heading);
  font-size: 1rem;
}
.foot__links {
  display: flex;
  gap: 1.5rem;
}
.foot__links a {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: none;
}
.foot__links a:hover { color: var(--text); }
.foot__copy {
  font-size: 0.8rem;
  color: var(--text-light);
}

@media (max-width: 640px) {
  .foot__inner { flex-direction: column; text-align: center; }
  .foot__links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}

/* — Scroll reveal — */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
