/* hellofromtheplants.com — the app's "through water" look (frontend/.../app/globals.css):
   soft blooms of garden color behind frosted glass, Fraunces + Nunito, chlorophyll green. */

:root {
  --ink: #13241C;
  --ink-soft: #3D5348;
  --ink-faint: #6F8A7C;
  --green: #0C9A60;
  --green-dark: #08663F;
  --green-light: #1FB775;
  --green-wash: #E2FAEE;
  --page: #E4F3EA;
  --display: "Fraunces", Georgia, serif;
  --body: "Nunito", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--page); }

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

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── The living backdrop ─────────────────────────────────────────────── */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bloom {
  position: absolute;
  width: 75vmax;
  height: 75vmax;
  border-radius: 50%;
  opacity: 0.85;
  will-change: transform;
  animation: drift 40s ease-in-out infinite alternate;
}
.leaf  { top: -25vmax; left: -20vmax; background: radial-gradient(circle, rgb(126 217 155 / 0.9) 0%, transparent 62%); }
.pond  { top: 10vh; left: 45vw; background: radial-gradient(circle, rgb(124 211 232 / 0.85) 0%, transparent 62%); animation-delay: -12s; animation-duration: 44s; }
.petal { top: 55vh; left: -30vmax; background: radial-gradient(circle, rgb(247 168 200 / 0.7) 0%, transparent 62%); animation-delay: -20s; animation-duration: 41s; }
.sun   { top: 85vh; left: 35vw; background: radial-gradient(circle, rgb(255 224 138 / 0.75) 0%, transparent 62%); animation-delay: -6s; animation-duration: 47s; }
.lilac { top: -15vh; left: 60vw; background: radial-gradient(circle, rgb(201 184 255 / 0.55) 0%, transparent 62%); animation-delay: -28s; animation-duration: 52s; }
.sunlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 60% at 50% -10%, rgb(255 255 255 / 0.55), transparent 60%);
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(8vw, 6vh) scale(1.08); }
  66%  { transform: translate(-6vw, 10vh) scale(0.94); }
  100% { transform: translate(4vw, -6vh) scale(1.04); }
}

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

/* ── Glass ───────────────────────────────────────────────────────────── */

.glass {
  background: linear-gradient(160deg, rgb(255 255 255 / 0.72) 0%, rgb(255 255 255 / 0.42) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgb(255 255 255 / 0.75);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    0 10px 30px -12px rgb(14 60 40 / 0.22);
  border-radius: 2rem;
}

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

.hero {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.6);
  border: 1px solid rgb(255 255 255 / 0.8);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 14px;
}
.badge svg {
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 8px;
  background: var(--green);
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-style: italic;
  font-size: clamp(2.7rem, 9vw, 4.6rem);
  letter-spacing: -0.01em;
}

.lede {
  margin: 18px 0 0;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34rem;
}
.lede.small {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--ink-faint);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.chips li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-wash);
  border: 1px solid rgb(255 255 255 / 0.8);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 14px;
}

/* ── Phones ──────────────────────────────────────────────────────────── */

.phone {
  margin: 0;
  padding: 7px;
  border-radius: 2.2rem;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.55));
  border: 1px solid rgb(255 255 255 / 0.9);
  box-shadow: 0 24px 50px -20px rgb(14 60 40 / 0.45);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.75rem;
}

.hero-phone {
  width: min(78vw, 320px);
  justify-self: center;
  transform: rotate(2deg);
}

.pair {
  display: flex;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}
.pair .phone { width: calc(50% - 6px); max-width: 250px; padding: 5px; border-radius: 1.6rem; }
.pair .phone img { border-radius: 1.3rem; }
.pair .phone:nth-child(2) { margin-top: 36px; }

/* ── Steps ───────────────────────────────────────────────────────────── */

.section-title {
  font-size: clamp(2rem, 6vw, 2.8rem);
  text-align: center;
  margin: 40px 0 20px;
}

.step {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 26px 18px 30px;
  margin-bottom: 22px;
}

.step-text { max-width: 30rem; }

.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 800;
  background:
    radial-gradient(120% 90% at 30% 0%, rgb(255 255 255 / 0.45) 0%, transparent 55%),
    linear-gradient(135deg, var(--green-light) 0%, var(--green-dark) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5), 0 8px 20px -8px rgb(12 154 96 / 0.7);
}

