/*
Theme Name: Kopono
Theme URI: https://copono.app
Author: Copono
Description: WordPress marketing theme for the Copono rewards platform.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: kopono
*/

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: var(--slate-50);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 20px 0;
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-inner {
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 16px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--primary);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 99px;
  background: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-pill,
.menu-toggle {
  border: 1px solid var(--slate-200);
  background: rgba(255, 255, 255, 0.64);
  color: var(--slate-700);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn-dark {
  background: var(--slate-900);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.22);
}

.btn-light {
  background: var(--white);
  color: var(--slate-900);
  box-shadow: 0 18px 34px rgba(255, 255, 255, 0.12);
}

.app-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-store {
  min-width: 150px;
}

.btn-store small {
  display: block;
  margin-bottom: -2px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.72;
}

.btn-store span {
  display: block;
  font-size: 15px;
  line-height: 1.1;
}

.section {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 18px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.section-copy {
  margin: 0;
  color: var(--slate-600);
  font-size: 18px;
}

.hero {
  padding: 144px 0 104px;
  background: radial-gradient(circle at 88% 10%, rgba(37, 99, 235, 0.08), transparent 32%),
    radial-gradient(circle at 0% 78%, rgba(56, 189, 248, 0.09), transparent 36%),
    var(--slate-50);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 56px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  padding: 7px 13px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 14px;
  font-weight: 750;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.14);
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(42px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, var(--primary), #0284c7);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p {
  max-width: 560px;
  margin: 0 0 30px;
  color: var(--slate-600);
  font-size: 19px;
}

.stats-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid var(--slate-100);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  color: var(--slate-500);
  font-size: 13px;
}

.stat-pill strong {
  color: var(--slate-900);
}

.phone-wrap {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(100%, 326px);
  padding: 8px;
  border-radius: 48px;
  background: var(--slate-900);
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.28);
}

.phone-frame img {
  border-radius: 40px;
  overflow: hidden;
}

.center-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.features {
  background: var(--white);
}

.stores {
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, var(--white), var(--slate-50));
}

.section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head-row > div {
  max-width: 700px;
}

.stores-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.store-card {
  position: relative;
  min-height: 188px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.store-card::after {
  content: "";
  position: absolute;
  inset: auto -34px -48px auto;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
}

.store-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.1);
}

.store-rank {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--slate-900);
  color: var(--white);
  font-size: 12px;
  font-weight: 850;
}

.store-logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  color: var(--primary);
  font-size: 22px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.store-logo img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.store-card h3,
.coupon-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.store-card p,
.coupon-card p {
  margin: 0;
  color: var(--slate-600);
  font-size: 14px;
}

.store-meta,
.coupon-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 750;
}

.offer-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 850;
}

.coupons {
  background:
    radial-gradient(circle at 88% 10%, rgba(37, 99, 235, 0.08), transparent 30%),
    var(--slate-50);
}

.coupons-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 32px;
  align-items: start;
}

.coupon-feature {
  position: sticky;
  top: 100px;
  padding: 30px;
  border-radius: 22px;
  background: radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.28), transparent 34%),
    linear-gradient(135deg, var(--slate-900), var(--slate-800));
  color: var(--white);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
}

.coupon-feature img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top;
  margin-bottom: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.coupon-feature p {
  color: var(--slate-400);
}

.coupon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.coupon-card {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 124px;
  padding: 18px 20px;
  border: 1px solid var(--slate-100);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.coupon-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.1);
}

.coupon-value {
  display: grid;
  place-items: center;
  min-height: 86px;
  border: 1px dashed rgba(37, 99, 235, 0.5);
  border-radius: 18px;
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  color: var(--primary);
  font-size: 18px;
  font-weight: 950;
  text-align: center;
}

.coupon-content {
  min-width: 0;
}

.coupon-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.coupon-store-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
}

.coupon-store-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coupon-store-name {
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
}

.coupon-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
  min-width: 140px;
}

.coupon-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 7px 10px;
  border: 1px dashed var(--slate-200);
  border-radius: 10px;
  background: var(--slate-50);
  color: var(--slate-700);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.btn-copy {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-weight: 850;
  cursor: pointer;
}

.btn-copy:hover {
  background: var(--primary-dark);
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.btn-more {
  min-width: 150px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.08);
}

.btn-more:hover {
  background: #eff6ff;
}

.btn-more[disabled] {
  cursor: not-allowed;
  opacity: 0.58;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  height: 100%;
  padding: 30px;
  border: 1px solid var(--slate-100);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-size: 27px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--slate-600);
}

