:root {
    --black: #171717;
    --red: #ed3038;
    --red-soft: #fbe3e4;
    --cream: #e7dfd3;
    --paper: #f7f2ea;
    --muted: #6c6862;
    --line: rgba(23, 23, 23, 0.13);
    --shadow: 0 24px 60px rgba(36, 28, 20, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--cream);
    color: var(--black);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.hub-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 242, 234, 0.96);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.brand img {
    width: 194px;
    height: auto;
    display: block;
}

.brand span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.hub-header nav {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.hub-header nav a {
    padding: 9px 11px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.hub-header nav a:hover,
.hub-header nav a.active {
    background: #eee7dd;
    color: var(--black);
}

.hub-header form {
    margin: 0;
}

.hub-header form button {
    padding: 9px 0;
    border: 0;
    background: transparent;
    color: var(--black);
    cursor: pointer;
    font-size: 12px;
}

.hub-main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 52px 0 90px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero {
    position: relative;
    min-height: 400px;
    padding: 52px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(310px, 0.7fr);
    align-items: end;
    gap: 55px;
    border-radius: 24px;
    background: #111;
    color: #fff;
    box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(237, 48, 56, 0.34);
    border-radius: 50%;
}

.hero::before {
    width: 410px;
    height: 410px;
    top: -235px;
    right: 7%;
}

.hero::after {
    width: 250px;
    height: 250px;
    top: -145px;
    right: 14%;
    border-color: rgba(255, 255, 255, 0.13);
}

.hero-copy,
.hero-actions {
    position: relative;
    z-index: 1;
}

.hero h1,
.section-heading h2,
.panel h2,
.roadmap h2,
.login-card h1 {
    font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -0.045em;
}

.hero h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(52px, 6.2vw, 79px);
    line-height: 0.92;
}

.hero h1 em {
    color: var(--red);
    font-weight: 400;
}

.hero-copy > p:last-child {
    max-width: 610px;
    margin: 27px 0 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 15px;
    line-height: 1.7;
}

.hero-actions {
    display: grid;
    gap: 11px;
}

.hero-actions a {
    min-height: 102px;
    padding: 16px 19px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-content: center;
    border-radius: 13px;
    color: #fff;
    text-decoration: none;
    transition: transform 150ms ease;
}

.hero-actions a:hover {
    transform: translateY(-1px);
}

.hero-actions a > span,
.hero-actions a > strong,
.hero-actions a > small {
    grid-column: 1;
}

.hero-actions a > span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-actions a > strong {
    margin-top: 2px;
    font-size: 16px;
}

.hero-actions a > small {
    color: rgba(255, 255, 255, 0.66);
    font-size: 10px;
}

.hero-actions a > b {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    font-size: 20px;
}

.hero-actions .red {
    background: var(--red);
}

.hero-actions .dark {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.hero-actions .booking {
    border: 1px solid rgba(237, 48, 56, 0.45);
    background: rgba(237, 48, 56, 0.12);
}

.data-notice {
    margin: 18px 0 0;
    padding: 13px 16px;
    border-left: 4px solid var(--red);
    border-radius: 9px;
    background: var(--red-soft);
    color: #69352f;
    font-size: 12px;
}

.stats {
    margin: 20px 0 60px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stats article {
    min-height: 142px;
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-content: space-between;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
}

.stats article > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stats article > strong {
    grid-column: 1 / -1;
    color: var(--black);
    font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
    font-size: 44px;
    font-weight: 400;
    line-height: 1;
}

.stats article > a,
.stats article > small {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 10px;
    text-decoration: none;
}

.stats article > a {
    color: var(--red);
    font-weight: 800;
}

.stats article.attention {
    border-color: rgba(237, 48, 56, 0.25);
    background: var(--red-soft);
}

.stats article.attention > strong {
    color: var(--red);
}

.section-heading {
    margin-bottom: 23px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.section-heading h2 {
    margin: 0;
    font-size: 43px;
    line-height: 1;
}

.section-heading > p {
    max-width: 390px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

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

.module-card {
    min-height: 300px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(36, 28, 20, 0.06);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

a.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(36, 28, 20, 0.11);
}

.module-cleaning {
    border-top: 5px solid var(--red);
}

.module-property {
    border-top: 5px solid var(--black);
}

.module-booking {
    border-top: 5px solid #9a7556;
}

.future-card {
    border-style: dashed;
    background: rgba(247, 242, 234, 0.5);
}

.module-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.module-number {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
}

.live-status,
.future-status {
    padding: 5px 8px;
    border-radius: 99px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e6eee7;
    color: #285a36;
}

.live-status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.future-status {
    background: #ddd5ca;
    color: var(--muted);
}

.module-card h3 {
    margin: 0;
    color: var(--black);
    font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.035em;
}

.module-card p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.module-open {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
}

.module-open.muted {
    color: var(--muted);
}

.dashboard-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 20px;
}

.panel {
    padding: 29px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 10px 28px rgba(36, 28, 20, 0.06);
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.panel-heading h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1;
}

.panel-heading > a {
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.panel-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--red);
    font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
}

.share-panel > p:not(.eyebrow):not(.share-status) {
    margin: 18px 0;
    color: var(--muted);
    font-size: 12px;
}

.share-link {
    padding: 13px 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #eee7dd;
}

.share-link span {
    display: block;
    overflow: hidden;
    color: #544f48;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.primary-button,
.secondary-button {
    min-height: 43px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 800;
}

.primary-button {
    background: var(--red);
    color: #fff;
}

.secondary-button {
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--black);
}

.share-actions > a {
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.share-status {
    min-height: 16px;
    margin: 9px 0 -8px;
    color: #285a36;
    font-size: 10px;
}

.share-status.error {
    color: var(--red);
}

.recent-list {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.recent-list > a {
    min-height: 70px;
    padding: 9px 11px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto 14px;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
}

.recent-list > a:last-child {
    border-bottom: 0;
}

.recent-list > a:hover {
    background: #eee7dd;
}

.date-tile {
    width: 44px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--red-soft);
    color: var(--red);
}

.date-tile strong {
    font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.date-tile small {
    margin-top: 2px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.report-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.report-copy strong {
    overflow: hidden;
    font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-copy small {
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-state {
    padding: 5px 7px;
    border-radius: 99px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.report-state.clear {
    background: #e6eee7;
    color: #285a36;
}

.report-state.issue {
    background: var(--red-soft);
    color: var(--red);
}

.recent-list > a > b {
    color: var(--red);
}

.quiet-state {
    margin-top: 18px;
    padding: 32px 20px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    text-align: center;
}

.quiet-state p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.roadmap {
    margin-top: 58px;
    padding-top: 38px;
    display: grid;
    grid-template-columns: minmax(230px, 0.6fr) minmax(0, 1.4fr);
    gap: 50px;
    border-top: 1px solid var(--line);
}

.roadmap h2 {
    margin: 0;
    font-size: 38px;
    line-height: 1.04;
}

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

.roadmap-items article {
    min-height: 155px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(247, 242, 234, 0.5);
}

.roadmap-items article > span {
    width: max-content;
    padding: 4px 7px;
    border-radius: 99px;
    background: #ddd5ca;
    color: var(--muted);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.roadmap-items strong {
    margin-top: auto;
    font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.1;
}

.roadmap-items small {
    margin-top: 7px;
    color: var(--muted);
    font-size: 9px;
}

.login-shell {
    min-height: calc(100vh - 83px);
    padding: 60px 20px;
    display: grid;
    place-items: start center;
}

.login-card {
    width: min(510px, 100%);
    padding: 44px;
    border-radius: 18px;
    background: var(--paper);
    box-shadow: var(--shadow);
    text-align: center;
}

.login-logo {
    width: min(245px, 78%);
    height: auto;
    margin: 0 auto 31px;
    display: block;
}

.login-mark {
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--red-soft);
    color: var(--red);
    font-family: Georgia, serif;
    font-size: 26px;
}

.login-card h1 {
    margin: 0;
    font-size: 41px;
    line-height: 1.05;
}

.login-card > p:not(.eyebrow):not(.login-error) {
    margin: 17px 0 24px;
    color: var(--muted);
    font-size: 13px;
}

.login-card code {
    padding: 2px 4px;
    border-radius: 4px;
    background: #eee7dd;
    font-size: 0.9em;
}

.login-error {
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--red-soft);
    color: var(--red);
    font-size: 12px;
}

.login-form {
    display: grid;
    gap: 16px;
    text-align: left;
}

.login-form label {
    display: grid;
    gap: 7px;
}

.login-form label span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.login-form input {
    width: 100%;
    min-height: 50px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--black);
}

.login-form .primary-button {
    width: 100%;
}

@media (max-width: 780px) {
    .header-inner {
        width: min(100% - 28px, 1180px);
        padding: 10px 0 0;
        flex-wrap: wrap;
        gap: 7px;
    }

    .brand img {
        width: 145px;
    }

    .brand span {
        font-size: 8px;
    }

    .hub-header nav {
        order: 3;
        width: 100%;
        padding-bottom: 9px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .hub-header nav::-webkit-scrollbar {
        display: none;
    }

    .hub-header nav a {
        padding: 7px 9px;
        font-size: 10px;
    }

    .hub-header form {
        margin-left: auto;
    }

    .hub-main {
        width: min(100% - 24px, 1180px);
        padding-top: 30px;
    }

    .hero {
        min-height: 0;
        padding: 32px 23px;
        grid-template-columns: 1fr;
        gap: 33px;
        border-radius: 18px;
    }

    .hero h1 {
        font-size: clamp(47px, 15vw, 64px);
    }

    .hero-copy > p:last-child {
        margin-top: 22px;
        font-size: 13px;
    }

    .stats {
        margin-bottom: 45px;
        grid-template-columns: 1fr;
    }

    .stats article {
        min-height: 108px;
    }

    .stats article > strong {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .stats article > a,
    .stats article > small {
        grid-column: 1;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .section-heading h2 {
        font-size: 37px;
    }

    .module-grid,
    .dashboard-grid,
    .roadmap {
        grid-template-columns: 1fr;
    }

    .module-card {
        min-height: 265px;
    }

    .dashboard-grid {
        margin-top: 16px;
    }

    .panel {
        padding: 23px 18px;
    }

    .share-actions .primary-button,
    .share-actions .secondary-button {
        flex: 1 1 auto;
    }

    .recent-list > a {
        grid-template-columns: 44px minmax(0, 1fr) 13px;
    }

    .recent-list .report-state {
        grid-column: 2;
        width: max-content;
    }

    .recent-list > a > b {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .roadmap {
        margin-top: 45px;
        gap: 24px;
    }

    .roadmap h2 {
        font-size: 34px;
    }

    .roadmap-items {
        grid-template-columns: 1fr;
    }

    .roadmap-items article {
        min-height: 130px;
    }

    .login-shell {
        min-height: calc(100vh - 70px);
        padding: 30px 13px;
    }

    .login-card {
        padding: 35px 22px;
    }

    .login-card h1 {
        font-size: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
