/* MyPeki marketing — design system (aligned with app brand) */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.68);
  --border: rgba(15, 23, 42, 0.1);
  --brand: #ff7a00;
  --brand-hover: #e86e00;
  --navy: #003366;
  --success: #1f9d55;
  --warning: #c27803;
  --danger: #c81e1e;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1120px;
  --font: 'DM Sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(255, 122, 0, 0.14), transparent 55%),
    radial-gradient(720px 400px at 88% -10%, rgba(0, 51, 102, 0.08), transparent 50%),
    linear-gradient(180deg, #fff 0%, #fbfcfe 45%, #fff 100%);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand);
}

.container {
  width: min(100%, calc(var(--max) + 48px));
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--navy);
}
.brand:hover {
  color: var(--navy);
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav a:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.04);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.button:hover {
  background: var(--bg-soft);
  color: var(--text);
}
.button-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.button-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255, 122, 0, 0.28);
}
.button-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.button-navy:hover {
  background: #00264d;
  color: #fff;
}
.button:disabled,
.button[aria-disabled='true'] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.03);
  padding: 8px 12px;
  border-radius: 999px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(31, 157, 85, 0.14);
}
h1,
.display {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--navy);
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
}
h2 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}
h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--text);
}
.lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 54ch;
}
.section-lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}
.legal-muted {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}
.nav .cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 700;
}
.nav .cta:hover {
  background: var(--brand-hover);
  color: #fff !important;
}
.small-note {
  color: var(--muted);
  font-size: 0.9rem;
}
/* Standalone legal HTML pages */
.card ul {
  margin: 0;
  padding-left: 1.2rem;
}
.card li + li {
  margin-top: 8px;
}
.card a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Sections */
.section {
  padding: 64px 0;
}
.section-muted {
  background: linear-gradient(180deg, rgba(247, 248, 251, 0.7), rgba(255, 255, 255, 0));
}
.hero {
  padding: 56px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.hero-visual {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(420px 220px at 12% 0%, rgba(255, 122, 0, 0.22), transparent 60%),
    linear-gradient(165deg, rgba(0, 51, 102, 0.06), #fff 58%);
  padding: 28px;
  box-shadow: var(--shadow);
  min-height: 280px;
}
.hero-visual-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
.hero-visual h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.hero-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.hero-list li {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-list strong {
  color: var(--text);
}

/* Grids / cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
}
.card-link {
  display: block;
  height: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.card-link:hover {
  border-color: rgba(255, 122, 0, 0.35);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
  color: inherit;
}
.card-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.5);
  margin-bottom: 8px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.65);
}
.badge-live {
  background: rgba(31, 157, 85, 0.1);
  border-color: rgba(31, 157, 85, 0.25);
  color: #146c3a;
}
.badge-apply {
  background: rgba(255, 122, 0, 0.12);
  border-color: rgba(255, 122, 0, 0.28);
  color: #9a4a00;
}
.badge-soon {
  background: rgba(0, 51, 102, 0.08);
  border-color: rgba(0, 51, 102, 0.18);
  color: var(--navy);
}

/* How steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  color: #9a4a00;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

/* Band / strip */
.band {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.12), rgba(255, 255, 255, 0.92));
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.band strong {
  display: block;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 4px;
}

/* Store badges */
.store-badge {
  display: inline-block;
  line-height: 0;
}
.store-badge img {
  height: 44px;
  width: auto;
}

/* Forms */
.form {
  display: grid;
  gap: 14px;
}
.form-row {
  display: grid;
  gap: 6px;
}
.form-row label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.form-row .hint {
  font-size: 12px;
  color: var(--muted);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
.form-row textarea {
  min-height: 96px;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(255, 122, 0, 0.35);
  outline-offset: 1px;
  border-color: rgba(255, 122, 0, 0.5);
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-message {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  display: none;
}
.form-message.is-visible {
  display: block;
}
.form-message.is-error {
  background: rgba(200, 30, 30, 0.08);
  border: 1px solid rgba(200, 30, 30, 0.2);
  color: #8f1a1a;
}
.form-message.is-success {
  background: rgba(31, 157, 85, 0.1);
  border: 1px solid rgba(31, 157, 85, 0.22);
  color: #146c3a;
}
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
}
.checklist li::before {
  content: '';
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--brand);
  flex-shrink: 0;
}

/* Partner apply split */
.apply-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

/* KYC wizard */
.kyc-progress {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.kyc-step-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: #fff;
}
.kyc-step-pill.is-active {
  background: rgba(255, 122, 0, 0.12);
  border-color: rgba(255, 122, 0, 0.3);
  color: #9a4a00;
}
.kyc-step-pill.is-done {
  background: rgba(31, 157, 85, 0.1);
  border-color: rgba(31, 157, 85, 0.25);
  color: #146c3a;
}
.kyc-panel[hidden] {
  display: none !important;
}
.file-list {
  display: grid;
  gap: 10px;
}
.file-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
}
.file-item input[type='file'] {
  font-size: 13px;
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
}
details {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
summary {
  cursor: pointer;
  font-weight: 700;
}
details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
  color: var(--muted);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-brand {
  max-width: 300px;
}
.footer-tagline {
  margin: 8px 0 12px;
  font-size: 0.95rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  max-width: 640px;
}
.footer-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--brand);
}

