:root {
    --bg: #f6f2eb;
    --surface: #fbf8f2;
    --line: #e5dfd4;
    --text: #171717;
    --muted: #5d625d;
    --accent: #146b61;
    --accent-soft: #e7f0ed;
    --shopify: #95bf47;
    --shopify-soft: #edf6dc;
    --shopify-line: #c8dca0;
    --web-red: #d74b3f;
    --web-red-soft: #fae5e2;
    --web-red-line: #e9b8b2;
    --shadow: 0 18px 40px rgba(24, 26, 24, 0.06);
    --radius-lg: 32px;
    --radius-md: 22px;
}

html {
    scroll-behavior: smooth;
}

body.site-body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: "Public Sans", sans-serif;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
}

a:hover {
    color: inherit;
    text-decoration: none;
}

.site-main {
    padding-bottom: 2rem;
}

.site-nav {
    padding: 1.1rem 0;
    background: transparent;
}

.site-nav .container {
    background: #fbf8f2;
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow);
    padding: 0.45rem 0.85rem 0.45rem 1rem;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
}

.site-brand:hover {
    color: var(--text);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 2rem;
    flex-shrink: 0;
}

.brand-mark-image {
    display: block;
    width: 100%;
    height: auto;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-size: 1rem;
}

.brand-tag {
    margin-top: 0.2rem;
    color: var(--muted);
    font-family: "Public Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-tag--solo {
    margin-top: 0;
}

.site-nav .navbar-toggler {
    border: 0;
    box-shadow: none;
}

.site-nav .navbar-nav {
    gap: 0.25rem;
    align-items: center;
}

.site-nav .nav-link {
    color: var(--muted) !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.7rem 0.95rem !important;
    border-radius: 999px;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
    color: var(--text) !important;
    background: #f4efe6;
    transform: translateY(-1px);
}

.site-nav .dropdown-menu {
    min-width: 18rem;
    margin-top: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    background: #fbf8f2;
    padding: 0.65rem;
}

.site-nav .dropdown-item {
    border-radius: 14px;
    color: var(--text);
    padding: 0.85rem 1rem;
    white-space: normal;
}

.dropdown-section-label {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    padding: 0.4rem 1rem 0.55rem;
    text-transform: uppercase;
}

.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus {
    background: var(--accent-soft);
}

.nav-cta {
    margin-left: 0.5rem;
    border-radius: 999px;
    background: #171717;
    color: #faf7ef;
    font-weight: 600;
    padding: 0.82rem 1.15rem;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.nav-cta:hover {
    color: #faf7ef;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(23, 23, 23, 0.18);
}

.eyebrow {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-section,
.section-block,
.page-section {
    padding: 2rem 0 1.5rem;
}

.hero-shell,
.section-shell,
.page-shell,
.contact-shell {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.hero-shell {
    overflow: hidden;
}

.hero-content {
    padding: 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.hero-banner {
    width: 100%;
    overflow: hidden;
}

.hero-banner--shell {
    border-bottom: 1px solid var(--line);
    margin-bottom: 2rem;
}

.hero-banner-image {
    display: block;
    width: 100%;
    height: clamp(240px, 32vw, 360px);
    object-fit: cover;
    object-position: center;
}

.hero-copy h1,
.page-shell h1,
.section-header h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.96;
}

.hero-lead,
.page-lead,
.section-header p,
.contact-copy {
    max-width: 42rem;
    margin-top: 1.35rem;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.btn-pill-dark,
.btn-pill-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.2rem;
    border-radius: 999px;
    padding: 0.9rem 1.35rem;
    font-weight: 600;
}

.btn-pill-dark {
    background: #171717;
    color: #fbf7ef;
}

.btn-pill-dark:hover {
    color: #fbf7ef;
}

.btn-pill-light {
    background: #f6f1e8;
    border: 1px solid var(--line);
    color: var(--text);
}

.btn-pill-light:hover {
    color: var(--text);
}

.section-shell,
.page-shell,
.contact-shell {
    padding: 3rem;
}

.contact-shell {
    display: grid;
    gap: 1.6rem;
}

.page-media {
    margin-top: 2rem;
    overflow: hidden;
    border: 1px solid rgba(22, 22, 22, 0.08);
    border-radius: 24px;
    background: #fffdf9;
    box-shadow: 0 10px 24px rgba(24, 26, 24, 0.06);
}

.page-image {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 2;
    object-fit: cover;
    object-position: center;
}

.section-header {
    margin-bottom: 1.6rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.app-grid,
.principles-grid,
.contact-grid,
.footer-grid {
    display: grid;
    gap: 1.2rem;
}

.product-groups {
    display: grid;
    gap: 1.2rem;
}

.product-group {
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #f9f5ee;
}

.product-group--shopify {
    border-color: var(--shopify-line);
    background: #f3f8e8;
}

.product-group--web {
    border-color: var(--web-red-line);
    background: #fcf0ee;
}

.group-header {
    margin-bottom: 1.4rem;
}

.group-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 0.95rem;
    padding: 0.45rem 0.7rem;
    text-transform: uppercase;
}

.group-label--shopify {
    background: var(--shopify);
    color: #ffffff;
}

.group-label--web {
    background: var(--web-red);
    color: #ffffff;
}

.group-header h3 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.group-header p {
    margin: 0.85rem 0 0;
    color: var(--muted);
    line-height: 1.75;
}

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

.app-grid--shopify {
    grid-template-columns: 1fr;
}

.app-grid--web {
    grid-template-columns: 1fr;
}

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

.footer-grid {
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.72fr));
    align-items: start;
}

.app-card,
.principle-card,
.contact-card {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.app-card {
    padding: 0;
}

.principle-card,
.contact-card {
    padding: 1.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fbf8f2;
}

.app-card--sage {
    background: transparent;
}

.app-card--sand {
    background: transparent;
}

.app-card--mist {
    background: transparent;
}

.app-card + .app-card {
    padding-top: 1.8rem;
    border-top: 1px solid rgba(23, 23, 23, 0.09);
}

.app-index {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.1rem;
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1;
    text-transform: uppercase;
}

.app-index::after {
    content: "";
    display: block;
    width: 3rem;
    height: 1px;
    background: currentColor;
    opacity: 0.4;
}

.app-card--sage .app-index,
.app-card--sand .app-index {
    color: #4d7f1b;
}

.app-card--sand {
    border-top-color: rgba(149, 191, 71, 0.34);
}

.app-card--mist .app-index {
    color: #a12d24;
}

.app-card h3,
.principle-card h3,
.contact-card h3,
.footer-title {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.contact-banner {
    margin: -3rem -3rem 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.contact-banner-image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}

.app-visual {
    margin-top: 1rem;
    overflow: hidden;
    border: 1px solid rgba(22, 22, 22, 0.08);
    border-radius: 18px;
    background: #fffdf9;
    box-shadow: 0 10px 24px rgba(24, 26, 24, 0.06);
}

.app-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center top;
}

.app-visual--edge {
    background: #fffdf9;
}

.app-card--sage .app-visual,
.app-card--sand .app-visual {
    border-color: rgba(149, 191, 71, 0.35);
    background: #f8fceb;
}

.app-card--mist .app-visual {
    border-color: rgba(215, 75, 63, 0.24);
    background: #fff4f2;
}

.app-image--fit {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.app-visual--carousel {
    padding: 0;
    background: #f7fafb;
}

.app-card--mist .app-visual--carousel,
.app-card--mist .app-carousel-image {
    background: #fff4f2;
}

.app-carousel {
    border-radius: 18px;
}

.app-carousel .carousel-inner {
    border-radius: 18px;
}

.app-carousel-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    object-position: center top;
    background: #f7fafb;
}

.app-carousel-indicators {
    bottom: 0.45rem;
}

.app-carousel-indicators li {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    border: 0;
    border-radius: 999px;
    background-color: rgba(23, 23, 23, 0.22);
}

.app-carousel-indicators .active {
    background-color: rgba(23, 23, 23, 0.78);
}

.app-carousel-control {
    width: 15%;
    opacity: 1;
}

.app-carousel-control .carousel-control-prev-icon,
.app-carousel-control .carousel-control-next-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background-color: rgba(23, 23, 23, 0.72);
    background-size: 48% 48%;
    box-shadow: 0 10px 20px rgba(23, 23, 23, 0.16);
}

.app-card p,
.principle-card p,
.contact-card p,
.app-meta,
.section-note,
.footer-copy,
.footer-stack {
    margin-top: 0.95rem;
    color: var(--muted);
    line-height: 1.75;
}

.app-meta {
    display: block;
    font-size: 0.9rem;
}

.app-points {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: var(--muted);
}

.app-points li {
    margin-top: 0.55rem;
    line-height: 1.65;
}

.app-link,
.inline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.1rem;
    color: var(--text);
    font-weight: 700;
}

