/* ==========================================================================
   WooManage — Marketing site
   "Cream Premium" theme · Fraunces (display) + Inter (body)
   ========================================================================== */

:root {
  /* Brand tokens (mirrors the app's Cream Premium theme) */
  --bg: #faf9f5;
  --surface: #ffffff;
  --surface-2: #f4f1ea;
  --primary: #c05638;
  --primary-dark: #a3462c;
  --primary-tint: #f6e7e0;
  --ink: #1c1c1e;
  --muted: #7a7a75;
  --border: #ebe9e2;
  --success: #3e7c5a;
  --error: #b23b3b;
  --warning: #b8862a;

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1140px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(28, 28, 30, 0.04), 0 2px 8px rgba(28, 28, 30, 0.04);
  --shadow: 0 10px 30px -12px rgba(28, 28, 30, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(28, 28, 30, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* subtle grain + warm radial atmosphere */
  background-image:
    radial-gradient(1200px 600px at 85% -5%, rgba(192, 86, 56, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(184, 134, 42, 0.06), transparent 55%);
  background-attachment: fixed;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
ul {
  list-style: none;
  padding: 0;
}

/* Grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 540;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--primary);
  display: inline-block;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
section {
  padding-block: clamp(64px, 9vw, 120px);
  position: relative;
}
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-bottom: 1rem;
}
.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(192, 86, 56, 0.6);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(192, 86, 56, 0.65);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-play {
  background: var(--ink);
  color: #fff;
  padding-block: 0.7rem;
}
.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-play small {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.75;
  line-height: 1;
  margin-bottom: 2px;
}
.btn-play strong {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 245, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a {
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--surface);
}
.lang-switch a {
  padding: 0.4rem 0.75rem;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.lang-switch a[aria-current="true"] {
  background: var(--primary);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(48px, 7vw, 84px);
  padding-bottom: clamp(56px, 8vw, 110px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 1.4rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--primary);
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 30ch;
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}
.hero-note {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-note svg {
  color: var(--success);
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 8% 12%;
  background: radial-gradient(closest-side, rgba(192, 86, 56, 0.18), transparent);
  filter: blur(30px);
  z-index: -1;
}
.phone {
  width: min(320px, 78vw);
  filter: drop-shadow(0 40px 50px rgba(28, 28, 30, 0.22));
}
.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.float-card .dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
}
.float-card small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.72rem;
}
.float-1 {
  top: 12%;
  left: -6%;
  animation: float 6s ease-in-out infinite;
}
.float-2 {
  bottom: 14%;
  right: -8%;
  animation: float 6s ease-in-out infinite 1.5s;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ---------- Trust strip ---------- */
.trust {
  padding-block: 0;
}
.trust-inner {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.trust-inner strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
}
.trust-inner span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary-tint);
}
.feature .ic {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--primary-tint);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.feature p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- How it works ---------- */
.how {
  background: var(--surface-2);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 18px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--primary);
  opacity: 0.25;
  line-height: 1;
  display: block;
  margin-bottom: 0.6rem;
}
.step h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.step p {
  color: var(--muted);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  position: relative;
}
.plan.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -13px;
  left: 36px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.plan h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.plan .price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 580;
  letter-spacing: -0.03em;
  margin-block: 0.6rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.plan .price span {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--muted);
  font-weight: 500;
}
.plan .tagline {
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.plan .price-alt {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.plan ul {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}
.plan li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.97rem;
}
.plan li svg {
  color: var(--success);
  flex: none;
  margin-top: 3px;
}
.plan .btn {
  margin-top: auto;
  width: 100%;
}

/* ---------- FAQ ---------- */
.faq-wrap {
  max-width: 800px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 540;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  letter-spacing: -0.01em;
}
.faq-q .chev {
  flex: none;
  transition: transform 0.3s var(--ease);
  color: var(--primary);
}
.faq-item[open] .chev,
.faq-q[aria-expanded="true"] .chev {
  transform: rotate(45deg);
}
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}
.faq-a p {
  padding-bottom: 24px;
  color: var(--muted);
  max-width: 65ch;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(192, 86, 56, 0.35), transparent 60%),
    radial-gradient(500px 300px at 90% 100%, rgba(184, 134, 42, 0.25), transparent 60%);
}
.cta-band > * {
  position: relative;
}
.cta-band h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1rem;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 46ch;
  margin: 0 auto 2rem;
}
.email-form {
  display: flex;
  gap: 0.6rem;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.email-form input {
  flex: 1 1 220px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
}
.email-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.email-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.12);
}
.form-msg {
  margin-top: 1rem;
  font-size: 0.92rem;
  min-height: 1.2em;
  font-weight: 500;
}
.form-msg.ok {
  color: #9fe3bd;
}
.form-msg.err {
  color: #ffb3b3;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 56px 36px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand {
  max-width: 280px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.8rem;
}
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--primary);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Mobile nav ---------- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  padding: 0.4rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-sub {
    margin-inline: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
    margin-bottom: 1rem;
  }
  .features-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .features-grid,
  .steps,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .float-card {
    display: none;
  }
  .nav-links {
    display: none;
  }
}

/* ---------- Legal pages ---------- */
.legal-page main {
  padding-block: clamp(48px, 7vw, 96px);
}
.legal-article {
  max-width: 740px;
  margin-inline: auto;
}
.legal-article .legal-hero {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.legal-article .legal-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.legal-article .legal-meta {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.legal-section {
  margin-bottom: 2.5rem;
}
.legal-section h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-section p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.legal-section p:last-child {
  margin-bottom: 0;
}
.legal-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0.75rem;
}
.legal-section ul li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.4rem;
}
.legal-section ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.legal-section ul li strong {
  color: var(--ink);
  font-weight: 600;
}
.legal-section a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-section a:hover {
  color: var(--primary-dark);
}
.legal-footer-note {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.legal-footer-note a {
  color: var(--primary);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
