/* ==========================================================================
   FunctionAlps showcase — base.css
   Adapted from the Habitline replica base.css: same reset, layout, header,
   buttons, pills, badges and cards; FunctionAlps brand values; footer without
   the newsletter form. Breakpoints: desktop ≥1200 · tablet 810–1199 · phone ≤809.
   ========================================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
html, body { margin: 0; padding: 0; }
body { background: var(--c-page); color: var(--c-ink); font: var(--t-body); overflow-x: clip; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; font: inherit; }
h1, h2, h3, h4 { letter-spacing: -0.01em; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: none; }
img { object-fit: contain; }
button, input { font: inherit; color: inherit; margin: 0; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--fa-gold); outline-offset: 2px; }
.balance, .section-title { text-wrap-style: balance; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.f-display { font-family: var(--f-display); }
.fvs-700 { font-weight: 700; }

/* ---------- helpers ---------- */
.bd { position: relative; }
.bd::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--bd, rgba(26, 26, 22, .1)); border-radius: inherit; pointer-events: none; }
.bd--light { --bd: rgba(255, 255, 255, .2); }
.bd--faint { --bd: rgba(255, 255, 255, .1); }
.fill-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media { position: relative; overflow: hidden; }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- layout ---------- */
.page { display: flex; flex-direction: column; align-items: center; min-height: 100vh; overflow: clip; background: var(--c-page); }
main { width: 100%; display: flex; flex-direction: column; align-items: center; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { width: 100%; position: relative; padding-top: var(--section-top); display: flex; flex-direction: column; align-items: center; }
@media (max-width: 1199.98px) { :root { --section-top: 120px; } }
@media (max-width: 809.98px) { :root { --gutter: 20px; } }

/* ---------- pill (section tagline) ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 20px; background: var(--c-white); border-radius: var(--r-pill); font: var(--t-xs); color: var(--fa-forest); letter-spacing: .02em; white-space: nowrap; flex: none; }
.pill--gold { color: var(--fa-gold); }
.pill--dark { background: rgba(255, 255, 255, .1); color: var(--c-white); }
.section-title { font: var(--t-h2); color: var(--c-ink); }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.section-head--left { align-items: flex-start; text-align: left; }

/* ---------- buttons ----------
   Same markup and hover roll as Habitline; the label box is 24 px (DM Sans 17/24), so labels roll 34 px. */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 15px 32px; border-radius: var(--r-pill); font: 500 17px/24px var(--f-body); white-space: nowrap; flex: none; transition: transform .3s cubic-bezier(.2, 1, .6, 1.1); }
.btn__roll { display: flex; flex-direction: column; gap: 10px; height: 24px; overflow: hidden; }
.btn__label { display: block; flex: none; text-align: center; transition: transform .3s cubic-bezier(.2, 1, .6, 1.1); }
.btn--white { background: var(--c-white); color: var(--c-ink); }
.btn--dark { background: var(--fa-forest); color: var(--c-white); box-shadow: var(--sh-dark-btn); }
.btn--light { background: var(--c-line); color: var(--c-ink); }
.btn--ghost { justify-content: center; background: rgba(255, 255, 255, .55); color: var(--c-ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--store, .btn--center { justify-content: center; }
.btn__icon { flex: none; display: flex; padding-bottom: 3px; }
.btn--ghost .btn__icon { padding: 0 0 2px; }
@media (hover: hover) and (min-width: 1200px) {
  .btn:hover { transform: scale(.95); }
  .btn:hover .btn__label { transform: translateY(-34px); }
  .btn:hover .icon-roll > img { transform: translateY(-30px); }
}
@media (max-width: 1199.98px) {
  .btn { padding: 12px 26px; }
  .btn__roll { height: auto; overflow: visible; }
  .btn__label--hover, .icon-roll__hover { display: none !important; }
  .btn__icon { padding-bottom: 2px; }
  .btn__icon .icon-roll { width: 15px; height: 18px; }
}
@media (max-width: 809.98px) { .btn { font-size: 16px; line-height: 22px; } }

.icon-roll { display: flex; flex-direction: column; gap: 10px; overflow: hidden; flex: none; width: 17px; height: 20px; }
.icon-roll > img { flex: none; width: 100%; height: 100%; object-fit: contain; transition: transform .3s cubic-bezier(.2, 1, .6, 1.1); }

/* ---------- icon badge ---------- */
.badge { display: flex; align-items: center; justify-content: center; flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--accent); box-shadow: var(--glow); overflow: hidden; }
.badge > img { width: 24px; height: 24px; object-fit: contain; }
.badge--md { width: 40px; height: 40px; } .badge--md > img { width: 20px; height: 20px; }
.badge--sm { width: 32px; height: 32px; } .badge--sm > img { width: 16px; height: 16px; }
.is-orange, .is-gold { --accent: var(--c-orange); --glow: var(--glow-orange); }
.is-blue { --accent: var(--c-blue); --glow: var(--glow-blue); }
.is-azure { --accent: var(--c-azure); --glow: var(--glow-azure); }
.is-green, .is-forest { --accent: var(--c-green); --glow: var(--glow-green); }
.is-violet, .is-sage { --accent: var(--c-violet); --glow: var(--glow-violet); }
.is-teal { --accent: var(--c-teal); --glow: var(--glow-teal); }
.is-red { --accent: var(--c-red); --glow: var(--glow-red); }
.is-pink { --accent: var(--c-pink); --glow: var(--glow-pink); }
.is-glass { --accent: rgba(255, 255, 255, .2); --glow: var(--glow-white); }

/* ---------- cards ---------- */
.card { position: relative; background: var(--c-white); border-radius: var(--r-card); box-shadow: var(--sh-card); overflow: hidden; }
.card--dark { background: var(--c-dark-card); color: var(--c-white); }
.card--grey { background: var(--c-line); }
.card__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; }
.card__bg > img, .card__bg > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__shade { position: absolute; inset: 0; z-index: 2; }

