:root {
    --green: #15803d;
    --green-2: #16a34a;
    --bg: #f0fdf4;
    --accent: #86efac;
    --ink: #14532d;
    --line: #dcfce7;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Outfit, system-ui, sans-serif;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 80;
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    padding: 0.6rem 1rem;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

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

body.modal-open {
    overflow: hidden;
}

.boot-note {
    margin: 0;
    padding: 2rem 1rem;
    text-align: center;
}

/* No-JavaScript catalog and policy pages */

.s-header,
.s-footer,
.s-hero,
.s-section,
.policy-main {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.s-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    min-height: 3.5rem;
    padding: 0.5rem 0;
}

.s-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink);
    font-weight: 650;
    text-decoration: none;
}

.s-brand img {
    width: 2rem;
    height: 2rem;
}

.s-nav,
.s-footer nav,
.s-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.s-tools {
    margin-left: auto;
}

.s-nav a,
.s-footer a,
.s-text-link {
    color: var(--ink);
    text-decoration: none;
}

.s-nav a:hover,
.s-footer a:hover,
.s-text-link:hover {
    text-decoration: underline;
}

.s-lang {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    padding: 0.15rem;
}

.s-lang a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.85rem;
}

.s-lang a[aria-current="true"] {
    background: var(--green);
    color: var(--white);
}

.s-contact,
.s-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    text-decoration: none;
    font-weight: 600;
}

.s-contact,
.s-btn {
    background: var(--green);
    color: var(--white);
}

.s-btn-ghost {
    background: var(--white);
    color: var(--green);
    border: 1px solid var(--line);
}

.s-hero {
    display: grid;
    gap: 1.25rem;
    padding: 1.5rem 0 1rem;
}

.s-hero img,
.s-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 1.25rem;
    background: var(--line);
}

.s-eyebrow {
    margin: 0 0 0.35rem;
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.s-hero h1,
.s-section h2,
.policy-main h1,
.gift-caption {
    font-family: Fraunces, Georgia, serif;
    font-weight: 560;
    line-height: 1.15;
}

.s-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3.4rem);
}

.s-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.s-section {
    padding: 1.5rem 0;
}

.s-section h2,
.policy-main h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.s-note {
    color: var(--green);
    font-size: 0.92rem;
}

.s-grid,
.s-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.s-card,
.s-benefits article,
.policy-main {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    box-shadow: 0 8px 24px rgba(20, 83, 45, 0.05);
}

.s-card-body,
.s-benefits article {
    padding: 0.85rem;
}

.s-card h3,
.s-benefits h3 {
    margin: 0.35rem 0;
    font-size: 1rem;
}

.s-card p,
.s-benefits p,
.s-section p,
.policy-copy p,
.policy-copy li {
    margin: 0.35rem 0;
}

.s-price {
    font-weight: 700;
    color: var(--green);
}

