/* ============================================================
   wedday — landing page
   Undangan digital: krem hangat, rose lembut, serif klasik.
   Susunan mengikuti mockup: pembuka dua kolom, empat kartu
   fitur, contoh tampilan, peta isi, langkah, harga, tanya
   jawab, lalu ajakan.
   ============================================================ */

:root {
    --ground: #fdfaf7;
    --paper: #ffffff;
    --blush: #fbf0f1;
    --blush-2: #f6e3e5;
    --line: #efe5de;
    --ink: #2f2a28;
    --soft: #6f6460;
    --accent: #9a5a62;
    --accent-ink: #7d434b;
    --gold: #c9a978;

    --display: "Cormorant Garamond", Georgia, serif;
    --text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    --t-hero: clamp(32px, 3.6vw, 52px);
    --t-head: clamp(24px, 2.3vw, 32px);
    --t-lead: clamp(15px, 1.15vw, 17px);
    --t-body: 15px;
    --t-small: 13px;

    --edge: clamp(18px, 5vw, 56px);
    --sect: clamp(64px, 8vh, 104px);
    --width: 1200px;

    --radius: 8px;
    --radius-pill: 999px;

    --ease: cubic-bezier(0.2, 0, 0.2, 1);
}

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

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    background: var(--ground);
    font-family: var(--text);
    font-size: var(--t-body);
    line-height: 1.6;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
address {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
summary {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

::selection {
    background: rgba(154, 90, 98, 0.18);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 20;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    border-radius: var(--radius);
    transform: translateY(-160%);
}

.skip:focus-visible {
    transform: none;
}

/* ==================== TOMBOL ==================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
        color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:active {
    transform: translateY(1px);
}

.btn i {
    font-size: 17px;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-ink);
    border-color: var(--accent-ink);
}

.btn-outline {
    background: var(--paper);
    border-color: var(--blush-2);
    color: var(--accent-ink);
}

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

.btn-sm {
    min-height: 38px;
    padding: 0 16px;
    font-size: var(--t-small);
}

/* ==================== BAR ATAS ==================== */

.topbar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px var(--edge);
    background: var(--ground);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--display);
    font-size: 19px;
    font-weight: 600;
    line-height: 1;
    padding-bottom: 2px;
}

.brand-name {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
}

.topnav {
    display: flex;
    gap: clamp(16px, 2.4vw, 34px);
    margin: 0 auto;
    font-size: 14px;
}

.topnav a {
    text-decoration: none;
    color: var(--soft);
    transition: color 0.18s var(--ease);
}

.topnav a:hover {
    color: var(--accent-ink);
}

.topbar-cta {
    flex: 0 0 auto;
}

/* ==================== PEMBUKA ==================== */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    gap: clamp(24px, 3vw, 48px);
    align-items: center;
    max-width: var(--width);
    margin: 0 auto;
    padding: clamp(24px, 4vh, 48px) var(--edge) clamp(48px, 7vh, 88px);
}

.kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: var(--t-small);
    color: var(--soft);
}

.kicker::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--accent);
    opacity: 0.6;
}

.hero h1 {
    max-width: none;
    font-family: var(--display);
    font-size: var(--t-hero);
    font-weight: 600;
    line-height: 1.08;
    text-wrap: balance;
}

.hero-lead {
    margin-top: 18px;
    max-width: 44ch;
    font-size: var(--t-lead);
    line-height: 1.65;
    color: var(--soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

/* --- gambar pembuka --- */

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.6vw, 22px);
    min-height: 460px;
}

.phone {
    flex: 0 0 auto;
    width: clamp(150px, 16vw, 200px);
    padding: 7px;
    border-radius: 26px;
    background: #241f1e;
    box-shadow: 0 24px 44px -30px rgba(47, 42, 40, 0.55);
}

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

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.paper-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(200px, 22vw, 268px);
    padding: 26px 20px 24px;
    background: var(--paper);
    border-radius: 4px;
    box-shadow: 0 24px 44px -30px rgba(47, 42, 40, 0.35);
    text-align: center;
}

.paper-script {
    font-family: var(--display);
    font-style: italic;
    font-size: 21px;
    line-height: 1.1;
    color: var(--accent);
}

.paper-hex {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin-top: 14px;
    background: var(--gold);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.paper-hex span {
    display: grid;
    place-items: center;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    background: var(--paper);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    font-family: var(--display);
    font-size: 19px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.paper-to {
    margin-top: 18px;
    font-size: 12px;
    color: var(--soft);
}

.paper-name-line {
    width: 100%;
    margin-top: 2px;
}

.paper-name {
    width: 100%;
    padding: 2px;
    border: 0;
    background: none;
    font-family: var(--display);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: var(--ink);
    outline: none;
}

.paper-hint {
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--soft);
}

.paper-date {
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--soft);
}

