/* Wish Me Coffee — promo site styles */
:root {
    --bg: #fbf4e9;
    --ink: #3a281e;
    --ink-deep: #3a1f14;
    --ink-deeper: #3a1f12;
    --brown: #5a3a26;
    --brown-2: #6a4a35;
    --brown-3: #5b4636;
    --muted: #6a4630;
    --muted-2: #a07a4f;
    --muted-3: #8a6446;
    --gold: #f2b24b;
    --amber: #b9773f;
    --orange: #c96f3d;
    --cup-ar: 1024 / 1288;
    /* standard bot image aspect (portrait) */
    --serif: "Newsreader", Georgia, serif;
    --sans: "Mulish", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

.page {
    position: relative;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
}

/* ---------- keyframes ---------- */
@keyframes steamRise {
    0% {
        opacity: 0;
        transform: translateY(8px) scaleY(.7)
    }

    25% {
        opacity: .7
    }

    100% {
        opacity: 0;
        transform: translateY(-42px) scaleY(1.5)
    }
}

@keyframes brewIn {
    0% {
        opacity: 0;
        transform: translateY(22px) scale(.94)
    }

    60% {
        opacity: 1
    }

    100% {
        opacity: 1;
        transform: none
    }
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0) rotate(-.5deg)
    }

    50% {
        transform: translateY(-12px) rotate(.5deg)
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(16px)
    }

    100% {
        opacity: 1;
        transform: none
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 22px 60px -18px rgba(184, 90, 55, .55)
    }

    50% {
        box-shadow: 0 26px 74px -14px rgba(232, 169, 60, .65)
    }
}

/* ---------- shared ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.tg-icon {
    flex: none;
}

.btn-tg {
    padding: 16px 30px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    font-weight: 800;
    font-size: 17px;
    box-shadow: 0 10px 24px -12px rgba(58, 40, 30, .9);
}

.btn-tg--sm {
    gap: 8px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 15px;
}

.btn-tg--pulse {
    animation: pulseGlow 4s ease-in-out infinite;
}

.btn-ghost {
    gap: 8px;
    padding: 16px 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    color: #4a2f20;
    font-weight: 700;
    font-size: 16px;
    border: 1px solid rgba(58, 40, 30, .16);
    text-decoration: none;
}

.btn-gold {
    padding: 17px 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: var(--ink-deeper);
    text-decoration: none;
    font-weight: 800;
    font-size: 17px;
    box-shadow: 0 20px 46px -18px rgba(242, 178, 75, .7);
}

/* ---------- header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(18px, 5vw, 60px);
    background: rgba(251, 244, 233, .78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(58, 40, 30, .08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}

.brand-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 16px -6px rgba(184, 119, 63, .7);
    background: #f3e6d2;
}

.brand-name {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: .2px;
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 7vw, 96px) clamp(18px, 5vw, 60px) clamp(64px, 9vw, 120px);
    background: linear-gradient(158deg, #fbe9d0 0%, #f7cd93 30%, #eea864 60%, #dc8449 84%, var(--orange) 100%);
}

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

.hero-glow--tr {
    top: -8%;
    right: -6%;
    width: 46%;
    height: 70%;
    background: radial-gradient(circle, rgba(255, 244, 224, .85), rgba(255, 244, 224, 0) 70%);
}

.hero-glow--bl {
    bottom: -14%;
    left: -8%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 157, 92, .5), rgba(255, 157, 92, 0) 70%);
}

.hero-grid {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

.hero-copy {
    min-width: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(58, 40, 30, .12);
    color: #4a2f20;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-title {
    /* font-family: "Lobster", var(--serif), cursive; */
    /* font-family: "Orelega One", var(--serif), cursive; */
    font-family: "Bagel Fat One", var(--serif), cursive;

    font-weight: 400;
    line-height: 1.04;
    letter-spacing: 0;
    font-size: clamp(3rem, 8.5vw, 6.4rem);
    font-size: 7vh;
    /* margin: 18px 0 0; */
    color: var(--ink-deep);
    text-wrap: balance;
}

.hero-sub {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.55;
    width: fit-content;
    max-width: 100%;
    /* max-width: 34ch; */
    margin: 22px 0 0;
    color: var(--brown);
    font-weight: 500;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero-langs {
    margin-top: 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .3px;
}

.hero-art {
    position: relative;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.hero-float {
    position: relative;
    animation: floaty 7s ease-in-out infinite;
}

.steam {
    position: absolute;
    top: -4%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    pointer-events: none;
    z-index: 3;
}

.steam span {
    width: 8px;
    height: 54px;
    border-radius: 8px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0), rgba(255, 255, 255, .8));
    filter: blur(2px);
    animation: steamRise 3.1s ease-in-out infinite;
}

