/* =========================================================
   RYNPAY WEBSITE - MAIN STYLE
   Domain: rynpay.org
   Theme: Green + Teal + Blue + Clean White
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    background: #f5f8f7;
    color: #1d2939;
    line-height: 1.75;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.site-wrapper {
    width: 100%;
    min-height: 100vh;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100%;
    height: 74px;

    z-index: 99999 !important;

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid #dfe9e5;

    box-shadow: 0 3px 18px rgba(0, 80, 60, 0.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    height: 74px;

    margin: 0 auto;
    padding: 0 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 11px;

    height: 100%;

    color: #111827;
    font-weight: 700;

    transition: 0.25s ease;
}

.brand:hover {
    opacity: 0.9;
}

.brand-logo {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    border-radius: 10px;
}

.brand-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.brand-name {
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.5px;

    color: #111111;
}

.brand-name::first-letter {
    color: #07845f;
}


/* =========================================================
   MENU BUTTON
========================================================= */

.menu-button {
    width: 44px;
    height: 44px;

    border: none;
    border-radius: 10px;

    background: #07845f;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    cursor: pointer;

    transition: 0.25s ease;

    position: relative;
    z-index: 100001;
}

.menu-button:hover {
    background: #056b4d;
}

.menu-button span {
    display: block;

    width: 22px;
    height: 2px;

    border-radius: 20px;

    background: #ffffff;

    transition: 0.3s ease;
}


/* Hamburger active */

.menu-button.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   SLIDE MENU
========================================================= */

.menu {
    position: fixed;

    top: 74px;
    right: -340px;

    width: 310px;
    max-width: 88vw;

    height: calc(100vh - 74px);

    padding: 24px 18px 35px;

    background: #ffffff;

    border-left: 1px solid #dce8e3;

    box-shadow: -8px 12px 30px rgba(0, 60, 45, 0.14);

    overflow-y: auto;

    z-index: 100000;

    display: flex;
    flex-direction: column;

    gap: 5px;

    transition: right 0.3s ease;
}

.menu.show {
    right: 0;
}

.menu a {
    display: block;

    padding: 13px 16px;

    border-radius: 9px;

    color: #26332f;

    font-size: 15px;
    font-weight: 500;

    border: 1px solid transparent;

    transition: 0.25s ease;
}

.menu a:hover {
    color: #ffffff;

    background: linear-gradient(
        135deg,
        #07845f,
        #11a879
    );

    transform: translateX(-3px);
}


/* =========================================================
   HEADER SPACER
   Prevents content from hiding behind fixed header
========================================================= */

body::before {
    content: "";
    display: block;
    height: 74px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    width: 100%;

    padding: 70px 20px 75px;

    text-align: center;

    background:
        radial-gradient(
            circle at top right,
            rgba(24, 174, 130, 0.13),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(19, 126, 220, 0.10),
            transparent 35%
        ),
        #ffffff;

    border-bottom: 1px solid #e3ece8;
}

.hero-logo {
    width: 150px;
    height: 150px;

    margin: 0 auto 28px;

    padding: 10px;

    border-radius: 22px;

    background: #ffffff;

    box-shadow:
        0 10px 35px rgba(0, 90, 65, 0.13);

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 14px;
}

.hero h1 {
    max-width: 950px;

    margin: 0 auto 18px;

    font-size: clamp(30px, 5vw, 48px);

    line-height: 1.2;

    font-weight: 700;

    color: #101828;
}

.hero h1::first-letter {
    color: #07845f;
}

.hero p {
    max-width: 780px;

    margin: 0 auto;

    color: #52635e;

    font-size: 16px;
}


/* =========================================================
   BUTTONS
========================================================= */

.hero-buttons {
    margin-top: 30px;

    display: flex;
    flex-wrap: wrap;

    justify-content: center;

    gap: 12px;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 11px 22px;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 600;

    transition: all 0.25s ease;

    cursor: pointer;
}

.btn-primary {
    color: #ffffff;

    background: linear-gradient(
        135deg,
        #07845f,
        #10a879
    );

    box-shadow: 0 7px 18px rgba(7, 132, 95, 0.20);
}

.btn-primary:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 23px rgba(7, 132, 95, 0.28);
}

.btn-outline {
    color: #07845f;

    background: #ffffff;

    border: 1px solid #07845f;
}

.btn-outline:hover {
    color: #ffffff;

    background: #07845f;

    transform: translateY(-2px);
}

.btn-download {
    color: #ffffff;

    background: linear-gradient(
        135deg,
        #0878c9,
        #159ee7
    );

    box-shadow:
        0 7px 18px rgba(8, 120, 201, 0.18);
}

.btn-download:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 23px rgba(8, 120, 201, 0.25);
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.content {
    width: 100%;
    max-width: 1050px;

    margin: 0 auto;

    padding: 45px 20px 70px;
}


/* =========================================================
   CARD
========================================================= */

.card {
    background: #ffffff;

    margin-bottom: 25px;

    padding: 30px;

    border: 1px solid #e0ebe7;

    border-radius: 15px;

    box-shadow:
        0 5px 22px rgba(22, 76, 60, 0.055);
}

