/* Aperox — Pin Analytics Pro website */
:root {
    --red: #e60023;
    --red-dark: #c30019;
    --red-soft: #fff0f2;
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --ink: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    --border: #e6e9ef;
    --success: #16a34a;
    --font-head: "Sora", -apple-system, sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.65;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px) saturate(1.4);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}

.logo {
    font-family: var(--font-head);
    font-size: 21px; font-weight: 800; color: var(--ink);
    text-decoration: none; display: flex; align-items: center; gap: 8px;
}

.logo span { color: var(--red); }

.nav-links { display: flex; align-items: center; gap: 30px; }

/* Plain nav links only — .btn links keep their own colors
   (without :not(.btn), this rule would override the red
   "Add to Chrome" button's white text with gray) */
.nav-links a:not(.btn) {
    color: var(--gray); text-decoration: none; font-size: 15px; font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; padding: 12px 24px; border-radius: 10px;
    font-size: 15px; font-weight: 700; text-decoration: none;
    transition: all 0.22s cubic-bezier(0.2, 0.8, 0.4, 1); cursor: pointer; border: none;
    font-family: var(--font-body);
}

.btn-red {
    background: linear-gradient(135deg, var(--red) 0%, #ff2d4d 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(230, 0, 35, 0.32);
}
.btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(230, 0, 35, 0.42);
}

.btn-amber {
    background: linear-gradient(135deg, var(--amber), var(--amber-dark));
    color: #fff; box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}
.btn-amber:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(245, 158, 11, 0.48); }

