:root {
    color-scheme: light;
    --bg: #fff;
    --surface: #fff;
    --ink: #333;
    --muted: #666;
    --line: #dae0e5;
    --accent: #0690d9;
    --accent-hover: #0186cd;
    --accent-ink: #fff;
    --nav: #0690d9;
    --nav-hover: #303030;
    --heading: #0186cd;
    --footer: #303030;
    --danger-bg: #fef2f2;
    --danger-ink: #991b1b;
    --info-bg: #e3e7e9;
    --info-line: #17aff8;
    --space: 1.25rem;
    --measure: 40rem;
    --sans: Verdana, Geneva, Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    font-size: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-hover);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--surface);
    padding: 0.5rem 0.75rem;
}

.skip-link:focus {
    left: 0.5rem;
    z-index: 30;
}

.wrap {
    width: min(72rem, calc(100% - 2rem));
    margin-inline: auto;
}

.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
}

.stack {
    display: grid;
    gap: 0.85rem;
}

.site-header {
    background: var(--surface);
}

.brand-bar {
    background: #fff;
    padding: 10px 0;
}

.brand-bar .wrap {
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--heading);
    text-decoration: none;
}

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

.brand-logo {
    display: block;
    height: 72px;
    width: auto;
    max-width: min(347px, 100%);
}

.company-logo {
    max-width: min(400px, 100%);
    max-height: 160px;
    height: auto;
}

.brand-text {
    font-size: 1.45rem;
    padding-block: 0.65rem;
}

.brand-tenant {
    color: var(--muted);
    font-size: 0.95rem;
    text-align: right;
}

.site-nav {
    background: var(--nav);
    margin-top: 10px;
}

.site-nav-check {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-nav-button {
    display: none;
    width: 100%;
    box-sizing: border-box;
    padding: 0.45rem 0.7rem;
    color: #fff;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.site-nav-button::after {
    content: "▾";
    float: right;
    font-size: 0.85em;
}

.site-nav-check:checked + .site-nav-button::after {
    content: "▴";
}

.site-nav-check:focus-visible + .site-nav-button {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.site-nav-list {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav-list > li > a,
.site-nav-list .btn-text {
    display: block;
    padding: 0.4rem 0.5rem;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-left: 1px solid #fff;
    background: transparent;
    white-space: nowrap;
}

.site-nav-list > li:first-child > a {
    border-left: 0;
}

.site-nav-list .inline-form {
    display: block;
}

.site-nav-list > li > a:hover,
.site-nav-list > li > a[aria-current="page"],
.site-nav-list .btn-text:hover {
    background: var(--nav-hover);
    color: #fff;
}

@media (max-width: 59.99rem) {
    .site-nav-button {
        display: block;
    }

    .site-nav-list {
        display: none;
        flex-wrap: wrap;
        flex-direction: column;
    }

    .site-nav-check:checked ~ .site-nav-list {
        display: flex;
    }

    .site-nav-list > li > a,
    .site-nav-list .btn-text {
        border-left: 0;
        border-top: 1px solid rgb(255 255 255 / 35%);
        padding: 0.55rem 0.7rem;
        font-size: 11px;
    }
}

@media (min-width: 60rem) {
    .site-nav-check,
    .site-nav-button {
        display: none;
    }

    .site-nav .wrap {
        overflow-x: auto;
    }
}

.muted {
    color: var(--muted);
    font-size: 0.9rem;
}

.site-main {
    flex: 1 0 auto;
    padding-block: calc(var(--space) * 1.5);
}

.site-footer {
    background: var(--footer);
    color: #fff;
    padding: 1.15rem 0;
    margin-top: auto;
}

.site-footer p {
    margin: 0;
    text-align: center;
}

.copyright-text {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.85rem;
}

.site-footer a {
    color: #fff;
}

.site-footer a:hover {
    color: #cfefff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1.25rem 1.5rem;
    padding-bottom: 1rem;
    text-align: left;
}

.footer-grid p {
    margin: 0 0 0.4rem;
    text-align: left;
}

.footer-title {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btn {
    display: inline-block;
    padding: 0.65rem 1.1rem;
    background: var(--accent);
    color: var(--accent-ink);
    text-decoration: none;
    font-weight: 700;
}

.btn:hover {
    background: var(--nav-hover);
    color: #fff;
}

.marketing-main {
    padding-block: 0;
}

.hero {
    background: linear-gradient(160deg, #0186cd 0%, #0690d9 55%, #0b5f8a 100%);
    color: #fff;
    padding: 2.5rem 0 2.75rem;
}

.hero .lede,
.hero .eyebrow {
    color: #e8f6fd;
}

.hero h1 {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    text-transform: none;
    color: #fff;
    margin: 0 0 0.5rem;
}

.hero a:not(.btn) {
    color: #fff;
}

.hero-inner {
    max-width: 40rem;
}

.marketing-section {
    padding-block: 2rem;
}

.marketing h1 {
    text-transform: none;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.marketing h2 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    color: var(--heading);
}

.feature-grid,
.price-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.feature-grid-2 {
    margin-top: 1.5rem;
}

.feature-grid li,
.price-card {
    border: 1px solid var(--line);
    padding: 1rem 1.1rem;
    background: var(--surface);
}

.price-grid {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    align-items: stretch;
}

.price-card .price {
    font-size: 1.05rem;
    margin: 0 0 0.75rem;
}

.price-card .price span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading);
}

.price-card ul {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
}

.cta-band {
    background: var(--info-bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 0;
}

.cta-inner {
    justify-content: space-between;
}

.cta-inner h2 {
    margin: 0;
    text-transform: none;
    font-size: 1.2rem;
}

.prose {
    max-width: 46rem;
    padding-block: 2rem;
}

.prose h2 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.05rem;
    text-transform: none;
}

.auth-panel {
    max-width: 24rem;
}

.auth-panel-wide {
    max-width: 32rem;
}

h1 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--heading);
    text-transform: uppercase;
}

.lede,
.eyebrow {
    margin: 0 0 1rem;
    color: var(--muted);
}

.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--surface);
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #17aff8;
    outline-offset: 0;
    border-color: var(--accent);
}