.card h2 {
    position: relative;

    margin-bottom: 17px;

    padding-left: 14px;

    color: #12372d;

    font-size: clamp(23px, 3vw, 30px);

    line-height: 1.35;
}

.card h2::before {
    content: "";

    position: absolute;

    left: 0;
    top: 5px;

    width: 4px;
    height: calc(100% - 10px);

    border-radius: 10px;

    background: linear-gradient(
        #07845f,
        #129bd7
    );
}

.card h3 {
    margin: 23px 0 9px;

    color: #17483b;

    font-size: 19px;
}

.card p {
    margin-bottom: 15px;

    color: #4c5f59;

    font-size: 15px;
}


/* =========================================================
   LIST
========================================================= */

.card ul,
.card ol {
    padding-left: 23px;

    margin: 15px 0;
}

.card li {
    margin-bottom: 9px;

    color: #4c5f59;

    font-size: 15px;
}

.card li::marker {
    color: #07845f;
    font-weight: 700;
}


/* =========================================================
   INFO BOX
========================================================= */

.info-box {
    margin: 20px 0;

    padding: 17px 19px;

    border-left: 4px solid #07845f;

    border-radius: 8px;

    background: #f0faf6;

    color: #36554b;

    font-size: 14px;
}


/* =========================================================
   TABLE
========================================================= */

.table-wrap {
    width: 100%;

    overflow-x: auto;

    border-radius: 10px;

    border: 1px solid #dfe9e5;
}

table {
    width: 100%;

    min-width: 600px;

    border-collapse: collapse;

    background: #ffffff;
}

th {
    padding: 14px;

    text-align: left;

    color: #ffffff;

    background: #07845f;

    font-size: 14px;
}

td {
    padding: 13px 14px;

    border-bottom: 1px solid #e5ece9;

    color: #465953;

    font-size: 14px;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) td {
    background: #f7fbf9;
}


/* =========================================================
   TAGS
========================================================= */

.tags {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}

.tag {
    display: inline-block;

    padding: 7px 13px;

    border-radius: 30px;

    color: #087453;

    background: #e9f8f2;

    border: 1px solid #c9eee0;

    font-size: 13px;
    font-weight: 600;

    transition: 0.25s ease;
}

.tag:hover {
    color: #ffffff;

    background: #07845f;

    border-color: #07845f;
}


/* =========================================================
   FAQ
========================================================= */

.faq-item {
    padding: 19px 0;

    border-bottom: 1px solid #e2ebe8;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    margin: 0 0 7px !important;

    color: #12372d !important;

    font-size: 17px !important;
}

.faq-answer {
    margin: 0 !important;

    color: #596963 !important;
}


/* =========================================================
   TOC
========================================================= */

.toc {
    list-style: none;

    padding: 0 !important;
}

.toc li {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 9px;

    padding: 9px 11px;

    border-radius: 8px;

    background: #f6faf8;
}

.toc li a {
    color: #087453;

    font-weight: 500;
}

.toc li a:hover {
    color: #0565ad;
}

.toc-number {
    width: 27px;
    height: 27px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    background: #07845f;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   SCREENSHOT SECTION
========================================================= */

.screenshot-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

    margin-top: 20px;
}

.screenshot-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e0ebe7;

    border-radius: 13px;

    box-shadow:
        0 5px 17px rgba(0, 70, 50, 0.08);
}

.screenshot-card img {
    width: 100%;

    aspect-ratio: 16 / 10;

    object-fit: cover;
}

.screenshot-card p {
    margin: 0;

    padding: 12px;

    text-align: center;

    font-size: 13px;
    font-weight: 600;

    color: #35564b;
}
/* =========================================================
   FOOTER
========================================================= */

.footer{
    width:100%;

    padding:
        30px 18px;

    text-align:center;

    background:
        linear-gradient(
            135deg,
            #04152f,
            #071f49,
            #0d3975
        );

    color:#bfcce0;

    border-top:
        3px solid #e3a300;

    font-size:13px;

    line-height:2;
}


.footer strong{
    color:#ffd45d;
}


.footer a{
    color:#e7b32a;

    font-weight:600;

    transition:
        color .2s ease;
}


