/*
 * landing.css
 *
 * The public front page at ovationcomedy.com.
 *
 * DELIBERATELY NOT NUMBERED. static/css/ holds six NN-*.css files whose cascade is decided purely
 * by source order - nineteen selectors are defined more than once - and two contract checks hash
 * their concatenation to catch a reordering. This file is linked only from templates/landing.html
 * and never joins that chain, so it cannot disturb either. Do not renumber it into the set.
 *
 * The PALETTE is not duplicated here. landing.html links 01-tokens-layout.css first purely for its
 * :root block, so there is one source of truth for the colours and this page cannot drift from the
 * app. The cost of that is the layout rules which come with it - 01 sets `body { display: flex }`
 * for the app's sidebar shell - so the body rules below exist to undo that. If the palette ever
 * moves out of 01, this file's link in landing.html has to follow it.
 */

/* Undo the app shell. 01-tokens-layout.css lays the body out as a flex row for the sidebar; this
   page is an ordinary vertical document. */
body {
    display: block;
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gradient-main);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.landing {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ---- Header ------------------------------------------------------------------------------- */

.landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.landing-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* "make sure to mention that it's free" - the most visible spot on the page, next to Sign in,
   before a reader has scrolled at all. A small tinted pill rather than a bar, so it reads as part
   of the same design language rather than a bolted-on banner. */
.free-badge {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 198, 46, 0.18);
    color: var(--primary-light);
}

.landing-logo {
    font-family: 'Anton', 'Rubik', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--primary);
}

.landing-header-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.landing-header-link:hover { color: var(--text-main); }

/* ---- First screen: headline left, sign-in right ------------------------------------------- */
/* The sign-in card shares the first screen with the headline so the one action on this page is
   never below the fold. Stacks to one column under 860px with the headline first. */

.stage {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 48px;
    align-items: center;
    padding: 40px 0 32px;
}

.hero { text-align: start; padding: 0; }

.hero h1 {
    font-family: 'Anton', 'Rubik', sans-serif;
    font-size: clamp(2.6rem, 6.4vw, 4.6rem);
    line-height: 1.02;
    font-weight: 400;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    margin: 0 0 18px;
    text-wrap: balance;
}

/* Emphasis by colour, not a gradient fill. */
.hero h1 .accent { color: var(--primary); }

.hero p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.6;
    color: #dcd0c8;
    max-width: 46ch;
    margin: 0;
}

/* A set as the room heard it. Decorative: speech is the low slate bars, laughter the violet peaks,
   applause the red block. */
.trace-wrap {
    padding: 8px 0 36px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 36px;
}

.trace { display: block; width: 100%; height: 132px; }
.trace .t-s { fill: #574845; }
.trace .t-l { fill: var(--primary); }
.trace .t-a { fill: #c1121f; }

/* ---- Features ----------------------------------------------------------------------------- */
/* Two by two at reading size, divided by a hairline each - not four small cards. */

.features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 56px;
    margin: 0 0 64px;
}

.feature { border-top: 1px solid var(--border); padding-top: 20px; }

.feature-icon {
    display: block;
    color: var(--primary);
    margin-bottom: 14px;
}

.feature h2 {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 8px;
}

.feature p {
    font-size: 1rem;
    line-height: 1.6;
    color: #dcd0c8;
    max-width: 44ch;
    margin: 0;
}

/* ---- The curtain: the page's last word is the sign-in again -------------------------------- */
/* Curtain red with soft vertical folds. White text on the darkest fold measures over 9:1. */

.closer {
    text-align: center;
    padding: 56px 24px 60px;
    border-radius: 16px;
    background:
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0 2px, rgba(0, 0, 0, 0) 2px 46px, rgba(0, 0, 0, 0.14) 46px 92px),
        linear-gradient(180deg, #a50f1a 0%, #8a0c15 100%);
    color: #ffffff;
}

.closer h2 {
    font-family: 'Anton', 'Rubik', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.closer p { font-size: 1.05rem; color: #ffe1de; margin: 0 0 28px; }

.closer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 260px));
    gap: 12px;
    justify-content: center;
}

