/* Graziario site: bright, playful greeting card. Ivory and coral with sunny accents, chunky outlines. */
:root {
    --ivory: #fff7e8;
    --cream: #fffdf7;
    --ink: #242429;
    --ink-soft: #4f4f58;
    --coral: #b93f31;
    --coral-dark: #9a3327;
    --coral-pop: #ff6b57;
    --sun: #ffd166;
    --mint: #8ee3c8;
    --sky: #9ccbff;
    --pink: #ffb3c7;
    --lilac: #cdb8ff;
    --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --radius: 24px;
    --pop: 4px 4px 0 var(--ink);
    --pop-big: 8px 8px 0 var(--ink);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--coral); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--coral-dark); }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 0; padding: .75rem 1rem; background: var(--ink); color: var(--ivory); z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; position: relative; }
.narrow { width: min(780px, 100% - 2.5rem); }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.015em; margin: 0 0 .75rem; }
h1 { font-size: clamp(2.8rem, 6vw, 4.7rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.75rem; }
p { margin: 0 0 1rem; }

.dot { color: var(--coral); }

.marker {
    background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 92%, transparent 92%);
    padding: 0 .08em;
    font-style: italic;
}
.marker-light { background: linear-gradient(transparent 58%, rgba(255, 209, 102, .55) 58%, rgba(255, 209, 102, .55) 92%, transparent 92%); }

/* Navigation */
.logo { font-family: var(--serif); font-size: 2rem; color: var(--ink); text-decoration: none; line-height: 1; }
.logo:hover { color: var(--ink); }
.logo .dot { display: inline-block; transition: transform .3s; }
.logo:hover .dot { transform: translateY(-6px) scale(1.3); }
.logo-small { font-size: 1.6rem; }

.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--ivory) 88%, transparent); backdrop-filter: blur(10px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.4rem; font-size: .97rem; font-weight: 500; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--coral); }
.nav-links a:last-child { padding: .45rem 1rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); box-shadow: 3px 3px 0 var(--ink); color: var(--ink); }
.nav-links a:last-child:hover { background: var(--sun); }

@media (max-width: 640px) {
    .nav-links a:not(:last-child) { display: none; }
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 3.25rem; padding: .8rem 1.5rem;
    border: 2px solid var(--ink); border-radius: 999px;
    font-weight: 700; text-decoration: none;
    box-shadow: var(--pop);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-ghost { background: var(--cream); color: var(--ink); }
.btn-ghost:hover { background: var(--sun); color: var(--ink); }
.btn-light { background: var(--sun); color: var(--ink); }
.btn-light:hover { color: var(--ink); }

.cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.9rem 0 .9rem; }
.cta-center { justify-content: center; }
.note { color: var(--ink-soft); font-size: .95rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 36rem; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--ink); background: var(--pink); padding: .25rem .7rem; border-radius: 999px; border: 2px solid var(--ink); margin-bottom: 1rem; }
.fine { color: var(--ink-soft); font-size: .92rem; }
.pill { display: inline-flex; gap: .4rem; align-items: center; font-size: .9rem; font-weight: 600; padding: .35rem .85rem; border-radius: 999px; background: var(--cream); border: 2px solid var(--ink); margin-bottom: 1.4rem; }

/* Hero */
.hero {
    position: relative;
    padding: 3rem 0 4.5rem;
    overflow: hidden;
    background:
        radial-gradient(38rem 26rem at 88% 12%, rgba(156, 203, 255, .55), transparent 70%),
        radial-gradient(30rem 22rem at 8% 92%, rgba(255, 209, 102, .55), transparent 70%),
        radial-gradient(26rem 20rem at 50% 105%, rgba(255, 179, 199, .45), transparent 70%);
}
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 940px) {
    .hero { padding: 4.5rem 0 6.5rem; }
    .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}

.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero .wrap, .section-final .wrap { z-index: 1; }
.confetti i {
    position: absolute;
    top: calc(mod(var(--i) * 37, 96) * 1% + 2%);
    left: calc(mod(var(--i) * 53, 96) * 1% + 2%);
    width: .7rem; height: 1.1rem;
    border-radius: 3px;
    background: var(--coral-pop);
    transform: rotate(calc(var(--i) * 47deg));
    opacity: .85;
    animation: float 7s ease-in-out infinite;
    animation-delay: calc(var(--i) * -.6s);
}
.confetti i:nth-child(4n+1) { background: var(--sun); }
.confetti i:nth-child(4n+2) { background: var(--mint); border-radius: 50%; width: .8rem; height: .8rem; }
.confetti i:nth-child(4n+3) { background: var(--sky); }
.confetti i:nth-child(5n) { background: var(--lilac); width: 1rem; height: .5rem; }
@keyframes float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -14px; rotate: 25deg; }
}

