/* ============================================================
   LOVIO.ID — design system
   Palette : rose #F2517B / coral #FF7A9E / ink #2B2440
             blush #FFF3F1 / cream #FFFAF6 / plum #6E4B63
   Type    : Fraunces (display) · Plus Jakarta Sans (body) · Caveat (accent)
   ============================================================ */

:root {
    --rose: #F2517B;
    --coral: #FF7A9E;
    --rose-deep: #C13A63;
    --ink: #2B2440;
    --ink-soft: #5D5470;
    --plum: #6E4B63;
    --blush: #FFF3F1;
    --blush-2: #FFE7EA;
    --cream: #FFFAF6;
    --white: #ffffff;
    --line: rgba(43, 36, 64, 0.10);
    --shadow: 0 18px 50px -18px rgba(193, 58, 99, 0.28);
    --radius: 22px;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
    --font-hand: "Caveat", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }

.eyebrow {
    font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--rose);
    display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--rose); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-body); font-weight: 700; font-size: 15px;
    padding: 14px 26px; border-radius: 999px; border: none; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.btn-primary {
    color: #fff;
    background: linear-gradient(120deg, var(--coral), var(--rose) 60%, var(--rose-deep));
    box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 55px -16px rgba(193, 58, 99, .45); }
.btn-ghost {
    background: transparent; color: var(--ink);
    border: 1.5px solid var(--line); background: var(--white);
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose-deep); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 17px 34px; font-size: 16px; }

/* ---------- Navbar ---------- */
.nav {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 250, 246, .85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.brand-logo3d { position: relative; width: 40px; height: 40px; display: block; flex: none; }
.brand-logo3d img { height: 40px; width: 40px; object-fit: contain; display: block; }
.brand-logo3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.brand-logo3d img.fade-out { opacity: 0; transition: opacity .4s ease; }
.brand-logo3d canvas.fade-in { opacity: 1; transition: opacity .4s ease; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink); }
.brand-dot { color: var(--rose); }
.nav-links { display: flex; align-items: center; gap: 30px; font-weight: 600; font-size: 14.5px; color: var(--ink-soft); }
.nav-links a:hover, .nav-links a.active { color: var(--rose-deep); }
.nav-cta-mobile { display: none; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 860px) {
    .nav-cta { display: none; }
    .nav-burger { display: flex; }
    .nav-links {
        position: absolute; top: 72px; left: 0; right: 0;
        background: var(--cream); border-bottom: 1px solid var(--line);
        flex-direction: column; align-items: flex-start; gap: 4px;
        padding: 14px 24px 20px; display: none;
    }
    .nav-links.is-open { display: flex; }
    .nav-links a { padding: 10px 0; width: 100%; }
    .nav-cta-mobile { display: inline-flex; margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 500px at 85% -10%, var(--blush-2), transparent 65%),
        radial-gradient(700px 420px at -10% 30%, #FFEFF3, transparent 60%),
        var(--cream);
    padding: 90px 0 70px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); margin: 22px 0 20px; }
.hero h1 em {
    font-style: italic; color: var(--rose);
    background: linear-gradient(120deg, var(--coral), var(--rose-deep));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 17.5px; color: var(--ink-soft); max-width: 52ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-trust { margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); }
.hero-trust b { color: var(--rose-deep); }