.closer .sso-button { margin-bottom: 0; border-color: transparent; }

/* ---- Sign-in ------------------------------------------------------------------------------ */

.signin {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    box-sizing: border-box;
    background: #201919;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 28px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.signin h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 6px;
}

.signin-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 20px;
}

.sso-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 18px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: #1f2328;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.sso-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.sso-button svg { flex-shrink: 0; }

/* Apple's greyed-out `.sso-button.is-disabled` state and its "Soon" `.sso-badge` pill used to live
   here. Both went when the Apple developer account arrived and the button became a real link.
   Deleted rather than kept for a rainy day because `check_no_orphan_css_classes` reports CSS that
   nothing renders - the point being that dead rules read as a description of a UI that does not
   exist. The palette values are not lost: `.free-badge` above is the same pill. */

.signin-error {
    font-size: 0.9rem;
    line-height: 1.45;
    color: #ffe1de;
    background: rgba(193, 18, 31, 0.28);
    border: 1px solid #c1121f;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0 0 16px;
}

.signin-note {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 18px 0 0;
}

.signin-note a { color: var(--primary-light); }

/* ---- Footer ------------------------------------------------------------------------------- */

.landing-footer {
    text-align: center;
    padding: 32px 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* User: "what changes do i need to make to the landing page and the app page so that they meet
   the minimimum requireents to be ada-compliant?" The Privacy Policy link is the same grey as the
   copyright line it sits in, so nothing but an underline can say it is a link. Scoped to the
   footer: the header's "Sign in" shares the class but stands alone, where a link is expected. */
.landing-footer a { text-decoration: underline; display: inline; min-height: 0; font-size: inherit; font-weight: inherit; }

@media (max-width: 860px) {
    .stage { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 24px 0 24px; }
}

@media (max-width: 700px) {
    .features { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 44px; }
    .closer-actions { grid-template-columns: minmax(0, 1fr); }
    .closer { padding: 40px 20px 44px; }
}

@media (max-width: 600px) {
    .signin { padding: 24px 20px; }
    .trace { height: 88px; }
}

.sso-button:focus-visible,
.landing-header-link:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

::selection { background: var(--primary); color: #1a1410; }

/* ---- Long-form prose (privacy policy, and anything like it) -------------------------------- */
/*
 * Lives here rather than in its own file because it shares the palette and the page shell with
 * the landing page, and because static/css/ is otherwise the numbered, order-dependent chain that
 * this file deliberately sits outside of. One unnumbered stylesheet for the public pages is
 * simpler than two.
 */

.prose {
    max-width: 760px;          /* ~75 characters at this size - past that, lines get hard to track */
    margin: 0 auto;
    padding: 8px 0 40px;
}

.prose h1 {
    font-size: clamp(1.9rem, 4.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 24px 0 6px;
}

.prose .updated {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0 0 34px;
}

.prose h2 {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 38px 0 12px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.prose h2:first-of-type { border-top: none; padding-top: 0; }

/* Sub-headings inside a numbered section ("Personal Information", "Service Providers").
   Deliberately without the h2 separator rule - the horizontal lines mark the nine top-level
   sections, and repeating them here would flatten that hierarchy back out. */
.prose h3 {
    font-size: 0.99rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 26px 0 10px;
}

.prose ul {
    margin: 0 0 16px;
    padding-left: 22px;
}

.prose li {
    font-size: 0.97rem;
    line-height: 1.72;
    color: #dcd0c8;
    margin-bottom: 6px;
}

.prose li::marker { color: var(--primary-light); }

.prose p {
    font-size: 0.97rem;
    line-height: 1.72;         /* generous: this is dense text people skim rather than read */
    color: #dcd0c8;            /* slightly brighter than --text-muted; muted grey is tiring here */
    margin: 0 0 16px;
}

.prose a { color: var(--primary-light); }

.prose .contact {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 22px;
    margin-top: 30px;
}

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

@media (max-width: 600px) {
    .prose h2 { margin-top: 30px; }
}