.steps {
  background: var(--slate-50);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.step-card {
  text-align: center;
}

.step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 22px;
  border-radius: 99px;
  background: var(--primary);
  color: var(--white);
  font-weight: 850;
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.26);
}

.step-card h3 {
  min-height: 58px;
  margin: 0 0 10px;
  font-size: 24px;
}

.step-card p {
  min-height: 96px;
  margin: 0 auto 26px;
  max-width: 280px;
  color: var(--slate-600);
}

.step-image {
  width: min(100%, 260px);
  height: 340px;
  margin: 0 auto;
  border: 1px solid var(--slate-100);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: top;
}

.business {
  background: radial-gradient(circle at 12% 12%, rgba(37, 99, 235, 0.18), transparent 34%),
    radial-gradient(circle at 90% 88%, rgba(2, 132, 199, 0.16), transparent 34%),
    var(--slate-900);
  color: var(--white);
}

.business-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  align-items: center;
  gap: 64px;
}

.business .section-copy,
.business p {
  color: var(--slate-400);
}

.benefits {
  display: grid;
  gap: 22px;
  margin: 34px 0;
}

.benefit {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
}

.benefit h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.benefit p {
  margin: 0;
  font-size: 14px;
}

.dashboard-mock {
  border: 1px solid var(--slate-700);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.browser-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  background: #020617;
  border-bottom: 1px solid var(--slate-700);
}

.browser-bar span {
  width: 12px;
  height: 12px;
  border-radius: 99px;
}

.browser-bar span:nth-child(1) { background: #ef4444; }
.browser-bar span:nth-child(2) { background: #f59e0b; }
.browser-bar span:nth-child(3) { background: #22c55e; }

.dashboard-body {
  padding: 26px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.mini-stat {
  padding: 14px;
  border: 1px solid var(--slate-700);
  border-radius: 10px;
  background: var(--slate-800);
}

.mini-stat span {
  display: block;
  margin-bottom: 8px;
  color: var(--slate-400);
  font-size: 12px;
}

.mini-stat strong {
  font-size: 20px;
}

.bar-chart {
  height: 220px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--slate-700);
  border-radius: 12px;
  background: var(--slate-800);
}

.bar-chart span {
  width: 100%;
  max-width: 28px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #60a5fa, var(--primary));
}

.faq {
  background: var(--white);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--slate-100);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border: 0;
  background: transparent;
  color: var(--slate-900);
  font: inherit;
  font-size: 18px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0 0 24px;
  color: var(--slate-600);
  white-space: pre-line;
}

.faq-item.is-open .faq-question {
  color: var(--primary);
}

.faq-item.is-open .faq-answer {
  display: block;
}

.download {
  background: linear-gradient(180deg, var(--white), var(--slate-50));
}

.download-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 28px;
  background: radial-gradient(circle at 82% 0%, rgba(37, 99, 235, 0.28), transparent 36%),
    linear-gradient(135deg, var(--slate-900), var(--slate-800));
  color: var(--white);
  overflow: hidden;
}

.download-panel p {
  color: var(--slate-400);
  font-size: 18px;
}

.reward-phone {
  width: 260px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--slate-700);
  border-radius: 42px;
  background: var(--slate-800);
  box-shadow: var(--shadow);
}

.reward-screen {
  overflow: hidden;
  border-radius: 32px;
  background: var(--white);
  color: var(--slate-900);
}

.reward-head {
  padding: 28px;
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: var(--white);
  text-align: center;
}

.reward-list {
  padding: 16px;
}

.reward-list div {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--slate-50);
  font-weight: 750;
}

.site-footer {
  padding: 56px 0 28px;
  background: var(--slate-900);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 36px;
}

.footer-grid p,
.footer-grid a {
  color: var(--slate-400);
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.copyright {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--slate-500);
  font-size: 14px;
}

.page-shell {
  padding: 140px 0 80px;
  background: var(--slate-50);
}

.page-card {
  max-width: 880px;
  margin: 0 auto;
  padding: 42px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
  .nav-links,
  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links.is-open {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--slate-100);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .hero-grid,
  .business-grid,
  .coupons-layout,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 120px;
    text-align: center;
  }

  .hero p,
  .stats-pills {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .feature-grid,
  .steps-grid,
  .stores-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head-row {
    display: block;
  }

  .coupon-feature {
    position: static;
  }

  .coupon-card {
    grid-template-columns: 1fr;
  }

  .coupon-actions {
    justify-items: stretch;
    min-width: 0;
  }

  .reward-phone {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 20px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .section {
    padding: 68px 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .stores-grid,
  .coupon-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 18px;
  }

  .card p {
    font-size: 13px;
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }
}
