﻿/* PracticeMine teaser - www.practicemine.com
   Static, no JS. Light and dark follow the visitor's system preference.
   One accent color (the product web client's blue family) plus a navy
   neutral for the two "framed" blocks: the hero data panel and the contact
   band. Layout revised 2026-09-13 after an external review; the copy rules in
   doc/PracticeMine-Teaser-Site-Prompt.md still govern every word. */

:root {
    color-scheme: light dark;

    --bg:        #ffffff;
    --surface:   #f3f6fa;
    --fg:        #172a3f;
    --muted:     #526276;
    --line:      #dce3eb;
    --accent:    #1f6fc2;   /* 5.2:1 on --bg; white on it 5.2:1 */
    --accent-fg: #ffffff;
    --tint:      #edf3fa;   /* the emphasised band */
    --art:       #b8cce2;   /* decorative second lines in the measure marks */

    /* Navy blocks: fixed in both schemes, so their own text colors live here. */
    --navy:           #14283f;
    --navy-fg:        #ecf3fb;
    --navy-muted:     #b5c9df;
    --navy-line:      #36506a;
    --navy-grid:      #2b4059;
    --navy-bar:       #365473;
    --navy-accent:    #83bdf5;
    --navy-accent-fg: #10243b;
    --navy-soft:      #8da5bf;

    --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --gutter: clamp(1.25rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg:        #111b28;
        --surface:   #162334;
        --fg:        #eaf0f7;
        --muted:     #abb9ca;
        --line:      #304054;
        --accent:    #83bdf5;   /* 8:1 on --bg */
        --accent-fg: #10243b;
        --tint:      #192a3e;
        --art:       #47617d;
    }
}

/* ---------- base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: 2rem; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 1.0625rem/1.65 var(--font);
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }

h1 { font-size: clamp(2.75rem, 4.3vw, 4.25rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.045em; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 600; line-height: 1.16; letter-spacing: -0.035em; }
h3 { font-size: 1.0625rem; line-height: 1.4; font-weight: 650; }

a { color: var(--accent); text-underline-offset: 0.25em; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Enlarged text (200% zoom on a phone) must never force a horizontal scroll. */
.wrap > *, .hero-grid > *, .contact-grid > *, .split > * { min-width: 0; }

.skip {
    position: absolute;
    top: -5rem;
    left: 1rem;
    padding: 0.75rem 1rem;
    color: var(--accent-fg);
    background: var(--accent);
    z-index: 10;
}
.skip:focus { top: 1rem; }

/* Small uppercase label above every section heading. */
.eyebrow {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 0.95rem 1.25rem;
    min-height: 3rem;
    background: var(--accent);
    color: var(--accent-fg);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 650;
    transition: filter 0.15s;
}
.button:hover { filter: brightness(1.12); }
.button span { font-size: 1.25rem; line-height: 1; }

.link { font-size: 0.9375rem; font-weight: 550; }

/* ---------- header ---------- */

.top { border-bottom: 1px solid var(--line); }

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding-block: 1.4rem;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    max-width: 100%;
    font-size: 1.45rem;
    font-weight: 650;
    letter-spacing: -0.04em;
    color: var(--fg);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.wordmark > span { min-width: 0; }
.brand-icon { flex-shrink: 0; }
.mine { color: var(--accent); }

.top nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.6rem;
    font-size: 0.875rem;
}
.top nav a { color: var(--muted); text-decoration: none; padding-block: 0.5rem; }
.top nav a:hover { color: var(--accent); text-decoration: underline; }
.top nav .signin {
    border: 1px solid var(--line);
    padding: 0.6rem 1rem;
    color: var(--fg);
    border-radius: 4px;
    font-weight: 600;
}

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

.hero { padding-block: clamp(3.5rem, 7vw, 6rem); }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.lede { max-width: 34rem; font-size: 1.125rem; color: var(--muted); margin-top: 1.6rem; }

.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 2rem;
}

.hero-note { color: var(--muted); font-size: 0.875rem; margin-top: 1.5rem; }

/* The decorative data panel: navy in both schemes. */
.data-panel {
    background: var(--navy);
    color: var(--navy-fg);
    padding: 1.7rem;
    border-radius: 6px;
    overflow: hidden;
}
.panel-heading, .panel-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--navy-muted);
}
.panel-question {
    font-size: clamp(1.5rem, 2.3vw, 2rem);
    letter-spacing: -0.025em;
    line-height: 1.3;
    margin-top: 2.25rem;
}
.panel-footer { border-top: 1px solid var(--navy-line); padding-top: 1rem; font-size: 0.75rem; justify-content: flex-end; }

