/* ============================================================
   GRASSARA — component styles
   ============================================================ */

/* ---------- BRAND / WORDMARK ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--cream);
}
.brand__mark {
  width: 16px; height: 16px;
  border-radius: 50% 50% 50% 2px;
  background: var(--accent);
  box-shadow: inset 0 0 0 3px rgba(15,29,20,0.35);
  transform: rotate(-12deg);
  flex: none;
}
.brand__icon {
  width: 34px; height: 34px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  flex: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.45));
}
.brand--sm .brand__icon { width: 26px; height: 26px; }
.brand__name {
  font-family: "Spectral", serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}
.brand--sm .brand__name { font-size: 1.15rem; }
.brand--sm .brand__mark { width: 13px; height: 13px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 40px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(8,18,11,0.58) 0%, rgba(8,18,11,0) 46%),
    radial-gradient(125% 95% at 18% 86%, rgba(8,18,11,0.52), rgba(8,18,11,0) 56%),
    linear-gradient(180deg, rgba(8,18,11,0.34) 0%, rgba(8,18,11,0) 22%);
}
.hero__top, .hero__body, .hero__scroll { position: relative; z-index: 1; }
.hero__top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero__nav-cta { padding: 11px 22px; font-size: 0.92rem; }
.hero__nav {
  display: flex;
  gap: 30px;
  margin: 0 auto;
  padding-left: 40px;
}
.hero__nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  opacity: 0.86;
  position: relative;
  padding: 4px 0;
  transition: opacity 0.18s ease;
}
.hero__nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.hero__nav a:hover { opacity: 1; }
.hero__nav a:hover::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .hero__nav { display: none; }
}

.hero__body {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.hero__lede { margin: 22px 0 0; }
.hero__actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero__soon {
  font-size: 0.92rem;
  color: var(--cream-dim);
  letter-spacing: 0.01em;
}

/* layout variants */
.hero--centered .hero__body { justify-content: center; align-items: center; text-align: center; }
.hero--centered .hero__lede { margin-left: auto; margin-right: auto; }
.hero--centered .hero__actions { justify-content: center; }
.hero--centered .eyebrow { justify-content: center; }

.hero--left .hero__body { justify-content: center; align-items: flex-start; }
.hero--lower .hero__body { justify-content: flex-end; align-items: flex-start; padding-bottom: 24px; }

.hero__copy { max-width: 60ch; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream-dim);
}
.hero__scroll-line {
  width: 1px; height: 38px;
  background: linear-gradient(var(--cream-dim), transparent);
  animation: scrollpulse 2.2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%,100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) { .hero__scroll-line { animation: none; } }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.problem__intro .lede { margin-top: 22px; max-width: 42ch; }