.steam span:nth-child(2) {
    animation-delay: .7s;
}

.steam span:nth-child(3) {
    animation-delay: 1.4s;
}

.hero-img {
    display: block;
    width: min(460px, 80vw);
    height: auto;
    border-radius: 26px;
    box-shadow: 0 40px 80px -30px rgba(90, 45, 20, .75), 0 0 0 8px rgba(255, 255, 255, .5);
    background: #f3e6d2;
}

/* ---------- sections & headings ---------- */
.section {
    position: relative;
    padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 60px);
}

.section--alt {
    padding: clamp(48px, 7vw, 96px) clamp(18px, 5vw, 60px);
    background: linear-gradient(180deg, #f3e7d4, #efe0c9);
}

.section--features {
    padding: clamp(52px, 7vw, 96px) clamp(18px, 5vw, 60px);
}

.head {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.eyebrow {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--amber);
    margin: 0;
}

.section-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.05;
    margin: 6px 0 0;
    color: var(--ink);
    text-wrap: balance;
}

.section-title--sm {
    font-size: clamp(2rem, 4.6vw, 3rem);
    line-height: 1.06;
    margin: 0;
}

.section-sub {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.6;
    color: var(--brown-2);
    margin: 16px auto 0;
}

.section-sub--w46 {
    max-width: 46ch;
}

.section-sub--w44 {
    max-width: 44ch;
}

/* ---------- brew demo ---------- */
/* logo medallion straddling the hero(brown) / brew(cream) seam, with steam rising */
#brew {
    padding-top: clamp(78px, 9vw, 124px);
}

.brew-emblem {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.brew-emblem-img {
    display: block;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 6px solid var(--bg);
    box-shadow: 0 18px 40px -16px rgba(90, 45, 20, .55);
}

.brew-emblem .steam {
    top: -46px;
    gap: 11px;
}

.brew-card {
    max-width: 560px;
    margin: 34px auto 0;
    background: linear-gradient(180deg, #ffffff, #fdf6ea);
    border: 1px solid rgba(58, 40, 30, .09);
    border-radius: 30px;
    padding: clamp(20px, 4vw, 34px);
    box-shadow: 0 30px 70px -34px rgba(90, 50, 20, .5);
}

.toggles {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.toggle-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 9px;
}

.toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    border-radius: 999px;
    border: 1px solid rgba(58, 40, 30, .18);
    background: rgba(255, 255, 255, .65);
    color: var(--brown-3);
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all .18s ease;
}

.toggle .emoji {
    font-size: 16px;
}

.toggle[aria-pressed="true"] {
    border-color: var(--amber);
    background: var(--ink);
    color: var(--bg);
    font-weight: 800;
}

.cup {
    position: relative;
    margin-top: 22px;
    border-radius: 24px;
    overflow: hidden;
    background: #f3e6d2;
    aspect-ratio: var(--cup-ar);
    border: 1px solid rgba(58, 40, 30, .08);
}

.cup-fill {
    position: absolute;
    inset: 0;
    animation: brewIn .7s cubic-bezier(.2, .8, .25, 1) both;
}

.cup-fill img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cup-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 26px;
}

.cup-placeholder .cup-emoji {
    font-size: 46px;
    filter: grayscale(.2);
    opacity: .7;
}

.cup-placeholder p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--muted-3);
    margin: 10px 0 0;
    max-width: 24ch;
}

.wish {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 6px 4px;
    text-align: center;
}

.wish p {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    line-height: 1.4;
    color: #4a2f20;
    margin: 0;
    animation: fadeUp .5s ease both;
    text-wrap: balance;
}

.brew-btn {
    width: 100%;
    margin-top: 8px;
    padding: 18px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: var(--ink-deeper);
    font-family: var(--sans);
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 18px 40px -16px rgba(201, 111, 61, .8);
    transition: transform .12s ease;
}

.brew-btn:hover {
    transform: translateY(-2px);
}

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

/* ---------- à la carte ---------- */
.cards {
    max-width: 900px;
    margin: 34px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.card {
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(58, 40, 30, .09);
    box-shadow: 0 24px 56px -30px rgba(90, 50, 20, .5);
}

.card-media {}

.card-fill {
    animation: brewIn .6s cubic-bezier(.2, .8, .25, 1) both;
}

.card-fill img {
    display: block;
    width: 100%;
    aspect-ratio: var(--cup-ar);
    object-fit: cover;
}

.card-body {
    padding: 22px 22px 24px;
}

.card-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.6rem;
    margin: 0;
}

.card-title--trippy {
    color: #5a2f7a;
}

.card-title--decadence {
    color: #8a5a24;
}

.card-desc {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--brown-2);
    margin: 8px 0 0;
    min-height: 2.6em;
}

