/* BreweryDesk marketing landing page.
   Self-contained — does not load app.css. Editorial, typography-driven,
   using the product palette: hop green, deep navy, wheat gold, warm paper. */

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('/fonts/fraunces-latin-var.woff2') format('woff2');
}

:root {
    --paper: #faf8f2;
    --paper-deep: #f2efe4;
    --ink: #14294a;
    --ink-soft: #52607c;
    --hop: #4a7a3a;
    --hop-deep: #3a6230;
    --hop-bright: #7fb069;
    --gold: #b8963f;
    --night: #0f1828;
    --night-elev: #18243a;
    --night-line: #2a3a52;
    --night-text: #e7ebda;
    --night-muted: #94a3b8;
    --line: #e2ddcc;
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --shadow-lg: 0 30px 60px -18px rgba(20, 41, 74, .28), 0 10px 24px -12px rgba(20, 41, 74, .18);
    --shadow-md: 0 18px 40px -16px rgba(20, 41, 74, .25);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 780px; }

/* ---------- Type ---------- */

h1, h2, blockquote p, .pricing__price {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.08;
    text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 18px; }
h1 em, h2 em, .final em { font-style: italic; color: var(--hop-bright); }
h2 em { color: var(--hop); }

.kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hop);
    margin-bottom: 14px;
}
.kicker--dark { color: var(--hop-bright); }

.lede {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--ink-soft);
    max-width: 44em;
    margin-top: 18px;
}
.lede--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    border: 1.5px solid transparent;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease),
                background-color .18s var(--ease), border-color .18s var(--ease);
}
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--lg { padding: 14px 28px; font-size: 17px; }
.btn--block { display: block; text-align: center; }
.btn--solid { background: var(--hop); color: #fff; box-shadow: 0 6px 18px -6px rgba(58, 98, 48, .55); }
.btn--solid:hover { background: var(--hop-deep); transform: translateY(-2px); box-shadow: 0 10px 24px -6px rgba(58, 98, 48, .6); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); transform: translateY(-2px); }

/* ---------- Topbar ---------- */

.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    padding: 14px 0;
    transition: background-color .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
}
.topbar.is-scrolled {
    background: rgba(15, 24, 40, .92);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
    padding: 10px 0;
}
.topbar__row { display: flex; align-items: center; gap: 28px; }

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}
.brand img { border-radius: 6px; }
.brand em { font-style: normal; font-weight: 500; color: var(--hop-bright); }

.topbar__nav { display: flex; gap: 22px; margin-left: 12px; }
.topbar__nav a {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
}
.topbar__nav a:hover { color: #fff; }

.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.topbar__signin { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.topbar__signin:hover { color: #fff; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    background: var(--night);
    color: #fff;
    padding: 158px 0 0;
    overflow: hidden;
}
.hero__bg { position: absolute; inset: -12% 0; z-index: 0; }
.hero__bg img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: .5;
}
.hero__bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(15, 24, 40, .72) 0%,
        rgba(15, 24, 40, .45) 40%,
        rgba(15, 24, 40, .88) 78%,
        var(--night) 100%);
}
.hero__inner { position: relative; z-index: 1; max-width: 880px; text-align: center; }
.hero .lede { color: rgba(231, 235, 218, .85); margin-left: auto; margin-right: auto; }

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.trust { margin-top: 18px; font-size: 13.5px; color: rgba(231, 235, 218, .6); }

.hero__shot { position: relative; z-index: 1; margin-top: 64px; padding-bottom: 90px; }
.hero__kpis {
    position: absolute;
    width: min(58%, 620px);
    left: -8px;
    bottom: 34px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, .35);
}