.problem__list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.problem__q {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 22px 4px;
  border-top: 1px solid rgba(244,240,230,0.16);
  font-family: "Spectral", serif;
  font-size: clamp(1.2rem, 2.1vw, 1.7rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
}
.problem__q:last-child { border-bottom: 1px solid rgba(244,240,230,0.16); }
.problem__quote {
  font-family: "Spectral", serif;
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 0;
  position: relative;
  top: 10px;
  font-style: normal;
}

/* ============================================================
   FEATURES + PHONE
   ============================================================ */
.features__head { margin-bottom: 54px; max-width: 30ch; }
.features__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}
.features__phone {
  position: sticky;
  top: 12vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* tap-to-swap gallery */
.phone__screen--gallery {
  position: relative;
  padding: 0;
  display: block;
}
.feat-shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.feat-shot--on {
  opacity: 1;
  pointer-events: auto;
}
.feat-shot image-slot {
  display: block;
  width: 100%;
  height: 100%;
}
/* on-brand empty state inside the dark phone screen */
.feat-shot image-slot::part(frame) {
  background: linear-gradient(180deg, #16291d, #0f1d15);
}
.feat-shot image-slot::part(empty) {
  color: rgba(244, 240, 230, 0.62);
}
.feat-shot image-slot::part(ring) {
  border-color: rgba(244, 240, 230, 0.18);
}

/* dot indicators under the phone */
.features__dots {
  display: flex;
  gap: 9px;
  justify-content: center;
}
.features__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(244, 240, 230, 0.22);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}
.features__dot:hover {
  background: rgba(244, 240, 230, 0.4);
}
.features__dot.is-on {
  width: 22px;
  background: var(--accent);
}

.features__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.feature {
  display: flex;
  gap: 22px;
  padding: 26px 28px;
  align-items: flex-start;
}
.feature__n {
  font-family: "Spectral", serif;
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 500;
  padding-top: 4px;
  flex: none;
  letter-spacing: 0.02em;
}
.feature__t { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 400; margin-bottom: 8px; }
.feature__d { font-size: 1.02rem; line-height: 1.5; max-width: 42ch; }

/* interactive feature rows (drive the phone gallery) */
.feature--pick {
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.feature--pick:hover {
  background: rgba(244, 240, 230, 0.05);
}
.feature--pick:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.feature--active {
  background: rgba(226, 97, 60, 0.1);
  box-shadow: inset 3px 0 0 var(--accent);
}
.feature--active .feature__n {
  color: var(--accent);
}
.feature--active .feature__d {
  color: var(--cream-dim);
}

/* phone */
.phone {
  width: clamp(248px, 26vw, 312px);
  aspect-ratio: 312 / 660;
  background: linear-gradient(160deg, #0c1610, #060b08);
  border-radius: 42px;
  padding: 11px;
  box-shadow: 0 40px 80px -28px rgba(0,0,0,0.7), inset 0 0 0 1.5px rgba(244,240,230,0.08);
  position: relative;
}
.phone__notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 7px; border-radius: 99px; background: rgba(0,0,0,0.55); z-index: 3;
}
.phone__screen {
  width: 100%; height: 100%;
  border-radius: 33px;
  background: linear-gradient(180deg, #14241a, #102017);
  overflow: hidden;
  padding: 30px 18px 18px;
  display: flex; flex-direction: column; gap: 13px;
}
.ph-status { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; color: var(--cream-dim); }
.ph-status__dots { display: flex; gap: 4px; }
.ph-status__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--cream-dim); opacity: 0.6; display: block; }
.ph-head .ph-zone { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.ph-head h4 { font-family: "Spectral", serif; font-weight: 400; font-size: 1.35rem; margin: 3px 0 0; }
.ph-photo {
  flex: 1;
  min-height: 120px;
  border-radius: 16px;
  background-color: #1c3324;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 8px, rgba(255,255,255,0) 8px 16px);
  border: 1px dashed rgba(244,240,230,0.22);
  display: flex; align-items: center; justify-content: center;
}
.ph-label { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.7rem; letter-spacing: 0.05em; color: rgba(244,240,230,0.55); }
.ph-small { font-size: 0.68rem; }
.ph-score { display: flex; align-items: center; gap: 14px; }
.ph-score__num { font-family: "Spectral", serif; font-size: 2.4rem; font-weight: 500; color: var(--cream); line-height: 1; }
.ph-score__num span { font-size: 0.95rem; color: var(--cream-dim); }
.ph-score__meta { display: flex; flex-direction: column; gap: 3px; }
.ph-trend { color: #8fd07a; font-size: 0.8rem; font-weight: 600; }
.ph-zones { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-chip {
  font-size: 0.72rem; padding: 6px 11px; border-radius: 99px;
  background: rgba(244,240,230,0.07); border: 1px solid rgba(244,240,230,0.12); color: var(--cream-dim);
}
.ph-chip--on { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.ph-trendcard {
  background: rgba(244,240,230,0.05); border: 1px solid rgba(244,240,230,0.1);
  border-radius: 14px; padding: 11px 13px; display: flex; flex-direction: column; gap: 8px;
}
.ph-spark {
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='30' preserveAspectRatio='none'%3E%3Cpolyline points='0,24 30,22 60,25 90,18 120,16 150,11 180,9 220,4' fill='none' stroke='%23e8a13a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100% 100%; background-repeat: no-repeat;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how__head { margin-bottom: 54px; }
.how__steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px);
}
.step { position: relative; }
.step__n {
  font-family: "Spectral", serif; font-size: 2.6rem; font-weight: 300;
  color: var(--accent); display: block; margin-bottom: 16px;
  border-bottom: 1px solid rgba(244,240,230,0.18); padding-bottom: 16px;
}
.step__t { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 400; margin-bottom: 10px; }
.step__d { font-size: 1.05rem; line-height: 1.5; max-width: 30ch; }

/* ============================================================
   FINAL CTA + FOOTER
   ============================================================ */
.final { min-height: 96svh; display: flex; flex-direction: column; justify-content: center; padding-bottom: 0; }
.final__inner { text-align: center; max-width: 760px; }
.final__appicon {
  width: 84px; height: 84px;
  border-radius: 20px;
  margin: 0 auto 30px;
  display: block;
  box-shadow: 0 20px 44px -14px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(0,0,0,0.05);
}
.final__h { margin-bottom: 0; }
.final__lede { margin: 24px auto 0; }
.final__btn { margin-top: 40px; padding: 19px 38px; font-size: 1.1rem; box-shadow: none; }
.final__btn:hover { box-shadow: none; }
.footer {
  margin-top: clamp(70px, 12vh, 130px);
  padding: 30px 0 36px;
  border-top: 1px solid rgba(244,240,230,0.14);
  display: flex; align-items: center; justify-content: space-between; gap: 18px 34px; flex-wrap: wrap;
  width: 100%;
}
.footer__brandrow { display: flex; flex-direction: column; gap: 8px; }
.footer__links {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  align-items: center;
}
.footer__links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.18s ease;
}
.footer__links a:hover { color: var(--accent); }
.footer__tag { font-family: "Spectral", serif; font-style: italic; font-size: 1.05rem; }
.footer__copy { font-size: 0.85rem; }

/* ============================================================
   STICKY CTA
   ============================================================ */
.sticky-cta {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 160%);
  z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 11px 11px 11px 24px;
  border-radius: 999px;
  background: rgba(12,22,15,0.78);
  border: 1px solid rgba(244,240,230,0.16);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 22px 50px -18px rgba(0,0,0,0.7);
  transition: transform 0.5s cubic-bezier(0.22,0.61,0.36,1);
  max-width: calc(100vw - 32px);
}
.sticky-cta--show { transform: translate(-50%, 0); }
.sticky-cta__txt { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta__btn { padding: 13px 24px; font-size: 0.95rem; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; left: 50%; top: 26px; transform: translate(-50%, -160%);
  z-index: 60;
  background: var(--cream); color: var(--green-deep);
  font-weight: 600; font-size: 0.95rem;
  padding: 14px 24px; border-radius: 999px;
  box-shadow: 0 18px 44px -14px rgba(0,0,0,0.6);
  transition: transform 0.45s cubic-bezier(0.22,0.61,0.36,1);
}
.toast--show { transform: translate(-50%, 0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .problem { grid-template-columns: 1fr; gap: 36px; }
  .features__grid { grid-template-columns: 1fr; gap: 48px; }
  .features__phone { position: static; }
  .how__steps { grid-template-columns: 1fr; gap: 30px; }
  .step { border-top: none; }
}
@media (max-width: 560px) {
  .section { padding: 84px 20px; }
  .hero { padding: 22px 20px 36px; }
  .hero--lower .hero__body { padding-bottom: 8px; }
  .hero__copy { max-width: 100%; }
  .hero__copy .display, .hero__copy .lede { max-width: 100% !important; }
  .hero__actions { margin-top: 28px; gap: 14px; }
  .hero__soon { width: 100%; }
  .hero__scroll { display: none; }
  .features__head .h2 { max-width: 100% !important; }
  .ea-modal { padding: 24px 20px 20px; }
  .sticky-cta__txt { display: none; }
  .sticky-cta { padding: 8px; left: auto; right: 16px; transform: translateY(160%); }
  .sticky-cta--show { transform: translateY(0); }
  .footer { justify-content: flex-start; }
}
