/* Yora Landing — Function-inspired layout + app palette */

:root {
  --yora-white: #ffffff;
  --yora-cream: #fff9e6;
  --yora-sage: #82ca9d;
  --yora-sage-dark: #6bb887;
  --yora-grass: #3d9b6a;
  --yora-yellow: #f5c518;
  --yora-ink: #1a1a1a;
  --yora-heading: #222222;
  --yora-muted: #666666;
  --yora-border: #ece8df;
  --yora-surface: #faf7f0;
  --header-h: 4.25rem;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

:focus-visible {
  outline: 2px solid var(--yora-sage);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--yora-ink);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

body {
  background: var(--yora-white);
  color: var(--yora-ink);
}

/* Type */
.font-display {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
}

.display-italic {
  font-family: "Fraunces", Georgia, serif;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yora-grass);
}

.eyebrow--lg {
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
}

@media (min-width: 640px) {
  .eyebrow--lg {
    font-size: 1.0625rem;
  }
}

/* Logo */
.yora-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--yora-heading);
}

.yora-logo__mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.yora-logo__text {
  font-family: "Fraunces", Georgia, serif;
  font-style: normal;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

/* Buttons — match app Continue */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--yora-sage);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.06);
}

.btn-primary:hover {
  background: var(--yora-sage-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.5rem;
  background: transparent;
  color: var(--yora-ink);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid var(--yora-border);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--yora-sage);
  background: var(--yora-cream);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--yora-ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.btn-ghost:hover {
  color: var(--yora-grass);
}

/* Soft cards — Function-like, light surfaces */
.card {
  background: var(--yora-white);
  border-radius: 1.25rem;
  border: 1px solid var(--yora-border);
}

.card-soft {
  background: var(--yora-cream);
  border: none;
  border-radius: 1.25rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--yora-cream);
  color: var(--yora-grass);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 9999px;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--yora-border);
}

.nav-panel {
  display: none;
}

.nav-panel.is-open {
  display: block;
}

body.nav-open {
  overflow: hidden;
}

/* Hero — spacious, Function rhythm */
.hero {
  padding: 3rem 0 4rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 4.5rem 0 5.5rem;
  }
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

.hero-visual {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--yora-cream);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-blob {
  position: absolute;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  background: var(--yora-cream);
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(2px);
}

.step-num {
  font-family: "Fraunces", Georgia, serif;
  font-style: normal;
  font-size: 2rem;
  font-weight: 600;
  color: var(--yora-sage);
  line-height: 1;
}

/* Score rings */
.score-ring {
  --pct: 78;
  --size: 5rem;
  --ring-color: var(--yora-sage);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) calc(var(--pct) * 1%), var(--yora-border) 0);
  display: grid;
  place-items: center;
}

.score-ring::before {
  content: "";
  width: 75%;
  height: 75%;
  border-radius: 50%;
  background: var(--yora-white);
}

.score-ring-inner {
  position: absolute;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--yora-ink);
}

.score-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
}

/* App-style score pills */
.score-pill-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.score-pill {
  flex: 1 1 6rem;
  min-width: 5.5rem;
  border-radius: 0.85rem;
  padding: 0.65rem 0.75rem;
  text-align: center;
}

.score-pill--product {
  background: rgba(130, 202, 157, 0.35);
}

.score-pill--verify {
  background: rgba(130, 202, 157, 0.2);
}

.score-pill__label {
  font-size: 0.6875rem;
  color: var(--yora-muted);
  font-weight: 500;
}

.score-pill__value {
  margin-top: 0.15rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.score-pill--product .score-pill__value {
  color: var(--yora-grass);
}

.score-pill--verify .score-pill__value {
  color: var(--yora-sage-dark);
}

.score-card-app {
  background: var(--yora-white);
  border: 1px solid var(--yora-border);
  border-radius: 1rem;
  padding: 1rem;
}

.score-card-app__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--yora-heading);
}

.score-card-app__meta {
  font-size: 0.6875rem;
  color: var(--yora-muted);
  margin-top: 0.15rem;
}

/* Phone mockups */
.phone-showcase {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}

.phone-frame {
  width: min(220px, 72vw);
  max-width: 100%;
  border-radius: 2rem;
  border: 3px solid var(--yora-ink);
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

@media (max-width: 639px) {
  .phone-frame--welcome {
    width: min(260px, 78vw);
  }

  .hero {
    padding: 2rem 0 2.5rem;
  }

  section.py-20 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

.phone-frame--welcome {
  aspect-ratio: 9 / 19;
  border: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  background: transparent;
}

.phone-frame--welcome .phone-screen-img {
  border-radius: 2rem;
}

.phone-frame--result {
  width: 200px;
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone-screen-ui {
  padding: 1.25rem 1rem 1.5rem;
  background: var(--yora-white);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.phone-screen-ui .welcome-heading {
  font-family: "Fraunces", Georgia, serif;
  font-style: normal;
  font-weight: 600;
  font-size: 1.35rem;
  text-align: center;
  color: var(--yora-heading);
}

.welcome-blob {
  width: 7rem;
  height: 7rem;
  margin: 0.5rem auto 1rem;
  border-radius: 50%;
  background: var(--yora-cream);
  display: grid;
  place-items: center;
}

.welcome-blob img {
  width: 5rem;
  height: 5rem;
}

.media-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame {
  overflow: hidden;
  border-radius: 1rem;
  position: relative;
}

/* Form */
.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--yora-heading);
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--yora-border);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--yora-ink);
  font-size: 1rem;
  font-family: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--yora-sage);
  box-shadow: 0 0 0 3px rgba(130, 202, 157, 0.25);
  outline: none;
}

.form-field .error-msg {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #c45c5c;
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: #c45c5c;
}

.form-field.is-invalid .error-msg {
  display: block;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.phone-notch {
  height: 1.5rem;
  background: var(--yora-ink);
  margin: 0 auto;
  width: 40%;
  border-radius: 0 0 0.75rem 0.75rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.15rem;
  background: #111;
  color: #fff;
  border-radius: 0.75rem;
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

.form-success {
  display: none;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--yora-cream);
  color: var(--yora-heading);
  font-weight: 500;
}

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

/* Band sections */
.band-cream {
  background: var(--yora-cream);
}

.band-ink {
  background: var(--yora-ink);
  color: #fff;
}
