
/* =========================================
   KivoPay Website Stylesheet
   Theme: Green + White
   File: css/style.css
========================================= */

:root {
  --primary: #146c43;
  --primary-dark: #0d5031;
  --primary-light: #e8f5ed;
  --accent: #a7e7bd;
  --text: #20352a;
  --muted: #64746a;
  --background: #ffffff;
  --surface: #f5f9f6;
  --border: #dce8df;
  --warning-bg: #fff8e8;
  --warning-border: #e9d7a6;
  --shadow: 0 12px 35px rgba(20, 70, 43, 0.08);
  --radius: 16px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #78c89a;
  outline-offset: 4px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 1000;
  top: -100px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--primary-dark);
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--primary-dark);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 19px;
}

.main-nav a {
  color: #34473b;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 12px;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 90% 15%, #d9f2e2 0, transparent 36%),
    linear-gradient(135deg, #f5fbf6 0%, #ffffff 72%);
  padding: 78px 0 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: 70px;
}

.hero-content {
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  line-height: 1.5;
}

h1,
h2,
h3 {
  color: #183c29;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

h1 {
  max-width: 740px;
  margin: 0 0 20px;
  font-size: clamp(32px, 4vw, 49px);
  letter-spacing: -1.5px;
  line-height: 1.15;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(25px, 3vw, 34px);
}

h3 {
  margin: 0 0 9px;
  font-size: 19px;
}

p {
  margin: 0 0 18px;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.secondary-actions {
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-outline {
  border-color: var(--primary);
  background: #fff;
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.btn-download {
  background: #dff2e5;
  color: var(--primary-dark);
}

.btn-download:hover {
  background: #c9e9d4;
  color: var(--primary-dark);
}

.refer-button {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  padding: 12px 16px;
  border: 1px dashed #8bbca0;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.refer-button:hover {
  background: var(--primary-light);
}

.refer-button strong {
  color: var(--primary);
}

.copy-status {
  min-height: 22px;
  margin: 5px 0 0;
  color: var(--primary);
  font-size: 13px;
  overflow-wrap: anywhere;
}


/* Join Telegram - Attractive CTA */
.telegram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 23px;
  border: 1px solid #168bd0;
  border-radius: 12px;
  background: linear-gradient(135deg, #2aabee, #168bd0);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(42, 171, 238, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.telegram-link::before {
  content: "➤";
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 17px;
}

.telegram-link::after {
  content: "↗";
  font-size: 17px;
  opacity: 0.9;
}

.telegram-link:hover {
  transform: translateY(-3px);
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(42, 171, 238, 0.35);
}

.telegram-link:active {
  transform: translateY(0);
}

.telegram-link:focus-visible {
  outline: 3px solid #91d5ff;
  outline-offset: 4px;
}

@media (max-width: 480px) {
  .telegram-link {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    font-size: 15px;
  }
}


.small-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.hero-visual {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 34px;
  border: 1px solid #e0eee4;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.hero-visual > img {
  width: min(260px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 20px;
}

.visual-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 50px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
}

/* Quick facts */

.quick-facts {
  position: relative;
  z-index: 2;
  padding: 0 0 18px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.fact-card {
  display: flex;
  min-height: 95px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
}

.fact-label {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.fact-card strong {
  color: var(--primary-dark);
  font-size: 17px;
  overflow-wrap: anywhere;
}

/* Sections */

.section {
  padding: 76px 0;
  scroll-margin-top: 95px;
}

.section-soft {
  background: var(--surface);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading p {
  color: var(--muted);
}

.align-left {
  margin-left: 0;
  text-align: left;
}

.article {
  max-width: 880px;
}

.article > h2 {
  margin-top: 0;
}

.article > h2:not(:first-child) {
  margin-top: 24px;
}

.article p,
.article li {
  color: #4c5f53;
}

.article ul,
.article ol {
  padding-left: 25px;
  margin: 15px 0 22px;
}

.article li {
  padding-left: 5px;
  margin-bottom: 8px;
}

.article a:not(.btn) {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.check-list li::marker {
  color: var(--primary);
}

/* Table of contents */

.toc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.toc-grid a {
  display: flex;
  min-height: 60px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: #304b39;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.toc-grid a:hover {
  transform: translateY(-2px);
  border-color: #9dc8ab;
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* Tables */

.table-wrap {
  width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

caption {
  padding: 16px;
  background: #f0f7f2;
  color: var(--primary-dark);
  font-weight: 700;
  text-align: left;
  caption-side: top;
}

th,
td {
  padding: 15px 17px;
  border-bottom: 1px solid #e8eee9;
  vertical-align: top;
}

thead th {
  background: #eaf5ed;
  color: var(--primary-dark);
  font-weight: 700;
}

tbody th {
  color: #304b39;
  font-weight: 700;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #f8fbf8;
}

/* Steps */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0;
}

.step-card {
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.step-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.step-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Referral card */

.code-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 25px 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.code-card > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ref-code {
  color: var(--primary-dark);
  font-size: 25px;
  letter-spacing: 1px;
}

/* Screenshots */

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.screenshot-card {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 5px 20px rgba(20, 70, 43, 0.04);
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: 9px;
  background: #edf3ee;
}

.screenshot-card figcaption {
  padding: 12px 5px 3px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* UPI apps */

.app-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0;
}

.app-chip-list span {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border: 1px solid #cfe5d5;
  border-radius: 30px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}

/* FAQ */

.faq-item {
  margin-bottom: 12px;
  padding: 18px 21px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.faq-item summary {
  position: relative;
  padding-right: 25px;
  color: var(--primary-dark);
  font-weight: 700;
  cursor: pointer;
  list-style-position: outside;
}

.faq-item p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Disclaimer */

.disclaimer-box {
  padding: 25px;
  border: 1px solid var(--warning-border);
  border-left: 5px solid #c39b3b;
  border-radius: 12px;
  background: var(--warning-bg);
}

.disclaimer-box > strong {
  display: block;
  margin-bottom: 12px;
  color: #6d5015;
  font-size: 18px;
}

.disclaimer-box p {
  color: #675a3c;
}

.disclaimer-box p:last-child {
  margin-bottom: 0;
}

/* Pre-footer notice */

.pre-footer-disclaimer {
  padding: 28px 0;
  border-top: 1px solid var(--warning-border);
  background: #fffaf0;
}

.pre-footer-disclaimer strong {
  display: block;
  margin-bottom: 7px;
  color: #755817;
  font-size: 15px;
}

.pre-footer-disclaimer p {
  margin-bottom: 0;
  color: #665b43;
  font-size: 13px;
}

/* Footer */

.site-footer {
  padding: 55px 0 0;
  background: #102f21;
  color: #dce9df;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 55px;
  padding-bottom: 40px;
}

.footer-brand {
  margin-bottom: 18px;
  color: #fff;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  background: #fff;
}

.footer-brand-block p {
  max-width: 350px;
  color: #b8cfc0;
  font-size: 13px;
  line-height: 1.9;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-column h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
  letter-spacing: 0;
}

.footer-column a {
  color: #c2d8c8;
  font-size: 13px;
  line-height: 1.7;
}

.footer-column a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
  margin: 0;
  color: #b8cfc0;
  font-size: 12px;
}

/* Responsive: tablet */

@media (max-width: 1000px) {
  .header-inner {
    gap: 14px;
  }

  .main-nav {
    gap: 12px;
  }

  .main-nav a {
    font-size: 12px;
  }

  .hero-inner {
    gap: 35px;
  }

  .toc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    gap: 30px;
  }
}

/* Responsive: mobile */

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    gap: 9px;
    font-size: 23px;
  }

  .brand img {
    width: 39px;
    height: 39px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 43px;
    min-height: 43px;
    font-size: 23px;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px 16px 16px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.06);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 11px 7px;
    border-bottom: 1px solid #edf2ee;
    font-size: 14px;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    padding: 48px 0 42px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  h1 {
    font-size: clamp(30px, 8vw, 40px);
    letter-spacing: -1px;
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-visual {
    min-height: 230px;
    padding: 24px;
  }

  .hero-visual > img {
    width: 185px;
  }

  .quick-facts {
    padding-top: 18px;
  }

  .facts-grid {
    gap: 10px;
  }

  .fact-card {
    min-height: 82px;
    padding: 13px;
  }

  .fact-card strong {
    font-size: 15px;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading {
    margin-bottom: 25px;
  }

  .toc-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .toc-grid a {
    min-height: 50px;
    padding: 12px 14px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
    gap: 18px;
  }

  .screenshot-card img {
    max-height: 550px;
  }

  .code-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 7px;
  }

  .pre-footer-disclaimer {
    padding: 24px 0;
  }
}

/* Very small screens */

@media (max-width: 380px) {
  .container {
    width: calc(100% - 24px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }

  .ref-code {
    font-size: 22px;
  }

  th,
  td {
    padding: 12px;
    font-size: 12px;
  }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Related Payment Platform Card */
.related-platform-section {
    padding: 24px 0;
    background: #f5f7fb;
}

.related-platform-card {
    padding: 24px 26px;
    background: #ffffff;
    border: 1px solid #e0e5ec;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(20, 35, 60, 0.04);
}

.related-platform-label {
    margin: 0 0 18px;
    color: #2463ff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.related-platform-content,
.related-platform-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.related-platform-content {
    justify-content: space-between;
}

.related-platform-info {
    min-width: 0;
}

.related-platform-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    object-fit: contain;
    border-radius: 12px;
}

.related-platform-text h2 {
    margin: 0 0 5px;
    color: #111827;
    font-size: 20px;
    line-height: 1.3;
}

.related-platform-text p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.related-platform-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 19px;
    border: 1px solid #2463ff;
    border-radius: 11px;
    color: #2463ff;
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease,
                color 0.2s ease,
                transform 0.2s ease;
}

.related-platform-button:hover {
    background: #2463ff;
    color: #ffffff;
    transform: translateY(-2px);
}

.related-platform-button:focus-visible {
    outline: 3px solid #a8c0ff;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .related-platform-card {
        padding: 20px 16px;
    }

    .related-platform-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .related-platform-info {
        align-items: flex-start;
        gap: 12px;
    }

    .related-platform-logo {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .related-platform-text h2 {
        font-size: 18px;
    }

    .related-platform-text p {
        font-size: 14px;
    }

    .related-platform-button {
        width: 100%;
        min-height: 48px;
    }
}
