/* ===========================
   HERLY — Clean Website CSS
   =========================== */

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

:root {
    --pink: #E8477C;
    --pink-dark: #D63B6E;
    --pink-light: #F4729B;
    --pink-bg: #FFF5F8;
    --purple: #7C3AED;
    --dark: #1a1a2e;
    --body: #4a4a68;
    --muted: #8888a0;
    --white: #ffffff;
    --bg: #FAFAFE;
    --border: #f0eef5;
    --shadow: 0 8px 40px rgba(232,71,124,0.1);
    --r: 16px;
    --rf: 9999px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--body);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.grad {
    background: linear-gradient(135deg, var(--pink), var(--pink-light), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tags */
.tag {
    display: inline-block;
    background: var(--pink-bg);
    color: var(--pink);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: var(--rf);
    margin-bottom: 14px;
}

/* Section headers */
.sec-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 56px;
}

.sec-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    color: var(--dark);
    line-height: 1.2;
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all 0.3s;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 16px rgba(0,0,0,0.06);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--dark);
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--body);
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--pink); }

.nav-cta {
    background: var(--pink) !important;
    color: var(--white) !important;
    padding: 9px 22px;
    border-radius: var(--rf);
    transition: all 0.2s !important;
}

.nav-cta:hover {
    background: var(--pink-dark) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(160deg, var(--white) 0%, var(--pink-bg) 60%, #f5eeff 100%);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    pointer-events: none;
}

.g1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--pink-light), transparent);
    top: -150px; right: -80px;
    animation: pulse 12s ease-in-out infinite;
}

.g2 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, var(--purple), transparent);
    bottom: -80px; left: -60px;
    animation: pulse 16s ease-in-out infinite 4s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    background: rgba(232,71,124,0.09);
    border: 1px solid rgba(232,71,124,0.18);
    color: var(--pink);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: var(--rf);
    margin-bottom: 22px;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 420px;
    margin-bottom: 32px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    margin-bottom: 36px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: var(--pink);
    color: var(--white);
    border-radius: var(--rf);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 18px rgba(232,71,124,0.28);
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--pink-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(232,71,124,0.38);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border: 2px solid var(--border);
    color: var(--dark);
    border-radius: var(--rf);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: var(--pink);
    color: var(--pink);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat strong { display: block; font-size: 1.4rem; color: var(--dark); font-weight: 700; }
.stat span { font-size: 0.8rem; color: var(--muted); }

.vline { width: 1px; height: 36px; background: var(--border); }

/* Phone Mockup */
.hero-phone {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-wrap { position: relative; z-index: 2; }

.phone-frame {
    background: #1a1a2e;
    border-radius: 38px;
    padding: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.18), inset 0 0 0 1.5px rgba(255,255,255,0.08);
    width: 270px;
}

.phone-frame.small { width: 252px; }

.phone-screen {
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 9/19;
}