.s-includes {
    margin-bottom: 0;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.s-card ul {
    margin: 0.25rem 0 0.75rem;
    padding-left: 1.1rem;
    font-size: 0.85rem;
}

.s-badge {
    display: inline-block;
    margin: 0;
    border-radius: 999px;
    background: var(--accent);
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.s-card .s-btn,
.s-contact,
.s-btn {
    width: auto;
}

.s-card .s-btn {
    width: 100%;
    box-sizing: border-box;
}

.s-footer {
    padding: 1.5rem 0 2.5rem;
}

.s-footer p {
    margin: 0.8rem 0 0;
    font-size: 0.9rem;
}

.policy-body {
    min-height: 100vh;
}

.policy-main {
    margin-top: 0.5rem;
    padding: 1.25rem;
}

.policy-copy h2 {
    margin: 1.25rem 0 0.35rem;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.15rem;
}

.policy-copy ul {
    margin: 0.35rem 0 0.75rem;
    padding-left: 1.2rem;
}

@media (min-width: 768px) {
    .s-hero {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
        padding-top: 2.5rem;
    }

    .s-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .s-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .s-benefits {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Gift opening loader */

.gift-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    transition: opacity 0.4s ease;
}

.gift-overlay.is-exit {
    opacity: 0;
    pointer-events: none;
}

.gift-stage {
    position: relative;
    width: 180px;
    height: 190px;
    perspective: 700px;
    animation: gift-enter 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.gift-glow {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 36px;
    bottom: 28px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(134, 239, 172, 0.85), transparent 68%);
    opacity: 0;
}

.gift-stage.is-open .gift-glow {
    animation: gift-glow 0.8s ease forwards;
}

.gift-box {
    position: absolute;
    left: 28px;
    bottom: 18px;
    width: 124px;
    height: 88px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--green);
    box-shadow: 0 14px 30px rgba(20, 83, 45, 0.16);
}

.gift-ribbon {
    position: absolute;
    left: 50%;
    top: 0;
    width: 16px;
    height: 100%;
    transform: translateX(-50%);
    background: var(--accent);
}

.gift-heart {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 1;
    transform: translateX(-50%) scale(0);
}

.gift-stage.is-open .gift-heart {
    animation: gift-heart 0.55s 0.28s cubic-bezier(0.2, 0.8, 0.2, 1.2) forwards;
}

.gift-lid {
    position: absolute;
    left: 18px;
    bottom: 98px;
    width: 144px;
    transform-origin: center top;
    transform-style: preserve-3d;
    transition: transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gift-stage.is-open .gift-lid {
    transform: translateY(-26px) rotateX(68deg);
}

.gift-lid-face {
    position: relative;
    height: 28px;
    border-radius: 8px;
    background: var(--green-2);
    box-shadow: 0 8px 16px rgba(20, 83, 45, 0.12);
}

.gift-lid-face::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 16px;
    height: 100%;
    transform: translateX(-50%);
    background: var(--accent);
}

.gift-bow {
    position: absolute;
    left: 50%;
    top: -18px;
    width: 58px;
    height: 26px;
    transform: translateX(-50%);
}

.gift-bow span {
    position: absolute;
    top: 0;
    width: 26px;
    height: 18px;
    border: 5px solid var(--accent);
    border-radius: 16px 16px 10px 10px;
}

.gift-bow span:first-child {
    left: 0;
    transform: rotate(-18deg);
}

.gift-bow span:last-of-type {
    right: 0;
    transform: rotate(18deg);
}

.gift-bow i {
    position: absolute;
    left: 50%;
    top: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
    transform: translateX(-50%);
}

.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particles i {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-2);
    opacity: 0;
}

.particles i:nth-child(odd) {
    background: var(--accent);
}

.gift-stage.is-open .particles i {
    animation: gift-particle 0.95s ease-out forwards;
}

.gift-caption {
    min-height: 1.6em;
    margin: 0.4rem 0 0;
    font-size: 1.35rem;
    text-align: center;
    opacity: 0;
}

.gift-overlay.is-ready .gift-caption {
    animation: gift-caption 0.4s ease forwards;
}

.gift-skip {
    margin-top: 0.85rem;
    min-height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    padding: 0.4rem 1rem;
    font: inherit;
    cursor: pointer;
}

@keyframes gift-enter {
    0% { opacity: 0; transform: translateY(28px) scale(0.94); }
    58% { opacity: 1; transform: translateY(-8px) scale(1.03); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes gift-glow {
    to { opacity: 1; }
}

@keyframes gift-heart {
    to { transform: translateX(-50%) scale(1); }
}

@keyframes gift-particle {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.45); }
}

@keyframes gift-caption {
    to { opacity: 1; }
}

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

    .gift-stage,
    .gift-lid,
    .gift-heart,
    .gift-glow,
    .gift-caption,
    .gift-overlay,
    .particles i {
        animation: none !important;
        transition: none !important;
    }
}
