/* konipony — premium hobby horse shop (mobile-first) */

:root {
  --bg: #f7f3ec;
  --bg-soft: #efe8dc;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --text: #2f3d38;
  --text-muted: #6a7a72;
  --accent: #5a8f7b;
  --accent-deep: #3d6b5c;
  --accent-warm: #c4896a;
  --accent-blush: #e8cfc0;
  --border: rgba(47, 61, 56, 0.1);
  --shadow: 0 12px 40px rgba(61, 107, 92, 0.12);
  --shadow-soft: 0 4px 20px rgba(61, 107, 92, 0.08);
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --transition-case: 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-ui: 0.28s ease;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-h: 3.75rem;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ——— Layout ——— */

.container {
  width: min(100% - 1.5rem, 42rem);
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 1.5rem, 52rem);
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--accent-deep);
}

.logo span {
  color: var(--accent-warm);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--surface);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border: none;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-ui), box-shadow var(--transition-ui);
}

.nav-cta:active {
  transform: scale(0.97);
}

/* ——— Hero ——— */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(232, 207, 192, 0.85) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(90, 143, 123, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 45% at 15% 35%, rgba(196, 137, 106, 0.1) 0%, transparent 45%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  width: min(100%, 26rem);
  min-height: calc(100dvh - var(--header-h) - 2.5rem);
  min-height: calc(100svh - var(--header-h) - 2.5rem);
  margin-inline: auto;
  padding: 0.5rem 0 1rem;
  box-sizing: border-box;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.4rem 1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  animation: heroReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-warm));
}

.hero__eyebrow::after {
  background: linear-gradient(90deg, var(--accent-warm), transparent);
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  animation: heroReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.hero__title-line {
  display: block;
  font-size: clamp(2.35rem, 11vw, 3.5rem);
  color: var(--accent-deep);
}

.hero__title-line--accent {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 9.5vw, 3rem);
  background: linear-gradient(120deg, var(--accent-warm) 0%, #a86f52 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0;
  max-width: 20rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-muted);
  animation: heroReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.hero__scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding: 0.5rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  border-radius: 999px;
  animation: heroReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.hero__scroll-hint svg {
  width: 1.25rem;
  opacity: 0.6;
  animation: float 2.2s ease-in-out 0.9s infinite;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-block: auto;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ——— Scroll-driven cases ——— */

.case-scroll {
  position: relative;
  scroll-snap-align: start;
  scroll-margin-top: var(--header-h);
}

.case-scroll__track {
  position: relative;
  height: 280vh;
}

.case-scroll__sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 0.75rem 1.25rem;
  overflow: hidden;
}

.case-scroll__label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.case-scroll__heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
  text-align: center;
  color: var(--accent-deep);
}

.case-stage {
  display: grid;
  place-items: center;
  width: min(100%, 20rem);
  overflow: hidden;
}

.case-card {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1.15rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition:
    transform var(--transition-case),
    opacity var(--transition-case);
  z-index: 1;
}

.case-card.is-active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}

/* Passed cases exit upward */
.case-card.is-before {
  transform: translateY(-100%);
  opacity: 0;
  z-index: 2;
}

/* Upcoming cases wait below */
.case-card.is-after {
  transform: translateY(100%);
  opacity: 0;
  z-index: 1;
}

.case-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5rem;
  margin: 0 0 0.85rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--bg-soft), var(--accent-blush));
}

.case-card__icon {
  width: 4.25rem;
  height: 4.25rem;
  opacity: 0.9;
}

.case-card__tier {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.case-card__name {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.15;
  color: var(--accent-deep);
}

.case-card__desc {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.case-card__price {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent-deep);
}

.case-card__price small {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.case-card__features {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.case-card__features li {
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
}

.case-card__cta {
  margin-top: 0;
  min-height: 2.75rem;
  width: 100%;
  font-size: 0.95rem;
  text-decoration: none;
}

.case-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
}

.case-dots {
  display: flex;
  gap: 0.5rem;
  margin: 0;
}

.case-dots__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  transition: transform var(--transition-ui), background var(--transition-ui);
}

.case-dots__dot.is-active {
  background: var(--accent);
  transform: scale(1.35);
}

.case-scroll__steps {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.case-step {
  height: 33.333%;
}

/* ——— Features strip ——— */

.features {
  padding: 3rem 0;
}

.section-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent-deep);
}

