/* ===== Syqei Design Tokens ===== */
:root {
  --linen: #E3D6C3;
  --linen-deep: #D8C7AE;
  --violet: #8A5DC9;
  --violet-deep: #6B3FA6;
  --sage: #9FB7AA;
  --sage-deep: #7C9A8B;
  --lavender: #CBA0E6;
  --stone: #7F7F82;
  --plum: #3D2B52;
  --cream-text: #FBF8F3;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;

  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--plum);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
.hidden-field { display: none; }

/* Subtle paper grain -- softens the flat linen background */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Placeholder tags -- mark spots meant to be swapped for real design assets */
.placeholder-tag {
  font-size: 0.75rem;
  color: var(--stone);
  font-style: italic;
  margin: 10px 0 0;
}
.placeholder-tag--center { text-align: center; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px clamp(20px, 5vw, 60px);
  background: rgba(227, 214, 195, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(61, 43, 82, 0.08);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.inline-bfly {
  width: 1.15em;
  height: auto;
  vertical-align: -0.15em;
  display: inline-block;
}
.inline-bfly--lg { width: 2rem; }

.wordmark-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}
.logo-icon--small { width: 32px; height: 32px; }

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--violet-deep);
  letter-spacing: -0.01em;
}
.wordmark--small { font-size: 1.3rem; }

.nav-cta {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--plum);
  border-bottom: 2px solid var(--sage);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.nav-cta:hover { border-color: var(--violet); transform: translateY(-1px); }

/* ===== Buttons (microanimations) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: translateY(-1px) scale(0.99); }
.btn:focus-visible { outline: 3px solid var(--violet-deep); outline-offset: 3px; }

.btn-primary {
  background: var(--violet);
  color: var(--cream-text);
  box-shadow: 0 6px 20px rgba(138, 93, 201, 0.35);
}
.btn-primary:hover { background: var(--violet-deep); box-shadow: 0 10px 28px rgba(138, 93, 201, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--plum);
  border: 1.5px solid var(--plum);
}
.btn-ghost:hover { background: rgba(61, 43, 82, 0.06); }

/* ===== Hero (split layout) ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(50px, 8vw, 100px) clamp(20px, 5vw, 60px) clamp(60px, 8vw, 100px);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
  animation: drift-blob 18s ease-in-out infinite;
}
.blob-1 { width: 420px; height: 420px; background: var(--lavender); top: -160px; right: -100px; }
.blob-2 { width: 320px; height: 320px; background: var(--sage); bottom: -140px; left: -80px; opacity: 0.35; animation-delay: -6s; }

@keyframes drift-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 24px) scale(1.06); }
}

/* Drifting hero butterflies -- max 3, subtle */
.drift {
  position: absolute;
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
  animation: drift-float 14s ease-in-out infinite;
}
.drift-1 { top: 18%; left: 6%; animation-duration: 16s; }
.drift-2 { top: 55%; left: 42%; animation-duration: 13s; animation-delay: -4s; }
.drift-3 { top: 30%; right: 8%; animation-duration: 19s; animation-delay: -9s; }

/* ===== Butterfly (real PNG artwork, split into flapping halves) ===== */
.butterfly-real {
  position: relative;
  display: inline-block;
}

.bfly-half {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transform-origin: 50% 50%;
  animation: wing-flap var(--flap-dur, 2.3s) ease-in-out infinite;
  animation-delay: var(--flap-delay, 0s);
}
/* Each half only shows its side of the image; scaling toward the shared
   centerline (where the body sits) is what reads as a flap. */
.bfly-left  { clip-path: inset(0 50% 0 0); }
.bfly-right { clip-path: inset(0 0 0 50%); }

@keyframes wing-flap {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.4); }
}

@media (prefers-reduced-motion: reduce) {
  .bfly-half { animation: none; }
}

