
:root {
    --bg: #f7f8fc;
    --surface: #ffffff;
    --soft: #f0eee7;
    --text: #2f3b34;
    --muted: #6e776f;
    --quiet: #949a91;
    --line: #ddd9cf;
    --primary: #8fa084;
    --primary-strong: #768a6d;
    --rose: #ddb187;
    --green: #8fa084;
    --danger: #c83f65;
    --cream: #fbf7ef;
    --shadow: 0 18px 46px rgba(71, 65, 54, 0.12);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(221, 177, 135, 0.16), transparent 34%),
        radial-gradient(circle at top right, rgba(143, 160, 132, 0.14), transparent 34%),
        var(--bg);
}

button, input, textarea, select { font: inherit; }

.shell {
    width: min(100%, 1040px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 22px;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 34px;
}

body.is-app .shell {
    width: min(100%, 560px);
    padding: 18px 14px;
    gap: 18px;
}

body.is-auth .shell {
    width: min(100%, 900px);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

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

.logo {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
}

.brand-title {
    display: block;
    color: var(--text);
    font-weight: 950;
    font-size: 1.08rem;
    letter-spacing: 0;
}

.brand-claim {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 750;
}

.top-note {
    color: var(--quiet);
    font-size: 0.82rem;
    font-weight: 800;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-left: auto;
}

.site-nav a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 850;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
}

body.is-app .site-nav {
    display: none;
}

body.is-app .site-menu-button {
    display: none;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
    gap: clamp(28px, 6vw, 68px);
    align-items: center;
}

body.is-app .hero {
    display: block;
    padding: 0;
}

body.is-landing .panel {
    display: none;
}

body.is-auth .hero {
    grid-template-columns: minmax(330px, 430px);
    justify-content: center;
}

body.is-auth .copy {
    display: none;
}

body.is-app .copy,
body.is-app .top-note {
    display: none;
}

body.is-app .panel {
    max-width: none;
}

body.is-app .topbar {
    justify-content: space-between;
}

.app-menu {
    position: relative;
    display: none;
}

body.is-app .app-menu {
    display: block;
}

.menu-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    font-weight: 950;
    cursor: pointer;
}

.menu-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 10;
    width: 220px;
    display: none;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.app-menu.is-open .menu-popover {
    display: grid;
    gap: 6px;
}

.menu-item {
    min-height: 40px;
    border: 0;
    border-radius: 12px;
    padding: 0 11px;
    background: transparent;
    color: var(--text);
    text-align: left;
    font-weight: 850;
    cursor: pointer;
}

.menu-item:hover {
    background: var(--soft);
}

.menu-item.is-danger {
    color: var(--danger);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    place-items: center;
    padding: 18px;
    background: rgba(47, 59, 52, 0.28);
}

.modal.is-open {
    display: grid;
}

.modal-card {
    width: min(100%, 520px);
    max-height: min(760px, calc(100vh - 36px));
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

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

.modal-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 950;
}

.modal-text {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.45;
    font-weight: 700;
}

.close-button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
    color: var(--text);
    cursor: pointer;
    font-weight: 950;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.member-edit-list {
    display: grid;
    gap: 12px;
    margin-top: 13px;
}

.member-edit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 10px;
    align-items: end;
    border-radius: 16px;
    padding: 12px;
    background: var(--soft);
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: -4px;
}

.password-rules span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 9px;
    background: var(--soft);
    color: var(--quiet);
    font-size: 0.73rem;
    font-weight: 900;
}

.password-rules span.is-valid {
    background: #e5f1df;
    color: var(--primary-strong);
}

.add-row {
    margin-top: -4px;
}

.setup-items {
    display: grid;
    gap: 8px;
}

.setup-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 4px;
}

.setup-progress span {
    min-height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--soft);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 680;
}

.setup-step {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.58);
}

.setup-step h3 {
    margin: -8px 0 0;
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 720;
}

.setup-item {
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
    gap: 8px;
    border-radius: 14px;
    padding: 7px 8px 7px 13px;
    background: var(--soft);
    color: var(--text);
    font-weight: 850;
}

.setup-item button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 11px;
    background: var(--surface);
    color: var(--danger);
    cursor: pointer;
    font-weight: 950;
}

.calendar-nav {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 10px;
    align-items: center;
    margin-bottom: 13px;
}

.calendar-nav strong {
    text-align: center;
    font-size: 1.08rem;
    font-weight: 950;
}

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

.calendar-weekdays {
    margin-bottom: 8px;
    color: var(--quiet);
    font-size: 0.72rem;
    font-weight: 950;
    text-align: center;
}

.calendar-day {
    position: relative;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-weight: 950;
}

