/* Cricap unified navbar (identical across www, developer, API) */
/* Shared header styles — linked by every page so the cnav header is byte-for-byte identical. */

.cnav { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; background: linear-gradient(135deg, #0f172a 0%, #14532d 100%); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; text-transform: none; letter-spacing: normal; }
.cnav-container { max-width: 1140px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.cnav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.cnav-brand img { border-radius: 8px; display: block; }
.cnav-brand span { color: #fff; font-weight: 700; font-size: 24px; }
.cnav-links { list-style: none; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.cnav-links a { color: rgba(255,255,255,0.9); text-decoration: none; padding: 8px 16px; border-radius: 6px; font-size: 16px; line-height: 1; transition: all .2s; display: inline-block; }
.cnav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.cnav-links a.cnav-cta { background: #fff; color: #14532d; font-weight: 700; box-shadow: 0 8px 22px rgba(0,0,0,.16); }
.cnav-links a.cnav-cta:hover { background: #f0fdf4; color: #052e16; transform: translateY(-1px); }
.cnav-toggle { display: none; background: transparent; border: none; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px; }
@media (max-width: 991px) {
    .cnav-toggle { display: block; }
    .cnav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; background: linear-gradient(135deg, #0f172a 0%, #14532d 100%); padding: 8px 16px 16px; border-top: 1px solid rgba(255,255,255,0.1); }
    .cnav-links.cnav-open { display: flex; }
    .cnav-links a { padding: 12px; }
}

/* Home hero */
header.masthead { min-height: 820px; height: auto; padding: 128px 0 110px; overflow: hidden; isolation: isolate; }
header.masthead::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url('../img/bg-pattern.png') repeat; opacity: .12; }
header.masthead::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 96px; z-index: -1; background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,.55) 54%, #0f172a 100%); clip-path: ellipse(78% 64% at 50% 100%); }
.hero-row { position: relative; z-index: 1; align-items: center; }
header.masthead .hero-content { max-width: 680px; margin: 0; text-align: left; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(15,23,42,.2); color: #fff; font: 700 12px/1.2 "Lato", sans-serif; letter-spacing: 1.4px; text-transform: uppercase; }
.hero-eyebrow i { color: #fbbf24; font-size: 8px; filter: drop-shadow(0 0 5px rgba(251,191,36,.85)); }
header.masthead .hero-content h1 { margin: 0; color: #fff; font-size: clamp(40px, 4.1vw, 62px); font-weight: 800; line-height: 1.06; letter-spacing: -.8px; text-shadow: 0 3px 16px rgba(0,0,0,.25); }
header.masthead .hero-content h1 span { color: #ffc247; }
header.masthead .hero-content .lead { max-width: 620px; margin: 24px 0 0; color: #fff; font-size: 19px; line-height: 1.65; text-shadow: 0 2px 9px rgba(0,0,0,.34); }
.hero-download { margin-top: 28px; }
.hero-primary-cta { display: inline-flex; align-items: center; gap: 10px; background: #ff9f1c; border: 2px solid #ff9f1c; color: #172033; font-weight: 900; box-shadow: 0 14px 30px rgba(75,35,0,.28); }
.hero-primary-cta:hover, .hero-primary-cta:focus { background: #ffb340; border-color: #ffb340; color: #0f172a; transform: translateY(-2px); box-shadow: 0 18px 36px rgba(75,35,0,.32); }
.hero-download-options { display: flex; align-items: center; gap: 22px; margin-top: 22px; }
.hero-store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-store-badges a { display: inline-flex; transition: transform .2s ease, filter .2s ease; }
.hero-store-badges a:hover { transform: translateY(-2px); filter: brightness(1.06); }
.hero-store-badges img { display: block; height: 48px; width: auto; }
.hero-qr { display: flex; align-items: center; gap: 9px; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.28); }
.hero-qr img { padding: 5px; border-radius: 9px; background: #fff; }
.hero-qr span { color: #fff; font-size: 11px; font-weight: 800; line-height: 1.25; letter-spacing: .8px; text-transform: uppercase; }
.hero-device { max-width: 318px; filter: drop-shadow(0 34px 32px rgba(2,8,23,.32)) drop-shadow(0 12px 12px rgba(4,20,40,.22)); transform: rotate(2deg); }
.app-preview-gallery { width: 100%; }
.modern-phone-frame { position: relative; width: 100%; aspect-ratio: 588 / 1280; overflow: hidden; border: 8px solid #111827; border-radius: 43px; background: #050505; box-shadow: inset 0 0 0 2px rgba(255,255,255,.12), 0 0 0 1px rgba(15,23,42,.55); }
.modern-phone-frame::before { content: ""; position: absolute; top: 10px; left: 50%; z-index: 3; width: 30%; height: 21px; border-radius: 0 0 13px 13px; background: #111827; transform: translateX(-50%); pointer-events: none; }
.app-preview-track, .app-preview-slide { position: absolute; inset: 0; }
.app-preview-slide { margin: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s ease; }
.app-preview-slide.is-active { opacity: 1; visibility: visible; }
.app-preview-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.app-preview-controls { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: rgba(15,23,42,.42); backdrop-filter: blur(8px); }
.app-preview-arrow { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.app-preview-arrow:hover, .app-preview-arrow:focus { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.2); color: #fff; transform: translateY(-1px); }
.app-preview-info { min-width: 0; text-align: center; }
.app-preview-label { display: block; overflow: hidden; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .3px; text-overflow: ellipsis; white-space: nowrap; }
.app-preview-dots { display: flex; justify-content: center; gap: 5px; margin-top: 7px; }
.app-preview-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.34); cursor: pointer; transition: width .2s ease, background .2s ease; }
.app-preview-dots button.is-active { width: 18px; border-radius: 999px; background: #fbbf24; }

@media (prefers-reduced-motion: reduce) {
    .app-preview-slide, .app-preview-arrow, .app-preview-dots button { transition: none; }
}

/* Download transition and feature cards */
section.download { position: relative; padding-top: 110px; color: #fff; }
section.download p { color: #d1fae5; }
section.download .badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
section.download .badges .badge-link { margin: 0; transition: transform .2s ease; }
section.download .badges .badge-link:hover { transform: translateY(-3px); }
section.features { padding: 96px 0; background: #fff; }
section.features .section-heading { margin-bottom: 56px; }
.feature-grid { row-gap: 24px; }
section.features .feature-grid > div { display: flex; }
section.features .feature-item { width: 100%; max-width: none; min-height: 100%; margin: 0; padding: 34px 26px; border: 1px solid rgba(148,163,184,.16); border-radius: 20px; background: linear-gradient(145deg, #111c31 0%, #0f172a 100%); text-align: left; box-shadow: 0 18px 38px rgba(15,23,42,.12); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
section.features .feature-item:hover { transform: translateY(-6px); border-color: rgba(74,222,128,.45); box-shadow: 0 24px 48px rgba(15,23,42,.18); }
section.features .feature-item i { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 0 24px; border: 1px solid rgba(74,222,128,.16); border-radius: 18px; background: rgba(34,197,94,.12); color: #4ade80; font-size: 28px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); -webkit-text-fill-color: #4ade80; }
section.features .feature-item h3 { margin-bottom: 14px; color: #fff; font-size: 23px; font-weight: 700; line-height: 1.2; }
section.features .feature-item p.text-muted { margin: 0; color: #94a3b8 !important; font-size: 16px; line-height: 1.65; }

/* FAQ accordion */
.faq-section { padding: 96px 0; background: #f0f7f4; }
.faq-heading { margin-bottom: 48px; }
.faq-heading h2 { margin-top: 0; color: #0f172a; font-weight: 800; }
.faq-heading p { margin-bottom: 0; }
.faq-accordion { max-width: 900px; margin: 0 auto; border-top: 1px solid #cbded5; }
.faq-item { margin: 0; border-bottom: 1px solid #cbded5; background: transparent; }
.faq-item summary { position: relative; padding: 25px 58px 25px 4px; color: #0f172a; font-family: "Catamaran", "Helvetica", "Arial", sans-serif; font-size: 21px; font-weight: 700; line-height: 1.3; cursor: pointer; list-style: none; transition: color .2s ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; top: 50%; right: 8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(22,163,74,.1); color: #15803d; font: 400 27px/1 Arial, sans-serif; transform: translateY(-50%); transition: transform .2s ease, background .2s ease; }
.faq-item summary:hover { color: #15803d; }
.faq-item summary:focus-visible { outline: 3px solid rgba(22,163,74,.32); outline-offset: 4px; border-radius: 4px; }
.faq-item[open] summary::after { content: "−"; background: #15803d; color: #fff; transform: translateY(-50%) rotate(180deg); }
.faq-item p { max-width: 810px; margin: -5px 58px 25px 4px; color: #475569; font-size: 17px; line-height: 1.7; }
.faq-item p a { color: #15803d; font-weight: 700; }

/* Unified developer block */
.developer-section { position: relative; overflow: hidden; padding: 96px 0; background: #0a192f; color: #fff; }
.developer-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(34,197,94,.18), transparent 48%), url('../img/bg-pattern.png') repeat; opacity: .22; }
.developer-section .container { position: relative; z-index: 1; }
.developer-eyebrow { display: inline-block; margin-bottom: 18px; color: #86efac; font: 800 12px/1.2 "Lato", sans-serif; letter-spacing: 1.8px; text-transform: uppercase; }
.developer-content h2 { margin: 0; color: #fff; font-family: "Muli", "Lato", sans-serif; font-size: clamp(42px, 4vw, 60px); font-weight: 900; line-height: 1.08; letter-spacing: -2px; }
.developer-content h2 span { display: inline-block; background: linear-gradient(90deg, #86efac 0%, #fbbf24 100%); background-clip: text; -webkit-background-clip: text; color: #86efac; -webkit-text-fill-color: transparent; }
.developer-content .lead { max-width: 760px; margin: 22px auto 0; color: #cbd5e1; font-size: 20px; line-height: 1.65; }
.developer-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.developer-actions .btn { min-width: 190px; padding: 14px 26px; border-radius: 999px; font-weight: 800; letter-spacing: 1px; }
.developer-primary { border: 2px solid #22c55e; background: #22c55e; color: #07111f; box-shadow: 0 12px 28px rgba(34,197,94,.22); }
.developer-primary:hover, .developer-primary:focus { border-color: #4ade80; background: #4ade80; color: #07111f; transform: translateY(-2px); }
.developer-secondary { border: 2px solid rgba(255,255,255,.78); background: transparent; color: #fff; }
.developer-secondary:hover, .developer-secondary:focus { border-color: #fff; background: #fff; color: #0a192f; transform: translateY(-2px); }

/* Buffer-powered social feed */
.social-feed-section { padding: 96px 0; background: #fff; scroll-margin-top: 72px; }
.social-feed-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 42px; }
.social-feed-header > div:first-child { max-width: 720px; }
.social-feed-eyebrow { display: inline-block; margin-bottom: 14px; color: #15803d; font: 800 12px/1.2 "Lato", sans-serif; letter-spacing: 1.8px; text-transform: uppercase; }
.social-feed-header h2 { margin: 0; color: #0f172a; font-size: clamp(42px, 4vw, 58px); font-weight: 800; line-height: 1.1; }
.social-feed-header p { margin: 18px 0 0; color: #475569; font-size: 18px; line-height: 1.7; }
.social-feed-filters { display: flex; gap: 8px; padding: 6px; border: 1px solid #e2e8f0; border-radius: 999px; background: #f8fafc; }
.social-feed-filters button { min-width: 58px; padding: 9px 15px; border: 0; border-radius: 999px; background: transparent; color: #475569; font: 700 13px/1 "Lato", sans-serif; cursor: pointer; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.social-feed-filters button:hover, .social-feed-filters button:focus { color: #166534; outline: none; }
.social-feed-filters button.is-active { background: #166534; color: #fff; box-shadow: 0 6px 16px rgba(22,101,52,.22); }
.social-feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; min-height: 180px; }
.social-post-card { display: flex; min-width: 0; overflow: hidden; flex-direction: column; border: 1px solid #e2e8f0; border-radius: 22px; background: #fff; box-shadow: 0 16px 38px rgba(15,23,42,.08); transition: transform .22s ease, box-shadow .22s ease; }
.social-post-card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(15,23,42,.13); }
.social-post-media { display: block; overflow: hidden; aspect-ratio: 1.35 / 1; background: #e2e8f0; }
.social-post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.social-post-card:hover .social-post-media img { transform: scale(1.025); }
.social-post-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.social-post-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.social-post-platform { display: inline-flex; align-items: center; gap: 7px; color: #0f172a; font: 800 13px/1 "Lato", sans-serif; text-decoration: none; }
.social-post-platform::before { content: "X"; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: #0f172a; color: #fff; font-size: 11px; }
.is-instagram .social-post-platform::before { content: "\f16d"; background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); font-family: FontAwesome; font-size: 13px; }
.social-post-meta time { color: #94a3b8; font-size: 12px; white-space: nowrap; }
.social-post-text { display: -webkit-box; overflow: hidden; margin: 0 0 20px; color: #334155; font-size: 15px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.social-post-link { width: fit-content; margin-top: auto; color: #15803d; font-weight: 800; font-size: 13px; text-decoration: none; }
.social-post-link::after { content: " \2197"; }
.social-post-link:hover, .social-post-link:focus { color: #14532d; text-decoration: underline; }
.social-feed-status { grid-column: 1 / -1; display: grid; place-items: center; align-content: center; min-height: 180px; padding: 32px; border: 1px dashed #cbd5e1; border-radius: 22px; background: #f8fafc; color: #64748b; text-align: center; }
.social-feed-status p { max-width: 620px; margin: 0; line-height: 1.7; }
.social-feed-loader { width: 30px; height: 30px; margin-bottom: 14px; border: 3px solid #bbf7d0; border-top-color: #15803d; border-radius: 50%; animation: social-feed-spin .8s linear infinite; }
.social-feed-noscript { margin-top: 20px; color: #64748b; text-align: center; }
@keyframes social-feed-spin { to { transform: rotate(360deg); } }

/* Official social community hub */
.community-section { position: relative; padding: 96px 0; overflow: hidden; background: #f8fafc; }
.community-section::before { content: ""; position: absolute; top: -240px; left: 50%; width: 720px; height: 420px; border-radius: 50%; background: rgba(34,197,94,.09); filter: blur(12px); transform: translateX(-50%); }
.community-section .container { position: relative; z-index: 1; }
.community-heading { max-width: 760px; margin: 0 auto 48px; }
.community-eyebrow { display: inline-block; margin-bottom: 14px; color: #15803d; font: 800 12px/1.2 "Lato", sans-serif; letter-spacing: 1.8px; text-transform: uppercase; }
.community-heading h2 { margin: 0; color: #0f172a; font-size: clamp(42px, 4vw, 58px); font-weight: 800; line-height: 1.1; }
.community-heading p { margin: 20px auto 0; color: #475569; font-size: 18px; line-height: 1.7; }
.social-community-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.social-community-card { display: grid; grid-template-columns: 50px minmax(0, 1fr) 20px; align-items: center; gap: 14px; min-height: 104px; padding: 20px; border: 1px solid #e2e8f0; border-radius: 18px; background: rgba(255,255,255,.92); color: #0f172a; box-shadow: 0 14px 30px rgba(15,23,42,.07); text-decoration: none; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.social-community-card:hover, .social-community-card:focus { color: #0f172a; text-decoration: none; transform: translateY(-5px); border-color: rgba(22,163,74,.35); box-shadow: 0 20px 40px rgba(15,23,42,.12); }
.social-community-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: #ecfdf5; color: #15803d; font-size: 22px; }
.social-community-copy { min-width: 0; }
.social-community-copy strong, .social-community-copy small { display: block; }
.social-community-copy strong { color: #0f172a; font-size: 17px; line-height: 1.25; }
.social-community-copy small { overflow: hidden; margin-top: 5px; color: #64748b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.social-community-card > .fa-arrow-up { color: #94a3b8; font-size: 13px; transform: rotate(45deg); transition: color .2s ease, transform .2s ease; }
.social-community-card:hover > .fa-arrow-up { color: #15803d; transform: rotate(45deg) translateY(-2px); }
.social-community-card.instagram .social-community-icon { background: #fff1f2; color: #db2777; }
.social-community-card.facebook .social-community-icon { background: #eff6ff; color: #2563eb; }
.social-community-card.telegram .social-community-icon { background: #f0f9ff; color: #0284c7; }
.social-community-card.discord .social-community-icon { background: #eef2ff; color: #5865f2; }
.social-community-card.x-social .social-community-icon { background: #0f172a; color: #fff; }
.social-x-mark { font-family: Arial, sans-serif; font-size: 19px; font-weight: 800; }

@media (max-width: 991px) {
    .social-feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .social-feed-header { align-items: flex-start; flex-direction: column; }
    .social-community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1199px) {
    .hero-qr { display: none; }
    .hero-device { max-width: 290px; }
}

@media (max-width: 991px) {
    header.masthead { min-height: auto; padding: 120px 0 130px; }
    header.masthead .hero-content { max-width: 760px; margin: 0 auto 55px; text-align: center; }
    header.masthead .hero-content .lead { margin-left: auto; margin-right: auto; }
    .hero-download-options, .hero-store-badges { justify-content: center; }
    .hero-device { max-width: 300px; margin: 0 auto; transform: none; }
    .cnav-links a.cnav-cta { box-shadow: none; }
}

@media (max-width: 575px) {
    header.masthead { padding-top: 108px; }
    header.masthead .hero-content h1 { font-size: 38px; }
    header.masthead .hero-content .lead { font-size: 17px; }
    .hero-primary-cta { width: 100%; justify-content: center; padding-left: 20px; padding-right: 20px; }
    .hero-store-badges { flex-direction: column; align-items: center; }
    .hero-store-badges img { height: 50px; }
    .hero-device { max-width: 270px; }
    section.download h2, section.download .h2 { font-size: 42px !important; }
    section.features, .faq-section, .developer-section, .social-feed-section, .community-section { padding-top: 76px; padding-bottom: 76px; }
    .faq-heading { margin-bottom: 34px; }
    .faq-item summary { padding-top: 21px; padding-bottom: 21px; font-size: 19px; }
    .faq-item p { margin-right: 4px; }
    .developer-actions { align-items: stretch; flex-direction: column; }
    .developer-actions .btn { width: 100%; }
    .community-heading { margin-bottom: 34px; }
    .social-feed-grid { grid-template-columns: 1fr; }
    .social-feed-filters { width: 100%; }
    .social-feed-filters button { flex: 1; }
    .social-community-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .social-feed-loader { animation: none; }
    .social-post-card, .social-post-media img { transition: none; }
}