h3 { font-size: clamp(1.6rem, 5vw, 2.1rem); }

.step p { margin: 12px 0 0; color: var(--ink-soft); }
.step em { color: var(--green-dark); font-style: normal; font-weight: 700; }

/* ── And a lot more ──────────────────────────────────────────────────── */

.highlights {
  display: grid;
  gap: 18px;
}

.highlight {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
}
.highlight .phone {
  width: min(62%, 230px);
  align-self: center;
  margin-bottom: 18px;
  padding: 5px;
  border-radius: 1.6rem;
}
.highlight .phone img { border-radius: 1.3rem; }
.highlight h3 { font-size: 1.5rem; }
.highlight p { margin: 8px 0 0; color: var(--ink-soft); }
.highlight .note { font-size: 13.5px; color: var(--ink-faint); font-style: italic; }

.minis {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}
.minis li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 1.5rem;
}
.minis .icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--green-wash);
  font-size: 21px;
}
.minis h4 {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 600;
  font-size: 1.1rem;
}
.minis p { margin: 2px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

@media (min-width: 560px) {
  .minis { grid-template-columns: repeat(2, 1fr); }
}

/* ── Wider screens: side by side ─────────────────────────────────────── */

@media (min-width: 820px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    padding-top: 80px;
    padding-bottom: 40px;
  }
  .step {
    grid-template-columns: 0.9fr 1.1fr;
    padding: 40px 44px;
    gap: 40px;
  }
  .step.flip .step-text { order: 2; }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .minis { grid-template-columns: repeat(3, 1fr); }
  .pair .phone { padding: 7px; border-radius: 2.2rem; }
  .pair .phone img { border-radius: 1.75rem; }
}

main.wrap { padding-bottom: 104px; } /* .wrap sets padding: 0 16px, so main alone would lose */

/* ── Gentle motion ───────────────────────────────────────────────────── */

/* The phone up top floats a little */
.hero-phone { animation: float 7s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50%      { transform: rotate(1deg) translateY(-10px); }
}

/* Sections fade up as they scroll into view; the second phone of a pair a beat later.
   Only when the script runs (it adds .js), so nothing stays hidden without it. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal .pair .phone {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease 0.2s, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.2s;
}
.js .reveal .pair .phone:nth-child(2) { transition-delay: 0.4s; }
.js .reveal.in .pair .phone { opacity: 1; transform: none; }

/* Screenshots lift a touch under the mouse */
@media (hover: hover) {
  .pair .phone, .highlight .phone { transition: transform 0.35s ease, box-shadow 0.35s ease; }
  .js .reveal.in .pair .phone:hover,
  .highlight .phone:hover {
    transform: translateY(-6px);
    transition-delay: 0s;
    box-shadow: 0 32px 60px -22px rgb(14 60 40 / 0.5);
  }
}

/* Step 5: little hearts drifting up behind the phones */
.step.love { position: relative; overflow: hidden; }
.step.love > :not(.hearts) { position: relative; z-index: 1; }
.hearts { position: absolute; inset: 0; pointer-events: none; } /* behind, out of the grid */
.hearts span {
  position: absolute;
  bottom: -30px;
  font-size: 22px;
  opacity: 0;
  animation: rise 9s linear infinite;
}
.hearts span:nth-child(1) { left: 8%;  animation-delay: 0s; }
.hearts span:nth-child(2) { left: 30%; animation-delay: 1.6s; font-size: 18px; }
.hearts span:nth-child(3) { left: 52%; animation-delay: 3.1s; }
.hearts span:nth-child(4) { left: 70%; animation-delay: 4.5s; font-size: 18px; }
.hearts span:nth-child(5) { left: 86%; animation-delay: 6s; }
.hearts span:nth-child(6) { left: 42%; animation-delay: 7.4s; font-size: 17px; }
@keyframes rise {
  0%   { opacity: 0; transform: translate(0, 0) rotate(-8deg); }
  12%  { opacity: 0.5; }
  50%  { transform: translate(14px, -45vh) rotate(8deg); }
  85%  { opacity: 0.3; }
  100% { opacity: 0; transform: translate(-10px, -90vh) rotate(-6deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-phone { animation: none; transform: rotate(2deg); }
  .hearts { display: none; }
  .js .reveal, .js .reveal .pair .phone { opacity: 1; transform: none; transition: none; }
}