button {
    font: inherit;
    cursor: pointer;
}

button[type="submit"]:not(.btn-text) {
    justify-self: start;
    padding: 0.55rem 1rem;
    border: 0;
    background: var(--accent);
    color: var(--accent-ink);
}

button[type="submit"]:not(.btn-text):hover {
    background: var(--nav-hover);
}

.btn-text {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
}

.inline-form {
    display: inline;
    margin: 0;
}

.flash {
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem 0.65rem 1rem;
    background: var(--info-bg);
    border: 2px solid var(--info-line);
}

.flash-error {
    background: var(--danger-bg);
    color: var(--danger-ink);
}

.flash-success {
    background: #ecfdf3;
    color: #166534;
}

.dash-hello {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    background: #d9edf7;
    border: 1px solid #bce8f1;
    color: #31708f;
}

.dash-billing {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    background: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}

h1.dash-plan,
h2.dash-plan {
    margin: 0 0 0.75rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #eee;
    font-size: 1.35rem;
    font-weight: 500;
    color: #0690d9;
    text-transform: none;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1.25rem;
}

.dash-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.dash-item input[type="checkbox"] {
    width: auto;
    flex-shrink: 0;
}

a.dash-alert,
.dash-alert {
    color: #c00;
}

.dash-note {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
}

@media (max-width: 40rem) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
}

.html-compose {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
}

.html-compose .html-source[hidden] {
    display: none;
}

.html-field {
    width: 100%;
    min-height: 28rem;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--surface);
}

.html-field:focus,
.html-compose:focus-within .html-field {
    outline: 2px solid #17aff8;
    outline-offset: 0;
    border-color: var(--accent);
}

textarea,
input[type="search"],
input[type="date"],
input[type="file"] {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--surface);
    font: inherit;
}

.inline-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.inline-check input {
    width: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.data-table th {
    font-size: 0.85rem;
    color: var(--heading);
    background: #f5f8fa;
}

.pill-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 1rem;
    border: 1px solid #e0e0e0;
    background: var(--surface);
}

.pill-nav a {
    padding: 0.5rem 0.85rem;
    text-decoration: none;
    border-right: 1px solid #e0e0e0;
    color: var(--accent);
}

.pill-nav a:hover {
    background: #f3f8fc;
    color: var(--accent-hover);
}

