:root {
    --green: #4a8f5c;
    --green-dark: #37704a;
    --green-light: #eaf4ec;
    --cream: #f7f4ec;
    --charcoal: #2b2b2b;
    --muted: #5c5c5c;
    --red: #c94a3b;
    --amber: #f1b24a;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    --radius: 14px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
    image-orientation: from-image;
}

a {
    color: var(--green-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(247, 244, 236, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: 1150px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.5px;
    color: var(--charcoal);
}

.brand img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--charcoal);
    font-weight: 500;
    font-size: 15px;
}

.nav-cta {
    background: var(--green);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.nav-cta:hover {
    background: var(--green-dark);
    text-decoration: none;
}

.nav-login {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--green);
    color: var(--green-dark) !important;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-login:hover {
    background: var(--green);
    color: #fff !important;
    text-decoration: none;
}

/* ---------- Login page ---------- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: linear-gradient(180deg, #f0ece0 0%, var(--cream) 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
}

.login-card .login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    font-size: 22px;
    color: var(--charcoal);
    margin-bottom: 24px;
}

.login-card .login-brand img {
    height: 40px;
    width: auto;
}

.login-card h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 6px;
}

.login-card .login-sub {
    text-align: center;
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 28px;
}

.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.login-field input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    background: var(--cream);
    transition: border-color 0.2s ease;
}

.login-field input:focus {
    outline: none;
    border-color: var(--green);
    background: #fff;
}

.login-submit {
    width: 100%;
    padding: 13px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--green);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 6px;
}

.login-submit:hover {
    background: var(--green-dark);
}

.login-forgot {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green-dark);
}

.login-feedback {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.login-feedback.is-success {
    background: var(--green-light);
    color: var(--green-dark);
    border: 1px solid rgba(74, 143, 92, 0.35);
}

.login-feedback.is-error {
    background: #fbeae7;
    color: var(--red);
    border: 1px solid rgba(201, 74, 59, 0.35);
}

.login-back {
    display: block;
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: var(--muted);
}

/* ---------- Dashboard ---------- */
.dashboard-body {
    background: var(--cream);
}

.dash-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dash-user {
    font-size: 14px;
    color: var(--muted);
}

.dash-logout {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--green);
    background: transparent;
    color: var(--green-dark);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.dash-logout:hover {
    background: var(--green);
    color: #fff;
}

.dash-ghost {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    color: var(--charcoal);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.dash-ghost:hover {
    border-color: var(--charcoal);
    background: rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

.dash-footer {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

.dashboard {
    padding: 32px 0 48px;
}

.dashboard h1 {
    font-size: clamp(26px, 3.5vw, 34px);
    line-height: 1.05;
    margin-bottom: 16px;
}

.dash-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 24px;
    max-width: 560px;
}

.dash-card h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.dash-muted {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 20px;
}

.dash-section {
    padding: 0; /* override the global section { padding: 80px 0 } */
    margin-bottom: 28px;
}

.dash-section > h2 {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 18px;
}

.dash-sub-note {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.dash-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.dash-section-head h2 {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 0;
}

/* Toggle switch */
.toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    width: 42px;
    height: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.toggle input:checked + .toggle-slider {
    background: var(--green);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(18px);
}

.toggle input:focus-visible + .toggle-slider {
    outline: 2px solid var(--green-dark);
    outline-offset: 2px;
}

.toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
}

.devices-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.device-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

/* Compact clickable machine overview */
.device-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    user-select: none;
}

.device-summary:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
    border-radius: 8px;
}

.summary-info {
    flex: 1;
    min-width: 0;
}

.summary-info h3 {
    font-size: 19px;
    margin-bottom: 2px;
}

.summary-feedings {
    font-size: 14px;
    color: var(--muted);
}

.summary-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.summary-title h3 {
    margin-bottom: 0;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.online {
    background: #4ec46b;
    box-shadow: 0 0 0 3px rgba(78, 196, 107, 0.2);
}

.status-dot.offline {
    background: #b8b8b8;
}

.status-text {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.status-text.online {
    color: var(--green-dark);
}

.status-text.offline {
    color: var(--muted);
}

.detail-location {
    margin-bottom: 20px;
}

.summary-fill {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.summary-fill .fill-track {
    width: 190px;
}

.summary-fill-pct {
    font-size: 14px;
    font-weight: 700;
    min-width: 42px;
    text-align: right;
}

.summary-fill-pct.is-green { color: var(--green-dark); }
.summary-fill-pct.is-orange { color: #cf8b1e; }
.summary-fill-pct.is-red { color: var(--red); }

.summary-chevron {
    flex-shrink: 0;
    font-size: 16px;
    color: var(--muted);
    transition: transform 0.2s ease;
}

.device-summary.open .summary-chevron {
    transform: rotate(180deg);
}

.device-detail {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-head .dash-muted {
    margin-bottom: 0;
}

/* Compact dashboard on mobile: earnings + all machines in one view */
@media (max-width: 640px) {
    /* Compact top bar on the dashboard */
    .dashboard-body .nav-inner {
        padding: 8px 14px;
    }

    .dashboard-body .brand {
        font-size: 18px;
        gap: 8px;
    }

    .dashboard-body .brand img {
        height: 30px;
    }

    .dashboard-body .dash-logout {
        padding: 6px 12px;
        font-size: 13px;
    }

    .dashboard {
        padding: 18px 0 32px;
    }

    .dashboard h1 {
        display: block;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .dash-section {
        margin-bottom: 18px;
    }

    .dash-section-head {
        margin-bottom: 6px;
    }

    .dash-section > h2,
    .dash-section-head h2 {
        font-size: 14px;
    }

    .dash-sub-note {
        font-size: 11px;
    }

    .stat-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .stat-tile {
        padding: 7px 10px;
        gap: 2px;
    }

    .stat-label {
        font-size: 9px;
    }

    .stat-value {
        font-size: 16px;
    }

    .devices-grid {
        gap: 7px;
    }

    .device-card {
        padding: 11px 13px;
    }

    .device-summary {
        gap: 10px;
    }

    .summary-title {
        gap: 6px;
    }

    .summary-info h3 {
        font-size: 15px;
    }

    .summary-feedings {
        font-size: 11px;
    }

    .summary-fill {
        gap: 6px;
    }

    .summary-fill .fill-track {
        width: 90px;
    }

    .summary-fill-pct {
        font-size: 12px;
        min-width: 28px;
    }

    /* Tighter expanded settings */
    .device-detail {
        margin-top: 14px;
        padding-top: 14px;
    }

    .device-settings {
        gap: 12px;
        margin-bottom: 14px;
    }

    .dash-footer {
        margin-top: 16px;
        padding-top: 14px;
    }
}

.device-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.device-head h3 {
    font-size: 20px;
    margin-bottom: 2px;
}

.device-head .dash-muted {
    margin-bottom: 0;
    font-size: 14px;
}

.device-status {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
}

.device-status.on {
    background: var(--green-light);
    color: var(--green-dark);
}

.device-status.off {
    background: #eee;
    color: var(--muted);
}

.fill {
    margin-bottom: 22px;
}

.fill-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.fill-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--muted);
}

.fill-pct {
    font-size: 14px;
    font-weight: 700;
    color: var(--charcoal);
}

.fill-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.fill-bar {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease, background 0.3s ease;
}

.fill-bar.is-green {
    background: #4ec46b;
}

.fill-bar.is-orange {
    background: var(--amber);
}

.fill-bar.is-red {
    background: var(--red);
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 0;
}

.stat-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--cream);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--muted);
}

.stat-value {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--charcoal);
    letter-spacing: -0.5px;
}

.stat-sub {
    font-size: 12px;
    color: var(--muted);
}

.device-settings {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.setting-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal);
}