@keyframes drift-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(18px, -14px) rotate(6deg); }
  50% { transform: translate(4px, 10px) rotate(-4deg); }
  75% { transform: translate(-16px, -6px) rotate(3deg); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

.hero-copy { text-align: left; }

.eyebrow {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage-deep);
  margin: 0 0 20px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: var(--plum);
}
h1 em { font-style: italic; font-weight: 500; color: var(--violet-deep); }

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.15rem);
  color: var(--stone);
  max-width: 460px;
  margin: 0 0 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Phone mockup placeholder ===== */
.hero-visual { display: flex; justify-content: center; }

.phone-placeholder {
  width: 280px;
  animation: float-phone 6s ease-in-out infinite;
}
@keyframes float-phone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.phone-notch {
  width: 90px;
  height: 22px;
  background: var(--plum);
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
}

.phone-screen {
  background: var(--cream-text);
  border: 6px solid var(--plum);
  border-top: none;
  border-radius: 0 0 34px 34px;
  padding: 20px 18px 26px;
  box-shadow: 0 24px 60px rgba(61, 43, 82, 0.25);
}

.phone-greeting {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 14px;
  color: var(--plum);
}
.phone-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage-deep);
  margin: 0 0 10px;
}

.phone-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--linen);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.phone-emoji { font-size: 1.2rem; }
.phone-card-title { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--plum); }
.phone-card-meta { margin: 0; font-size: 0.72rem; color: var(--stone); }

.phone-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--linen-deep);
  overflow: hidden;
  margin-bottom: 6px;
}
.phone-progress-fill {
  height: 100%;
  width: 82%;
  background: var(--violet);
  border-radius: 999px;
}
.phone-progress-label { margin: 0; font-size: 0.75rem; color: var(--stone); font-weight: 600; }

/* ===== Section shared ===== */
.section-label {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage-deep);
  margin: 0 0 14px;
}
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--plum);
}

/* ===== Why ===== */
.why { padding: clamp(60px, 10vw, 100px) clamp(20px, 5vw, 60px); }
.why-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.why-body { font-size: 1.1rem; color: var(--stone); max-width: 560px; margin: 0 auto 48px; }

.compare-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.compare-item {
  background: rgba(251, 248, 243, 0.5);
  border: 1px solid rgba(61, 43, 82, 0.08);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.compare-item:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(61, 43, 82, 0.1); }
.compare-item--syqei { background: var(--violet); border-color: var(--violet); }
.compare-item--syqei .compare-app, .compare-item--syqei .compare-note { color: var(--cream-text); }
.compare-app { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0 0 8px; color: var(--plum); }
.compare-note { font-size: 0.9rem; color: var(--stone); margin: 0; }

/* ===== This week in Perth (live feed) ===== */
.live-feed {
  padding: clamp(60px, 10vw, 100px) clamp(20px, 5vw, 60px);
  background: rgba(251, 248, 243, 0.4);
}
.live-feed-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.live-feed-inner h2 { margin-bottom: 48px; }