.calendar-day.is-muted {
    opacity: 0.35;
}

.calendar-day.is-selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(143, 160, 132, 0.16);
}

.calendar-day.is-complete {
    background: #e5f1df;
    border-color: #b8c9ab;
}

.calendar-day.has-progress::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: var(--primary);
}

.copy { max-width: 590px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin: 0 0 18px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(251, 247, 239, 0.78);
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

h1 {
    margin: 0;
    max-width: 620px;
    font-size: clamp(3rem, 6.2vw, 4.65rem);
    line-height: 1;
    letter-spacing: 0;
}

.lead {
    margin: 22px 0 0;
    max-width: 540px;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.7;
    font-weight: 650;
}

.mini-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 190px) minmax(0, 150px);
    gap: 10px;
    margin-top: 26px;
}

.pill {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 850;
}

.landing-details {
    display: grid;
    gap: 28px;
    padding-bottom: 58px;
}

body.is-app .landing-details {
    display: none;
}

body.is-auth .landing-details {
    display: none;
}

.section-head {
    display: grid;
    gap: 12px;
    max-width: 720px;
}

.section-head .eyebrow {
    margin: 0;
    justify-self: start;
}

.section-head h2,
.usecase-band h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(2rem, 4.4vw, 3.35rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.section-head p,
.feature-card p,
.price-card p,
.faq-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 680;
}

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

.pricing-grid,
.faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.price-card,
.faq-grid article {
    min-height: 188px;
    display: grid;
    align-content: start;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 28px rgba(71, 65, 54, 0.08);
}

.feature-card h3,
.price-card h3,
.faq-grid h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1.22;
    font-weight: 950;
}

.feature-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    background: var(--soft);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 950;
}

.usecase-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 28px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: clamp(22px, 4vw, 34px);
    background: var(--cream);
}

.usecase-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.usecase-list li {
    min-height: 42px;
    display: flex;
    align-items: center;
    border-radius: 14px;
    padding: 9px 12px;
    background: var(--surface);
    color: var(--text);
    font-weight: 850;
}

.price-card.is-highlight {
    background: #edf3e9;
}

.panel {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

body.is-app .panel {
    padding: 18px;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

body.is-app .panel-head {
    justify-content: center;
    text-align: center;
}

body.is-app .panel-head .logo {
    display: none;
}

.panel-kicker {
    margin: 0 0 4px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

body.is-app .panel-kicker {
    color: var(--quiet);
}

.panel-title {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.2;
    font-weight: 950;
}

body.is-app .panel-title {
    font-size: clamp(2rem, 10vw, 3rem);
}

.panel-text {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.92rem;
    font-weight: 700;
}

body.is-app .panel-text {
    max-width: 360px;
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px;
    border-radius: 15px;
    background: var(--soft);
    margin-bottom: 16px;
}

.tab {
    min-height: 42px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    font-weight: 950;
    cursor: pointer;
}

.tab.is-active {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 8px 18px rgba(33, 45, 74, 0.08);
}

form, .setup-grid {
    display: grid;
    gap: 13px;
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

input, select, textarea {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    font-weight: 750;
    outline: none;
}

textarea {
    min-height: 116px;
    padding: 13px 14px;
    resize: vertical;
    line-height: 1.45;
}

input[type="color"] {
    height: 50px;
    padding: 6px;
    cursor: pointer;
}

input::placeholder,
textarea::placeholder {
    color: var(--quiet);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(51, 104, 246, 0.14);
}

.primary, .secondary {
    min-height: 52px;
    border: 0;
    border-radius: 15px;
    font-weight: 950;
    cursor: pointer;
}

.primary {
    width: 100%;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 22px rgba(143, 160, 132, 0.2);
}

.secondary {
    background: var(--soft);
    color: var(--text);
}

.primary:hover { background: var(--primary-strong); }
.primary:disabled { cursor: wait; opacity: 0.72; }

.message {
    display: none;
    margin-top: 14px;
    border-radius: 14px;
    padding: 12px 14px;
    background: var(--soft);
    color: var(--muted);
    line-height: 1.45;
    font-weight: 750;
}

.message.is-visible { display: block; }
.message.is-error {
    background: rgba(200, 63, 101, 0.1);
    color: var(--danger);
}

.view { display: none; }
.view.is-active { display: block; }

.account-box, .summary-box {
    border-radius: 16px;
    padding: 15px;
    background: var(--soft);
}

.summary-box {
    display: grid;
    gap: 10px;
}

.summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-weight: 800;
}

.summary-line strong {
    color: var(--text);
}

.member-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.member-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-weight: 850;
}

.color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

.day-card {
    display: grid;
    gap: 16px;
}

.day-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.date-controls {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
    align-items: center;
}

.icon-button,
.date-button {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    font-weight: 950;
    cursor: pointer;
}

.date-button {
    width: 100%;
}

.day-title {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 950;
}

.day-date {
    margin: 3px 0 0;
    color: var(--muted);
    font-weight: 800;
}

.progress-pill {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--text);
    font-weight: 950;
    white-space: nowrap;
}

.progress-track {
    height: 10px;
    border-radius: 999px;
    background: var(--soft);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--primary);
    transition: width 180ms ease;
}