.btn-outline {
    background: #fff; color: var(--ink);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

.btn-lg { padding: 16px 34px; font-size: 17px; border-radius: 12px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 92px 0 72px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(900px 480px at 15% -10%, rgba(230, 0, 35, 0.07), transparent 60%),
        radial-gradient(900px 480px at 85% -10%, rgba(245, 158, 11, 0.08), transparent 60%),
        linear-gradient(180deg, #fff 0%, #fdf9f9 100%);
}

.eyebrow {
    display: inline-block;
    font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
    color: var(--red);
    background: var(--red-soft);
    border: 1px solid #ffd6dd;
    padding: 6px 14px; border-radius: 999px;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(34px, 5.4vw, 58px);
    line-height: 1.12; font-weight: 800; letter-spacing: -0.025em;
    max-width: 840px; margin: 0 auto 22px;
}

.hero h1 em {
    color: var(--red); font-style: normal;
    background: linear-gradient(120deg, var(--red), #ff4d67);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.sub {
    font-size: 19px; color: var(--gray); max-width: 660px; margin: 0 auto 34px;
}

.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }

.hero-note { font-size: 13.5px; color: var(--gray); }
.hero-note b { color: var(--success); }

/* Floating stat chips (decorative) */
.chip {
    position: absolute;
    display: flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 8px 14px; border-radius: 999px;
    font-size: 13.5px; font-weight: 700;
    animation: float 7s ease-in-out infinite;
    user-select: none; pointer-events: none;
}

.chip small { color: var(--gray); font-weight: 500; }

.chip-1 { top: 130px; left: 6%; animation-delay: 0s; }
.chip-2 { top: 300px; left: 11%; animation-delay: 1.6s; }
.chip-3 { top: 150px; right: 7%; animation-delay: 0.9s; }
.chip-4 { top: 320px; right: 12%; animation-delay: 2.4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@media (max-width: 1000px) { .chip { display: none; } }

/* ---------- Browser mockup (CSS dashboard preview) ---------- */
.mock-browser {
    margin: 56px auto 0; max-width: 920px;
    border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    background: #fff;
    text-align: left;
}

.mock-bar {
    display: flex; align-items: center; gap: 8px;
    background: #f1f3f7; padding: 11px 16px;
    border-bottom: 1px solid var(--border);
}

.mock-dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-dot.r { background: #ff5f57; } .mock-dot.y { background: #febc2e; } .mock-dot.g { background: #28c840; }

.mock-url {
    flex: 1; max-width: 340px; margin-left: 12px;
    background: #fff; border: 1px solid var(--border); border-radius: 7px;
    font-size: 12px; color: var(--gray); padding: 5px 12px;
}

.mock-body { padding: 22px; }

.mock-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }

.mock-card {
    border: 1px solid var(--border); border-radius: 10px; padding: 13px 15px;
    background: linear-gradient(180deg, #fff, #fafbfd);
}

.mock-card .k { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; }
.mock-card .v { font-family: var(--font-head); font-size: 21px; font-weight: 800; color: var(--red); }

.mock-row {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 6px; border-bottom: 1px solid #f1f3f7; font-size: 13px;
}

.mock-thumb { width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0; }
.mock-row .t { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row .m { color: var(--gray); font-variant-numeric: tabular-nums; }
.mock-row .bar { height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--red), #ff6b81); }

@media (max-width: 700px) {
    .mock-cards { grid-template-columns: repeat(2, 1fr); }
    .mock-row .hide-sm { display: none; }
}

/* real screenshot variant (when available) */
.hero-shot img { width: 100%; display: block; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--light); }

.section-eyebrow {
    display: block; text-align: center;
    font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
    color: var(--red); margin-bottom: 10px;
}

.section-title {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 800; text-align: center; margin-bottom: 12px; letter-spacing: -0.015em;
}
.section-sub { text-align: center; color: var(--gray); font-size: 17px; max-width: 640px; margin: 0 auto 52px; }

/* Features grid */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px;
}

.feature-card {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    padding: 28px; transition: all 0.25s cubic-bezier(0.2, 0.8, 0.4, 1);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #ffd0d8;
}

.feature-card .icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 25px; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--red-soft), #fff);
    border: 1px solid #ffe1e6;
}

.feature-card h3 { font-size: 17.5px; margin-bottom: 8px; font-weight: 700; }
.feature-card p { color: var(--gray); font-size: 15px; }

.badge-pro {
    display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.6px;
    background: linear-gradient(135deg, var(--amber), var(--amber-dark));
    color: #fff; padding: 3px 8px; border-radius: 5px; vertical-align: 2px; margin-left: 7px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }

.step {
    text-align: center; padding: 30px 22px;
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
}

.step .num {
    width: 48px; height: 48px; border-radius: 14px;
    background: linear-gradient(135deg, var(--red), #ff2d4d);
    color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 20px;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
    box-shadow: 0 6px 16px rgba(230, 0, 35, 0.3);
}

.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--gray); font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px; max-width: 1000px; margin: 0 auto; align-items: stretch;
}

.price-card {
    background: #fff; border: 1.5px solid var(--border); border-radius: 20px;
    padding: 34px 28px; text-align: center; position: relative;
    display: flex; flex-direction: column;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.4, 1);
}

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

.price-card.featured {
    border: 2px solid var(--amber);
    box-shadow: 0 20px 52px rgba(245, 158, 11, 0.22);
    background: linear-gradient(180deg, #fffdf7 0%, #fff 40%);
}

.price-card .flag {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--amber), var(--amber-dark));
    color: #fff; font-size: 12px; font-weight: 800; padding: 5px 16px; border-radius: 999px;
    white-space: nowrap; letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.price-card h3 { font-size: 18px; margin-bottom: 8px; }
.price-card .amount {
    font-family: var(--font-head);
    font-size: 46px; font-weight: 800; letter-spacing: -0.03em;
}
.price-card .amount small { font-size: 15px; color: var(--gray); font-weight: 500; letter-spacing: 0; }
.price-card .per { color: var(--gray); font-size: 14px; margin-bottom: 22px; }