/* Browser frame around screenshots */
.frame {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(20, 41, 74, .1);
}
.frame__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    background: var(--paper-deep);
    border-bottom: 1px solid var(--line);
}
.frame__bar i { width: 11px; height: 11px; border-radius: 50%; background: #d9d4c2; }
.frame__bar span {
    margin: 0 auto;
    font-size: 12px;
    color: var(--ink-soft);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 2px 22px;
}
.frame--dark { background: var(--night-elev); border-color: var(--night-line); }
.frame--dark .frame__bar { background: var(--night); border-color: var(--night-line); }
.frame--dark .frame__bar i { background: var(--night-line); }

/* ---------- Capability strip ---------- */

.strip { background: var(--night); color: var(--night-muted); padding: 20px 0 26px; }
.strip__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 0;
    justify-content: center;
}
.strip__row span {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.strip__row span + span::before { content: '·'; margin: 0 14px; color: var(--hop-bright); }

/* ---------- Sections ---------- */

.section { padding: 110px 0; }
.section--dark { background: var(--night); color: var(--night-text); }
.section--dark h2 { color: #fff; }
.section--dark p { color: var(--night-muted); }

/* ---------- Feature grid ---------- */

.grid--features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 54px;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 26px 24px 28px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #d5cfba; }
.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 10px;
    background: #eef2e6;
    color: var(--hop-deep);
    margin-bottom: 16px;
}
.card__icon svg { stroke-width: 1.8; }
.card h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }

.chips { margin-top: 46px; }
.chips__label {
    font-size: 12px; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.chips ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chips li {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13.5px; font-weight: 500;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    border-radius: 30px;
    padding: 7px 15px;
}
.chips li svg { color: var(--hop); }

/* ---------- Tour (scrollytelling) ---------- */

.tour { padding: 110px 0 40px; background: var(--paper-deep); }
.tour__layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    margin-top: 30px;
}
.tour__steps { padding: 8vh 0 30vh; }
.tour__step {
    padding: 34px 0;
    border-top: 1px solid var(--line);
    opacity: .38;
    transition: opacity .4s var(--ease);
    min-height: 46vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tour__step:first-child { border-top: 0; }
.tour__step.is-active { opacity: 1; }
.tour__step h3 { font-size: 22px; margin-bottom: 12px; letter-spacing: -0.01em; }
.tour__step h3 span {
    font-family: var(--serif);
    font-style: italic;
    color: var(--gold);
    margin-right: 8px;
    font-weight: 500;
}
.tour__step p { color: var(--ink-soft); }
.tour__step ul { margin-top: 14px; list-style: none; }
.tour__step li {
    padding-left: 26px;
    position: relative;
    font-size: 14.5px;
    margin-bottom: 7px;
    color: var(--ink);
}
.tour__step li::before {
    content: '';
    position: absolute; left: 2px; top: 7px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--hop);
}
.tour__media { position: relative; }
.tour__sticky { position: sticky; top: 13vh; padding-bottom: 60px; }
.tour__imgs { position: relative; aspect-ratio: 1600 / 1000; }
.tour__imgs img {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity .5s var(--ease);
}
.tour__imgs img.is-active { opacity: 1; }

/* ---------- Split sections ---------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 70px;
    align-items: center;
}
.split--flip .split__copy { order: 2; }
.split--flip .split__media { order: 1; }
.split__media { position: relative; }
.split__float {
    position: absolute;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}
.split__float--ferment {
    width: 62%;
    right: -18px; bottom: -34px;
    border: 1px solid var(--night-line);
}
.split__float--alerts {
    width: 74%;
    left: -26px; bottom: -38px;
    border: 1px solid var(--line);
}

.ticks { list-style: none; margin-top: 22px; }
.ticks li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 15.5px;
}
.ticks li::before {
    content: '';
    position: absolute; left: 0; top: 4px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--hop);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.section--dark .ticks li::before { background: var(--hop-bright); }
.section--dark .ticks li { color: var(--night-text); }

/* ---------- Photo band ---------- */

.band {
    position: relative;
    overflow: hidden;
    background: var(--night);
    color: #fff;
    padding: 130px 0;
}
.band__bg { position: absolute; inset: -14% 0; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .38; }
.band__bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(15, 24, 40, .88) 15%, rgba(15, 24, 40, .35) 70%);
}
.band__inner { position: relative; }
.band blockquote p {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    font-weight: 600;
}
.band blockquote footer {
    margin-top: 20px;
    max-width: 34em;
    color: rgba(231, 235, 218, .78);
    font-size: 16.5px;
}

/* ---------- Pricing ---------- */