.hero-tags {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-tags li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    background: var(--paper);
    box-shadow: 0 10px 24px -18px rgba(47, 42, 40, 0.4);
    font-size: 12.5px;
    color: var(--soft);
    white-space: nowrap;
}

.hero-tags i {
    font-size: 15px;
    color: var(--accent);
}

/* ==================== JUDUL BAGIAN ==================== */

.section-head {
    max-width: 640px;
    margin: 0 auto clamp(28px, 4vh, 44px);
    text-align: center;
}

.section-head h2 {
    font-family: var(--display);
    font-size: var(--t-head);
    font-weight: 600;
    line-height: 1.2;
    text-wrap: balance;
}

.section-head p {
    margin-top: 10px;
    font-size: var(--t-body);
    color: var(--soft);
    text-wrap: pretty;
}

.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    max-width: var(--width);
    text-align: left;
}

.section-head-row p {
    max-width: 46ch;
}

/* ==================== FITUR ==================== */

.features {
    max-width: var(--width);
    margin: 0 auto;
    padding: 0 var(--edge) var(--sect);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    padding: 26px 20px 24px;
    border-radius: var(--radius);
    background: var(--paper);
    text-align: center;
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blush);
    color: var(--accent);
    font-size: 22px;
}

.feature-card h3 {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 600;
}

.feature-card p {
    margin-top: 6px;
    font-size: var(--t-small);
    line-height: 1.55;
    color: var(--soft);
}

/* ==================== CONTOH ==================== */

.showcase {
    padding: var(--sect) var(--edge);
    background: var(--blush);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: var(--width);
    margin: 0 auto;
}

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

.theme-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--color-cream);
    aspect-ratio: 3 / 4;
}

/* sampul tema: ornamen sudut seperti di undangan asli */
.theme-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    background: var(--color-cream);
}

.theme-cover::before,
.theme-cover::after {
    content: "";
    position: absolute;
    width: 66%;
    aspect-ratio: 1;
    background: center / contain no-repeat;
    filter: var(--ornament-filter);
    pointer-events: none;
}

.theme-cover::before {
    top: -7%;
    left: -9%;
    background-image: url("../assets/images/ornament-top-left.png");
}

.theme-cover::after {
    right: -9%;
    bottom: -7%;
    background-image: url("../assets/images/ornament-bottom-right.png");
}

.cover-script {
    position: relative;
    font-family: var(--display);
    font-style: italic;
    font-size: 17px;
    line-height: 1.1;
    color: var(--color-accent);
}

.cover-hex {
    position: relative;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    background: var(--color-gold);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.cover-hex span {
    display: grid;
    place-items: center;
    width: calc(100% - 3px);
    height: calc(100% - 3px);
    background: var(--color-cream);
    box-shadow: inset 0 0 0 1px rgb(var(--rgb-gold) / 0.6);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    font-family: var(--display);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.cover-names {
    position: relative;
    font-family: var(--display);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-dark);
    text-align: center;
}

.theme-name {
    font-size: 13px;
    color: var(--soft);
    text-align: center;
}

/* ==================== ISI UNDANGAN ==================== */

.content-map {
    max-width: var(--width);
    margin: 0 auto;
    padding: var(--sect) var(--edge);
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.map-panel {
    padding: 22px 24px 24px;
    border-radius: var(--radius);
    background: var(--paper);
}

.map-panel header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
}

.map-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blush);
    color: var(--accent);
    font-size: 19px;
}

.map-panel h3 {
    font-size: 15px;
    font-weight: 600;
}

.map-panel ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.map-panel li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--t-small);
    color: var(--soft);
}

.map-panel li i {
    font-size: 15px;
    color: var(--accent);
}

/* ==================== CARA KERJA ==================== */

.steps {
    padding: var(--sect) var(--edge);
    background: var(--blush);
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    max-width: var(--width);
    margin: 0 auto;
}

.step {
    position: relative;
    padding-right: 16px;
}

.step-num {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.step h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
}

.step h3 i {
    font-size: 16px;
    color: var(--accent);
}

.step p {
    margin-top: 6px;
    font-size: var(--t-small);
    line-height: 1.55;
    color: var(--soft);
}

.step:not(:last-child)::after {
    content: "\203A";
    position: absolute;
    top: 2px;
    right: -4px;
    font-size: 22px;
    line-height: 1;
    color: rgba(154, 90, 98, 0.35);
}

/* ==================== HARGA & AJAKAN ==================== */

.pricing,
.cta {
    max-width: var(--width);
    margin: 0 auto;
    padding: var(--sect) var(--edge);
}

.cta {
    padding-top: 0;
}

.band {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: clamp(20px, 3vw, 48px);
    overflow: hidden;
    padding: clamp(26px, 4vw, 44px) clamp(112px, 13vw, 190px);
    border-radius: var(--radius);
    background: var(--blush);
}

