/* =========================================================
   Widya — widya.co
   Self-hosting Geist via Google's CDN is avoided per brief,
   but for a single-folder static build we use Vercel's CDN
   for Geist Sans (https://vercel.com/font). Swap to local
   /fonts/Geist*.woff2 when migrating to Astro.
   ========================================================= */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/geist@1.4.0/dist/fonts/geist-sans/Geist-Variable.woff2') format('woff2-variations');
}

:root {
  --bg-cream:        #FAF5EE;
  --bg-white:        #FFFFFF;
  --text-deep:       #2A2520;
  --text-muted:      #6B5D52;
  --accent-clay:     #D17B5E;
  --accent-clay-hov: #B8654A;
  --accent-teal:     #2D5A5A;
  --border-soft:     rgba(42, 37, 32, 0.08);
  --border-strong:   rgba(42, 37, 32, 0.14);
  --shadow-warm:     rgba(42, 37, 32, 0.06);
  --shadow-warm-lg:  rgba(42, 37, 32, 0.10);

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;

  --max-w: 1200px;
  --pad-x: 24px;
  --section-y: 80px;
}

@media (min-width: 768px) {
  :root { --pad-x: 48px; }
}
@media (min-width: 1024px) {
  :root { --pad-x: 64px; --section-y: 120px; }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-cream);
  color: var(--text-deep);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (min-width: 1024px) {
  html, body { font-size: 19px; }
}

body { overflow-x: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent-clay); color: var(--bg-cream); }

/* page-load fade */
body { animation: pageIn 400ms ease-out both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

/* fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.fade-in.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .fade-in, .fade-in.is-visible {
    opacity: 1; transform: none; transition: none;
  }
  body { animation: none; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--text-deep); }
p { margin: 0 0 1em; }

h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 24px;
  line-height: 1.25;
}
@media (min-width: 1024px) {
  h1 { font-size: 80px; }
  h2 { font-size: 48px; }
  h3 { font-size: 28px; }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-clay);
  margin-bottom: 16px;
}

.subhead {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 560px;
  margin-top: 12px;
  margin-bottom: 0;
}
@media (min-width: 1024px) { .subhead { font-size: 21px; } }

.section-head { margin-bottom: 56px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-clay);
  color: var(--bg-cream);
  font-weight: 500;
  font-size: 18px;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  min-height: 48px;
  transition: background 200ms ease, transform 100ms ease, box-shadow 200ms ease;
  box-shadow: 0 4px 14px rgba(209, 123, 94, 0.25);
}
.btn:hover { background: var(--accent-clay-hov); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--accent-clay-hov); outline-offset: 2px; }
@media (min-width: 1024px) {
  .btn { padding: 18px 40px; }
}

.btn-large {
  padding: 20px 40px;
  font-size: 19px;
}

.btn-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.text-link {
  color: var(--accent-clay);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent-clay);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 200ms;
}
.text-link:hover { color: var(--accent-clay-hov); }

/* ---------- Top nav ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  background: rgba(250, 245, 238, 0.85);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.topnav.scrolled { border-bottom-color: var(--border-soft); }
.topnav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-deep);
}
.topnav .btn {
  padding: 10px 18px;
  min-height: 40px;
  font-size: 15px;
  box-shadow: none;
}
@media (max-width: 480px) {
  .topnav .btn span { display: none; }
  .topnav .btn::before { content: 'Start'; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 32px;
  padding-bottom: var(--section-y);
}
.hero-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 64px;
  }
}
.hero-text { order: 2; }
.hero-photo { order: 1; }
@media (min-width: 1024px) {
  .hero-text { order: 1; }
  .hero-photo { order: 2; }
}

.hero-price {
  margin-top: 24px;
  font-size: 16px;
  color: var(--text-muted);
}
.hero-price strong { color: var(--text-deep); font-weight: 600; }

.founder-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-deep);
}
.founder-badge .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-clay);
}

.hero-ctas {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.hero-photo-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px var(--shadow-warm-lg);
}
.hero-photo-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
@media (max-width: 1023px) {
  .hero-photo-wrap img { aspect-ratio: 4/5; max-height: 70vh; object-position: center 20%; }
}

/* ---------- How it works ---------- */
.how-grid {
  display: grid;
  gap: 56px;
}
@media (min-width: 1024px) {
  .how-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 32px;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-clay);
  color: var(--bg-cream);
  font-weight: 600;
  font-size: 20px;
  display: grid;
  place-items: center;
}
.step-body h3 { margin-bottom: 6px; font-size: 22px; }
.step-body p { color: var(--text-muted); margin: 0; }

/* chat composition */
.chat-stage {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: 0 20px 50px var(--shadow-warm-lg);
}
.chat-stage img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: saturate(0.95);
}
.chat-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, rgba(42,37,32,0) 0%, rgba(42,37,32,0.35) 60%, rgba(42,37,32,0.55) 100%);
}
.chat-deck {
  width: 100%;
  max-width: 380px;
  display: grid;
  gap: 16px;
}
.chat-card {
  background: rgba(250, 245, 238, 0.96);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.chat-time {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 8px;
  font-weight: 500;
}
.bubble-row {
  display: flex;
  margin-bottom: 4px;
}
.bubble-row.right { justify-content: flex-end; }
.bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-deep);
}
.bubble.you {
  background: #DCEDC8;
  color: #1f2a1c;
  border-bottom-right-radius: 4px;
}
.bubble.widya {
  background: var(--bg-white);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.bubble .name {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--accent-clay);
}