/* Coming soon banner */
.soon-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 51, 102, 0.18);
  background: rgba(0, 51, 102, 0.06);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.form-purpose {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 51, 102, 0.14);
  background: rgba(0, 51, 102, 0.04);
}
.form-purpose strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 0.92rem;
}
.form-purpose ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.form-purpose li + li {
  margin-top: 4px;
}
.form-purpose a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-tight {
  padding: 8px 0 40px;
}

/* Market launch line */
.market-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.market-line--compact {
  font-size: 0.85rem;
}
.market-line__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--navy);
}
.market-line__live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(31, 157, 85, 0.55);
  animation: pulse-dot 2.2s ease-out infinite;
}
.market-line__sep {
  opacity: 0.45;
}
.market-line__more {
  color: var(--muted);
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 157, 85, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(31, 157, 85, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 157, 85, 0);
  }
}

/* Honest proof bar (no vanity metrics) */
.proof-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 4px 0;
}
.proof-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  padding: 16px 18px;
}
.proof-value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 650;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.proof-label {
  margin-top: 4px;
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}
.proof-hint {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Hero food media */
.hero-media {
  margin: 0;
}
.hero-media__frame {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 280px;
  background: #1a1a1a;
}
.hero-media__img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 420px;
  object-fit: cover;
  transform: scale(1.02);
  animation: hero-kenburns 18s ease-in-out infinite alternate;
}
.hero-media__glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.45));
  pointer-events: none;
}
.hero-media__caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding: 0 2px;
}
.hero-media__caption-text {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

@keyframes hero-kenburns {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

/* Taste strip */
.taste-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
}
.taste-photos {
  position: relative;
  min-height: 280px;
}
.taste-photo {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.taste-photo--a {
  width: 78%;
  height: 240px;
  animation: float-a 7s ease-in-out infinite;
}
.taste-photo--b {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  height: 190px;
  animation: float-b 8s ease-in-out infinite;
}

@keyframes float-a {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes float-b {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }
  .header-inner {
    position: relative;
  }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 16px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.is-open {
    display: flex;
  }
  .hero-grid,
  .apply-layout,
  .grid-2,
  .grid-3,
  .grid-4,
  .steps,
  .form-grid-2,
  .proof-bar,
  .taste-grid {
    grid-template-columns: 1fr;
  }
  .taste-photos {
    min-height: 320px;
  }
  .taste-photo--a {
    width: 88%;
  }
  .taste-photo--b {
    width: 58%;
  }
  .hero {
    padding-top: 36px;
  }
  .section {
    padding: 48px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-media__img,
  .taste-photo--a,
  .taste-photo--b,
  .market-line__live::before {
    animation: none !important;
  }
  .button-primary:hover {
    transform: none;
    box-shadow: none;
  }
}