.week-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.week-day {
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 950;
    cursor: pointer;
    display: grid;
    place-items: center;
    gap: 2px;
}

.week-day span {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
}

.week-day strong {
    font-size: 0.8rem;
    color: var(--text);
}

.week-day.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(143, 160, 132, 0.16);
}

.week-day.is-complete {
    background: #e5f1df;
    border-color: #b8c9ab;
}

.checklist {
    display: grid;
    gap: 8px;
}

.checklist-head,
.check-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(var(--member-count, 2), 48px);
    gap: 8px;
    align-items: center;
}

.checklist-head {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 10px;
}

.member-head {
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.check-row {
    min-height: 48px;
    padding: 8px 10px 8px 13px;
    border-radius: 14px;
    background: var(--soft);
}

body.is-app .check-row {
    min-height: 54px;
}

.check-label {
    font-weight: 900;
    line-height: 1.2;
}

.check-button {
    width: 38px;
    height: 38px;
    justify-self: center;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: transparent;
    cursor: pointer;
    font-weight: 950;
}

.check-button.is-checked {
    color: #fff;
    border-color: var(--member-color, var(--primary));
    background: var(--member-color, var(--primary));
}

.empty-state {
    border-radius: 16px;
    padding: 16px;
    background: var(--soft);
    color: var(--muted);
    font-weight: 750;
    line-height: 1.45;
}

@media (prefers-color-scheme: dark) and (min-width: 9999px) {
    :root {
        color-scheme: dark;
        --bg: #181b18;
        --surface: #222720;
        --soft: #2c3229;
        --text: #fbf7ef;
        --muted: #c8c2b5;
        --quiet: #9d9a91;
        --line: #3c4338;
        --primary: #aebf9f;
        --primary-strong: #93a684;
        --shadow: 0 22px 52px rgba(0, 0, 0, 0.28);
    }

    body {
        background:
            radial-gradient(circle at top left, rgba(221, 177, 135, 0.12), transparent 34%),
            radial-gradient(circle at top right, rgba(143, 160, 132, 0.15), transparent 34%),
            var(--bg);
    }

    .eyebrow, .pill, .panel {
        background: rgba(24, 31, 46, 0.86);
    }
}

@media (max-width: 860px) {
    .shell {
        padding: 20px 16px;
        gap: 24px;
    }

    .hero {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 24px;
    }

    .copy {
        max-width: none;
    }

    .panel {
        max-width: 560px;
    }

    .site-nav {
        display: none;
    }

    .feature-grid,
    .pricing-grid,
    .faq-grid,
    .usecase-band {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .shell { padding: 16px; }
    .top-note, .brand-claim { display: none; }
    .hero { gap: 18px; }
    .eyebrow {
        min-height: 30px;
        margin-bottom: 14px;
        font-size: 0.68rem;
    }
    h1 {
        font-size: clamp(2.35rem, 10.8vw, 3rem);
        line-height: 1.02;
    }
    .lead {
        margin-top: 15px;
        font-size: 0.98rem;
    }
    .mini-points { display: none; }
    .hero-actions { grid-template-columns: 1fr; }
    .panel { padding: 14px; border-radius: 18px; }
    .row-2 { grid-template-columns: 1fr; gap: 13px; }
    .member-edit-row { grid-template-columns: 1fr; }
}

/* Product-site polish */
body {
    font-weight: 450;
}

.shell {
    width: min(100%, 1180px);
    min-height: auto;
    padding: 0 24px 72px;
}

body.is-app .shell {
    min-height: 100vh;
    padding-top: 18px;
}

.topbar {
    position: sticky;
    top: 14px;
    z-index: 20;
    margin-top: 18px;
    border: 1px solid rgba(221, 217, 207, 0.9);
    border-radius: 24px;
    padding: 14px 16px;
    background: rgba(251, 247, 239, 0.88);
    box-shadow: 0 14px 34px rgba(71, 65, 54, 0.08);
    backdrop-filter: blur(14px);
}

body.is-app .topbar {
    position: static;
    margin-top: 0;
}

.brand-title {
    font-weight: 780;
}

.brand-claim,
.top-note {
    font-weight: 560;
}

.site-nav a {
    font-weight: 620;
}

.site-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 1.18rem;
    font-weight: 760;
}

.hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.72fr);
    min-height: calc(100vh - 144px);
    padding: clamp(42px, 7vw, 86px) 0 36px;
}

