/* =========================================================
   BlockGrow Main Stylesheet
   Clean professional version
   ========================================================= */

/* ---------- Base ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f2e9;
    color: #233322;
    line-height: 1.5;
    font-size: 16px;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

p,
label,
input,
select,
textarea,
button,
a,
li,
span {
    font-size: inherit;
}

h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-top: 0;
    color: #244225;
}

h2 {
    font-size: 24px;
    line-height: 1.25;
    margin-top: 0;
    color: #244225;
}

h3 {
    font-size: 19px;
    line-height: 1.3;
    margin-top: 0;
    color: #244225;
}

.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 18px;
}

/* ---------- Header ---------- */

.site-header {
    position: relative;
    color: #fff3c4;
    padding: 0;
    border-bottom: 4px solid #f6d36b;
    background:
        linear-gradient(rgba(20, 42, 20, 0.68), rgba(20, 42, 20, 0.68)),
        url("../images/header-bg.jpg");
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.brand,
.site-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f6d36b;
    text-decoration: none;
    font-weight: bold;
    flex-shrink: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f6d36b;
    color: #244225;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    border: 2px solid rgba(255,255,255,0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong,
.site-title {
    font-size: 23px;
}

.brand-text small {
    font-size: 12px;
    color: #fff3c4;
    font-weight: normal;
    margin-top: 3px;
}

/* ---------- Navigation ---------- */

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    color: #fff3c4;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    padding: 9px 11px;
    border-radius: 8px;
    background: rgba(0,0,0,0.18);
    backdrop-filter: blur(2px);
}

.nav a:hover {
    background: rgba(246, 211, 107, 0.22);
    color: #ffffff;
}

.nav a.active {
    background: rgba(246, 211, 107, 0.18);
    color: #f6d36b;
}

.nav .nav-button {
    background: #f6d36b;
    color: #244225;
    padding: 10px 14px;
    border-radius: 8px;
}

.nav .nav-button:hover {
    background: #ffe58a;
    color: #244225;
}

/* New mobile menu button */

.mobile-menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(246, 211, 107, 0.45);
    background: rgba(0,0,0,0.25);
    color: #f6d36b;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

.menu-icon-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-icon-lines span {
    display: block;
    width: 18px;
    height: 2px;
    background: #f6d36b;
    border-radius: 999px;
}

/* Old checkbox mobile toggle support hidden */
.nav-toggle,
.nav-toggle-label {
    display: none;
}

/* ---------- Cards / Layout ---------- */

.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.stat {
    font-size: 32px;
    font-weight: bold;
    color: #244225;
}

.small {
    color: #666;
    font-size: 14px;
}

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

.btn {
    display: inline-block;
    border: none;
    background: #244225;
    color: #f6d36b;
    padding: 11px 16px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    background: #1c351d;
}

.btn-secondary {
    background: #e7dcc0;
    color: #244225;
}

.btn-secondary:hover {
    background: #d8c99e;
}

/* ---------- Forms ---------- */

input,
select,
textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 6px;
    font-family: inherit;
    font-size: 15px;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

label {
    display: block;
    margin-bottom: 14px;
    font-weight: bold;
}

.form-box {
    max-width: 650px;
    margin: 30px auto;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    background: #ffe1e1;
    color: #7a1515;
    margin-bottom: 16px;
}

.success {
    background: #def5dc;
    color: #1f5e25;
}

.notice-box {
    background: #fff8d9;
    border-left: 5px solid #f6d36b;
    color: #4b3a12;
    padding: 14px 16px;
    border-radius: 10px;
    margin: 0 0 18px;
    line-height: 1.5;
}

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