.price-card ul { list-style: none; text-align: left; margin-bottom: 26px; flex: 1; }
.price-card ul li { padding: 7px 0; font-size: 14.5px; color: var(--ink); }
.price-card ul li::before { content: "✓  "; color: var(--success); font-weight: 800; }
.price-card ul li.na { color: #c2c9d4; }
.price-card ul li.na::before { content: "✕  "; color: #dde2e9; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
    border: 1px solid var(--border); border-radius: 12px;
    padding: 18px 22px; margin-bottom: 12px; background: #fff;
    transition: box-shadow 0.2s;
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: #ffd0d8; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 16px; font-family: var(--font-head); }
.faq summary::marker { color: var(--red); }
.faq details p { margin-top: 12px; color: var(--gray); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative;
    background:
        radial-gradient(700px 320px at 20% 0%, rgba(255, 255, 255, 0.14), transparent 55%),
        linear-gradient(135deg, var(--red) 0%, #8f0016 100%);
    color: #fff; text-align: center; padding: 76px 24px;
    overflow: hidden;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 12px; letter-spacing: -0.01em; }
.cta-band p { opacity: 0.88; margin-bottom: 28px; font-size: 17px; }

/* ---------- Article / legal ---------- */
.article {
    max-width: 740px; margin: 0 auto; padding: 60px 24px 88px;
}
.article h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.2; margin-bottom: 12px; letter-spacing: -0.015em; }
.article .meta { color: var(--gray); font-size: 14px; margin-bottom: 36px; }
.article .meta a { color: var(--red); text-decoration: none; }
.article h2 { font-size: 25px; margin: 44px 0 14px; letter-spacing: -0.01em; }
.article h3 { font-size: 19px; margin: 30px 0 10px; }
.article p, .article li { font-size: 16.5px; color: #334155; margin-bottom: 14px; }
.article ul, .article ol { padding-left: 24px; margin-bottom: 16px; }
.article img { max-width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.article a:not(.btn) { color: var(--red); }
.article code {
    background: var(--light); border: 1px solid var(--border);
    border-radius: 5px; padding: 1px 7px; font-size: 14px;
}
.article blockquote {
    border-left: 4px solid var(--amber); padding: 12px 20px; background: #fffbeb;
    border-radius: 0 10px 10px 0; margin: 20px 0; color: #78350f;
}
.article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.article th, .article td { border: 1px solid var(--border); padding: 11px 13px; text-align: left; }
.article th { background: var(--light); font-family: var(--font-head); font-size: 13.5px; }

.cta-box {
    background: linear-gradient(180deg, #fffdf7, #fff);
    border: 1.5px solid #fde5b8; border-radius: 16px;
    padding: 30px; text-align: center; margin: 40px 0;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.1);
}
.cta-box h3 { margin-bottom: 8px; }
.cta-box p { margin-bottom: 18px; }

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.blog-card {
    border: 1px solid var(--border); border-radius: 16px; padding: 28px;
    text-decoration: none; color: var(--ink); background: #fff;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.4, 1); display: block;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #ffd0d8; }
.blog-card .tag {
    display: inline-block;
    font-size: 11px; font-weight: 800; color: var(--red);
    background: var(--red-soft); border-radius: 999px; padding: 3px 11px;
    text-transform: uppercase; letter-spacing: 0.6px;
}
.blog-card h3 { font-size: 18.5px; margin: 12px 0 8px; line-height: 1.35; }
.blog-card p { color: var(--gray); font-size: 14.5px; }

/* ---------- Footer ---------- */
.footer {
    background: #0b0e14; color: #94a3b8; padding: 56px 0 32px;
    font-size: 14.5px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 38px; }
.footer h4 {
    color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px;
    margin-bottom: 15px;
}
.footer a { color: #94a3b8; text-decoration: none; display: block; padding: 3.5px 0; transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; font-family: var(--font-head); font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.footer .copy { border-top: 1px solid #1a2030; padding-top: 24px; text-align: center; font-size: 13px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.4, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .chip { animation: none; }
}

@media (max-width: 760px) {
    .nav-links a:not(.btn) { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero { padding: 56px 0 44px; }
    .section { padding: 56px 0; }
}
