/* InstiPay landing page. Standalone: does not use styles.css. */

:root {
  --red: #cc0519;
  --red-deep: #8d0312;
  --red-soft: #fdeaec;
  --gold: #febd40;
  --ink: #171717;
  --ink-2: #52514e;
  --muted: #7a7a82;
  --line: #ece7e9;
  --bg: #ffffff;
  --tint: #fff6f7;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(204, 5, 25, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

.wrap {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(780px, 100% - 2.5rem);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(204, 5, 25, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(204, 5, 25, 0.36);
}

.btn--small {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  box-shadow: none;
}

.btn--ghost {
  background: #fff;
  color: var(--red);
  border-color: #f0c4ca;
  box-shadow: none;
}

.btn--ghost:hover {
  box-shadow: 0 8px 20px rgba(204, 5, 25, 0.14);
}

.btn--light {
  background: #fff;
  color: var(--red);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

/* -------------------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  width: 100%;
  max-width: none;
  padding-inline: clamp(1rem, 2.5vw, 2rem);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text b {
  color: var(--red);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-2);
}

.nav-links a:not(.btn):hover {
  color: var(--red);
}

/* The section you are reading. */
.nav-links a:not(.btn) {
  position: relative;
}

.nav-links a:not(.btn).is-current {
  color: var(--red);
  font-weight: 700;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-links a:not(.btn).is-current::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
}

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(254, 189, 64, 0.22), transparent 60%),
    radial-gradient(800px 520px at 10% 0%, rgba(204, 5, 25, 0.1), transparent 60%),
    linear-gradient(180deg, #fff6f7 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  width: calc(100% - clamp(2rem, 8vw, 10rem));
  max-width: 1400px;
  margin: 0 auto;
  justify-self: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(0.75rem, 1.5vw, 1.25rem);
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero h1 span {
  color: var(--red);
}

.lead {
  margin: 1rem 0 0;
  max-width: 38rem;
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-points svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #0a8a2c;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow), 0 0 0 1px rgba(204, 5, 25, 0.06);
}

/* The artwork ships with a thin dark line along its bottom edge; crop it. */
.art-frame img,
.step-art img {
  margin-bottom: -2.5%;
  width: 100%;
}

.hero-art {
  position: relative;
}

/* Food carousel: one big plate in front, the rest on a dashed arc behind it. */
.orbit-on {
  /* As tall as the first screen allows (the page minus the nav), but never
     wider than its column. */
  width: min(100%, calc(100vh - 68px - 1.5rem), 900px);
  width: min(100%, calc(100svh - 68px - 1.5rem), 900px);
  margin-inline: auto;
  transform: translateY(-5%);
}

.orbit {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.orbit-bg {
  position: absolute;
  left: 1%;
  top: 3%;
  width: 98%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #ffe6da 0%, #fdeaec 62%, #fff4f5 100%);
}

.orbit-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  overflow: visible;
}

.orbit-arc path {
  stroke: #d9a4ad;
  stroke-width: 1.5;
  stroke-dasharray: 7 7;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.plate {
  position: absolute;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 4px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  background: #f4eeee;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 20px rgba(60, 20, 30, 0.2);
  transition: left 0.9s cubic-bezier(0.65, 0, 0.25, 1), top 0.9s cubic-bezier(0.65, 0, 0.25, 1),
    width 0.9s cubic-bezier(0.65, 0, 0.25, 1), box-shadow 0.9s ease;
}

.plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.plate.is-front {
  cursor: default;
  border-width: 6px;
  box-shadow: 0 22px 40px rgba(60, 20, 30, 0.3);
}

.plate:not(.is-front):hover {
  box-shadow: 0 10px 24px rgba(204, 5, 25, 0.35);
}

.orbit-btn {
  position: absolute;
  z-index: 4;
  bottom: 4%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(23, 23, 23, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.orbit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(204, 5, 25, 0.25);
}

.orbit-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orbit-btn--prev {
  left: 2%;
}

.orbit-btn--next {
  right: 2%;
}

@media (prefers-reduced-motion: reduce) {
  .plate {
    transition: none;
  }
}

/* ---------------------------------------------------------------- sections */
.section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  /* A little more room underneath than on top, so the content sits slightly
     above the middle instead of looking low. */
  padding-block: clamp(1rem, 2.5vh, 2rem) clamp(1.5rem, 8vh, 4.5rem);
}



.section--tint {
  background: var(--tint);
}

.section-head {
  max-width: 40rem;
  margin: 0 auto clamp(1.5rem, 3vw, 2.4rem);
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-sub {
  margin: 0.7rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--ink-2);
}

/* ------------------------------------------------------------------- steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
}

.step {
  position: relative;
  padding: 0 0 1.4rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(23, 23, 23, 0.04);
  overflow: hidden;
}

.step-art {
  overflow: hidden;
  background: #fff;
  margin-bottom: 1.1rem;
}

.step-n {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(204, 5, 25, 0.35);
}

.step h3 {
  margin: 0 1.3rem 0.4rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.step p {
  margin: 0 1.3rem;
  color: var(--ink-2);
  font-size: 0.97rem;
}

/* ---------------------------------------------------------------- features */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.feature {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #f3dfe2;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  font-weight: 800;
}

.feature p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.96rem;
}

/* ------------------------------------------------------------------ stalls */
.stall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.1rem;
}

.stall {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.3rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(23, 23, 23, 0.04);
}

.stall-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.stall-avatar {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
}

.stall h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
}

.stall-desc {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.93rem;
  min-height: 2.8em;
}

.stall-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #e5f6e9;
  color: #14692a;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill--closed {
  background: #f0eeef;
  color: #6b6b73;
}