/* App UI inside phone */
.app-ui {
    padding: 18px 14px;
    background: linear-gradient(180deg, var(--pink-bg) 0%, var(--white) 35%);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.app-top { display: flex; flex-direction: column; }
.app-greet { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.app-sub { font-size: 0.7rem; color: var(--muted); }

.ring-wrap {
    display: flex;
    justify-content: center;
    position: relative;
}

.ring-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.phase { display: block; font-size: 0.8rem; font-weight: 700; color: var(--pink); }
.day-label { display: block; font-size: 0.65rem; color: var(--dark); font-weight: 600; }

.quick-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.q-item { text-align: center; }

.qi {
    width: 36px; height: 36px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 4px;
    font-size: 1rem;
}

.qi.pink { background: #ffe8f0; }
.qi.blue { background: #e6f3ff; }
.qi.purple { background: #f0e6ff; }
.qi.green { background: #e6ffef; }

.q-item span { font-size: 0.58rem; color: var(--muted); }

.app-tip {
    display: flex;
    gap: 8px;
    background: var(--pink-bg);
    border-radius: 12px;
    padding: 9px 11px;
    align-items: flex-start;
}

.tip-icon { font-size: 1rem; flex-shrink: 0; }
.app-tip strong { display: block; font-size: 0.65rem; color: var(--dark); }
.app-tip p { font-size: 0.6rem; color: var(--muted); line-height: 1.4; margin: 0; }

/* Floating cards */
.float-card {
    position: absolute;
    background: var(--white);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    z-index: 3;
}

.float-card span { font-size: 1.4rem; }
.float-card strong { display: block; font-size: 0.78rem; color: var(--dark); }
.float-card small { font-size: 0.65rem; color: var(--muted); }

.fc1 { top: 14%; left: -40px; animation: floatY 6s ease-in-out infinite; }
.fc2 { bottom: 22%; right: -28px; animation: floatY 6s ease-in-out infinite 3s; }

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

/* ---- FEATURES ---- */
.features {
    padding: 100px 0;
    background: var(--bg);
}

.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feat-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px 26px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(232,71,124,0.18);
}

.feat-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.feat-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.feat-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ---- SPLIT SECTIONS ---- */
.split-section {
    padding: 100px 0;
    background: var(--white);
}

.split-section.alt { background: var(--bg); }

.split-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-wrap.reverse { direction: rtl; }
.split-wrap.reverse > * { direction: ltr; }

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

.split-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.7rem, 2.8vw, 2.2rem);
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 14px;
}

.split-text p {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 22px;
    line-height: 1.7;
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--body);
}

.checklist li::before {
    content: '✓';
    width: 20px; height: 20px;
    background: var(--pink-bg);
    color: var(--pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Calendar UI */
.cal-ui {
    padding: 16px 12px;
    height: 100%;
    background: linear-gradient(180deg, var(--pink-bg), var(--white) 30%);
}

.cal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark);
}

.cal-badge {
    font-size: 0.5rem;
    background: rgba(124,58,237,0.1);
    color: var(--purple);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
    margin-bottom: 12px;
}

.cl { font-size: 0.5rem; font-weight: 600; color: var(--muted); padding: 3px; }

.cd {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 0.55rem;
    color: var(--body);
}

.cd.p { background: rgba(232,71,124,0.14); color: var(--pink); font-weight: 600; }
.cd.f { background: rgba(124,58,237,0.1); color: var(--purple); }
.cd.o { background: var(--purple); color: white; font-weight: 700; }
.cd.pp { background: transparent; border: 1.5px dashed var(--pink); color: var(--pink); }

.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.cal-legend span {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.52rem;
    color: var(--muted);
}

.dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
}

.dot.p { background: var(--pink); }
.dot.f { background: rgba(124,58,237,0.5); }
.dot.o { background: var(--purple); }
.dot.pp { border: 1.5px dashed var(--pink); background: transparent; }

/* Wellness UI */
.well-ui {
    padding: 16px 14px;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.well-head {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.well-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    background: var(--bg);
    border-radius: 12px;
}

.wi-icon { font-size: 1.2rem; }

.wi-body strong { display: block; font-size: 0.72rem; color: var(--dark); margin-bottom: 2px; }
.wi-body small { font-size: 0.6rem; color: var(--muted); }

.mini-bar {
    height: 4px;
    background: #e0f0ff;
    border-radius: 2px;
    overflow: hidden;
    margin: 4px 0;
}

.mini-fill {
    height: 100%;
    background: linear-gradient(90deg, #0EA5E9, #38BDF8);
    border-radius: 2px;
}

.kegel-row {
    display: flex;
    gap: 3px;
    margin-top: 5px;
}

.kd {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--border);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
}

.kd.done { background: var(--pink); color: white; }
.kd.now { background: var(--pink-dark); color: white; font-weight: 700; box-shadow: 0 0 0 2px rgba(232,71,124,0.25); }

/* ---- PRIVACY ---- */
.privacy-section {
    padding: 100px 0;
    background: var(--white);
}

.privacy-card {
    background: linear-gradient(135deg, #1a1a2e, #2d1b3e);
    border-radius: 28px;
    padding: 70px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.privacy-card::before {
    content: '';
    position: absolute;
    top: -80px; left: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(232,71,124,0.12), transparent 70%);
    pointer-events: none;
}

.priv-icon { font-size: 2.8rem; margin-bottom: 20px; }

.privacy-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: white;
    margin-bottom: 14px;
}

.privacy-card p {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 40px;
}

.priv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}

.priv-item {
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 16px 18px;
}

.priv-item strong {
    display: block;
    font-size: 0.88rem;
    color: white;
    margin-bottom: 4px;
}

.priv-item span {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.5);
}

/* ---- DOWNLOAD ---- */
.download {
    padding: 100px 0;
    background: linear-gradient(160deg, var(--pink-bg), #f5eeff);
    text-align: center;
}

.dl-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    color: var(--dark);
    margin-bottom: 12px;
}

.dl-content p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.dl-btns {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--dark);
    color: white;
    padding: 13px 26px;
    border-radius: 14px;
    transition: all 0.3s;
}

.store-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.store-btn span { display: block; font-size: 0.68rem; opacity: 0.7; }
.store-btn strong { display: block; font-size: 1rem; }

/* ---- FOOTER ---- */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.5);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer .logo { color: white; }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--pink-light); }

.footer-copy { font-size: 0.78rem; text-align: center; }

/* ---- ANIMATIONS ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.on {
    opacity: 1;
    transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin: 0 auto 32px; }
    .hero-btns { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-phone { margin-top: 40px; }
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .split-wrap { grid-template-columns: 1fr; gap: 40px; }
    .split-wrap.reverse { direction: ltr; }
    .split-phone { order: -1; }
    .priv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 260px; height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 28px 28px;
        gap: 18px;
        box-shadow: -8px 0 32px rgba(0,0,0,0.08);
        transition: right 0.3s;
        z-index: 999;
    }
    .nav-links.open { right: 0; }
    .nav-toggle { display: flex; }
    .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero { padding: 100px 0 60px; min-height: auto; }
    .float-card { display: none; }
    .feat-grid { grid-template-columns: 1fr; }
    .privacy-card { padding: 48px 24px; }
    .dl-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .hero-btns { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; gap: 10px; }
    .vline { width: 32px; height: 1px; }
}
