/* Mind Your Schedule marketing site. Plain modern CSS: custom properties, nesting, clamp() and light/dark themes. */

:root {
    --brand-50: #eef2ff;
    --brand-100: #e0e7ff;
    --brand-300: #a5b4fc;
    --brand-500: #6366f1;
    --brand-600: #4f46e5;
    --brand-700: #4338ca;
    --brand-800: #3730a3;
    --venmo: #008cff;

    --bg: #ffffff;
    --bg-tint: #f7f8fc;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #5b6475;
    --border: #e4e7ef;
    --accent: var(--brand-600);
    --accent-soft: var(--brand-50);
    --success: #059669;
    --danger: #dc2626;
    --shadow: 0 1px 2px rgb(15 23 42 / .06), 0 8px 24px rgb(15 23 42 / .06);
    --shadow-lg: 0 24px 60px rgb(49 46 129 / .18);

    --radius: 14px;
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b0d17;
        --bg-tint: #11142080;
        --surface: #151927;
        --text: #e8eaf2;
        --muted: #9aa3b8;
        --border: #262b3d;
        --accent: var(--brand-300);
        --accent-soft: rgb(99 102 241 / .14);
        --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .3);
        --shadow-lg: 0 24px 60px rgb(0 0 0 / .5);
        color-scheme: dark;
    }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.125rem; font-weight: 650; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent); }
img, svg { display: block; }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2.5rem); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.accent { color: var(--accent); }
.eyebrow {
    font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent); margin-bottom: .75rem;
}

.skip-link {
    position: absolute; left: -999px; top: .5rem; z-index: 100;
    background: var(--surface); padding: .5rem 1rem; border-radius: 8px;
    &:focus { left: .5rem; }
}

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---- buttons ------------------------------------------------------------------------------------------ */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .65rem 1.15rem; border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;

    &:hover { transform: translateY(-1px); }
    &:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 2px; }
}
.btn-lg { padding: .85rem 1.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary {
    background: var(--brand-600); color: #fff; box-shadow: 0 6px 18px rgb(79 70 229 / .35);
    &:hover { background: var(--brand-700); }
}
.btn-outline {
    background: var(--surface); color: var(--text); border-color: var(--border);
    &:hover { border-color: var(--brand-300); }
}
.btn-ghost { background: transparent; color: var(--text); &:hover { background: var(--accent-soft); } }
.btn-light { background: #fff; color: var(--brand-800); &:hover { background: var(--brand-50); } }

/* ---- header and footer -------------------------------------------------------------------------------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 2rem; height: 68px; }
.brand {
    display: inline-flex; align-items: center; gap: .6rem;
    font-weight: 750; font-size: 1.1rem; color: var(--text); text-decoration: none; white-space: nowrap;
    & .logo { width: 30px; height: 30px; }
}
.nav-links {
    display: flex; gap: 1.5rem; margin-right: auto;
    & a { color: var(--muted); text-decoration: none; font-weight: 500; &:hover, &.active { color: var(--text); } }
}
.nav-actions { display: flex; gap: .5rem; }

@media (max-width: 760px) {
    .nav { gap: 1rem; }
    .nav-links { display: none; }
    .nav-actions { margin-left: auto; & .btn-ghost { display: none; } & .btn { padding: .55rem 1rem; } }
}

.site-footer { border-top: 1px solid var(--border); padding: 3rem 0; margin-top: 2rem; }
.footer-grid {
    display: grid; gap: 1.5rem; grid-template-columns: 2fr 1fr; align-items: start;
    & p { margin-top: .75rem; max-width: 36ch; }
    & nav { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: end; }
    & nav a { color: var(--muted); text-decoration: none; &:hover { color: var(--text); } }
    & > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; & nav { justify-content: start; } } }

/* ---- sections ----------------------------------------------------------------------------------------- */

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-tint { background: var(--bg-tint); border-block: 1px solid var(--border); }
.page-head { padding-top: clamp(3rem, 6vw, 4.5rem); }
.section-head {
    max-width: 720px; margin: 0 auto 3rem; text-align: center;
    & .eyebrow { margin-bottom: .5rem; }
}

.split {
    display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; grid-template-columns: 1fr 1.1fr;
    &.split-reverse > :first-child { order: 2; }
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; &.split-reverse > :first-child { order: 0; } } }

/* ---- hero --------------------------------------------------------------------------------------------- */

.hero {
    position: relative; overflow: hidden; padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 6.5rem);
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgb(99 102 241 / .18), transparent 60%),
        radial-gradient(40rem 24rem at -10% 20%, rgb(14 165 233 / .12), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1.5rem; }