.hero-art { display: block; width: 100%; height: auto; margin-block: 1.5rem 1rem; }
.hero-art .grid line   { stroke: var(--navy-grid); stroke-width: 1; }
.hero-art .bars rect   { fill: var(--navy-bar); }
.hero-art .line        { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hero-art .muted-line  { stroke: var(--navy-soft); }
.hero-art .accent-line { stroke: var(--navy-accent); }
.hero-art .dots circle { fill: var(--navy-accent); }

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

.band { padding-block: clamp(3rem, 6vw, 5.5rem); border-top: 1px solid var(--line); }

/* Heading on the left, prose on the right. */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 2rem 5rem;
}
.prose { max-width: 36rem; color: var(--muted); }
.prose p + p { margin-top: 1rem; }

.problem  { background: var(--surface); }
.about    { background: var(--surface); }
.emphasis { background: var(--tint); }
.emphasis .statement { color: var(--fg); font-size: 1.4rem; line-height: 1.45; letter-spacing: -0.02em; }

/* measures */

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}
.section-lede { color: var(--muted); max-width: 23rem; }

.areas {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0 2rem;
}
.areas li { border-top: 1px solid var(--line); padding-block: 1.5rem 2rem; }
.areas svg { width: 4rem; height: 1.5rem; display: block; margin-bottom: 1.3rem; }
.areas svg path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.areas svg path.second { stroke: var(--art); }
.areas svg rect { fill: var(--accent); }
.areas h3 { margin-bottom: 0.55rem; }
.areas p { color: var(--muted); font-size: 1rem; }

.footnote { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; }

/* where it fits */

.fits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
    margin-top: 2.5rem;
}
.fits h3 { border-top: 2px solid var(--accent); padding-top: 1.3rem; margin-bottom: 0.75rem; font-size: 1.25rem; }
.fits p { color: var(--muted); }

/* contact: navy band, same family as the hero panel */

.contact { background: var(--navy); color: var(--navy-fg); }
.contact .eyebrow { color: var(--navy-accent); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3rem;
}
.contact p:not(.eyebrow) { color: var(--navy-muted); margin-top: 1.5rem; max-width: 39rem; }
.contact-action { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.contact .button {
    background: var(--navy-accent);
    color: var(--navy-accent-fg);
    min-width: min(13rem, 100%);
    max-width: 100%;
}
.address { color: var(--navy-muted); font-size: 0.9375rem; overflow-wrap: anywhere; }

/* ---------- footer ---------- */

.foot { padding-block: 1.75rem; color: var(--muted); font-size: 0.875rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot-links a[aria-current="page"] { color: var(--muted); text-decoration: none; }
.wordmark-text { color: var(--fg); font-weight: 650; }

/* ---------- legal pages: privacy.html, terms.html ---------- */

.legal { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.legal .doc { max-width: 44rem; }
.legal h1 { font-size: clamp(2.25rem, 3.5vw, 3rem); margin-bottom: 0.75rem; }
.legal .updated { color: var(--muted); font-size: 0.9375rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin-top: 2.75rem; margin-bottom: 0.75rem; }
.legal p + p, .legal ul + p, .legal ol + p { margin-top: 1rem; }
.legal ul, .legal ol { padding-left: 1.4rem; margin: 0.75rem 0 0; }
.legal li + li { margin-top: 0.5rem; }

/* Plain-language summary at the top, framed like the emphasized band. */
.legal .summary {
    background: var(--tint);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.legal .toc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 1.25rem; font-size: 0.9375rem; }
.legal .toc p { color: var(--muted); font-weight: 650; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; }
.legal .toc ol { columns: 2; column-gap: 2rem; margin-top: 0.75rem; }
.legal .toc li { break-inside: avoid; margin-top: 0.3rem; }
.legal .toc a { text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }

/* A decision still to be made before the page is final. Loud on purpose. */
.legal .placeholder {
    background: var(--tint);
    color: var(--accent);
    border: 1px dashed var(--accent);
    border-radius: 3px;
    padding: 0 0.3em;
    font-weight: 600;
}

/* ---------- narrower screens ---------- */

@media (max-width: 65rem) {
    .top-row { flex-wrap: wrap; }
    .hero-grid { gap: 2rem; }
    .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { gap: 2rem; }
}

@media (max-width: 48rem) {
    .hero-grid, .split, .fits, .contact-grid { grid-template-columns: 1fr; }
    .hero-grid { gap: 2.5rem; }
    .hero-text { max-width: 38rem; }
    .data-panel { max-width: 36rem; width: 100%; }
    .hero-art { max-height: 16rem; }
    .panel-question { margin-top: 1.5rem; }
    .section-heading { display: block; }
    .section-lede { margin-top: 1.5rem; }
    .fits { gap: 2rem; }
    .contact-action { align-items: flex-start; }
}

@media (max-width: 30rem) {
    .legal .toc ol { columns: 1; }
    .top nav { gap: 0.25rem 1rem; }
    .top nav .signin { border: 0; padding: 0.5rem 0; color: var(--accent); }
    .areas { grid-template-columns: 1fr; }
    .actions { align-items: flex-start; flex-direction: column; }
    .actions .button { width: 100%; gap: 0.75rem; }
    .data-panel { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