.hero {
    background: linear-gradient(135deg, #244225, #416d3f);
    color: #fff3c4;
    border-radius: 18px;
    padding: 52px 34px;
    margin-bottom: 24px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.hero-content {
    max-width: 760px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: bold;
    color: #f6d36b;
    margin: 0 0 10px;
}

.hero h1 {
    font-size: 46px;
    line-height: 1.05;
    margin: 0 0 18px;
    color: #fff3c4;
}

.hero-text {
    font-size: 19px;
    line-height: 1.6;
    color: #fff8d9;
    margin-bottom: 24px;
}

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

.trial-note {
    margin-top: 16px;
    display: inline-block;
    background: rgba(246, 211, 107, 0.16);
    border: 1px solid rgba(246, 211, 107, 0.45);
    color: #fff8d9;
    padding: 10px 13px;
    border-radius: 10px;
    font-weight: bold;
}

/* ---------- Lists / Item Cards ---------- */

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

.area-item {
    border: 1px solid #e2d8bd;
    border-radius: 12px;
    padding: 16px;
    background: #fbfaf5;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.area-item h3 {
    margin: 0 0 6px;
    color: #244225;
}

.area-item form {
    flex-shrink: 0;
}

.item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.item-actions form {
    margin: 0;
}

.task-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

.task-actions form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-actions select {
    margin-top: 0;
}

/* ---------- Dashboard ---------- */

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.dashboard-top-left {
    flex: 1;
}

.dashboard-profit-box {
    min-width: 230px;
    border-radius: 14px;
    padding: 18px;
    text-align: right;
    border: 2px solid;
}

.dashboard-profit-box .profit-label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dashboard-profit-box strong {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.profit-breakdown {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.profit-good {
    background: #e7f7df;
    border-color: #5b9b45;
    color: #244225;
}

.profit-bad {
    background: #ffe6e1;
    border-color: #b94b38;
    color: #7a2115;
}

/* Dashboard warning cards */

.overdue-card {
    border-left: 6px solid #b94b38;
    background: #fff7f5;
}

.overdue-card h2 {
    color: #7a2115;
}

.low-stock-card {
    border-left: 6px solid #d89b1d;
    background: #fffaf0;
}

.low-stock-card h2 {
    color: #8a5d00;
}

.service-due-card {
    border-left: 6px solid #5b6fa8;
    background: #f4f6ff;
}

.service-due-card h2 {
    color: #263d7a;
}

.withholding-card {
    border-left: 6px solid #7b4fb3;
    background: #f8f3ff;
}

.withholding-card h2 {
    color: #4d267a;
}

/* ---------- AI Adviser ---------- */

.advice-item {
    background: #fbfaf5;
    border-left: 5px solid #f6d36b;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.recommendation-card {
    background: #fbfaf5;
    border: 1px solid #e2d8bd;
    border-radius: 14px;
    padding: 18px;
}

.recommendation-card h3 {
    margin: 0 0 10px;
    color: #244225;
}

.recommendation-card p {
    margin: 8px 0;
}

/* ---------- Reports ---------- */

.report-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e2d8bd;
    border-radius: 10px;
    background: #fbfaf5;
}

.report-row span {
    color: #244225;
}

.report-row strong {
    color: #244225;
}

/* ---------- Super Admin ---------- */

.admin-account-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-account-card {
    background: #fbfaf5;
    border: 1px solid #e2d8bd;
    border-radius: 14px;
    padding: 18px;
}

.admin-account-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.admin-account-header h3 {
    margin: 0 0 6px;
    color: #244225;
}

.admin-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.admin-meta-grid div {
    background: #ffffff;
    border: 1px solid #ece3cc;
    border-radius: 10px;
    padding: 10px;
}

.admin-meta-grid strong {
    display: block;
    color: #244225;
    font-size: 13px;
    margin-bottom: 4px;
}

.admin-meta-grid span {
    color: #555;
    font-size: 14px;
}

.admin-access-form {
    border-top: 1px solid #e2d8bd;
    padding-top: 16px;
}

.status-pill {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-trial {
    background: #fff3c4;
    color: #6a4a00;
}

.status-active {
    background: #def5dc;
    color: #1f5e25;
}

.status-free {
    background: #e5edff;
    color: #243b7a;
}

.status-past_due,
.status-expired,
.status-cancelled {
    background: #ffe1e1;
    color: #7a1515;
}

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid #e2d8bd;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    position: relative;
}

.pricing-card.featured {
    border: 3px solid #f6d36b;
}

.featured-label {
    display: inline-block;
    background: #f6d36b;
    color: #244225;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 10px;
}

.pricing-card h2 {
    margin-top: 0;
    color: #244225;
}

.price {
    font-size: 34px;
    font-weight: 900;
    color: #244225;
    margin: 12px 0;
}

.price span {
    font-size: 15px;
    font-weight: normal;
    color: #666;
}

.pricing-card ul {
    padding-left: 20px;
    margin: 18px 0;
}

.pricing-card li {
    margin-bottom: 8px;
}

/* ---------- Help ---------- */

.help-list {
    padding-left: 22px;
}

.help-list li {
    margin-bottom: 14px;
}

/* ---------- Footer ---------- */

.site-footer {
    background: #1f351f;
    color: #fff3c4;
    margin-top: 44px;
    padding: 30px 24px 18px;
    border-top: 4px solid #f6d36b;
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-start;
}

.footer-brand,
.site-footer-inner > div:first-child {
    max-width: 560px;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f6d36b;
    color: #244225;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.site-footer p {
    max-width: 560px;
    margin: 8px 0 0;
    color: #f4e7b1;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.footer-links a {
    color: #f6d36b;
    text-decoration: none;
    font-weight: bold;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-column h4 {
    margin: 0 0 6px;
    color: #f6d36b;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column a,
.footer-column span {
    color: #f4e7b1;
    text-decoration: none;
    font-size: 14px;
}

.footer-column a:hover {
    color: #f6d36b;
}

.site-footer-bottom {
    max-width: 1100px;
    margin: 20px auto 0;
    padding-top: 14px;
    border-top: 1px solid rgba(246, 211, 107, 0.25);
    color: #e7dcc0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 850px) {
    .site-header-inner {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        padding: 18px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav {
        display: none;
        width: 100%;
        margin-top: 12px;
        padding: 12px;
        background: rgba(0,0,0,0.28);
        border: 1px solid rgba(246, 211, 107, 0.25);
        border-radius: 14px;
        backdrop-filter: blur(3px);
    }

    body.mobile-menu-open .nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .nav a {
        display: block;
        margin: 0;
        text-align: center;
        background: rgba(255,255,255,0.07);
    }

    .nav .nav-button {
        grid-column: span 2;
    }

    .grid,
    .recommendation-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 34px 22px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .dashboard-top {
        flex-direction: column;
    }

    .dashboard-profit-box {
        width: 100%;
        text-align: left;
    }

    .site-footer-inner {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .site-footer-bottom {
        flex-direction: column;
    }

    .admin-account-header {
        flex-direction: column;
    }

    .admin-meta-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 750px) {
    .area-item {
        flex-direction: column;
    }

    .task-actions,
    .item-actions {
        width: 100%;
    }

    .item-actions .btn,
    .item-actions button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .container {
        margin: 20px auto;
        padding: 0 14px;
    }

    .site-header-inner {
        padding: 14px;
    }

    .brand-text strong {
        font-size: 20px;
    }

    .brand-text small {
        display: none;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    body.mobile-menu-open .nav {
        grid-template-columns: 1fr;
    }

    .nav .nav-button {
        grid-column: span 1;
    }

    .hero h1 {
        font-size: 30px;
    }

    .admin-meta-grid {
        grid-template-columns: 1fr;
    }

    .report-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.report-filter-form {
    margin-top: 16px;
}

.report-filter-form .grid {
    margin-bottom: 12px;
}

.nav-install-button {
    border: none;
    background: #f6d36b;
    color: #244225;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.nav-install-button:hover {
    background: #ffe58a;
}

@media (max-width: 850px) {
    .nav-install-button {
        display: block;
        width: 100%;
        text-align: center;
        grid-column: span 2;
    }
}

@media (max-width: 520px) {
    .nav-install-button {
        grid-column: span 1;
    }
}

.nav-install-button {
    border: none;
    background: #f6d36b;
    color: #244225;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.nav-install-button:hover {
    background: #ffe58a;
}

@media (max-width: 850px) {
    .nav-install-button {
        display: block;
        width: 100%;
        text-align: center;
        grid-column: span 2;
    }
}

@media (max-width: 520px) {
    .nav-install-button {
        grid-column: span 1;
    }
}
/* =========================================================
   BlockGrow 2026 Humanised Redesign
   Visual layer only: existing PHP actions and form behaviour
   remain unchanged.
   ========================================================= */

:root {
    --bg: #f6f1e7;
    --paper: #fffdf8;
    --ink: #20312a;
    --muted: #68736d;
    --green-900: #173c2f;
    --green-800: #234f3d;
    --green-700: #2f6b4f;
    --green-500: #669172;
    --sage: #dfe8d9;
    --sage-soft: #edf2e9;
    --clay: #b96845;
    --gold: #d9a94c;
    --cream: #fbf7ef;
    --line: #ded8cc;
    --shadow: 0 16px 40px rgba(38, 50, 43, .10);
    --shadow-soft: 0 8px 24px rgba(38, 50, 43, .08);
    --radius: 22px;
}

html { background: var(--bg); }

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 10% 0%, rgba(223,232,217,.75), transparent 28rem),
        var(--bg);
    color: var(--ink);
    line-height: 1.62;
}

h1, h2, h3, h4 {
    color: var(--green-900);
    letter-spacing: -.025em;
}

h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin-top: 0; }

a { color: var(--green-700); }
a:hover { color: var(--clay); }

.container {
    width: min(1180px, calc(100% - 32px));
    max-width: none;
    margin: 34px auto 64px;
    padding: 0;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--ink);
    padding: 0;
    border: 0;
    background: rgba(255,253,248,.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(32,49,42,.10);
}

.site-header-inner {
    width: min(1180px, calc(100% - 32px));
    max-width: none;
    margin: 0 auto;
    min-height: 76px;
    padding: 12px 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
}

.brand,
.site-title {
    color: var(--green-900);
    gap: 12px;
}

.brand:hover { color: var(--green-900); }

.brand-mark {
    position: relative;
    overflow: hidden;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: var(--green-900);
    border: 0;
    box-shadow: none;
    color: transparent;
}

.brand-sprout,
.brand-sprout::before,
.brand-sprout::after {
    position: absolute;
    display: block;
    content: "";
}

.brand-sprout {
    left: 21px;
    top: 21px;
    width: 4px;
    height: 16px;
    border-radius: 6px;
    background: #f7f1e7;
}

.brand-sprout::before {
    width: 16px;
    height: 11px;
    left: -12px;
    top: -7px;
    border-radius: 16px 3px 16px 3px;
    background: #84ae79;
    transform: rotate(18deg);
}

.brand-sprout::after {
    width: 16px;
    height: 11px;
    left: 3px;
    top: -10px;
    border-radius: 3px 16px 3px 16px;
    background: #c6d7a8;
    transform: rotate(-16deg);
}

.brand-text strong { font-size: 22px; letter-spacing: -.03em; }
.brand-text small { color: var(--muted); font-size: 12px; margin-top: 2px; }

.header-human-note {
    align-self: center;
    justify-self: end;
    max-width: 510px;
    color: var(--muted);
    font-size: 13px;
    display: flex;
    gap: 9px;
    align-items: center;
}

.human-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--clay);
    box-shadow: 0 0 0 5px rgba(185,104,69,.12);
}

.nav-wrap {
    border-top: 1px solid rgba(32,49,42,.08);
    background: rgba(247,243,235,.94);
}

.nav {
    width: min(1180px, calc(100% - 32px));
    max-width: none;
    margin: 0 auto;
    padding: 8px 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.nav a,
.nav .nav-install-button {
    flex: 0 0 auto;
    color: #4e5f56;
    background: transparent;
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    backdrop-filter: none;
}

.nav a:hover,
.nav .nav-install-button:hover {
    background: #e8eee5;
    color: var(--green-900);
}

.nav a.active {
    background: var(--green-900);
    color: #fff;
}

.nav .nav-button {
    margin-left: auto;
    background: #eadfce;
    color: var(--green-900);
}

.nav .nav-button:hover { background: #dfd0ba; color: var(--green-900); }

.nav-install-button {
    cursor: pointer;
    color: var(--green-700) !important;
    border: 1px solid #ccd8cc !important;
}

.mobile-menu-toggle {
    display: none;
    border: 1px solid #d4d8d2;
    background: #fff;
    color: var(--green-900);
    padding: 9px 12px;
    border-radius: 12px;
}

.menu-icon-lines span { background: var(--green-900); }

/* Human page banner */
.context-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    min-height: 250px;
    overflow: hidden;
    border-radius: 28px;
    margin-bottom: 26px;
    background: var(--green-900);
    box-shadow: var(--shadow);
}

.context-copy {
    align-self: center;
    padding: clamp(28px, 5vw, 54px);
    color: #eff5ed;
}

.context-copy .eyebrow { color: #d8c999; }
.context-copy h1 { color: #fffdf7; margin-bottom: 12px; max-width: 680px; }
.context-copy p:last-child { color: #dce7df; max-width: 640px; margin: 0; font-size: 1.04rem; }

.context-photo { margin: 0; min-height: 250px; position: relative; }
.context-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(23,60,47,.4), transparent 42%);
    pointer-events: none;
}
.context-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Cards and forms */
.card,
.form-box,
.pricing-card,
.recommendation-card,
.admin-account-card {
    background: rgba(255,253,248,.96);
    border: 1px solid rgba(69,86,76,.10);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.card { padding: clamp(20px, 3.4vw, 30px); margin-bottom: 22px; }

.grid { gap: 20px; }

.card h1:first-child,
.card h2:first-child,
.form-box h1:first-child { margin-bottom: 10px; }

.small { color: var(--muted); }

.stat {
    color: var(--green-900);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    margin: 18px 0 12px;
}

.eyebrow {
    color: var(--clay);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.btn,
button.btn,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 45px;
    border: 0;
    border-radius: 14px;
    padding: 11px 17px;
    background: var(--green-900);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(23,60,47,.14);
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.btn:hover,
button.btn:hover,
input[type="submit"]:hover {
    background: var(--green-700);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(23,60,47,.16);
}

.btn-secondary {
    background: #e9e1d4;
    color: var(--green-900);
    box-shadow: none;
}
.btn-secondary:hover { background: #ded2c1; color: var(--green-900); }

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cfd6cf;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    padding: 11px 12px;
    min-height: 44px;
    outline: none;
}

textarea { min-height: 118px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(102,145,114,.13);
}

label { color: #3f5047; font-weight: 700; }

.alert,
.notice-box,
.overdue-card {
    border-radius: 16px;
    border: 1px solid rgba(185,104,69,.16);
}

.notice-box { background: #f5efe2; }
.overdue-card { background: #fff4ec; border-color: #f0d0bf; }

.report-row,
.area-item {
    background: #fbfaf5;
    border: 1px solid #ece7dc;
    border-radius: 14px;
}

/* Dashboard */
.dashboard-top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 30px;
    border-left: 5px solid var(--green-500);
}

.dashboard-profit-box {
    min-width: 210px;
    border-radius: 18px;
    background: var(--sage-soft);
    color: var(--green-900);
    border: 1px solid #d6e2d4;
}

.dashboard-profit-box.profit-bad { background: #fff0e8; border-color: #efd0c0; }
.dashboard-profit-box strong { color: inherit; }

/* Landing page */
.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
    gap: clamp(26px, 5vw, 58px);
    align-items: center;
    margin: 26px 0 70px;
}

.home-hero-copy { padding: clamp(12px, 2vw, 24px) 0; }
.home-hero-copy h1 {
    font-size: clamp(3rem, 7vw, 5.8rem);
    max-width: 850px;
    line-height: .95;
    letter-spacing: -.065em;
    margin-bottom: 24px;
}

.home-hero-lead {
    max-width: 720px;
    color: #56655e;
    font-size: clamp(1.06rem, 1.6vw, 1.3rem);
    line-height: 1.7;
}

.home-hero-photo {
    position: relative;
    min-height: 560px;
    margin: 0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--sage);
}

.home-hero-photo img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; display: block; }
.home-hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(12,38,28,.82) 100%);
    pointer-events: none;
}

.home-hero-photo figcaption {
    position: absolute;
    z-index: 2;
    left: 26px;
    right: 26px;
    bottom: 24px;
    color: #fff;
}
.home-hero-photo figcaption strong { display: block; font-size: 1.15rem; margin-bottom: 3px; }
.home-hero-photo figcaption span { color: #e4eee7; font-size: .94rem; }

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 26px 0; }
.text-link { font-weight: 800; text-decoration: none; padding: 10px 2px; }

.human-proof-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 30px;
}
.human-proof-row div {
    padding: 14px 0;
    border-top: 1px solid #d9d5ca;
}
.human-proof-row strong, .human-proof-row span { display: block; }
.human-proof-row strong { color: var(--green-900); font-size: .93rem; }
.human-proof-row span { color: var(--muted); font-size: .78rem; margin-top: 3px; }

.home-intro {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(28px, 6vw, 80px);
    align-items: end;
    margin: 0 0 34px;
    padding: 34px 0;
    border-top: 1px solid #d9d4ca;
}
.home-intro h2 { margin-bottom: 0; }
.home-intro > p { margin-bottom: 0; color: var(--muted); font-size: 1.04rem; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 70px;
}
.feature-card {
    position: relative;
    min-height: 320px;
    padding: 24px;
    border-radius: 24px;
    background: #fffdf8;
    border: 1px solid #e2ddd2;
    box-shadow: var(--shadow-soft);
}
.feature-card:nth-child(2) { background: #eef2ea; }
.feature-card:nth-child(3) { background: #f6ecdf; }
.feature-card:nth-child(4) { background: #e6eee8; }
.feature-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(255,255,255,.76);
    font-size: 24px;
    margin-bottom: 46px;
}
.feature-card h2 { font-size: 1.45rem; }
.feature-card p:not(.eyebrow) { color: #637069; font-size: .94rem; }
.feature-card a { position: absolute; left: 24px; bottom: 23px; font-weight: 800; text-decoration: none; }

.story-band {
    display: grid;
    grid-template-columns: minmax(360px, .95fr) minmax(0, 1.05fr);
    overflow: hidden;
    border-radius: 30px;
    background: var(--green-900);
    color: #e6eee9;
    box-shadow: var(--shadow);
    margin-bottom: 26px;
}
.story-photo { margin: 0; min-height: 520px; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-copy { padding: clamp(32px, 6vw, 70px); align-self: center; }
.story-copy h2 { color: #fff; }
.story-copy .eyebrow { color: #d6c68f; }
.story-copy p { color: #dbe6df; }
.warm-list { padding-left: 0; list-style: none; margin: 26px 0; }
.warm-list li { position: relative; padding: 9px 0 9px 26px; color: #f4f7f5; }
.warm-list li::before { content: "✓"; position: absolute; left: 0; color: #d6c68f; font-weight: 900; }
.story-copy .btn { background: #f3eadb; color: var(--green-900); }
.story-copy .btn:hover { background: #fff8eb; color: var(--green-900); }
.story-copy .btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }

.home-final-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin: 26px 0 0;
    padding: 34px 4px;
}
.home-final-cta h2 { margin-bottom: 0; max-width: 700px; }

/* Public forms and pricing */
.is-public:not(.page-index) .container { max-width: 980px; }
.is-public:not(.page-index) .form-box {
    max-width: 760px;
    margin: 40px auto;
    padding: clamp(26px, 5vw, 48px);
}

.pricing-grid { gap: 20px; }
.pricing-card { padding: 30px; }
.pricing-card.featured { transform: none; border: 2px solid var(--green-500); background: #f7faf5; }
.price { color: var(--green-900); }

/* Footer */
.site-footer {
    background: #15372c;
    color: #dbe6df;
    padding: 0;
    border: 0;
}

.site-footer-inner {
    width: min(1180px, calc(100% - 32px));
    max-width: none;
    margin: 0 auto;
    padding: 54px 0 38px;
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) .7fr 1fr;
    gap: 50px;
}

.site-footer p { color: #bfcfc5; max-width: 510px; }
.site-footer a { color: #e9f0eb; text-decoration: none; }
.site-footer a:hover { color: #e2c885; }
.site-footer h4 { color: #fff; }
.site-footer .footer-column span { color: #bfcfc5; }

.footer-brand-mark {
    background: #f3eadb;
    color: var(--green-900);
}

.site-footer-bottom {
    width: min(1180px, calc(100% - 32px));
    max-width: none;
    margin: 0 auto;
    color: #98aea1;
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 18px 0 24px;
}

/* Responsive */
@media (max-width: 980px) {
    .header-human-note { display: none; }
    .site-header-inner { grid-template-columns: 1fr auto; }
    .mobile-menu-toggle { display: inline-flex; }
    .nav-wrap { display: none; }
    .mobile-menu-open .nav-wrap { display: block; }
    .mobile-menu-open .nav {
        overflow: visible;
        flex-wrap: wrap;
        padding: 14px 0;
    }
    .mobile-menu-open .nav .nav-button { margin-left: 0; }
    .context-banner { grid-template-columns: 1fr; }
    .context-photo { min-height: 260px; order: -1; }
    .context-photo::after { background: linear-gradient(0deg, rgba(23,60,47,.22), transparent 55%); }
    .home-hero, .story-band { grid-template-columns: 1fr; }
    .home-hero-photo { min-height: 460px; }
    .home-hero-photo img { min-height: 460px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .story-photo { min-height: 400px; }
    .site-footer-inner { grid-template-columns: 1.4fr 1fr; }
    .footer-human-copy { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .container { width: min(100% - 22px, 1180px); margin-top: 18px; }
    .site-header-inner, .nav, .site-footer-inner, .site-footer-bottom { width: min(100% - 22px, 1180px); }
    .brand-text small { display: none; }
    .context-banner { border-radius: 20px; }
    .context-copy { padding: 26px 22px 30px; }
    .context-photo { min-height: 210px; }
    .grid, .pricing-grid, .recommendation-grid { grid-template-columns: 1fr; }
    .dashboard-top { grid-template-columns: 1fr; }
    .dashboard-profit-box { width: 100%; }
    .home-hero { margin-top: 10px; margin-bottom: 44px; }
    .home-hero-copy h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); }
    .home-hero-photo { min-height: 380px; border-radius: 22px; }
    .home-hero-photo img { min-height: 380px; }
    .human-proof-row { grid-template-columns: 1fr; gap: 0; }
    .home-intro { grid-template-columns: 1fr; gap: 12px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: 270px; }
    .story-band { border-radius: 22px; }
    .story-photo { min-height: 310px; }
    .story-copy { padding: 30px 22px; }
    .home-final-cta { align-items: flex-start; flex-direction: column; padding: 26px 0; }
    .site-footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-human-copy { grid-column: auto; }
    .site-footer-bottom { flex-direction: column; gap: 6px; }
}

/* ---------- Property Diary ---------- */
.diary-intro-card {
    border-left: 6px solid #91a83d;
}

.diary-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
    align-items: start;
}

.diary-compose h2,
.diary-prompt-card h2 {
    margin-bottom: 14px;
}

.diary-textarea {
    min-height: 190px;
    line-height: 1.65;
}

.diary-prompt-card {
    background: #f7f2e5;
    border: 1px solid #ddd1b4;
}

.diary-list-heading {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: end;
    margin-bottom: 18px;
}

.diary-filter-form {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(150px, .75fr) auto;
    gap: 8px;
    align-items: center;
    min-width: min(100%, 520px);
}

.diary-filter-form input,
.diary-filter-form select {
    margin-top: 0;
}

.diary-entry-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.diary-entry-card {
    position: relative;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 18px;
    background: #fffdf8;
    border: 1px solid #dfd4b8;
    border-radius: 14px;
    padding: 17px;
}

.diary-date-block {
    text-align: center;
    border-right: 1px solid #e4dbc4;
    padding-right: 14px;
    color: #385637;
}

.diary-date-block span,
.diary-date-block small {
    display: block;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
    font-weight: 700;
}

.diary-date-block strong {
    display: block;
    font-size: 30px;
    line-height: 1.05;
    margin: 3px 0;
}

.diary-entry-body h3 {
    margin: 7px 0 7px;
}

.diary-entry-body p {
    margin: 0;
    color: #454b40;
    line-height: 1.65;
}

.diary-entry-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.diary-entry-topline > a {
    color: #3e6b38;
    font-weight: 700;
}

.diary-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e9efcf;
    color: #3f5d2d;
    font-size: 12px;
    font-weight: 700;
}

.diary-meta {
    color: #777568;
    font-size: 12px;
}

.diary-delete-form {
    margin: 0;
}

.diary-delete-button {
    background: none;
    border: 0;
    color: #9c4a3f;
    cursor: pointer;
    font-size: 12px;
    padding: 3px 0;
}

.diary-edit-card {
    max-width: 780px;
}

@media (max-width: 850px) {
    .diary-layout {
        grid-template-columns: 1fr;
    }

    .diary-list-heading {
        display: block;
    }

    .diary-filter-form {
        grid-template-columns: 1fr;
        margin-top: 14px;
        min-width: 0;
    }

    .diary-entry-card {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .diary-delete-form {
        grid-column: 2;
    }
}

/* =========================================================
   BlockGrow human-first homepage direction
   Rich photography, earthy palette and less "software template" styling.
   ========================================================= */
.page-index .container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

.page-index .site-header {
    position: relative;
}

.human-home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(290px, .55fr);
    gap: 42px;
    align-items: center;
    min-height: 590px;
    margin: 0;
    padding: clamp(46px, 7vw, 86px) max(5vw, calc((100vw - 1180px) / 2));
    background:
        linear-gradient(90deg, rgba(14, 33, 21, .92) 0%, rgba(14, 33, 21, .80) 35%, rgba(14, 33, 21, .25) 70%, rgba(14, 33, 21, .06) 100%),
        url('../images/garden-human.jpg') center 43% / cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.human-home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 9px;
    background: linear-gradient(90deg, #a1b84b, #d9b65d, #8ba84b);
}

.human-home-hero .home-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 0;
}

.home-script-line {
    margin: 0 0 8px;
    color: #c2d754;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: clamp(1.35rem, 2.1vw, 2rem);
    letter-spacing: .01em;
}

.dark-script {
    color: #2d512f;
    line-height: 1.25;
}

.human-home-hero .home-hero-copy h1 {
    max-width: 690px;
    margin: 0 0 18px;
    color: #fffdf7;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(3.2rem, 6vw, 6rem);
    line-height: .96;
    letter-spacing: -.045em;
    text-shadow: 0 3px 18px rgba(0,0,0,.22);
}

.human-home-hero .home-hero-copy h1 span {
    color: #c7dd59;
}

.human-home-hero .home-hero-lead {
    max-width: 660px;
    margin-bottom: 0;
    color: #f2f4e8;
    font-size: clamp(1.05rem, 1.35vw, 1.2rem);
    line-height: 1.7;
}

.home-primary-button {
    background: #9dbb3c;
    color: #112117;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.home-primary-button:hover { background: #b2cd50; color: #112117; }

.home-outline-button {
    background: rgba(20,35,23,.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,.60);
    box-shadow: none;
}
.home-outline-button:hover { background: rgba(255,255,255,.12); color: #fff; }

.home-trial-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 4px;
    color: #f4f0d7;
    font-size: .83rem;
}

.home-hero-panel {
    position: relative;
    z-index: 2;
    align-self: center;
    justify-self: end;
    width: min(100%, 345px);
    padding: 20px 22px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    background: rgba(24, 37, 24, .76);
    backdrop-filter: blur(7px);
    box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

.home-hero-panel a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 4px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.10);
    font-weight: 650;
}
.home-hero-panel a:last-child { border-bottom: 0; }
.home-hero-panel a:hover { color: #cfe26a; }
.home-hero-panel span { width: 26px; font-size: 1.08rem; text-align: center; }

.home-photo-features {
    display: grid;
    grid-template-columns: 1.02fr repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: min(1400px, calc(100% - 50px));
    margin: 0 auto;
    padding: 34px 0 42px;
}

.home-feature-intro {
    grid-row: span 2;
    align-self: center;
    padding: 28px 30px 28px 4px;
}
.home-feature-intro p:last-child {
    max-width: 250px;
    color: #5d655c;
}

.home-photo-card {
    min-width: 0;
}
.home-photo-card img {
    width: 100%;
    height: 170px;
    display: block;
    object-fit: cover;
    border-radius: 13px;
    box-shadow: 0 8px 22px rgba(44, 55, 39, .11);
}
.home-photo-card h2 {
    margin: 12px 0 4px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.18rem;
    color: #213a27;
}
.home-photo-card p {
    margin: 0;
    color: #4f5850;
    font-size: .88rem;
    line-height: 1.48;
}

.home-life-section {
    display: grid;
    grid-template-columns: minmax(300px, .82fr) minmax(0, 1.6fr);
    gap: 36px;
    align-items: stretch;
    width: min(1400px, calc(100% - 50px));
    margin: 0 auto 34px;
    padding: 36px;
    background: #f1ede3;
    border-top: 1px solid #ded5c3;
    border-bottom: 1px solid #ded5c3;
}

.home-life-copy {
    padding: 24px 10px 24px 4px;
    align-self: center;
}
.home-life-copy h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 3.4vw, 3.45rem);
    line-height: 1.05;
    margin-bottom: 18px;
}
.home-life-copy > p:not(.eyebrow) { color: #586057; }

.home-life-points {
    display: grid;
    gap: 13px;
    margin: 22px 0 25px;
}
.home-life-points div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #d8d0c0;
}
.home-life-points strong { color: #29452d; }
.home-life-points span { color: #60665f; font-size: .9rem; }

.home-life-mosaic {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    grid-template-rows: repeat(2, minmax(190px, 1fr));
    gap: 5px;
    min-height: 520px;
}
.home-life-mosaic figure {
    margin: 0;
    min-width: 0;
    overflow: hidden;
}
.home-life-mosaic .mosaic-large { grid-row: 1 / 3; }
.home-life-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-life-mosaic figure:first-child { border-radius: 18px 0 0 18px; }
.home-life-mosaic figure:nth-child(2) { border-radius: 0 18px 0 0; }
.home-life-mosaic figure:last-child { display: none; }
.home-life-mosaic figure:nth-child(3) { border-radius: 0 0 18px 0; }

.home-bottom-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    width: min(1180px, calc(100% - 42px));
    margin: 0 auto;
    padding: 23px 0 46px;
}
.home-bottom-strip div { display: grid; gap: 4px; }
.home-bottom-strip strong {
    font-family: Georgia, 'Times New Roman', serif;
    color: #29452d;
    font-size: 1.08rem;
}
.home-bottom-strip span { color: #677067; font-size: .9rem; }
.home-bottom-strip a { font-weight: 800; white-space: nowrap; }

@media (max-width: 1080px) {
    .human-home-hero { grid-template-columns: 1fr; min-height: 650px; align-content: end; }
    .home-hero-panel { justify-self: start; width: min(100%, 580px); display: grid; grid-template-columns: 1fr 1fr; }
    .home-hero-panel a:nth-last-child(2) { border-bottom: 0; }
    .home-photo-features { grid-template-columns: repeat(3, 1fr); }
    .home-feature-intro { grid-column: 1 / -1; grid-row: auto; padding: 10px 0; }
    .home-feature-intro p:last-child { max-width: none; }
    .home-life-section { grid-template-columns: 1fr; }
    .home-life-mosaic { min-height: 430px; }
}

@media (max-width: 720px) {
    .human-home-hero {
        min-height: 690px;
        padding: 42px 20px 50px;
        background-position: 58% center;
    }
    .human-home-hero .home-hero-copy h1 { font-size: clamp(3rem, 14vw, 4.3rem); }
    .home-hero-panel { grid-template-columns: 1fr; padding: 14px 18px; }
    .home-hero-panel a:nth-last-child(2) { border-bottom: 1px solid rgba(255,255,255,.10); }
    .home-photo-features { grid-template-columns: 1fr 1fr; width: min(100% - 24px, 1400px); gap: 14px; }
    .home-feature-intro { grid-column: 1 / -1; }
    .home-photo-card img { height: 135px; }
    .home-life-section { width: 100%; padding: 24px 12px; }
    .home-life-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 250px 190px; min-height: 0; }
    .home-life-mosaic .mosaic-large { grid-column: 1 / -1; grid-row: auto; border-radius: 16px 16px 0 0; }
    .home-life-mosaic figure:nth-child(2) { border-radius: 0 0 0 16px; }
    .home-life-mosaic figure:nth-child(3) { border-radius: 0 0 16px 0; }
    .home-bottom-strip { align-items: flex-start; flex-direction: column; width: calc(100% - 28px); }
}

/* A little more hand-made character across the working app. */
body:not(.page-index) h1,
body:not(.page-index) h2,
body:not(.page-index) h3,
.page-index .home-photo-card h2,
.page-index .home-bottom-strip strong {
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: -.018em;
}

/* =========================================================
   BlockGrow v3 — approved editorial lifestyle direction
   Closely follows the visual composition approved in chat.
   ========================================================= */

:root {
    --ref-green: var(--brand-primary, #6f9432);
    --ref-lime: var(--brand-accent, #a8be3e);
    --ref-dark: var(--brand-dark, #173d25);
    --ref-cream: var(--brand-cream, #fbf8ef);
    --ref-ink: #172117;
    --ref-muted: #5f625c;
}

/* Public header: one clean line like the approved reference */
.public-header {
    position: relative;
    top: auto;
    background: rgba(255,253,247,.98);
    box-shadow: 0 1px 0 rgba(30,52,28,.09);
    border: 0;
}
.public-header-inner {
    width: min(1460px, calc(100% - 72px));
    min-height: 78px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 330px 1fr auto;
    align-items: center;
    gap: 22px;
}
.public-brand { gap: 10px; }
.public-brand .brand-mark {
    width: 42px;
    height: 50px;
    border-radius: 0;
    background: transparent;
    position: relative;
}
.public-brand .brand-sprout {
    left: 19px;
    top: 21px;
    width: 4px;
    height: 27px;
    background: #668c30;
}
.public-brand .brand-sprout::before {
    width: 22px;
    height: 15px;
    left: -17px;
    top: -8px;
    background: #8aaa3f;
}
.public-brand .brand-sprout::after {
    width: 22px;
    height: 15px;
    left: 4px;
    top: -12px;
    background: #6b9135;
}
.public-brand .brand-text strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    line-height: .95;
    color: #153b25;
    font-weight: 700;
    letter-spacing: -.035em;
}
.public-brand .brand-text small {
    margin-top: 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    font-style: italic;
    color: #44533c;
}
.public-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 2.4vw, 42px);
    min-width: 0;
}
.public-nav a {
    position: relative;
    color: #11180f;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    padding: 28px 0 24px;
}
.public-nav a:hover { color: #6c8e31; }
.public-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 13px;
    height: 2px;
    background: #93aa34;
}
.public-auth-actions { display: flex; gap: 15px; align-items: center; }
.public-auth-actions a { text-decoration: none; font-weight: 800; font-size: 14px; }
.login-button {
    border: 1px solid #8eaa60;
    border-radius: 8px;
    padding: 10px 22px;
    color: #4b6626;
    background: #fffefb;
}
.get-started-button {
    border-radius: 8px;
    padding: 11px 24px;
    color: white !important;
    background: linear-gradient(135deg, #759e3d, #628b35);
    box-shadow: 0 7px 18px rgba(77,107,42,.17);
}
.public-header .mobile-menu-toggle { display: none; }
.platform-announcement {
    min-height: 36px;
    padding: 8px 20px;
    display: flex;
    justify-content: center;
    gap: 14px;
    align-items: center;
    background: #173d25;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.platform-announcement a { color: #c9df70; }

/* Homepage removes the ordinary application container feeling */
.page-index { background: #f7f5ee; }
.page-index .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Hero */
.reference-hero {
    position: relative;
    min-height: 410px;
    overflow: hidden;
    background-image: url("../images/garden-hero.jpg");
    background-size: cover;
    background-position: center 52%;
    color: white;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: center;
    padding: 38px max(64px, calc((100vw - 1400px)/2));
}
.reference-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15,28,12,.82) 0%, rgba(15,28,12,.66) 26%, rgba(15,28,12,.14) 58%, rgba(15,28,12,.28) 100%),
        linear-gradient(0deg, rgba(7,16,7,.24), rgba(7,16,7,.02));
}
.reference-hero-copy,
.reference-hero-menu { position: relative; z-index: 2; }
.reference-hero-copy { max-width: 520px; }
.reference-script {
    margin: 0 0 7px;
    font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive;
    color: #c0dc47;
    font-size: clamp(23px, 2.1vw, 33px);
    line-height: 1.1;
    font-weight: 500;
    transform: rotate(-1deg);
}
.reference-hero h1 {
    margin: 0 0 11px;
    max-width: 520px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(43px, 4.2vw, 67px);
    line-height: .97;
    letter-spacing: -.045em;
    text-shadow: 0 2px 16px rgba(0,0,0,.2);
}
.reference-hero h1::first-line { color: #fff; }
.reference-lead {
    margin: 0;
    max-width: 510px;
    color: rgba(255,255,255,.95);
    font-size: 17px;
    line-height: 1.55;
    font-weight: 500;
}
.reference-actions { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.reference-primary,
.reference-secondary {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
}
.reference-primary { background: linear-gradient(135deg, #83a844, #668d35); color: white !important; box-shadow: 0 8px 22px rgba(13,31,14,.24); }
.reference-primary:hover { background: #6d9437; transform: translateY(-1px); }
.reference-secondary { color: white; border: 1px solid rgba(255,255,255,.75); background: rgba(15,27,14,.2); backdrop-filter: blur(5px); }
.reference-secondary:hover { color: #d6e991; background: rgba(15,27,14,.4); }
.reference-secondary.dark { color: #1e3d28; border-color: #8ca16a; background: #fff; }
.reference-proof { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 18px; color: #f1f4e7; font-size: 12px; }
.reference-proof span::first-letter { color: #c5dd44; }
.reference-hero-menu {
    justify-self: end;
    width: 310px;
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(24,44,20,.77);
    backdrop-filter: blur(8px);
    box-shadow: 0 14px 30px rgba(0,0,0,.16);
}
.reference-hero-menu a {
    display: flex;
    gap: 15px;
    align-items: center;
    min-height: 48px;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
    font-size: 14px;
}
.reference-hero-menu a:last-child { border-bottom: 0; }
.reference-hero-menu a:hover { color: #cfe164; }
.reference-hero-menu .line-icon { width: 24px; color: #c1db45; text-align: center; font-size: 20px; }
.reference-hero-menu b { font-weight: 600; }

/* Six photographic modules */
.reference-feature-row {
    width: min(1410px, calc(100% - 72px));
    margin: 18px auto 23px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}
.reference-feature-row article { min-width: 0; }
.reference-feature-row img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    filter: saturate(.9) contrast(1.02);
}
.reference-card-copy { position: relative; padding: 8px 34px 0 5px; }
.reference-card-copy h2 {
    margin: 0 0 3px;
    color: #182316;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    letter-spacing: -.02em;
}
.reference-card-copy p { margin: 0; color: #333830; font-size: 12px; line-height: 1.45; }
.reference-card-copy > span { position: absolute; right: 3px; top: 9px; color: #9bb73d; font-size: 23px; }

/* Editorial lifestyle band */
.reference-life {
    display: grid;
    grid-template-columns: 350px repeat(4, minmax(0, 1fr));
    min-height: 195px;
    background: #eee9df;
    border-top: 1px solid #e3ddd0;
    border-bottom: 1px solid #e3ddd0;
}
.reference-life-intro { padding: 24px 54px 24px max(72px, calc((100vw - 1400px)/2)); display: flex; flex-direction: column; justify-content: center; }
.reference-life-intro h2 { margin: 0; color: #17452b; font-family: Georgia, "Times New Roman", serif; font-size: 31px; line-height: 1.08; }
.small-divider { width: 54px; height: 1px; background: #9bb13c; margin: 14px 0; }
.reference-life-intro p { margin: 0; color: #444a42; font-size: 12px; line-height: 1.55; }
.reference-life-photo { position: relative; overflow: hidden; min-height: 195px; }
.reference-life-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reference-life-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,26,15,.32), transparent 55%); }
.reference-life-photo span { position: absolute; z-index: 2; left: 15px; bottom: 10px; color: white; font-family: "Segoe Script", cursive; font-size: 17px; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.reference-benefits {
    width: min(1410px, calc(100% - 72px));
    margin: 0 auto;
    min-height: 82px;
    display: grid;
    grid-template-columns: 1.2fr repeat(4, 1fr) 1.1fr;
    gap: 22px;
    align-items: center;
}
.reference-benefits > div { min-width: 0; display: flex; align-items: center; gap: 12px; }
.reference-rating { flex-direction: column; align-items: flex-start !important; gap: 3px !important; }
.stars { color: #91a932; letter-spacing: 2px; font-size: 19px; }
.reference-rating span { color: #4c5048; font-size: 11px; }
.benefit-icon { color: #5d8136; font-size: 25px; flex: 0 0 auto; }
.reference-benefits p { margin: 0; color: #4b5048; font-size: 11px; line-height: 1.35; }
.reference-benefits p strong { display: block; color: #202b20; font-size: 12px; margin-bottom: 2px; }
.reference-handwritten { justify-content: center; color: #24402c; font-family: "Segoe Script", cursive; font-size: 18px; line-height: 1.2; }
.reference-handwritten span { color: #6f9432; font-size: 26px; }

/* Below-the-fold sections retain the same editorial language */
.reference-how,
.reference-faq { width: min(1180px, calc(100% - 42px)); margin: 74px auto; }
.reference-section-heading { max-width: 680px; margin-bottom: 28px; }
.reference-section-heading h2 { margin: 4px 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 3.6vw, 48px); color: #173d25; line-height: 1.05; }
.reference-section-heading > p:last-child { color: #666c63; }
.reference-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reference-how-grid > div { position: relative; padding: 29px 28px; background: #fffdf8; border: 1px solid #e4dfd3; border-radius: 14px; }
.reference-how-grid span { display: inline-block; margin-bottom: 25px; color: #8da33a; font-family: Georgia, serif; font-size: 31px; }
.reference-how-grid h3 { margin-bottom: 8px; font-family: Georgia, serif; font-size: 22px; }
.reference-how-grid p { margin: 0; color: #666b63; font-size: 14px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq-grid details { background: #fffdf8; border: 1px solid #e1dccf; border-radius: 12px; padding: 18px 20px; }
.faq-grid summary { cursor: pointer; font-family: Georgia, serif; font-weight: 700; color: #173d25; font-size: 18px; }
.faq-grid p { margin: 13px 0 0; color: #60665d; font-size: 14px; }
.reference-contact {
    width: min(1180px, calc(100% - 42px));
    margin: 74px auto 90px;
    padding: 38px 44px;
    border-radius: 18px;
    background: linear-gradient(120deg, #173d25, #294f2a);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    color: white;
    overflow: hidden;
}
.reference-contact h2 { color: white; font-family: Georgia, serif; margin: 5px 0 9px; font-size: clamp(29px, 3.2vw, 43px); }
.reference-contact p { margin: 0; color: #dfe9d5; }
.reference-contact-actions { display: flex; gap: 12px; flex: 0 0 auto; }

/* App header remains compact and practical */
.app-header { position: sticky; }
.super-admin-nav { background: #5f7430 !important; color: #fff !important; }

/* Super Admin control room */
.super-admin-shell { max-width: 1320px; margin: 0 auto; }
.super-admin-heading { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; margin-bottom: 22px; }
.super-admin-heading h1 { margin-bottom: 8px; font-size: clamp(40px, 5vw, 66px); font-family: Georgia, serif; }
.super-admin-heading p:last-child { max-width: 720px; color: #667069; }
.super-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.super-stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 20px 0; }
.super-stat-grid > div { padding: 18px; border-radius: 16px; background: #173d25; color: #fff; }
.super-stat-grid strong { display: block; font-family: Georgia, serif; font-size: 31px; line-height: 1; }
.super-stat-grid span { display: block; margin-top: 7px; color: #dbe7d4; font-size: 12px; }
.super-admin-tabs { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 7px; padding: 10px; margin-bottom: 18px; background: rgba(249,246,237,.96); border: 1px solid #e4ded1; border-radius: 14px; backdrop-filter: blur(8px); }
.super-admin-tabs a { padding: 8px 12px; text-decoration: none; color: #36543c; font-weight: 800; font-size: 13px; border-radius: 8px; }
.super-admin-tabs a:hover { background: #e8eddc; }
.super-section { scroll-margin-top: 80px; margin-bottom: 22px; padding: clamp(22px, 3vw, 34px); border-radius: 20px; background: #fffdf8; border: 1px solid #e5dfd3; box-shadow: 0 10px 34px rgba(38,50,43,.07); }
.super-section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid #ece6da; }
.super-section-title h2 { margin: 0; font-family: Georgia, serif; font-size: 31px; }
.super-section-title > p { margin: 0; max-width: 520px; color: #68716a; font-size: 13px; text-align: right; }
.super-form-grid { display: grid; gap: 14px; }
.super-form-grid.two { grid-template-columns: repeat(2, 1fr); }
.super-form-grid.three { grid-template-columns: repeat(3, 1fr); }
.super-form-grid.four { grid-template-columns: repeat(4, 1fr); }
.super-settings-form label, .super-subform label { display: block; font-size: 13px; }
.colour-setting-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 15px 0; }
.colour-setting-grid input[type="color"] { height: 48px; padding: 4px; }
.toggle-grid, .feature-toggle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 18px; }
.feature-toggle-grid { grid-template-columns: repeat(3, 1fr); }
.toggle-row { display: flex !important; align-items: flex-start; gap: 11px; min-height: 70px; padding: 13px; border: 1px solid #e3dfd5; border-radius: 12px; background: #faf9f4; }
.toggle-row input[type="checkbox"] { width: 19px; height: 19px; min-height: 0; flex: 0 0 auto; margin-top: 2px; accent-color: #72953b; }
.toggle-row span { display: block; }
.toggle-row strong { display: block; color: #1e3827; font-size: 13px; }
.toggle-row small { display: block; margin-top: 4px; color: #72786f; line-height: 1.35; font-weight: 500; }
.danger-toggle { border-color: #ead0c2; background: #fff8f3; }
.compact-toggle { min-height: 48px; align-self: end; }
.super-save-bar { position: sticky; bottom: 12px; z-index: 18; display: flex; align-items: center; gap: 16px; width: fit-content; margin: 0 0 28px auto; padding: 9px 10px; border-radius: 14px; background: rgba(24,58,35,.96); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.super-save-bar span { padding-right: 8px; color: #dce7d5; font-size: 12px; }
.super-record-list { display: grid; gap: 10px; }
.super-record { border: 1px solid #e2ddd2; border-radius: 14px; background: #fbfaf5; overflow: hidden; }
.super-record summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 16px 18px; }
.super-record summary::-webkit-details-marker { display: none; }
.super-record summary > span:first-child { display: flex; flex-direction: column; gap: 3px; }
.super-record summary strong { color: #1c3b27; font-size: 16px; }
.super-record summary small { color: #737a72; font-size: 12px; }
.super-record-body { padding: 18px; background: #fff; border-top: 1px solid #e7e2d7; }
.super-subform { padding: 18px; margin-bottom: 14px; background: #fbfaf5; border: 1px solid #e7e2d7; border-radius: 12px; }
.account-feature-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 15px 0; }
.two-column-admin { display: grid; grid-template-columns: 1.5fr .8fr; gap: 14px; }
.user-role-badge { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: #e8eddd; color: #405a32; font-size: 12px; font-weight: 800; }
.password-reset-box { background: #f4f1e8; }
.audit-table-wrap { overflow: auto; }
.audit-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.audit-table th, .audit-table td { padding: 10px; text-align: left; border-bottom: 1px solid #ebe6dc; vertical-align: top; }
.audit-table th { color: #35523d; background: #f3f4ec; }
.maintenance-card { max-width: 760px; margin: 90px auto; padding: 50px; background: white; border-radius: 20px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.08); }
.maintenance-card h1 { font-family: Georgia, serif; font-size: clamp(34px, 5vw, 52px); }

@media (max-width: 1180px) {
    .public-header-inner { width: min(100% - 34px, 1100px); grid-template-columns: 260px 1fr auto; }
    .public-nav { gap: 18px; }
    .public-nav a { font-size: 13px; }
    .reference-feature-row { grid-template-columns: repeat(3, 1fr); }
    .reference-life { grid-template-columns: 300px repeat(2, 1fr); }
    .reference-life-photo:nth-of-type(n+4) { display: none; }
    .reference-benefits { grid-template-columns: repeat(3, 1fr); padding: 18px 0; }
    .super-stat-grid { grid-template-columns: repeat(3, 1fr); }
    .super-form-grid.four, .account-feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
    .public-header-inner { min-height: 70px; grid-template-columns: 1fr auto; }
    .public-nav, .public-auth-actions { display: none; }
    .public-header .mobile-menu-toggle { display: inline-flex; }
    body.mobile-menu-open .public-header-inner { grid-template-columns: 1fr auto; padding-bottom: 14px; }
    body.mobile-menu-open .public-nav { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; justify-items: stretch; gap: 4px; }
    body.mobile-menu-open .public-nav a { padding: 10px 12px; background: #f1eee5; border-radius: 8px; }
    body.mobile-menu-open .public-auth-actions { grid-column: 1 / -1; display: flex; }
    .reference-hero { grid-template-columns: 1fr; min-height: 650px; align-content: end; padding: 36px; background-position: 62% center; }
    .reference-hero-menu { justify-self: start; width: min(100%, 620px); display: grid; grid-template-columns: 1fr 1fr; }
    .reference-feature-row { width: min(100% - 28px, 900px); }
    .reference-life { grid-template-columns: 1fr 1fr; }
    .reference-life-intro { grid-column: 1 / -1; padding: 28px; }
    .reference-benefits { width: min(100% - 28px, 900px); grid-template-columns: 1fr 1fr; }
    .reference-handwritten { justify-content: flex-start; }
    .super-form-grid.three, .feature-toggle-grid { grid-template-columns: repeat(2, 1fr); }
    .two-column-admin { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .public-header-inner { width: calc(100% - 24px); }
    .public-brand .brand-text strong { font-size: 26px; }
    .public-brand .brand-text small { font-size: 10px; display: block; }
    .reference-hero { min-height: 680px; padding: 26px 18px; background-position: 62% center; }
    .reference-hero-shade { background: linear-gradient(0deg, rgba(12,26,12,.92) 0%, rgba(12,26,12,.55) 75%, rgba(12,26,12,.15) 100%); }
    .reference-hero h1 { font-size: 47px; }
    .reference-lead { font-size: 15px; }
    .reference-actions { align-items: stretch; flex-direction: column; }
    .reference-primary, .reference-secondary { width: 100%; }
    .reference-proof { gap: 10px 15px; }
    .reference-hero-menu { grid-template-columns: 1fr; width: 100%; }
    .reference-feature-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .reference-feature-row img { height: 125px; }
    .reference-card-copy h2 { font-size: 16px; }
    .reference-life { grid-template-columns: 1fr 1fr; }
    .reference-life-photo { min-height: 160px; }
    .reference-benefits { grid-template-columns: 1fr; }
    .reference-how-grid, .faq-grid { grid-template-columns: 1fr; }
    .reference-contact { align-items: flex-start; flex-direction: column; padding: 28px; }
    .super-admin-heading { align-items: flex-start; flex-direction: column; }
    .super-stat-grid, .super-form-grid.two, .super-form-grid.three, .super-form-grid.four, .colour-setting-grid, .toggle-grid, .feature-toggle-grid, .account-feature-grid { grid-template-columns: 1fr; }
    .super-section-title { align-items: flex-start; flex-direction: column; }
    .super-section-title > p { text-align: left; }
    .super-save-bar { width: 100%; bottom: 6px; justify-content: space-between; }
    .super-record summary { align-items: flex-start; flex-direction: column; }
}
.reference-hero h1 span { display: block; color: #b8d64c; }