.hero-steps { display: flex; gap: 0; margin-top: 44px; border-top: 1px solid var(--line); padding-top: 26px; }
.hero-step { flex: 1; display: flex; gap: 12px; align-items: flex-start; }
.hero-step + .hero-step { border-left: 1px solid var(--line); padding-left: 20px; }
.hero-step-num {
    width: 30px; height: 30px; flex: none; border-radius: 999px;
    background: var(--blush-2); color: var(--rose-deep);
    display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.hero-step b { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.hero-step span { font-size: 13px; color: var(--ink-soft); }

/* Phone mockup */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone {
    width: min(310px, 82vw); aspect-ratio: 9 / 18.6;
    border-radius: 42px; border: 10px solid var(--ink);
    background: linear-gradient(165deg, #3d1a23, #2b1218 70%);
    box-shadow: 0 40px 80px -30px rgba(43, 36, 64, .5);
    overflow: hidden; position: relative; z-index: 2;
}
.phone-notch {
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 90px; height: 22px; background: var(--ink); border-radius: 999px; z-index: 3;
}
.phone-screen {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    padding: 34px 26px; color: #fff;
}
.phone-eyebrow { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: #f6c9d2; opacity: .85; }
.phone-title { font-family: var(--font-display); font-size: 24px; margin: 12px 0 6px; }
.phone-hand { font-family: var(--font-hand); font-size: 21px; color: #f6c9d2; }
.phone-seal {
    width: 92px; height: 92px; margin: 26px auto 22px; border-radius: 999px;
    background: radial-gradient(circle at 32% 30%, #ff8fae, var(--rose-deep) 70%);
    display: grid; place-items: center; font-size: 36px;
    box-shadow: 0 14px 30px -8px rgba(0,0,0,.5), inset 0 2px 8px rgba(255,255,255,.35);
    animation: sealPulse 2.8s ease-in-out infinite;
}
@keyframes sealPulse { 0%,100% { transform: scale(1);} 50% { transform: scale(1.05);} }
.phone-cta {
    margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: #ffd9e8; opacity: .9;
    animation: fadeBlink 2.2s ease-in-out infinite;
}
@keyframes fadeBlink { 0%,100% { opacity: .5;} 50% { opacity: 1;} }
.phone-float {
    position: absolute; z-index: 1; border-radius: 18px; background: var(--white);
    box-shadow: 0 20px 45px -18px rgba(43,36,64,.35); border: 1px solid var(--line);
    padding: 12px 16px; font-size: 13px; font-weight: 600;
}
.phone-float.f1 { top: 12%; left: -4%; transform: rotate(-5deg); }
.phone-float.f2 { bottom: 14%; right: -3%; transform: rotate(4deg); }
.phone-float .hand { font-family: var(--font-hand); font-size: 18px; color: var(--rose-deep); display: block; }

/* Kelopak jatuh */
.petals { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.petal {
    position: absolute; top: -30px; font-size: 18px; opacity: .5;
    animation: petalFall linear infinite;
}
@keyframes petalFall {
    0% { transform: translateY(-40px) rotate(0deg); opacity: 0; }
    10% { opacity: .55; }
    100% { transform: translateY(110vh) rotate(320deg); opacity: 0; }
}

@media (max-width: 900px) {
    .hero { padding: 56px 0 50px; }
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero-steps { flex-direction: column; gap: 18px; }
    .hero-step + .hero-step { border-left: none; padding-left: 0; }
    .phone-float.f1 { left: 2%; }
    .phone-float.f2 { right: 2%; }
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 18px 0 14px; }
.section-head p { color: var(--ink-soft); font-size: 16.5px; }

/* Rasa cards */
.rasa { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rasa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rasa-card {
    background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 28px; position: relative; overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.rasa-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rasa-num { font-family: var(--font-hand); font-size: 26px; color: var(--rose); }
.rasa-card h3 { font-size: 21px; margin: 10px 0 10px; }
.rasa-card p { color: var(--ink-soft); font-size: 15px; }
.rasa-bloom { position: absolute; right: -14px; bottom: -18px; font-size: 74px; opacity: .10; }

/* Cara kerja */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step-card {
    position: relative; background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 30px 26px;
}
.step-card::before {
    counter-increment: step; content: "0" counter(step);
    font-family: var(--font-display); font-style: italic; font-size: 40px;
    color: var(--blush-2); -webkit-text-stroke: 1.2px var(--rose);
    display: block; margin-bottom: 14px;
}
.step-card h3 { font-size: 19px; margin-bottom: 8px; }
.step-card p { font-size: 14.5px; color: var(--ink-soft); }

@media (max-width: 980px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .rasa-grid, .steps-grid { grid-template-columns: 1fr; } }

/* Cocok buat */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
    padding: 11px 20px; border-radius: 999px; background: var(--white);
    border: 1.5px solid var(--line); font-weight: 600; font-size: 14.5px;
    transition: all .18s ease; cursor: pointer;
}
.chip:hover { border-color: var(--rose); color: var(--rose-deep); background: var(--blush); transform: translateY(-2px); }

/* FAQ */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
    width: 100%; background: none; border: none; text-align: left; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    padding: 22px 4px; font-family: var(--font-body); font-weight: 700; font-size: 16.5px; color: var(--ink);
}
.faq-q .plus { font-family: var(--font-display); font-size: 24px; color: var(--rose); transition: transform .25s ease; flex: none; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--ink-soft); font-size: 15px; }
.faq-a-inner { padding: 0 4px 22px; max-width: 62ch; }
.faq-contact { margin-top: 30px; font-size: 15px; color: var(--ink-soft); }
.faq-contact a { color: var(--rose-deep); font-weight: 700; }

/* CTA band */
.cta-band {
    background: linear-gradient(120deg, #3d1a23, #2b1218 55%, #241a22);
    color: #fff; border-radius: 28px; padding: 64px 56px;
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
    position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 18ch; }
.cta-band .hand { font-family: var(--font-hand); color: #f6c9d2; font-size: 24px; }
.cta-band .btn { flex: none; }
.cta-band-bloom { position: absolute; font-size: 130px; opacity: .12; right: 6%; top: -10px; transform: rotate(15deg); }
@media (max-width: 760px) { .cta-band { flex-direction: column; text-align: center; padding: 48px 28px; } }

/* ---------- Templates page ---------- */
.page-hero { padding: 64px 0 34px; }
.page-hero h1 { font-size: clamp(32px, 4.2vw, 52px); margin: 16px 0 12px; }
.page-hero p { color: var(--ink-soft); max-width: 56ch; }
.cat-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 18px; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
    flex: none; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
    border: 1.5px solid var(--line); background: var(--white); transition: all .15s ease;
}
.cat-pill:hover { border-color: var(--rose); color: var(--rose-deep); }
.cat-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.tpl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; padding-bottom: 80px; }
@media (max-width: 780px) { .tpl-grid { grid-template-columns: 1fr; } }
.tpl-card {
    background: var(--white); border: 1px solid var(--line); border-radius: 26px;
    overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.tpl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tpl-preview { aspect-ratio: 16 / 10; position: relative; display: grid; place-items: center; overflow: hidden; }
.tpl-preview.malam { background: linear-gradient(160deg, #3d1a23, #2b1218 70%); color: #fff; }
.tpl-preview.senja { background: linear-gradient(160deg, #f7dfb2, #edb56b 75%); color: #3f3016; }
.tpl-preview-inner { text-align: center; padding: 20px; }
.tpl-preview-inner .seal { font-size: 46px; display: block; margin-bottom: 10px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.3)); }
.tpl-preview-inner .t { font-family: var(--font-display); font-size: 22px; }
.tpl-preview-inner .h { font-family: var(--font-hand); font-size: 19px; opacity: .85; }
.tpl-body { padding: 22px 24px 24px; }
.tpl-body h3 { font-size: 19px; margin-bottom: 6px; }
.tpl-body p {
    font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin-bottom: 14px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 480px) {
    .tpl-body { padding: 18px 20px 20px; }
    .tpl-body h3 { font-size: 17.5px; }
    .tpl-body p { font-size: 12.5px; -webkit-line-clamp: 2; }
}
.tpl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tpl-tag { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--blush); color: var(--rose-deep); }
.tpl-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Template detail */
.tpl-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 70px 0 90px; }
@media (max-width: 880px) { .tpl-detail { grid-template-columns: 1fr; } }
.theme-dots { display: flex; gap: 12px; margin: 20px 0 6px; }
.theme-dot {
    width: 42px; height: 42px; border-radius: 999px; cursor: pointer; border: 3px solid var(--white);
    box-shadow: 0 0 0 1.5px var(--line), 0 6px 14px -6px rgba(0,0,0,.25);
    display: grid; place-items: center; font-size: 17px; transition: transform .15s ease;
}
.theme-dot { width: 58px; height: 58px; padding: 4px; background: var(--white); overflow: hidden; }
.theme-dot img { width: 100%; height: 100%; object-fit: contain; }
.theme-dot:hover { transform: scale(1.1); }
.detail-list { list-style: none; margin: 22px 0 30px; display: grid; gap: 12px; }
.detail-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.detail-list li::before { content: "❀"; color: var(--rose); flex: none; }

/* ---------- Forms ---------- */
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: 12.5px; margin-left: 6px; }
.input, .textarea, select.input {
    width: 100%; padding: 13px 16px; border-radius: 14px;
    border: 1.5px solid var(--line); background: var(--white);
    font-family: var(--font-body); font-size: 15px; color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(242, 81, 123, .12); }
.textarea { min-height: 140px; resize: vertical; }
.error-text { color: #c0392b; font-size: 13px; margin-top: 6px; }
.form-alert {
    background: var(--blush); border: 1.5px solid var(--coral); color: var(--rose-deep);
    padding: 14px 18px; border-radius: 14px; font-size: 14px; margin-bottom: 24px; font-weight: 600;
}

/* ---------- Footer ---------- */
.footer { background: #241a22; color: #e9dade; padding: 64px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 52px; width: auto; background: #fff; border-radius: 14px; padding: 6px; margin-bottom: 16px; }
.footer-tagline { font-size: 14.5px; opacity: .8; }
.footer h4 { font-family: var(--font-body); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #f6c9d2; margin-bottom: 16px; }
.footer a { display: block; padding: 5px 0; font-size: 14.5px; opacity: .85; }
.footer a:hover { opacity: 1; color: #ff8fae; }
.footer-note { font-size: 13px; opacity: .65; margin-top: 10px; max-width: 30ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; font-size: 13px; opacity: .65; }

/* ---------- Utility ---------- */
.text-hand { font-family: var(--font-hand); }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mb-2 { margin-bottom: 16px; }