/* ---------- header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; }
.nav { position: relative; z-index: 1; display: flex; justify-content: center; padding: 30px 0; }
.nav__container { width: 100%; max-width: var(--container); padding: 0 30px; }
.nav__bar { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; }
.nav__left, .nav__right { display: flex; align-items: center; gap: 6px; }
.nav__brand { display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 18px 0 12px; background: var(--c-white); border-radius: var(--r-card); box-shadow: var(--sh-card); }
.nav__brand img { width: 38px; height: 38px; }
.nav__word { font: 400 22px/1 var(--f-display); color: var(--c-ink); white-space: nowrap; }
.nav__center { display: flex; }
.nav__links { display: flex; align-items: center; gap: 6px; padding: 6px; background: var(--c-white); border-radius: var(--r-card); box-shadow: var(--sh-card); }
.nav__link { display: flex; align-items: center; justify-content: center; height: 50px; padding: 16px 24px; border-radius: var(--r-item); font: var(--t-ui); color: var(--c-ink-2); white-space: nowrap; transition: background-color .2s, color .2s; }
.nav__link:hover { background: var(--c-line); color: var(--c-ink); }
.nav__stores { display: flex; align-items: center; gap: 6px; padding: 6px; background: var(--c-white); border-radius: var(--r-card); box-shadow: var(--sh-card); }
.nav__signin { display: flex; align-items: center; height: 50px; padding: 0 20px; border-radius: var(--r-item); background: var(--fa-forest); color: var(--c-white); font: var(--t-ui); white-space: nowrap; transition: transform .3s cubic-bezier(.2, 1, .6, 1.1), background-color .2s; }
.nav__signin:hover { background: #26482F; }
.nav__store { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; background: var(--c-line); border-radius: var(--r-item); transition: transform .3s cubic-bezier(.2, 1, .6, 1.1); }
.nav__store .icon-roll { width: 20px; height: 22px; }
.nav__store:hover .icon-roll > img { transform: translateY(-32px); }
@media (hover: hover) and (min-width: 1200px) { .nav__store:hover, .nav__signin:hover { transform: scale(.95); } }
.nav__toggle { display: none; position: relative; width: 40px; height: 40px; background: var(--c-line); border-radius: var(--r-xs); flex: none; }
.nav__toggle span { position: absolute; left: 10px; width: 20px; height: 2px; background: var(--c-ink-2); border-radius: 8px; transition: transform .3s, top .3s; }
.nav__toggle span:first-child { top: 15px; } .nav__toggle span:last-child { top: 23px; }
.site-header.is-open .nav__toggle span:first-child { top: 19px; transform: rotate(45deg); }
.site-header.is-open .nav__toggle span:last-child { top: 19px; transform: rotate(-45deg); }
.nav__backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(26, 26, 22, .1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.site-header.is-open .nav__backdrop { opacity: 1; pointer-events: auto; }

@media (max-width: 1199.98px) {
  .nav__container { max-width: 760px; }
  .nav__bar { justify-content: space-between; padding: 10px; background: var(--c-white); border-radius: var(--r-item); box-shadow: rgba(26, 26, 22, .06) 0 8px 18px 0; }
  .nav__brand { height: auto; padding: 0; background: none; box-shadow: none; border-radius: 0; gap: 8px; }
  .nav__brand img { width: 34px; height: 34px; }
  .nav__word { font-size: 20px; }
  .nav__stores { padding: 0; background: none; box-shadow: none; }
  .nav__signin { height: 40px; padding: 0 16px; border-radius: var(--r-xs); }
  .nav__store { width: 40px; height: 40px; border-radius: var(--r-xs); }
  .nav__toggle { display: block; }
  .nav__center { position: absolute; left: 0; right: 0; top: calc(100% + 10px); height: 1px; opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .42s cubic-bezier(.44, 0, .56, 1), transform .42s cubic-bezier(.44, 0, .56, 1); }
  .site-header.is-open .nav__center { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links { flex: 1; flex-direction: column; align-items: stretch; gap: 6px; padding: 12px; border-radius: var(--r-item); box-shadow: rgba(26, 26, 22, .08) 0 8px 18px 0; height: max-content; }
  .nav__link { justify-content: flex-start; height: auto; padding: 8px; border-radius: var(--r-xs); }
}
@media (max-width: 809.98px) {
  .nav { padding: 20px 0; }
  .nav__container { padding: 0 20px; }
  .nav__brand img { width: 30px; height: 30px; }
  .nav__word { font-size: 18px; }
  .nav__signin { height: 32px; padding: 0 12px; font-size: 14px; }
  .nav__store, .nav__toggle { width: 32px; height: 32px; }
  .nav__store .icon-roll { width: 15px; height: 17px; }
  .nav__toggle span { left: 6px; } .nav__toggle span:first-child { top: 12px; } .nav__toggle span:last-child { top: 18px; }
  .site-header.is-open .nav__toggle span:first-child, .site-header.is-open .nav__toggle span:last-child { top: 15px; }
  .nav__center { transform: translateY(-10px); }
}
@media (max-width: 359.98px) { .nav__word { display: none; } }

/* ---------- footer (Habitline footer without the newsletter form) ---------- */
.site-footer { position: relative; z-index: 2; width: 100%; display: flex; justify-content: center; padding: 80px 0 30px; }
.footer__container { width: 100%; max-width: var(--container); padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 60px; }
.footer__top { display: flex; gap: 100px; }
.footer__left { width: 550px; flex: none; display: flex; flex-direction: column; gap: 24px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { width: 88px; height: 88px; object-fit: contain; }
.footer__intro { display: flex; flex-direction: column; gap: 10px; }
.footer__title { font: var(--t-h3); color: var(--c-ink); }
.footer__text { color: var(--c-ink-2); max-width: 420px; }
.footer__right { flex: 1; display: flex; gap: 50px; }
.footer__col { width: 150px; flex: none; display: flex; flex-direction: column; gap: 30px; }
.footer__head { font: var(--t-xs); color: var(--fa-gold); letter-spacing: .04em; text-transform: uppercase; }
.footer__list { display: flex; flex-direction: column; gap: 16px; }
.footer__list li { display: block; }
.footer__list a { color: var(--c-ink-2); text-decoration: underline 2px rgba(255, 255, 255, 0); text-underline-offset: 3px; transition: color .45s cubic-bezier(.44, 0, .56, 1), text-decoration-color .45s cubic-bezier(.44, 0, .56, 1); }
.footer__list a:hover { color: var(--c-ink); text-decoration-color: var(--fa-forest); }
.footer__bottom { position: relative; display: flex; align-items: center; gap: 100px; padding-top: 30px; }
.footer__bottom::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(26, 26, 22, .1); }
.footer__credit { flex: 5 1 0; min-width: 0; color: var(--c-ink-2); }
.footer__note { flex: 3 1 0; text-align: right; font: var(--t-xs); color: var(--c-stone); }
@media (max-width: 1199.98px) {
  .footer__container { gap: 50px; }
  .footer__top { flex-direction: column; gap: 50px; }
  .footer__left { width: 100%; }
  .footer__right { width: 100%; }
  .footer__col { flex: 1; width: auto; gap: 20px; }
  .footer__bottom { gap: 50px; }
}
@media (max-width: 809.98px) {
  .footer__brand img { width: 72px; height: 72px; }
  .footer__right { flex-direction: column; gap: 40px; }
  .footer__col { flex: none; width: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__credit, .footer__note { flex: none; width: 100%; text-align: left; }
}