/* Demo */
.demo { position: relative; }
.sticker {
    position: absolute; z-index: 3; top: -1.4rem; right: -.6rem;
    display: grid; place-items: center; text-align: center;
    width: 6.4rem; height: 6.4rem; border-radius: 50%;
    background: var(--sun); border: 2px solid var(--ink); box-shadow: var(--pop);
    font-size: .8rem; line-height: 1.15; font-weight: 600;
    transform: rotate(12deg);
    animation: wobble 4s ease-in-out infinite;
}
.sticker strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
@keyframes wobble { 0%, 100% { transform: rotate(12deg); } 50% { transform: rotate(4deg) scale(1.04); } }

.demo-tabs { display: inline-flex; flex-wrap: wrap; gap: .4rem; padding: .35rem; border-radius: 999px; background: var(--cream); border: 2px solid var(--ink); box-shadow: var(--pop); margin-bottom: 1.4rem; }
.demo-tabs button { font: inherit; font-size: .95rem; font-weight: 600; padding: .5rem 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; transition: background-color .15s; }
.demo-tabs button:hover { background: var(--ivory); }
.demo-tabs button[aria-selected='true'] { background: var(--ink); color: var(--cream); }

.phone {
    background: var(--cream);
    border: 2px solid var(--ink);
    border-radius: 28px;
    padding: 1.6rem;
    box-shadow: var(--pop-big);
    transform: rotate(-1.2deg);
}
.phone:not([hidden]) .bubble-in { animation: pop-in .4s ease both; }
.phone:not([hidden]) .bubble-out { animation: pop-in .4s ease .35s both; }
.phone:not([hidden]) .why, .phone:not([hidden]) .card-actions { animation: pop-in .4s ease .6s both; }
@keyframes pop-in { from { transform: translateY(8px) scale(.94); } to { transform: none; } }