body.is-auth .hero {
    min-height: calc(100vh - 180px);
    padding-top: clamp(42px, 7vw, 86px);
}

.copy {
    max-width: 680px;
}

h1 {
    max-width: 680px;
    font-size: clamp(3.2rem, 6.4vw, 5.65rem);
    font-weight: 790;
    line-height: 0.98;
}

.lead {
    max-width: 590px;
    font-size: 1.12rem;
    font-weight: 470;
}

.eyebrow,
.pill,
.panel-kicker,
label,
.checklist-head,
.calendar-weekdays {
    font-weight: 720;
}

.primary,
.secondary,
.tab,
.menu-item,
.setup-item,
.summary-line,
.member-chip,
.day-title,
.progress-pill,
.week-day,
.check-label,
.feature-card h3,
.price-card h3,
.faq-grid h3 {
    font-weight: 680;
}

.panel-title,
.modal-title,
.section-head h2,
.usecase-band h2 {
    font-weight: 760;
}

input,
select,
textarea {
    font-weight: 520;
}

.landing-preview {
    display: block;
}

body.is-auth .landing-preview,
body.is-app .landing-preview {
    display: none;
}

.preview-card {
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 238, 231, 0.86));
    box-shadow: var(--shadow);
}

.preview-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.preview-head span {
    display: block;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 720;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.preview-head strong {
    display: block;
    margin-top: 4px;
    font-size: 1.35rem;
    font-weight: 760;
}

.preview-pill {
    min-height: 38px;
    display: inline-flex !important;
    align-items: center;
    border-radius: 999px;
    padding: 0 13px;
    background: var(--cream);
    color: var(--text) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.preview-progress {
    height: 11px;
    margin: 22px 0;
    border-radius: 999px;
    overflow: hidden;
    background: var(--soft);
}

.preview-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
}

.preview-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 7px;
    margin-bottom: 18px;
}

.preview-week span {
    min-height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--muted);
    background: var(--surface);
    font-size: 0.76rem;
    font-weight: 640;
}

.preview-week .is-done {
    background: #e5f1df;
    color: var(--text);
}

.preview-week .is-today {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(143, 160, 132, 0.16);
    color: var(--text);
}

.preview-list {
    display: grid;
    gap: 10px;
}

.preview-list div {
    min-height: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px 38px;
    gap: 10px;
    align-items: center;
    border-radius: 16px;
    padding: 8px 10px 8px 14px;
    background: var(--surface);
}

.preview-list span {
    font-weight: 620;
}

.preview-list b,
.preview-list i {
    width: 36px;
    height: 36px;
    display: block;
    border-radius: 12px;
    background: var(--primary);
}

.preview-list i {
    border: 2px solid var(--line);
    background: transparent;
}

.site-footer {
    background: #26342d;
    color: rgba(255, 255, 255, 0.78);
}

body.is-app .site-footer {
    display: none;
}

.footer-inner {
    width: min(100%, 1180px);
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
    padding: 26px 24px;
}

.footer-inner strong {
    display: block;
    color: #fff;
    font-weight: 720;
    margin-bottom: 6px;
}

.footer-inner span {
    font-size: 0.92rem;
}

.footer-inner nav {
    display: flex;
    gap: 14px;
}

.footer-inner a {
    color: #fff;
    text-decoration: none;
    font-weight: 560;
}

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

.legal-page {
    width: min(100%, 860px);
    margin: 0 auto;
    padding: 44px 24px 80px;
}

.legal-page h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
}

.legal-page p {
    color: var(--muted);
    line-height: 1.75;
}

@media (max-width: 860px) {
    .shell {
        padding: 0 16px 48px;
    }

    .topbar {
        top: 10px;
        margin-top: 10px;
        border-radius: 20px;
    }

    .site-menu-button {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        z-index: 30;
        display: none;
        grid-template-columns: 1fr;
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 8px;
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .topbar.is-site-open .site-nav {
        display: grid;
    }

    .site-nav a {
        min-height: 44px;
        border-radius: 12px;
        padding: 0 12px;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 32px;
    }

    .landing-preview {
        display: none;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    h1 {
        font-size: clamp(2.35rem, 10vw, 3.15rem);
        line-height: 1.02;
    }

    .lead {
        font-size: 1rem;
    }

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