/* Petal marketing site — brand tokens match the app's own theme.js exactly */

:root {
  --cream:        #FDFAF5;
  --cream-alt:     #FBF3E7;
  --rose:         #C47A8A;
  --rose-deep:    #A85F70;
  --rose-light:   #F3DDE2;
  --yellow:       #F5D06A;
  --yellow-deep:  #C79A2E;
  --yellow-light: #FBEFCF;
  --ink:          #3D2B2B;
  --ink-muted:    #8A7570;
  --white:        #FFFFFF;

  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-pill: 999px;
  --radius-lg:   24px;
  --radius-md:   16px;

  --shadow-soft: 0 8px 24px rgba(196, 122, 138, 0.16);
  --shadow-lift: 0 16px 40px rgba(196, 122, 138, 0.22);

  --max-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 14px;
  display: block;
}

.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--white);
}

.center { text-align: center; }

.lede {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 640px;
}

.center .lede { margin-left: auto; margin-right: auto; }

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.08rem;
  letter-spacing: 0.2px;
  padding: 17px 34px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--rose);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover { box-shadow: var(--shadow-lift); }

.btn--ghost {
  background: transparent;
  color: var(--rose-deep);
  border: 1.5px solid var(--rose);
}

/* ── Header ──────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 250, 245, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 122, 138, 0.14);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.6rem;
  text-decoration: none;
  color: var(--ink);
}

.wordmark em { color: var(--rose); font-style: italic; }

.site-header .btn {
  padding: 11px 22px;
  font-size: 0.92rem;
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero-flower {
  position: absolute;
  top: -40px;
  right: -40px;
  opacity: 0.5;
  width: 220px;
  height: 220px;
}

.hero-flower--left {
  top: unset;
  bottom: -60px;
  left: -60px;
  right: unset;
  width: 180px;
  height: 180px;
  opacity: 0.35;
  transform: rotate(18deg);
}

.hero .inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 { margin-bottom: 18px; }

.hero .lede {
  font-size: 1.25rem;
  margin: 0 auto 36px;
}

/* ── Problem ─────────────────────────────────────────────────────────── */

.problem .inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.problem p {
  font-size: 1.2rem;
  font-family: var(--font-head);
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
}

.problem-lead {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--ink);
  margin-bottom: 28px;
}

.problem-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.problem-list li {
  font-size: 1.08rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.problem-close {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--rose-deep);
  margin-bottom: 0;
}

/* ── How it works ────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.step {
  background: var(--cream);
  border: 1px solid rgba(196, 122, 138, 0.18);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: left;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rose);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.1rem;
}

.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-muted); margin-bottom: 0; font-size: 0.98rem; }

/* ── Screenshot showcase ─────────────────────────────────────────────── */

.showcase-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0 40px;
}

.tab-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--rose);
  background: transparent;
  color: var(--rose-deep);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.tab-btn.is-active {
  background: var(--rose);
  color: var(--white);
}

.showcase-strip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
}

.showcase-strip::-webkit-scrollbar { height: 8px; }
.showcase-strip::-webkit-scrollbar-thumb { background: var(--rose-light); border-radius: 8px; }

.showcase-strip img {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 240px;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.showcase-set { display: none; }
.showcase-set.is-active { display: block; }

/* ── Demo video ──────────────────────────────────────────────────────── */

.demo-video-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 48px;
}

.demo-video {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 720 / 1558;
  border-radius: 28px;
  box-shadow: var(--shadow-lift);
  display: block;
  background: var(--ink);
}

/* ── Why different ───────────────────────────────────────────────────── */

.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
  margin-top: 24px;
}

.why-copy p { font-size: 1.08rem; color: var(--ink-muted); }

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  border: 1px solid rgba(196, 122, 138, 0.14);
  font-size: 0.98rem;
}

.feature-list .dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow-deep);
  margin-top: 8px;
}

.feature-list--compact {
  gap: 10px;
  margin-top: 24px;
}

.feature-list--compact li {
  padding: 12px 14px;
  font-size: 0.88rem;
}

/* ── Benefit grid ────────────────────────────────────────────────────── */

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  align-content: start;
}

.benefit {
  background: var(--white);
  border: 1px solid rgba(196, 122, 138, 0.18);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
}

.benefit h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin: 0 0 8px;
}

.benefit p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.45;
}

/* ── Storage Survivors ───────────────────────────────────────────────── */

.survivors {
  background: var(--rose);
  color: var(--white);
}

.survivors h2, .survivors .eyebrow { color: var(--white); }
.survivors .eyebrow { color: var(--yellow); }
.survivors .lede { color: rgba(255,255,255,0.86); }

.social-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255,255,255,0.55);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.18s ease;
}

.social-pill:hover { background: rgba(255,255,255,0.14); }

/* ── Pricing ─────────────────────────────────────────────────────────── */

.pricing .inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.price-card {
  background: var(--cream);
  border: 1px solid rgba(196, 122, 138, 0.18);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  margin: 36px 0;
  box-shadow: var(--shadow-soft);
}

.price-card .free {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--rose-deep);
  margin-bottom: 10px;
}

.price-row {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin: 24px 0 4px;
  flex-wrap: wrap;
}

.price-plan .amount {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  color: var(--ink);
}

.price-plan .period {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.price-plan.best .amount { color: var(--rose-deep); }

.price-plan .badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

/* ── Email signup ────────────────────────────────────────────────────── */

.signup {
  background: var(--yellow-light);
}

.signup .inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.signup-form {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.signup-form input[type="email"] {
  flex: 1 1 260px;
  padding: 16px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(196, 122, 138, 0.35);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}

.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--rose);
}

.signup-form button {
  flex: 0 0 auto;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 14px;
}

.form-success {
  display: none;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--rose-deep);
  margin-top: 24px;
}

.form-success.is-visible { display: block; }

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: rgba(253, 250, 245, 0.75);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(253, 250, 245, 0.14);
}

.footer-top .wordmark { color: var(--cream); }
.footer-top .wordmark em { color: var(--yellow); }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.footer-links a { text-decoration: none; color: rgba(253, 250, 245, 0.75); }
.footer-links a:hover { color: var(--yellow); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(253, 250, 245, 0.5);
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .price-row { gap: 20px; }
  .site-header .btn span.long { display: none; }
  .benefit-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .benefit { padding: 18px 16px; }
}

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