.footer a:hover{
    color:#ffffff;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .header {
        height: 68px;
    }

    .header-inner {
        height: 68px;

        padding: 0 15px;
    }

    body::before {
        height: 68px;
    }

    .menu {
        top: 68px;

        height: calc(100vh - 68px);
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 21px;
    }

    .hero {
        padding: 50px 17px 55px;
    }

    .hero-logo {
        width: 120px;
        height: 120px;

        margin-bottom: 22px;
    }

    .hero h1 {
        font-size: 29px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;

        width: 100%;

        max-width: 380px;

        margin-left: auto;
        margin-right: auto;
    }

    .btn {
        width: 100%;
    }

    .content {
        padding: 30px 13px 50px;
    }

    .card {
        padding: 22px 18px;

        border-radius: 12px;

        margin-bottom: 18px;
    }

    .card h2 {
        font-size: 23px;
    }

    .card h3 {
        font-size: 18px;
    }

    .card p,
    .card li {
        font-size: 14px;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 30px 15px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .header-inner {
        padding: 0 12px;
    }

    .brand-logo {
        width: 37px;
        height: 37px;
    }

    .brand-name {
        font-size: 19px;
    }

    .menu-button {
        width: 42px;
        height: 42px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero-logo {
        width: 105px;
        height: 105px;
    }

    .card {
        padding: 20px 15px;
    }

}


/* =========================================================
   FIXED HEADER SAFETY
   Keeps header locked while page scrolls
========================================================= */

.header,
.header-inner {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.header {
    will-change: transform;
}


/* =========================================================
   REMOVE TAP HIGHLIGHT / BLUE TOUCH POINT
========================================================= */

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus,
a:focus {
    outline: none;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

button:focus-visible,
a:focus-visible {
    outline: 2px solid #07845f;

    outline-offset: 3px;
}


/* =========================================================
   SELECTION
========================================================= */

::selection {
    background: #07845f;
    color: #ffffff;
}


/* =========================================
   COMPACT RELATED PLATFORMS
========================================= */

.related-platforms {
    width: 100%;
    padding: 25px 15px;
    margin: 30px 0;
    box-sizing: border-box;
}

.related-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Heading */
.related-platforms h2 {
    margin: 0 0 18px;
    text-align: center;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
}

/* Grid */
.platform-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
}

/* Small Card */
.platform-card {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;

    height: 48px !important;
    min-height: 48px !important;

    padding: 6px 9px !important;
    box-sizing: border-box;

    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 7px;

    text-decoration: none !important;
    color: #222 !important;

    overflow: hidden;

    transition: 0.2s ease;
}

/* Hover */
.platform-card:hover {
    border-color: #d5d5d5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

/* Small Logo */
.platform-card img {
    width: 28px !important;
    height: 28px !important;

    min-width: 28px !important;
    min-height: 28px !important;

    padding: 2px !important;
    margin: 0 !important;

    object-fit: contain;
    display: block;

    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 6px;
}

/* Website Name */
.platform-card span {
    display: block;

    font-size: 12px !important;
    line-height: 1.2;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 850px) {

    .platform-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .related-platforms {
        padding: 20px 10px;
    }

    .related-platforms h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .platform-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .platform-card {
        height: 44px !important;
        min-height: 44px !important;
        padding: 5px 7px !important;
        gap: 7px !important;
    }

    .platform-card img {
        width: 25px !important;
        height: 25px !important;

        min-width: 25px !important;
        min-height: 25px !important;
    }

    .platform-card span {
        font-size: 11px !important;
    }

}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (max-width: 360px) {

    .platform-grid {
        grid-template-columns: 1fr !important;
    }

}

/* =========================
   REFER CODE SECTION
========================= */

.refer-section {
    text-align: center;
}

.refer-label {
    margin-bottom: 15px;
}

.refer-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    background: #f5f5f5;
    margin-bottom: 10px;
}

.refer-code-box {
    max-width: 520px;
    margin: 25px auto 5px;
    padding: 24px;
    border-radius: 16px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
}

.refer-code-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.refer-code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 18px;
    background: #ffffff;
    border: 1px dashed #cccccc;
    border-radius: 12px;
}

#referCode {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    word-break: break-word;
}

.copy-btn {
    border: none;
    padding: 11px 18px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    background: #222222;
    color: #ffffff;
    transition: 0.2s ease;
}

.copy-btn:hover {
    opacity: 0.85;
}

.copy-btn:active {
    transform: scale(0.96);
}

.refer-note {
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 600px) {

    .refer-code-box {
        padding: 18px;
    }

    .refer-code-row {
        flex-direction: column;
        align-items: stretch;
    }

    #referCode {
        text-align: center;
        font-size: 20px;
    }

    .copy-btn {
        width: 100%;
    }
}

/* =========================
   RYNPAY SNAPSHOT SECTION
========================= */

.snapshot-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:24px;
    margin-top:25px;
}

.snapshot-card{
    background:#ffffff;
    border:1px solid #e5e9f2;
    border-radius:18px;
    padding:15px;
    box-shadow:0 8px 25px rgba(0,0,0,0.06);
    transition:transform .25s ease,
               box-shadow .25s ease;
}

.snapshot-card:hover{
    transform:translateY(-5px);
    box-shadow:0 14px 32px rgba(0,0,0,0.10);
}

.snapshot-image{
    width:100%;
    aspect-ratio:16/10;
    overflow:hidden;
    border-radius:14px;
    background:#f3f5f8;
}

.snapshot-image img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    transition:transform .35s ease;
}

.snapshot-card:hover
.snapshot-image img{
    transform:scale(1.03);
}

.snapshot-card h3{
    margin:18px 5px 8px;
    font-size:20px;
    line-height:1.4;
}

.snapshot-card p{
    margin:0 5px 5px;
    font-size:15px;
    line-height:1.7;
}


/* =========================
   MOBILE
========================= */

@media(max-width:700px){

    .snapshot-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .snapshot-card{
        padding:12px;
    }

    .snapshot-card h3{
        font-size:18px;
    }

    .snapshot-card p{
        font-size:14px;
    }

}