.section--pricing { text-align: center; background: var(--paper); }
.pricing { max-width: 520px; margin: 44px auto 0; }
.pricing__toggle {
    display: inline-flex;
    background: var(--paper-deep);
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 4px;
    margin-bottom: 28px;
}
.pricing__toggle button {
    font: 600 14.5px var(--sans);
    color: var(--ink-soft);
    background: transparent;
    border: 0;
    border-radius: 24px;
    padding: 9px 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.pricing__toggle button.is-active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(20, 41, 74, .12);
}
.pill {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--hop-deep);
    background: #e4eeda;
    border-radius: 12px;
    padding: 2px 9px;
}

.pricing__card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 44px 44px 36px;
    text-align: left;
}
.pricing__price {
    font-size: 64px;
    text-align: center;
    line-height: 1;
}
.pricing__price .cur { font-size: .55em; vertical-align: .5em; margin-right: 2px; color: var(--ink-soft); }
.pricing__price small {
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0;
    margin-left: 6px;
}
.pricing__note { text-align: center; color: var(--ink-soft); font-size: 14px; margin-top: 10px; }

.pricing__list { list-style: none; margin: 30px 0 32px; }
.pricing__list li {
    position: relative;
    padding: 8px 0 8px 32px;
    font-size: 15px;
    border-bottom: 1px dashed var(--line);
}
.pricing__list li:last-child { border-bottom: 0; }
.pricing__list li::before {
    content: '';
    position: absolute; left: 2px; top: 12px;
    width: 15px; height: 15px;
    background: var(--hop);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pricing__fine { font-size: 13px; color: var(--ink-soft); text-align: center; margin-top: 16px; }

/* ---------- FAQ ---------- */

.section--faq { background: var(--paper-deep); }
.faq { margin-top: 34px; }
.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 16px;
    padding: 18px 52px 18px 22px;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    position: absolute;
    right: 20px; top: 50%;
    transform: translateY(-50%);
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--hop);
    transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Final CTA + footer ---------- */

.final {
    background: var(--night);
    color: #fff;
    text-align: center;
    padding: 120px 0;
}
.final h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cta-row--center { justify-content: center; }

.footer { background: var(--night); border-top: 1px solid var(--night-line); padding: 30px 0; color: var(--night-muted); }
.footer__row {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}
.brand--footer { font-size: 16px; }
.footer nav { display: flex; gap: 18px; }
.footer nav a { color: var(--night-muted); text-decoration: none; font-size: 13.5px; }
.footer nav a:hover { color: #fff; }
.footer p { margin-left: auto; font-size: 13px; }
.footer p a { color: inherit; }

/* ---------- Reveal-on-scroll ---------- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal.in { opacity: 1; transform: none; }

[data-parallax] { will-change: transform; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
    .grid--features { grid-template-columns: repeat(2, 1fr); }
    .split, .tour__layout { grid-template-columns: 1fr; gap: 40px; }
    .split--flip .split__copy { order: 1; }
    .split--flip .split__media { order: 2; }
    .tour__steps { padding: 0; }
    .tour__step { min-height: 0; opacity: 1; }
    .tour__sticky { position: static; }
    .split__float--ferment { right: 0; bottom: -22px; }
    .split__float--alerts { left: 0; bottom: -24px; }
}

@media (max-width: 720px) {
    .topbar__nav, .topbar__signin { display: none; }
    .hero { padding-top: 120px; }
    .grid--features { grid-template-columns: 1fr; }
    .section { padding: 70px 0; }
    .hero__kpis { display: none; }
    .pricing__card { padding: 32px 24px 28px; }
    .footer__row { justify-content: center; text-align: center; }
    .footer p { margin-left: 0; }
    .strip__row span + span::before { margin: 0 8px; }
}

/* Capture/testing mode (?noanim): collapse viewport-relative sizing so a
   single tall headless screenshot shows every section. */
.flat .tour__step { min-height: 0; opacity: 1; }
.flat .tour__steps { padding: 0; }
.flat .tour__sticky { position: static; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .tour__imgs img, .tour__step, .btn, .card { transition: none; }
    [data-parallax] { transform: none !important; }
}