.pill-nav a[aria-current="page"] {
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: var(--nav);
}

.details-grid {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 0.4rem 1rem;
    margin: 0;
}

.details-grid dt {
    font-weight: 650;
    color: var(--muted);
}

.details-grid dd {
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.85rem 1rem;
}

.form-grid .span-2 {
    grid-column: 1 / -1;
}

.city-state-zip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 5.5rem 7.5rem;
    gap: 0.85rem 1rem;
    align-items: start;
}

.field-with-suggest {
    display: grid;
    gap: 0.25rem;
}

.suggest {
    margin: 0;
    font-size: 0.9rem;
    color: var(--danger-ink);
}

h2 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.05rem;
    color: var(--heading);
}

h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--heading);
}

.job-grid input[type="text"],
.job-grid input[type="date"],
.job-grid select {
    width: 100%;
}

.job-grid .inline-check {
    justify-content: center;
}

.day-checks {
    margin: 0;
}

fieldset {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin: 0;
    background: var(--surface);
}

legend {
    font-weight: 650;
    padding-inline: 0.35rem;
}

.visit-flag {
    color: #b91c1c;
    font-weight: 700;
    margin-left: 0.25rem;
}

.visit-actions {
    gap: 0.5rem;
}

.visit-actions button[type="submit"]:not(.btn-text) {
    padding: 0.3rem 0.65rem;
    font-size: 0.9rem;
}

.cal-visit {
    display: block;
    margin: 0.2rem 0;
    font-size: 0.85rem;
    line-height: 1.3;
    text-decoration: none;
}

.cal-visit.is-cancelled {
    text-decoration: line-through;
    color: var(--muted);
}

.week-grid th,
.week-grid td {
    width: 20%;
}

.week-grid td:first-child,
.week-grid th:first-child {
    width: 12%;
}

.week-grid .is-today,
.calendar .is-today {
    background: #e7f5fc;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: var(--surface);
}

.calendar th,
.calendar td {
    border: 1px solid var(--line);
    vertical-align: top;
    padding: 0.4rem 0.45rem;
    height: 7.5rem;
}

.calendar th {
    height: auto;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: left;
}

.calendar .is-empty {
    background: #f7f7f7;
}

.calendar .day-num {
    display: inline-block;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.danger {
    color: var(--danger-ink);
}

input.money {
    width: 6rem;
}

.notes-form {
    margin-top: 0.5rem;
}

details summary {
    cursor: pointer;
    color: var(--accent);
}

.meeting-ok {
    color: #166534;
    font-weight: 600;
}

.meeting-warn {
    color: #92400e;
    font-weight: 600;
}

.meeting-danger {
    color: var(--danger-ink);
    font-weight: 600;
}

.timesheet-html table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

.app-yn {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--line);
}

.app-yn select {
    width: auto;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.35rem 0.75rem;
}

.app-block label span {
    font-weight: 400;
}

.table-scroll {
    overflow-x: auto;
}

.fee-matrix input {
    width: 5.5rem;
}

.map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
    gap: 1rem;
    align-items: start;
}

.map-canvas {
    min-height: 28rem;
    height: 70vh;
    border: 1px solid var(--line);
    background: var(--surface);
}

.map-side {
    font-size: 0.95rem;
}

.map-list {
    margin: 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.65rem;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.map-swatch,
.map-pin {
    display: inline-block;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #0003;
    vertical-align: -0.1rem;
}

.map-pin {
    width: 18px;
    height: 18px;
}

.map-swatch-sitter,
.map-pin-sitter {
    background: #0690d9;
}

.map-swatch-app,
.map-pin-app {
    background: #ea580c;
}

.map-swatch-origin,
.map-pin-origin {
    background: #dc2626;
}

.card-field {
    min-height: 2.5rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--line);
    background: var(--surface);
}

#saas-card-element {
    padding-top: 0.7rem;
}

@media (max-width: 50rem) {
    .map-layout {
        grid-template-columns: 1fr;
    }
}

@media print {
    .site-header,
    .site-footer,
    .skip-link,
    form.cluster,
    .pill-nav,
    .visit-actions,
    .cluster:has(button) {
        display: none !important;
    }

    .print-page a {
        color: inherit;
        text-decoration: none;
    }
}