.section-sub {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-grid {
  display: grid;
  gap: 0.85rem;
}

.feature-card {
  padding: 1.15rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.feature-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--accent-deep);
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ——— Drop odds ——— */

.drop-odds {
  padding: 2.5rem 0 1.5rem;
}

.drop-odds__grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.drop-odds__card {
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.drop-odds__card-title {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-deep);
}

.drop-odds__pool {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.drop-odds__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.drop-odds__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.drop-odds__row:last-child {
  margin-bottom: 0;
}

.drop-odds__row--ultra {
  background: linear-gradient(135deg, rgba(232, 207, 192, 0.55), rgba(255, 255, 255, 0.9));
  border-color: rgba(196, 137, 106, 0.35);
}

.drop-odds__label {
  color: var(--text);
  line-height: 1.35;
}

.drop-odds__row--ultra .drop-odds__label {
  font-weight: 600;
  color: var(--accent-deep);
}

.drop-odds__chance {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-deep);
}

.drop-odds__row--ultra .drop-odds__chance {
  color: var(--accent-warm);
}

.drop-odds__note {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}

/* ——— CTA ——— */

.cta-band {
  margin: 0 0 2rem;
  padding: 2rem 1.25rem;
  text-align: center;
  background: linear-gradient(145deg, var(--accent-blush), var(--bg-soft));
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-deep);
}

.cta-band p {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  width: 100%;
  max-width: 18rem;
  padding: 0 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--surface);
  background: linear-gradient(135deg, var(--accent-warm), #a86f52);
  border: none;
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition-ui), box-shadow var(--transition-ui);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background var(--transition-ui);
}

/* ——— Footer & disclaimer ——— */

.site-footer {
  padding: 2rem 0 calc(1.5rem + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-deep);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--text-muted);
}

.disclaimer {
  margin: 0;
  padding: 1rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}

/* ——— Checkout page ——— */

.checkout-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.checkout-main {
  flex: 1;
  padding: 1.5rem 0 2rem;
}

.checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.checkout-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent-deep);
}

.checkout-sub {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.checkout-card {
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.checkout-card h2 {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.form-group {
  margin-bottom: 0.85rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.order-summary {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.order-summary__thumb {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--bg-soft), var(--accent-blush));
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-summary__thumb svg {
  width: 2rem;
  opacity: 0.85;
}

.order-summary__name {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.order-summary__meta {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.summary-line--total {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-deep);
}

.checkout-note {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.checkout-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.checkout-success.is-visible {
  display: block;
}

.checkout-success__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  color: var(--accent);
}

.checkout-form-wrap.is-hidden {
  display: none;
}

/* ——— Tablet+ ——— */

@media (min-width: 640px) {
  html {
    scroll-snap-type: y proximity;
  }

  .hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5rem;
    background: linear-gradient(to top, var(--bg) 15%, transparent);
    pointer-events: none;
  }

  .hero__inner {
    width: min(100%, 34rem);
    min-height: calc(100dvh - var(--header-h) - 3rem);
    padding-bottom: 1.5rem;
  }

  .hero__title-line {
    font-size: clamp(2.75rem, 5vw, 4rem);
  }

  .hero__title-line--accent {
    font-size: clamp(2.35rem, 4.5vw, 3.35rem);
  }

  .hero__lead {
    font-size: 1.1rem;
    max-width: 26rem;
  }

  .case-scroll__track {
    height: 300vh;
  }

  .drop-odds__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .case-stage {
    width: 22rem;
  }
}

/* Short mobile viewports — tighten hero so it still fits one screen */
@media (max-width: 639px) and (max-height: 700px) {
  .hero__eyebrow {
    margin-bottom: 0.65rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.62rem;
  }

  .hero__title {
    margin-bottom: 0.65rem;
  }

  .hero__title-line {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }

  .hero__title-line--accent {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }

  .hero__lead {
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none;
  }
  html {
    scroll-behavior: auto;
  }

  .case-card,
  .hero__eyebrow,
  .hero__title,
  .hero__lead,
  .hero__scroll-hint,
  .case-dots__dot,
  .nav-cta,
  .btn-primary {
    animation: none;
    transition-duration: 0.01ms;
  }
}