.chat { display: grid; gap: 1rem; }
.bubble-row { display: flex; gap: .7rem; align-items: flex-end; }
.bubble-row-out { justify-content: flex-end; text-align: right; }
.avatar { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--ink); font-weight: 700; }
.avatar-sky { background: var(--sky); }
.avatar-mint { background: var(--mint); }
.avatar-sun { background: var(--sun); }
.sender { font-size: .78rem; font-weight: 600; color: var(--ink-soft); margin: 0 0 .3rem; }
.bubble { margin: 0; padding: .8rem 1.05rem; border: 2px solid var(--ink); font-size: 1.05rem; line-height: 1.45; text-align: left; }
.bubble-in { background: #fff; border-radius: 20px 20px 20px 6px; font-family: var(--serif); font-size: 1.4rem; line-height: 1.25; }
.bubble-out { background: #ffe1d9; border-radius: 20px 20px 6px 20px; max-width: 26rem; margin-left: auto; }
.why { font-size: .92rem; color: var(--ink-soft); margin: 0; padding: .6rem .85rem; border-radius: 14px; background: var(--ivory); border: 2px dashed #e6d3b5; }
.why span { font-weight: 700; color: var(--ink); margin-right: .35rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font-size: .85rem; font-weight: 600; padding: .4rem .85rem; border-radius: 999px; border: 2px solid var(--ink); background: #fff; }
.chip-primary { background: var(--coral); color: #fff; box-shadow: 2px 2px 0 var(--ink); }
.demo-note { margin-top: 1.1rem; font-size: .85rem; color: var(--ink-soft); }

/* Ribbon of greetings */
.ribbon { background: var(--ink); color: var(--sun); border-block: 2px solid var(--ink); transform: rotate(-1.5deg); margin: -1rem -2rem 0; overflow: hidden; position: relative; z-index: 2; }
.ribbon-track { display: flex; gap: 2.5rem; width: max-content; padding: .95rem 0; animation: marquee 38s linear infinite; font-family: var(--serif); font-size: 1.55rem; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 4.5rem 0; position: relative; }
@media (min-width: 900px) { .section { padding: 6.5rem 0; } }

.steps { list-style: none; padding: 0; margin: 2.75rem 0 0; display: grid; gap: 1.6rem; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.8rem 1.6rem 1.6rem; box-shadow: var(--pop-big); transition: transform .2s ease; }
.step:hover { transform: translateY(-4px) rotate(-.6deg); }
.step-sun { background: var(--sun); }
.step-mint { background: var(--mint); }
.step-sky { background: var(--sky); }
.step-n { position: absolute; top: -1.1rem; left: 1.4rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--cream); border: 2px solid var(--ink); font-weight: 700; }
.step-icon { display: block; font-size: 2.2rem; margin-bottom: .6rem; }
.step p { margin: 0; color: var(--ink); }

.section-story { background: repeating-linear-gradient(45deg, rgba(255, 179, 199, .18) 0 18px, transparent 18px 36px); }
.story-grid { display: grid; justify-items: center; }
.postcard { position: relative; width: min(820px, 100%); background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 3rem); box-shadow: var(--pop-big); transform: rotate(.8deg); }
.stamp { position: absolute; top: 1.4rem; right: 1.4rem; display: grid; place-items: center; width: 4.6rem; height: 5.4rem; background: var(--coral-pop); color: #fff; font-family: var(--serif); font-size: 1.5rem; border: 3px dashed var(--cream); outline: 2px solid var(--ink); transform: rotate(8deg); }
.story { margin: 1.25rem 0 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.35; }
.story-end { font-style: italic; color: var(--coral); font-size: 1.15em; }
.story footer { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.story footer::before { content: '— '; }

.two-col { display: grid; gap: 2rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.facts li { display: flex; gap: .9rem; align-items: flex-start; padding: .95rem 1.1rem; background: var(--cream); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 3px 3px 0 var(--ink); }
.facts li .ico { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ivory); border: 2px solid var(--ink); font-size: 1.05rem; }
.facts li:nth-child(2) .ico { background: var(--sun); }
.facts li:nth-child(3) .ico { background: var(--mint); }
.facts li:nth-child(4) .ico { background: var(--sky); }
.facts li:nth-child(5) .ico { background: var(--pink); }

.section-pricing { background: linear-gradient(180deg, transparent, rgba(142, 227, 200, .28)); }
.plans { display: grid; gap: 1.6rem; margin: 2.75rem 0 1.5rem; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.9rem; position: relative; box-shadow: var(--pop); }
.plan-mint { background: #dff7ee; }
.plan-sky { background: #e3f0ff; }
.plan-main { background: #fff; box-shadow: var(--pop-big); }
@media (min-width: 900px) { .plan-main { transform: translateY(-10px) rotate(-.6deg); } }
.plan .badge { position: absolute; top: -1rem; left: 1.5rem; margin: 0; padding: .25rem .85rem; border-radius: 999px; background: var(--coral); color: #fff; font-size: .82rem; font-weight: 700; border: 2px solid var(--ink); }
.price { font-family: var(--serif); font-size: 3rem; line-height: 1; margin: .25rem 0 1rem; }
.price span { display: block; font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); margin-top: .4rem; }
.plan ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.plan-state { display: inline-block; margin: 1.1rem 0 0; font-size: .82rem; font-weight: 700; padding: .2rem .7rem; border-radius: 999px; background: var(--sun); border: 2px solid var(--ink); }

.faq { display: grid; gap: .85rem; margin-top: 2.25rem; }
.faq details { background: var(--cream); border: 2px solid var(--ink); border-radius: 18px; padding: 1.05rem 1.3rem; box-shadow: 3px 3px 0 var(--ink); }
.faq details[open] { background: #fff4d6; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .8rem 0 0; color: var(--ink-soft); }

.section-final { background: var(--coral); color: #fff; overflow: hidden; border-top: 2px solid var(--ink); }
.section-final h2 { color: #fff; }
.section-final .note { color: #ffe9e4; }
.confetti-final i { opacity: .9; }

.prose h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.prose h2 { font-size: 1.9rem; margin-top: 2.4rem; }
.prose ul { padding-left: 1.2rem; }
.notice { padding: 1rem 1.25rem; border-radius: 16px; background: var(--cream); border: 2px dashed var(--coral); }

.footer { border-top: 2px solid var(--ink); padding: 2.75rem 0; background: var(--cream); }
.footer-inner { display: grid; gap: .5rem; }
.footer-inner p { margin: 0; color: var(--ink-soft); }
.footer-links { display: flex; gap: 1.25rem; margin: .5rem 0; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .phone, .postcard, .plan-main, .ribbon { transform: none; }
}