.band-flowers {
    position: absolute;
    top: 50%;
    width: clamp(104px, 12vw, 160px);
    aspect-ratio: 1;
    background: url("../assets/images/flower-bouquet.png") center / contain no-repeat;
    opacity: 0.5;
    pointer-events: none;
    transform: translateY(-50%);
}

.band-flowers-left {
    left: -28px;
}

.band-flowers-right {
    right: -28px;
}

.price-main {
    position: relative;
    z-index: 1;
}

.price-main h2 {
    font-family: var(--display);
    font-size: var(--t-head);
    font-weight: 600;
    line-height: 1.2;
}

.price-main ul {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.price-main li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--t-small);
    color: var(--soft);
}

.price-main li i {
    font-size: 15px;
    color: var(--accent);
}

.price-stub {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.price-value {
    font-family: var(--display);
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
}

.price-note {
    font-size: 12.5px;
    color: var(--soft);
}

.price-stub .btn {
    margin-top: 12px;
}

/* ajakan */

.band-slim {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

.cta-body {
    position: relative;
    z-index: 1;
    max-width: 44ch;
}

.cta-body h2 {
    font-family: var(--display);
    font-size: var(--t-head);
    font-weight: 600;
    line-height: 1.2;
}

.cta-body p {
    margin-top: 8px;
    font-size: var(--t-body);
    color: var(--soft);
}

.cta-body .btn {
    margin-top: 18px;
}

/* ==================== TANYA JAWAB ==================== */

.faq {
    max-width: var(--width);
    margin: 0 auto;
    padding: var(--sect) var(--edge);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.faq-item {
    border-radius: var(--radius);
    background: var(--paper);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary i {
    flex: 0 0 auto;
    font-size: 18px;
    color: var(--accent);
    transition: transform 0.2s var(--ease);
}

.faq-item[open] summary i {
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 16px 14px;
    font-size: var(--t-small);
    line-height: 1.6;
    color: var(--soft);
}

/* ==================== KAKI ==================== */

.footer {
    padding: var(--sect) var(--edge) 24px;
    background: var(--blush);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 24px;
    max-width: var(--width);
    margin: 0 auto;
}

.footer-brand p {
    margin-top: 12px;
    max-width: 38ch;
    font-size: var(--t-small);
    line-height: 1.6;
    color: var(--soft);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-style: normal;
    font-size: var(--t-small);
}

.footer-links a {
    text-decoration: none;
    color: var(--soft);
    transition: color 0.18s var(--ease);
}

.footer-links a:hover {
    color: var(--accent-ink);
}

.footer-social {
    display: flex;
    gap: 8px;
    align-self: start;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--paper);
    color: var(--accent);
    font-size: 17px;
    text-decoration: none;
    transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.footer-social a:hover {
    background: var(--accent);
    color: #fff;
}

.footer-imprint {
    max-width: var(--width);
    margin: 36px auto 0;
    font-size: 12px;
    color: var(--soft);
}

/* ==================== GERAK ==================== */

html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

html.js .reveal.is-in {
    opacity: 1;
    transform: none;
}

html.js .reveal[data-delay="1"] { transition-delay: 0.07s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.14s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.21s; }

/* ==================== LAYAR SEMPIT ==================== */

@media (max-width: 1000px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero h1 {
        max-width: 18ch;
    }

    .hero-visual {
        min-height: 0;
    }

    .feature-grid,
    .theme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .step-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 22px;
    }

    .step:nth-child(2)::after {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr auto;
    }

    .footer-links {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 22px;
    }
}

@media (max-width: 760px) {
    .topnav {
        display: none;
    }

    .topbar {
        justify-content: space-between;
    }

    .hero {
        padding-top: 12px;
        text-align: center;
    }

    .kicker {
        justify-content: center;
    }

    .hero h1 {
        max-width: none;
    }

    .hero-lead {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-tags {
        flex-flow: row wrap;
        justify-content: center;
        width: 100%;
    }

    .section-head-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .map-grid,
    .faq-grid,
    .feature-grid,
    .step-grid {
        grid-template-columns: 1fr;
    }

    .theme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .theme-cover {
        gap: 7px;
        padding: 12px;
    }

    .cover-script {
        font-size: 13px;
    }

    .cover-hex {
        width: 48px;
        height: 48px;
    }

    .cover-hex span {
        font-size: 11px;
    }

    .cover-names {
        font-size: 13.5px;
    }

    .step::after {
        display: none;
    }

    .band {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .price-main ul {
        justify-items: center;
    }

    .price-main li {
        justify-content: center;
    }

    .band-flowers {
        opacity: 0.24;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-social {
        order: 3;
    }
}

@media (max-width: 420px) {
    .map-panel ul {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    html.js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}