/*
 * WorshipPlanning home page. Same tokens as the app (DESIGN.md in the WorshipPlanning repo):
 * warm chrome ground, white sheets, deep teal used sparingly.
 */
:root {
    --ground: #ffffff;
    --surface: #f9f9f9;
    --chrome: #f7f6f2;
    --border: #eaeaea;
    --rule: #f3f3f3;
    --text: #1f201d;
    --muted: #636361;
    --accent: #1b6e66;
    --accent-deep: #155e57;
    --accent-soft: #e8f5f3;
    --positive: #2e7d32;
    --warning: #92400e;
    --radius-control: 10px;
    --radius-card: 16px;
    --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
    --serif: "Instrument Serif", Georgia, serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

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

img {
    max-width: 100%;
    display: block;
}

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

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

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .wrap {
        padding: 0 24px;
    }
}

/* Header */

.site-header {
    background: var(--ground);
    border-bottom: 1px solid var(--border);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
}

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

.brand svg {
    width: 28px;
    height: 28px;
    flex: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px 20px;
    flex-wrap: wrap;
    font-size: 15px;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 6px 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--text);
}

.site-nav a[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--accent);
}

.site-nav .nav-signin {
    color: var(--accent);
    font-weight: 500;
}

@media (max-width: 560px) {
    .site-header .wrap {
        padding-top: 12px;
        padding-bottom: 8px;
    }

    .site-nav {
        width: 100%;
        gap: 4px 16px;
    }
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.7rem 1.15rem;
    border-radius: var(--radius-control);
    border: 1px solid transparent;
    font: inherit;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button-primary {
    background: var(--accent);
    color: #ffffff;
}

.button-primary:hover {
    background: var(--accent-deep);
    color: #ffffff;
}

.button-secondary {
    background: var(--ground);
    border-color: #d9d9d6;
    color: var(--text);
}

.button-secondary:hover {
    border-color: var(--accent);
    color: var(--accent-deep);
}

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

/* Typography */

.eyebrow {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

h1,
.display {
    margin: 0 0 16px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.3rem, 5.5vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
}

h2 {
    margin: 0 0 12px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.7rem, 3.4vw, 2.2rem);
    line-height: 1.15;
}

h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.lead {
    margin: 0 0 28px;
    max-width: 38rem;
    font-size: 18px;
    color: var(--muted);
}

p {
    margin: 0 0 12px;
}

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

/* Sections */

.hero {
    padding: 56px 0 64px;
}

.hero-grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

@media (min-width: 900px) {
    .hero {
        padding: 88px 0 96px;
    }

    .hero-grid {
        grid-template-columns: 1.05fr 1fr;
    }
}

.page-intro {
    padding: 56px 0 32px;
}

.page-intro .lead {
    margin-bottom: 0;
}

.section {
    padding: 56px 0;
}

.section-sheet {
    background: var(--ground);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    max-width: 40rem;
    margin-bottom: 32px;
}

.section-head p {
    color: var(--muted);
}

/* Run-of-show illustration on the home page */

.ros {
    background: var(--ground);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: 0 1px 2px rgba(31, 32, 29, 0.04), 0 12px 32px -12px rgba(31, 32, 29, 0.12);
    overflow: hidden;
    font-size: 14px;
}

.ros-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.ros-head strong {
    font-weight: 600;
}

.ros-head span {
    color: var(--muted);
    font-size: 13px;
}

.ros ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ros li {
    display: grid;
    grid-template-columns: 3.4rem 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 11px 20px;
    border-bottom: 1px solid var(--rule);
}

.ros li:last-child {
    border-bottom: 0;
}

.ros time {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.ros .who {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-ok {
    background: #edf6ee;
    color: var(--positive);
}

.status-wait {
    background: #fbf3e8;
    color: var(--warning);
}

/* Feature lists */

.pillars {
    display: grid;
    gap: 16px;
}

@media (min-width: 760px) {
    .pillars {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: var(--ground);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 24px;
}

.card p:last-child {
    margin-bottom: 0;
}

.card .muted {
    font-size: 15px;
}

.icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border-radius: var(--radius-control);
    background: var(--accent-soft);
    color: var(--accent);
}

.icon svg {
    width: 20px;
    height: 20px;
}

.feature-group {
    display: grid;
    gap: 24px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.feature-group:first-of-type {
    border-top: 0;
    padding-top: 8px;
}

@media (min-width: 860px) {
    .feature-group {
        grid-template-columns: 17rem 1fr;
        gap: 48px;
    }
}

.feature-group > header p {
    color: var(--muted);
    font-size: 15px;
}

.feature-list {
    display: grid;
    gap: 24px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .feature-list {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-list p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    vertical-align: 2px;
}

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

.checks li {
    position: relative;
    padding-left: 28px;
}

.checks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.45em;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

.two-col {
    display: grid;
    gap: 32px;
}

@media (min-width: 860px) {
    .two-col {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
        align-items: start;
    }
}

/* Screenshots */

.shots {
    display: grid;
    gap: 48px;
}

.shot {
    margin: 0;
    display: grid;
    gap: 20px;
}

@media (min-width: 900px) {
    .shot {
        grid-template-columns: 1.6fr 1fr;
        gap: 40px;
        align-items: center;
    }

    .shot:nth-child(even) {
        grid-template-columns: 1fr 1.6fr;
    }

    .shot:nth-child(even) .shot-frame {
        order: 2;
    }
}

.shot-frame {
    position: relative;
    background: var(--ground);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 8px;
    box-shadow: 0 12px 32px -16px rgba(31, 32, 29, 0.18);
}

.shot-frame img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--rule);
}

.shot-frame.is-phone {
    max-width: 320px;
    justify-self: center;
}

.shot-placeholder {
    display: none;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    background:
        repeating-linear-gradient(0deg, transparent 0 27px, var(--rule) 27px 28px),
        var(--surface);
    place-items: center;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    padding: 16px;
}

.is-phone .shot-placeholder {
    aspect-ratio: 9 / 16;
}

.shot-frame.is-missing img {
    display: none;
}

.shot-frame.is-missing .shot-placeholder {
    display: grid;
}

.shot figcaption h2 {
    font-size: 1.7rem;
}

.shot figcaption p {
    color: var(--muted);
}

/* Call to action band */

.cta {
    padding: 64px 0;
}

.cta-box {
    display: grid;
    gap: 24px;
    padding: 32px;
    border-radius: var(--radius-card);
    background: var(--accent-deep);
    color: #ffffff;
}

.cta-box h2 {
    margin-bottom: 8px;
}

.cta-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.cta-box .button-primary {
    background: #ffffff;
    color: var(--accent-deep);
}

.cta-box .button-primary:hover {
    background: var(--accent-soft);
}

.cta-box .button-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
}

.cta-box .button-secondary:hover {
    border-color: #ffffff;
    color: #ffffff;
}

@media (min-width: 860px) {
    .cta-box {
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 40px 48px;
    }
}

/* Footer */

.site-footer {
    padding: 32px 0 40px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.site-footer a {
    color: var(--muted);
}

.site-footer a:hover {
    color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