.chat-stage--standalone .chat-overlay { display: none; }

/* ---------- What I handle ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}
@media (min-width: 768px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.cat-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px var(--shadow-warm);
  cursor: pointer;
  transition: box-shadow 250ms ease, transform 200ms ease;
  border: 1px solid transparent;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cat-card:hover {
  box-shadow: 0 8px 20px var(--shadow-warm-lg);
  transform: translateY(-2px);
}
.cat-card[aria-expanded="true"] {
  border-color: var(--accent-clay);
  box-shadow: 0 8px 20px var(--shadow-warm-lg);
}
.cat-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-clay);
}
.cat-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.btn-icon { fill: currentColor; stroke: none; }
@media (max-width: 767px) {
  .cat-icon { width: 32px; height: 32px; }
}
.cat-name {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-deep);
  margin: 0;
}
.cat-preview {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}
.cat-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.cat-foot .arrow {
  font-size: 18px;
  transition: transform 200ms;
  color: var(--accent-clay);
}
.cat-card[aria-expanded="true"] .cat-foot .arrow {
  transform: rotate(90deg);
}

.cat-services {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
  margin-top: 0;
}
.cat-card[aria-expanded="true"] .cat-services {
  max-height: 700px;
  margin-top: 4px;
}
.cat-services-inner {
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
}
.svc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.svc-row:last-child { border-bottom: none; }
.svc-name { font-size: 15px; color: var(--text-deep); }
.svc-price { font-size: 15px; font-weight: 500; color: var(--accent-clay); white-space: nowrap; }

.cat-foot-note {
  text-align: center;
  margin-top: 32px;
  font-size: 15px;
  color: var(--text-muted);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 64px;
    align-items: center;
  }
}
.about-photo {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px var(--shadow-warm-lg);
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-text p {
  font-size: 18px;
  color: var(--text-deep);
  margin-bottom: 1.1em;
}
@media (min-width: 1024px) {
  .about-text p { font-size: 19px; }
}
.about-text p:first-of-type::first-letter {
  font-weight: 600;
}

/* ---------- Pricing ---------- */
.pricing {
  background: linear-gradient(180deg, var(--bg-cream) 0%, #F2E9DA 100%);
}
.price-card {
  background: var(--bg-white);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 12px 36px var(--shadow-warm-lg);
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 1024px) {
  .price-card { padding: 48px; }
}
.price-eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.price-main {
  margin-top: 12px;
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}
@media (min-width: 1024px) { .price-main { font-size: 72px; } }
.price-period {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  font-style: italic;
}
.founder-panel {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--bg-cream);
  border-radius: 16px;
  text-align: left;
}
.founder-panel .label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-deep);
  display: block;
  margin-bottom: 4px;
}
.founder-panel .sublabel {
  font-size: 14px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}
.founder-panel .count {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-clay);
  display: block;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
  display: grid;
  gap: 10px;
}
.price-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-deep);
}
.price-list li::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-clay);
  margin-top: 9px;
}
.price-card .btn {
  width: 100%;
  margin-top: 8px;
}

/* ---------- Still life banner ---------- */
.still-life {
  padding-top: 64px;
  padding-bottom: 64px;
}
@media (min-width: 1024px) {
  .still-life { padding-top: 64px; padding-bottom: 64px; }
}
.still-life-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px var(--shadow-warm-lg);
}
.still-life-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--border-soft);
}
.faq-item {
  border-bottom: 1px solid var(--border-soft);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-deep);
}
.faq-q .plus {
  flex-shrink: 0;
  position: relative;
  width: 22px;
  height: 22px;
  color: var(--accent-clay);
  transition: transform 300ms ease;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.faq-q .plus::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-q .plus::after { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.faq-q[aria-expanded="true"] .plus { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}
.faq-q[aria-expanded="true"] + .faq-a {
  max-height: 400px;
}
.faq-a-inner {
  padding: 0 0 20px;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 640px;
}

/* ---------- Footer ---------- */
.footer {
  background: #F2E9DA;
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-col p, .footer-col a {
  font-size: 15px;
  color: var(--text-deep);
  margin: 0 0 6px;
  display: block;
}
.footer-col a:hover { color: var(--accent-clay); }
.footer-brand .wordmark { font-size: 28px; }
.footer-brand .tagline { margin-top: 8px; color: var(--text-muted); }
.footer-strip {
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 60;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08), 0 8px 24px rgba(209,123,94,0.3);
}
.sticky-cta .btn {
  width: 100%;
  font-size: 17px;
}
@media (max-width: 767px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 80px; }
}

/* small util */
.center { text-align: center; }
.muted { color: var(--text-muted); }
.no-wrap { white-space: nowrap; }