.hero-points {
    display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; margin: 0; list-style: none;
    color: var(--muted); font-size: .95rem;
    & li { display: inline-flex; align-items: center; gap: .4rem; }
    & .icon { color: var(--success); }
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* The drawn app preview */
.preview {
    position: relative; margin: 0; background: var(--surface); border: 1px solid var(--border);
    border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: .78rem;
    transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
}
@media (max-width: 960px) { .preview { transform: none; } }
.preview-bar {
    display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid var(--border);
    & .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
}
.preview-title { margin-left: .75rem; font-weight: 600; color: var(--muted); }
.preview-toolbar {
    display: flex; justify-content: space-between; align-items: center; padding: .65rem 1rem;
    & .seg { display: inline-flex; background: var(--bg-tint); border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
    & .seg > * { padding: .2rem .6rem; border-radius: 6px; color: var(--muted); font-weight: 500; }
    & .seg b { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
}
.preview-search {
    display: inline-flex; gap: .35rem; align-items: center; color: var(--muted);
    border: 1px solid var(--border); border-radius: 8px; padding: .25rem .6rem; min-width: 8rem;
    @media (max-width: 520px) { display: none; }
}
.preview-grid {
    --hour: 46px;
    display: grid; grid-template-columns: 3.2rem repeat(3, 1fr); padding: 0 1rem 1rem; gap: .5rem;
    @media (max-width: 520px) { grid-template-columns: 2.6rem repeat(3, 1fr); padding-inline: .6rem; }
}
.preview-times {
    padding-top: 2.4rem; display: grid; grid-auto-rows: var(--hour); color: var(--muted); font-size: .7rem;
}
.preview-person {
    display: flex; align-items: center; gap: .4rem; height: 2rem; margin-bottom: .4rem; font-weight: 600;
}
.avatar {
    display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    background: hsl(var(--hue) 80% 92%); color: hsl(var(--hue) 60% 35%); font-size: .7rem; font-weight: 700;
}
.preview-slots {
    position: relative; height: calc(var(--hour) * 6);
    background: repeating-linear-gradient(to bottom, var(--border) 0 1px, transparent 1px var(--hour));
    border-radius: 6px;
}
.block {
    position: absolute; inset-inline: 2px; top: calc(var(--start) * var(--hour) + 2px);
    height: calc(var(--length) * var(--hour) - 4px); padding: .3rem .45rem; border-radius: 7px; overflow: hidden;
    background: hsl(var(--hue) 85% 95%); border-left: 3px solid hsl(var(--hue) 70% 55%); color: hsl(var(--hue) 55% 25%);
    display: flex; flex-direction: column; line-height: 1.3;
    & span { opacity: .8; }
}
@media (prefers-color-scheme: dark) {
    .block { background: hsl(var(--hue) 40% 20%); color: hsl(var(--hue) 80% 88%); }
    .avatar { background: hsl(var(--hue) 40% 25%); color: hsl(var(--hue) 80% 85%); }
}
.preview-toast {
    position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; gap: .45rem; align-items: center;
    background: var(--text); color: var(--bg); padding: .55rem .85rem; border-radius: 10px; font-weight: 500;
    box-shadow: var(--shadow); animation: toast 6s ease-in-out infinite;
}
@keyframes toast {
    0%, 12% { opacity: 0; transform: translateY(8px); }
    18%, 82% { opacity: 1; transform: none; }
    90%, 100% { opacity: 0; transform: translateY(8px); }
}
@media (prefers-reduced-motion: reduce) { .preview-toast { animation: none; } html { scroll-behavior: auto; } }

/* ---- features ----------------------------------------------------------------------------------------- */

.feature-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.feature {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    &:hover { border-color: var(--brand-300); box-shadow: var(--shadow); transform: translateY(-2px); }
    & p { color: var(--muted); margin: 0; }
}
.feature-icon {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1rem;
    border-radius: 12px; background: var(--accent-soft); color: var(--accent);
    & .icon { width: 22px; height: 22px; }
}
.venmo-icon { color: var(--venmo); }

.roles { display: grid; gap: 1rem; }
.role {
    display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; align-items: start;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.4rem;
    & p { margin: 0; color: var(--muted); }
}
.role-tag {
    justify-self: start; font-size: .8rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px;
}
.role-owner { background: #fef3c7; color: #92400e; }
.role-manager { background: #dbeafe; color: #1e40af; }
.role-employee { background: #dcfce7; color: #166534; }
@media (max-width: 520px) { .role { grid-template-columns: 1fr; } }

/* ---- reminders demo ----------------------------------------------------------------------------------- */

.reminder-demo { position: relative; padding-bottom: 3rem; }
.mock-email {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1.4rem 1.5rem; max-width: 470px;
    & p { margin: 0 0 .7rem; }
}
.mock-email-head {
    display: flex; gap: .75rem; align-items: start; padding-bottom: .9rem; margin-bottom: .9rem;
    border-bottom: 1px solid var(--border);
    & > .icon { color: var(--accent); margin-top: .2rem; }
    & div { display: grid; }
}
.mock-email-details {
    display: grid; gap: .2rem; background: var(--bg-tint); border-radius: 10px; padding: .7rem .9rem;
    & b { display: inline-block; width: 4rem; color: var(--muted); font-weight: 500; }
}
.mock-phone {
    position: absolute; right: 0; bottom: 0; width: min(290px, 70%);
    background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 1rem;
    box-shadow: var(--shadow-lg);
}
.bubble {
    background: #e9e9eb; color: #111; padding: .65rem .85rem; border-radius: 18px 18px 18px 4px; font-size: .9rem;
}
@media (prefers-color-scheme: dark) { .bubble { background: #26252a; color: #eee; } }
.bubble-meta { display: block; margin-top: .4rem; font-size: .75rem; color: var(--muted); }
@media (max-width: 520px) { .mock-phone { position: static; width: auto; margin-top: 1rem; } .reminder-demo { padding: 0; } }

/* ---- steps, faq, cta ---------------------------------------------------------------------------------- */

.steps {
    display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    list-style: none; padding: 0; margin: 0;
    & li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
    & p { color: var(--muted); margin: 0; }
}
.step-number {
    display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; margin-bottom: 1rem;
    background: var(--brand-600); color: #fff; font-weight: 700;
}

.faq {
    display: grid; gap: .75rem;
    & details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 1.25rem; }
    & summary {
        cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 600;
        display: flex; justify-content: space-between; gap: 1rem;
        &::-webkit-details-marker { display: none; }
        &::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s; }
    }
    & details[open] summary::after { transform: rotate(45deg); }
    & details p { color: var(--muted); padding-bottom: 1.1rem; margin: 0; }
}

.cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
    padding: clamp(2rem, 5vw, 3.5rem); border-radius: 24px; color: #fff;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500) 60%, #0ea5e9);
    box-shadow: var(--shadow-lg);
    & h2 { margin-bottom: .4rem; }
    & p { margin: 0; opacity: .9; max-width: 52ch; }
}

/* ---- pricing ------------------------------------------------------------------------------------------ */

.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.plan {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 2rem 1.75rem;
    & > .muted { min-height: 3.2em; }
    & .btn { margin: 1.25rem 0 1.5rem; }
}
.plan-featured {
    border: 2px solid var(--brand-600); box-shadow: var(--shadow-lg);
    @media (min-width: 900px) { transform: translateY(-10px); }
}
.plan-badge {
    position: absolute; top: -.8rem; left: 50%; translate: -50% 0;
    background: var(--brand-600); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .03em;
    padding: .3rem .8rem; border-radius: 999px; white-space: nowrap;
}
.price { display: flex; align-items: baseline; gap: .4rem; margin: .5rem 0 .25rem; }
.price-amount { font-size: 2.75rem; font-weight: 800; letter-spacing: -.03em; }
.plan-team { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-weight: 500; margin: 0; }
.plans-note { display: flex; justify-content: center; align-items: center; gap: .45rem; margin-top: 2rem; text-align: center; }

.checklist {
    list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem;
    & li { display: flex; gap: .6rem; align-items: start; }
    & .icon { color: var(--success); margin-top: .25rem; }
}
.checklist-lg { gap: .85rem; margin-top: 1.5rem; }

.pay-methods {
    display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    & article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
    & p { color: var(--muted); margin: 0; }
}

/* ---- checkout ----------------------------------------------------------------------------------------- */

.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { order: -1; } }
.back-link { display: inline-block; margin-bottom: 1rem; text-decoration: none; font-weight: 500; }
.checkout-form h1 { font-size: clamp(2rem, 4vw, 2.6rem); }

.form { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.field {
    display: grid; gap: .35rem; align-content: start; border: 0; padding: 0; margin: 0; min-width: 0;
    & label, & legend { font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: .1rem; }
    & input[type=text], & input[type=email], & input[type=tel], & input:not([type]) {
        font: inherit; color: var(--text); background: var(--surface);
        border: 1px solid var(--border); border-radius: 10px; padding: .7rem .85rem; width: 100%;
        transition: border-color .15s, box-shadow .15s;
        &:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgb(99 102 241 / .18); }
        &.invalid { border-color: var(--danger); }
    }
}
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.secure-note {
    display: flex; justify-content: center; align-items: center; gap: .45rem; margin: 0;
    color: var(--muted); font-size: .875rem; text-align: center;
}
.validation-message { color: var(--danger); font-size: .85rem; }

.pay-options { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; margin-top: .25rem; }
@media (max-width: 560px) { .pay-options { grid-template-columns: 1fr; } }
.pay-option {
    position: relative; cursor: pointer;
    & input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
    & .pay-option-body {
        display: flex; gap: .75rem; align-items: start; height: 100%;
        border: 1.5px solid var(--border); border-radius: 12px; padding: .9rem 1rem; background: var(--surface);
        transition: border-color .15s, box-shadow .15s, background .15s;
    }
    & .pay-option-body > span:last-child { display: grid; font-weight: 400; }
    & .icon { width: 1.4rem; height: 1.4rem; margin-top: .1rem; color: var(--accent); }
    & .venmo-icon .icon { color: var(--venmo); }
    & input:checked + .pay-option-body { border-color: var(--brand-600); background: var(--accent-soft); box-shadow: 0 0 0 3px rgb(99 102 241 / .15); }
    & input:focus-visible + .pay-option-body { outline: 3px solid var(--brand-300); outline-offset: 2px; }
}

.summary {
    position: sticky; top: 92px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1.75rem;
    box-shadow: var(--shadow);
    & h2 { font-size: 1.4rem; margin-bottom: .25rem; }
    & .checklist { margin: 1.25rem 0; padding-top: 1.25rem; border-top: 1px solid var(--border); }
    & > .small { margin: 0; }
}

.notice {
    display: flex; gap: .6rem; align-items: start; padding: .85rem 1rem; border-radius: 10px;
    background: var(--accent-soft); color: var(--text); margin: 1rem 0;
    & .icon { margin-top: .2rem; color: var(--accent); }
    &[hidden] { display: none; }
}
.notice-error { background: rgb(220 38 38 / .1); & .icon { color: var(--danger); } }

.venmo-panel {
    text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
    padding: clamp(2rem, 5vw, 3rem); box-shadow: var(--shadow);
    & .notice { text-align: left; }
}
.venmo-badge {
    display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; margin-bottom: 1.25rem;
    background: var(--venmo); color: #fff;
    & .icon { width: 32px; height: 32px; }
}
.venmo-buttons { max-width: 380px; margin: 1.5rem auto; min-height: 48px; }

.success-mark {
    display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; margin-bottom: 1.5rem;
    background: rgb(5 150 105 / .12); color: var(--success);
    & .icon { width: 36px; height: 36px; }
    &.pending { background: var(--accent-soft); color: var(--accent); }
}
.next-steps {
    text-align: left; max-width: 560px; margin: 2rem auto; padding: 0; list-style: none; counter-reset: step;
    display: grid; gap: .9rem;
    & li {
        counter-increment: step; position: relative; padding: 1rem 1rem 1rem 3.4rem;
        background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    }
    & li::before {
        content: counter(step); position: absolute; left: 1rem; top: 1rem;
        display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
        background: var(--brand-600); color: #fff; font-size: .8rem; font-weight: 700;
    }
}