.setting-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}

.portion-slider {
    width: 100%;
    accent-color: var(--green);
    cursor: pointer;
}

.portion-labels {
    display: flex;
    justify-content: space-between;
}

.portion-labels span {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.portion-labels[data-value="1"] span:nth-child(1),
.portion-labels[data-value="2"] span:nth-child(2),
.portion-labels[data-value="3"] span:nth-child(3) {
    color: var(--green-dark);
}

.maxfeed-input {
    width: 120px;
    padding: 9px 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    font-size: 15px;
    background: var(--cream);
}

.maxfeed-input:focus {
    outline: none;
    border-color: var(--green);
    background: #fff;
}

.btn-save {
    padding: 9px 18px;
    border: none;
    border-radius: 999px;
    background: var(--charcoal);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-save:hover {
    background: #000;
}

.settings-msg {
    font-size: 14px;
    font-weight: 600;
}

.settings-msg.is-success {
    color: var(--green-dark);
}

.settings-msg.is-error {
    color: var(--red);
}

.device-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-feed {
    padding: 11px 24px;
    border-radius: 999px;
    border: none;
    background: var(--green);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-feed:hover {
    background: var(--green-dark);
}

.btn-feed:disabled {
    opacity: 0.6;
    cursor: default;
}

.feed-msg {
    font-size: 14px;
    font-weight: 600;
}

.feed-msg.is-success {
    color: var(--green-dark);
}

.feed-msg.is-error {
    color: var(--red);
}

/* ---------- Hero ---------- */
.hero {
    padding: 72px 0 56px;
    background: linear-gradient(180deg, #f0ece0 0%, var(--cream) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: var(--green-light);
    color: var(--green-dark);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero h1 .accent {
    color: var(--green-dark);
}

.hero p.lead {
    font-size: 19px;
    color: var(--muted);
    max-width: 560px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.15s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-primary {
    background: var(--green);
    color: #fff;
}

.btn-primary:hover {
    background: var(--green-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--charcoal);
    border: 2px solid var(--charcoal);
}

.hero-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 5;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image .price-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    color: var(--green-dark);
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: var(--shadow);
    font-size: 15px;
}

/* ---------- Sections ---------- */
section {
    padding: 80px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 56px;
}

.section-head h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.section-head p {
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
    font-size: 17px;
}

.eyebrow {
    display: inline-block;
    color: var(--green-dark);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 12px;
}

/* ---------- How it works ---------- */
.how {
    background: #fff;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step {
    padding: 32px 28px;
    border-radius: var(--radius);
    background: var(--cream);
    position: relative;
}

.step-num {
    position: absolute;
    top: -20px;
    left: 28px;
    width: 42px;
    height: 42px;
    background: var(--green);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: var(--shadow);
}

.step h3 {
    font-size: 20px;
    margin: 12px 0 10px;
}

.step p {
    color: var(--muted);
    font-size: 15px;
}

/* ---------- Status lights ---------- */
.status-section {
    background: var(--green-light);
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.status-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.status-image img {
    width: 100%;
    height: auto;
    display: block;
}

.status-lights {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.light {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8), 0 0 14px currentColor;
}

.light.green {
    background: #4ec46b;
    color: #4ec46b;
}

.light.red {
    background: #d1493a;
    color: #d1493a;
}

.status-item strong {
    display: block;
    margin-bottom: 3px;
    font-size: 16px;
}

.status-item span {
    color: var(--muted);
    font-size: 14px;
}

/* ---------- Value proposition ---------- */
.value {
    background: #fff;
}

.value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.value-card {
    padding: 40px 36px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.value-card--interaction {
    background: linear-gradient(160deg, #fff6e2 0%, #fdece7 100%);
}

.value-card--safety {
    background: linear-gradient(160deg, #eaf4ec 0%, #dcecdf 100%);
}

.value-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #fff;
    display: grid;
    place-items: center;
    font-size: 32px;
    margin-bottom: 22px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.value-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.value-lead {
    font-size: 17px;
    color: var(--charcoal);
    margin-bottom: 20px;
    font-weight: 500;
}

.value-card ul {
    list-style: none;
}

.value-card li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--muted);
    font-size: 15px;
}

.value-card--interaction li::before {
    content: "★";
    color: var(--amber);
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 16px;
}

.value-card--safety li::before {
    content: "✓";
    color: var(--green-dark);
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 16px;
}

.value-card li strong {
    color: var(--charcoal);
}

/* ---------- Features ---------- */
.features {
    background: var(--cream);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.feature {
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--cream);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature .icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--green-light);
    color: var(--green-dark);
    display: grid;
    place-items: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature p {
    color: var(--muted);
    font-size: 15px;
}

.highlight {
    color: var(--green-dark);
    font-weight: 700;
}

/* ---------- Dashboard promo ---------- */
.promo {
    background: #fff;
}

.promo h2 {
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.promo-list {
    list-style: none;
    margin: 24px 0 28px;
}

.promo-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--muted);
    font-size: 15px;
}

.promo-list li::before {
    content: "✓";
    color: var(--green-dark);
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 16px;
}

.promo-list li strong {
    color: var(--charcoal);
}

.promo-btn {
    display: inline-block;
}

/* Mock-up van het dashboard */
.promo-card {
    background: var(--cream);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}

.promo-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 20px;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green-dark);
}

.promo-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #4ec46b;
}

.promo-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.promo-stat {
    background: var(--green-light);
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
}

.promo-stat span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 2px;
}

.promo-stat strong {
    font-size: 19px;
    color: var(--green-dark);
    letter-spacing: -0.5px;
}

.promo-note {
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.promo-device {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.promo-device > strong {
    display: block;
    font-size: 16px;
    margin-bottom: 12px;
}

.promo-fill {
    display: flex;
    align-items: center;
    gap: 12px;
}

.promo-fill-track {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.promo-fill-track span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--green);
}

.promo-fill-pct {
    font-size: 14px;
    font-weight: 700;
    color: var(--green-dark);
}

.promo-device-note {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
}

.promo-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

.promo-setting {
    background: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.promo-setting span {
    display: block;
    font-size: 13px;
    color: var(--muted);
}

.promo-setting strong {
    font-size: 17px;
}

/* ---------- Revenue / offer ---------- */
.offer {
    background: var(--charcoal);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.offer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
            circle at 20% 20%,
            rgba(74, 143, 92, 0.25),
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(241, 178, 74, 0.15),
            transparent 50%
        );
    pointer-events: none;
}

.offer .container {
    position: relative;
}

.offer .section-head h2,
.offer .section-head p {
    color: #fff;
}

.offer .section-head p {
    opacity: 0.8;
}

.offer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.offer-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 36px;
    backdrop-filter: blur(6px);
}

.offer-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.offer-card .big {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin: 18px 0 6px;
    letter-spacing: -1px;
}

.offer-card .big .strike {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: line-through;
    font-size: 24px;
    margin-right: 12px;
    font-weight: 500;
}

.offer-card .free {
    color: #6bd786;
}

.offer-card p {
    opacity: 0.85;
    font-size: 15px;
}

.offer-card ul {
    list-style: none;
    margin-top: 20px;
}

.offer-card li {
    padding: 8px 0;
    display: flex;
    gap: 10px;
    font-size: 15px;
}

.offer-card li::before {
    content: "✓";
    color: #6bd786;
    font-weight: 700;
}

.startup-flag {
    display: inline-block;
    background: var(--amber);
    color: var(--charcoal);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.guarantee {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(107, 215, 134, 0.12);
    border: 1px solid rgba(107, 215, 134, 0.35);
}

.guarantee strong {
    display: block;
    color: #6bd786;
    font-size: 16px;
    margin-bottom: 8px;
}

.guarantee p {
    opacity: 0.9;
    font-size: 15px;
    margin: 0;
}

.guarantee .guarantee-terms {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.7;
    font-style: italic;
}

/* ---------- Gallery ---------- */
.gallery {
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

/* ---------- CTA / Contact ---------- */
.cta {
    background: var(--green);
    color: #fff;
    text-align: center;
}

.cta h2 {
    color: #fff;
    font-size: clamp(28px, 3.5vw, 40px);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta p {
    max-width: 560px;
    margin: 0 auto 28px;
    font-size: 17px;
    opacity: 0.95;
}

.cta .btn-primary {
    background: #fff;
    color: var(--green-dark);
}

.cta .btn-primary:hover {
    background: var(--cream);
}

/* ---------- Footer ---------- */
footer {
    background: var(--charcoal);
    color: #cfcfcf;
    padding: 40px 0 30px;
    text-align: center;
    font-size: 14px;
}

footer .brand {
    color: #fff;
    justify-content: center;
    margin-bottom: 12px;
}

footer .brand img {
    filter: invert(1) brightness(2);
}

footer a {
    color: #cfcfcf;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid,
    .status-grid,
    .offer-grid,
    .value-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Keep only the Log in button visible on mobile,
       hide the plain section links and the Contact button */
    .nav-links {
        gap: 10px;
    }

    .nav-links li:not(:has(.nav-login)) {
        display: none;
    }

    .nav-login {
        padding: 8px 14px;
        font-size: 14px;
    }
}

@media (max-width: 560px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 56px 0;
    }
}