.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  text-align: left;
}
.feed-card {
  background: var(--cream-text);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 10px 26px rgba(61, 43, 82, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feed-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(61, 43, 82, 0.12); }
.feed-emoji { font-size: 1.6rem; display: block; margin-bottom: 12px; }
.feed-title { font-weight: 600; margin: 0 0 6px; color: var(--plum); font-size: 0.98rem; }
.feed-meta { margin: 0; font-size: 0.82rem; color: var(--stone); }

/* ===== How it works ===== */
.how { padding: clamp(60px, 10vw, 100px) clamp(20px, 5vw, 60px); }
.how-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.how-inner h2 { margin-bottom: 48px; }

.steps { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.step { max-width: 340px; }
.step-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; margin: 0 0 6px; color: var(--plum); }
.step p { font-size: 0.95rem; color: var(--stone); margin: 0; }
.step-arrow { font-size: 1.3rem; color: var(--sage-deep); margin: 8px 0; }

/* ===== Garden preview ===== */
.garden-preview { padding: clamp(60px, 10vw, 100px) clamp(20px, 5vw, 60px); background: rgba(251, 248, 243, 0.4); }
.garden-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.garden-sub { font-size: 1.05rem; color: var(--stone); margin: 0 auto 40px; max-width: 480px; }

.garden-mock {
  position: relative;
  height: 220px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(159,183,170,0.25), rgba(203,160,230,0.2));
  border: 1px solid rgba(61, 43, 82, 0.08);
  overflow: hidden;
}
.g-butterfly {
  position: absolute;
  font-size: 1.6rem;
  animation: drift-float 10s ease-in-out infinite;
  opacity: 0.85;
}
.g-butterfly:nth-child(2) { animation-duration: 12s; animation-delay: -2s; }
.g-butterfly:nth-child(3) { animation-duration: 9s; animation-delay: -5s; }
.g-butterfly:nth-child(4) { animation-duration: 13s; animation-delay: -1s; }
.g-butterfly:nth-child(5) { animation-duration: 11s; animation-delay: -7s; }
.g-butterfly:nth-child(6) { animation-duration: 15s; animation-delay: -3s; }
.garden-mock .placeholder-tag { position: absolute; bottom: 10px; left: 0; right: 0; }

/* ===== Passport ===== */
.passport { padding: clamp(60px, 10vw, 100px) clamp(20px, 5vw, 60px); }
.passport-inner { max-width: 500px; margin: 0 auto; text-align: center; }

.passport-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.passport-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(61, 43, 82, 0.1);
  font-weight: 500;
  color: var(--stone);
}
.passport-item.done { color: var(--plum); }
.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 0.9rem;
  flex-shrink: 0;
  border: 1.5px solid var(--stone);
  color: var(--stone);
}
.passport-item.done .stamp { background: var(--sage); border-color: var(--sage); color: var(--cream-text); }

/* ===== Values ===== */
.values { padding: clamp(50px, 8vw, 80px) clamp(20px, 5vw, 60px); }
.values-inner { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.value h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--violet-deep); margin: 0 0 8px; }
.value p { font-size: 0.9rem; color: var(--stone); margin: 0; }

/* ===== Trust ===== */
.trust { padding: clamp(40px, 6vw, 60px) clamp(20px, 5vw, 60px); text-align: center; }
.trust-inner { max-width: 500px; margin: 0 auto; }
.trust-line { font-size: 1.05rem; margin: 0 0 22px; color: var(--plum); }
.trust-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; color: var(--sage-deep); margin: 0 0 14px; }
.trust-tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.trust-tag {
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(251, 248, 243, 0.7);
  border: 1px solid rgba(61, 43, 82, 0.1);
  color: var(--stone);
}

/* ===== Waitlist ===== */
.waitlist {
  padding: clamp(70px, 12vw, 120px) clamp(20px, 5vw, 60px);
  background: var(--violet);
  color: var(--cream-text);
  text-align: center;
}
.waitlist .section-label { color: rgba(251, 248, 243, 0.75); }
.waitlist h2 { color: var(--cream-text); }
.waitlist-sub { font-size: 1.1rem; color: rgba(251, 248, 243, 0.85); max-width: 480px; margin: 0 auto 36px; }

.waitlist-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; max-width: 480px; margin: 0 auto; }
.waitlist-form input[type="email"] {
  flex: 1; min-width: 220px;
  padding: 14px 20px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream-text);
  color: var(--plum);
}
.waitlist-form input[type="email"]:focus-visible { outline: 3px solid var(--lavender); outline-offset: 2px; }
.form-success { margin-top: 20px; font-weight: 600; color: var(--cream-text); }

/* ===== Footer ===== */
.footer { padding: 32px clamp(20px, 5vw, 60px); border-top: 1px solid rgba(61, 43, 82, 0.1); }
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--stone); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--violet-deep); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-placeholder { width: 220px; }
}

@media (max-width: 720px) {
  .compare-strip, .values-inner { grid-template-columns: 1fr; }
}