/* ---------------------------------------------------------------- audiences */
.audiences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.audience {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.8rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #f3dfe2;
}

.audience h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.audience > p {
  margin: 0.3rem 0 1rem;
  color: var(--ink-2);
}

.audience ul {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.audience li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink);
}

.audience li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--gold);
}

.audience .btn {
  margin-top: auto;
}

/* --------------------------------------------------------------------- faq */
.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq details[open] {
  border-color: #f0c4ca;
  box-shadow: 0 6px 20px rgba(204, 5, 25, 0.08);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--red);
  border-bottom: 2.5px solid var(--red);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq p {
  margin: 0;
  padding: 0 1.3rem 1.2rem;
  color: var(--ink-2);
}

/* ------------------------------------------------------------------ footer */
.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem clamp(1.4rem, 4vw, 3.2rem);
  padding: 2rem 1.25rem 1.8rem;
}

.footer-links a {
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--red);
}

.footer-bar {
  padding: 1rem 1.25rem;
  background: var(--red-soft);
  color: #3a3a40;
  font-size: 0.9rem;
}

.footer-bar p {
  margin: 0;
}

/* ------------------------------------------------------------------ reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .feature {
    transition: none;
  }
}

/* -------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
    width: 100%;
  }
  .orbit-on {
    width: min(100%, 560px);
  }
  .steps,
  .audiences {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: grid;
  }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.1rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(23, 23, 23, 0.08);
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a:not(.btn)::after {
    display: none;
  }

  .nav-links a:not(.btn) {
    padding: 0.8rem 0.2rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links .btn {
    margin-top: 0.8rem;
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

/* ------------------------------------------------- Terms and Conditions page */
.doc {
  width: min(780px, 100% - 2.5rem);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.doc h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.doc-meta {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.doc-note {
  margin: 0 0 2rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: var(--red-soft);
  color: #3a3a40;
  font-size: 0.93rem;
}

.doc h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.doc p,
.doc li {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.7;
}

.doc ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.doc li + li {
  margin-top: 0.3rem;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.crumbs a {
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--red);
  text-decoration: underline;
}

.crumbs [aria-current] {
  color: var(--ink);
  font-weight: 600;
}