.special-btn {
    margin-top: 16px;
    padding: 11px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--sans);
    font-weight: 800;
    font-size: 14px;
    transition: all .18s ease;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
}

.special-btn[aria-pressed="true"] {
    background: transparent;
    color: var(--accent);
}

.special-btn.trippy {
    --accent: #5a2f7a;
}

.special-btn.decadence {
    --accent: #8a5a24;
}

/* ---------- features ---------- */
.feat-grid {
    max-width: 1040px;
    margin: 34px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.feat {
    background: #fff;
    border: 1px solid rgba(58, 40, 30, .08);
    border-radius: 22px;
    padding: 26px 24px;
    box-shadow: 0 18px 44px -30px rgba(90, 50, 20, .5);
}

.feat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 24px;
    background: radial-gradient(circle at 35% 30%, #ffe4b3, var(--gold));
}

.feat-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.3rem;
    margin: 16px 0 0;
    color: var(--ink);
}

.feat-desc {
    font-size: .98rem;
    line-height: 1.55;
    color: var(--brown-2);
    margin: 8px 0 0;
}

.cmd {
    font-weight: 700;
    color: var(--amber);
}

/* ---------- footer ---------- */
.footer {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 60px) clamp(40px, 5vw, 64px);
    background: linear-gradient(160deg, var(--ink), #241009);
    color: #f6ecdd;
    text-align: center;
}

.footer-glow {
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 178, 75, .22), rgba(242, 178, 75, 0) 70%);
    pointer-events: none;
}

.footer-inner {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.footer-emoji {
    font-size: 40px;
}

.footer-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.08;
    margin: 14px 0 0;
    color: var(--bg);
    text-wrap: balance;
}

.footer-sub {
    font-size: 1.1rem;
    line-height: 1.55;
    color: #d8bfa4;
    margin: 16px 0 0;
}

.footer-cta {
    margin-top: 28px;
}

.footer-handle-row {
    margin-top: 22px;
}

.footer-handle {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

.footer-fine {
    position: relative;
    margin-top: clamp(36px, 5vw, 56px);
    padding-top: 22px;
    border-top: 1px solid rgba(246, 236, 221, .14);
    font-size: 13px;
    color: #a78a70;
    letter-spacing: .3px;
}

.tip {
    position: relative;
    cursor: help;
    text-decoration: underline dotted;
    text-underline-offset: 2px;
}

.tip-bubble {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: #f6ecdd;
    color: var(--ink);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease, visibility .15s ease;
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6);
    z-index: 90;
}

.tip-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #f6ecdd;
}

.tip:hover .tip-bubble,
.tip:focus-within .tip-bubble {
    opacity: 1;
    visibility: visible;
}

/* ---------- grain overlay ---------- */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 80;
    opacity: .05;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }

    html {
        scroll-behavior: auto;
    }
}

@media (width <= 900px) {
    span.open-telegram-inner {
        display: none;
    }

    .badge {
        font-size: 10px;
    }

    .hero-grid {
        display: block;
    }

    .hero-art {
        margin: 5rem 0;
    }

    .hero-sub {
        max-width: fit-content;
    }
    
    .big-buttons-group {
        justify-content: center;
    }
}


/* ---------- cookie consent banner ---------- */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: min(560px, calc(100% - 24px));
    padding: 12px 16px;
    background: var(--ink);
    color: #f6ecdd;
    border-radius: 14px;
    box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .5);
    font-size: 13px;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-text {
    margin: 0;
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex: none;
}

.cookie-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-family: var(--sans);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
}

.cookie-btn--accept {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: var(--ink-deeper);
}

.cookie-btn--ghost {
    background: transparent;
    color: #d8bfa4;
    border: 1px solid rgba(246, 236, 221, .25);
}

@media (max-width: 520px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 10px;
    }

    .cookie-actions {
        margin-left: 0;
        justify-content: center;
    }
}

/* ---------- legal / privacy page ---------- */
.legal {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(40px, 7vw, 88px) clamp(18px, 5vw, 40px) clamp(56px, 8vw, 96px);
}

.legal h1 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin: 0 0 4px;
    color: var(--ink);
}

.legal-updated {
    color: var(--muted-2);
    font-size: 14px;
    margin: 0 0 28px;
}

.legal h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.35rem;
    margin: 30px 0 6px;
    color: var(--ink);
}

.legal p {
    line-height: 1.65;
    color: var(--brown-2);
    margin: 8px 0 0;
}

.legal a {
    color: var(--amber);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal code {
    background: rgba(58, 40, 30, .07);
    padding: 1px 5px;
    border-radius: 5px;
    font-size: .9em;
}

.legal-back {
    margin-top: 32px;
    font-weight: 700;
}

.cookie-banner a {
    color: var(--gold);
    text-decoration: underline;
    white-space: nowrap;
}

.footer-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