.app-card--sage .app-link,
.app-card--sand .app-link {
    color: #34601c;
}

.app-card--mist .app-link {
    color: #a12d24;
}

.app-link::after,
.inline-link::after {
    content: "↗";
    font-size: 0.95rem;
}

.section-note {
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.site-footer {
    padding: 0 0 2rem;
}

.footer-shell {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #fbf8f2;
    box-shadow: var(--shadow);
    padding: 1.6rem 2rem;
}

.footer-logo {
    display: block;
    width: 8rem;
    max-width: 100%;
    height: auto;
    margin-bottom: 0.8rem;
}

.footer-stack {
    display: grid;
    gap: 0.35rem;
}

.footer-stack a:hover {
    color: var(--text);
}

.fade-up {
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp 700ms ease forwards;
}

.delay-1 {
    animation-delay: 120ms;
}

.delay-2 {
    animation-delay: 220ms;
}

.delay-3 {
    animation-delay: 320ms;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .site-nav .container {
        border-radius: 30px;
        padding: 0.75rem 1rem;
    }

    .site-nav .navbar-nav {
        align-items: stretch;
        padding-top: 0.75rem;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: center;
    }

    .hero-shell,
    .section-shell,
    .page-shell,
    .contact-shell,
    .footer-shell {
        padding: 2rem;
    }

    .hero-shell {
        padding: 0;
    }

    .hero-content {
        padding: 2rem;
    }

    .contact-banner {
        margin: -2rem -2rem 0;
    }

    .hero-grid,
    .app-grid,
    .principles-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .hero-copy h1,
    .page-shell h1,
    .section-header h2 {
        font-size: 2.35rem;
    }

    .hero-shell,
    .section-shell,
    .page-shell,
    .contact-shell,
    .footer-shell {
        border-radius: 24px;
    }

    .hero-shell {
        padding: 0;
    }

    .section-shell,
    .page-shell,
    .contact-shell,
    .footer-shell {
        padding: 1.5rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-banner--shell {
        margin-bottom: 1.5rem;
    }

    .contact-banner {
        margin: -1.5rem -1.5rem 0;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
    }

    .contact-banner-image {
        height: 180px;
    }

    .hero-actions,
    .contact-actions {
        flex-direction: column;
    }

    .btn-pill-dark,
    .btn-pill-light,
    .nav-cta {
        width: 100%;
    }
}
