/* Water Eject: shared styling for the privacy and support pages.
   Palette mirrors the app's pool shader: deep water, ceramic tiles, foam. */

:root {
    color-scheme: dark;

    --deep: #06243c;
    --deep-soft: #0a335c;
    --tile: #338cc7;
    --tile-light: #4dadde;
    --foam: #6bcceb;
    --text: #e9f4fb;
    --muted: #a6c6dc;
    --rule: rgba(153, 199, 224, 0.16);
    --panel: rgba(153, 199, 224, 0.07);
}

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

body {
    margin: 0;
    padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 2rem) 4rem;
    background-color: var(--deep);
    background-image:
        radial-gradient(120% 80% at 50% -10%, rgba(107, 204, 235, 0.16), transparent 60%),
        linear-gradient(180deg, var(--deep-soft), var(--deep) 55%);
    background-attachment: fixed;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

main,
.masthead,
.colophon {
    max-width: 40rem;
    margin-inline: auto;
}

/* Masthead */

.masthead {
    margin-bottom: 2.5rem;
}

.wordmark {
    display: inline-block;
    margin: 0;
    color: var(--foam);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
}

h1 {
    margin: 0.5rem 0 0.35rem;
    font-size: clamp(1.9rem, 6vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.dateline {
    margin: 0;
    color: var(--muted);
    font-size: 0.9375rem;
}

/* Body copy */

h2 {
    margin: 2.75rem 0 0.75rem;
    font-size: 1.3125rem;
    letter-spacing: -0.01em;
}

h3 {
    margin: 1.75rem 0 0.5rem;
    font-size: 1.0625rem;
}

p,
ul,
ol {
    margin: 0 0 1rem;
}

ul,
ol {
    padding-left: 1.35rem;
}

li {
    margin-bottom: 0.4rem;
}

li::marker {
    color: var(--tile-light);
}

.lede {
    color: var(--text);
    font-size: 1.1875rem;
    line-height: 1.55;
}

strong {
    font-weight: 600;
}

a {
    color: var(--foam);
    text-decoration-color: rgba(107, 204, 235, 0.45);
    text-underline-offset: 0.15em;
}

a:hover {
    text-decoration-color: currentColor;
}

a:focus-visible {
    outline: 2px solid var(--foam);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Panels: the summary box and the water-damage notice */

.panel {
    margin: 0 0 1.5rem;
    padding: 1.1rem 1.25rem;
    border-left: 3px solid var(--tile-light);
    border-radius: 0 12px 12px 0;
    background: var(--panel);
}

.panel > :last-child {
    margin-bottom: 0;
}

.panel h2 {
    margin-top: 0;
    font-size: 1.0625rem;
}

/* Numbered how-to steps */

.steps {
    margin: 0 0 1.5rem;
    padding-left: 1.35rem;
}

.steps li {
    margin-bottom: 0.6rem;
    padding-left: 0.25rem;
}

/* Question and answer blocks */

.faq h3 {
    color: var(--foam);
}

.faq p {
    margin-bottom: 1.35rem;
}

/* Landing page: wider measure, hero, and action pills */

body.landing main,
body.landing .masthead,
body.landing .colophon {
    max-width: 54rem;
}

/* Only the hero spans the full width; prose keeps a comfortable measure. */
body.landing main > :not(.hero) {
    max-width: 40rem;
}

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

@media (max-width: 46rem) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }
}

.appicon {
    display: block;
    width: 5rem;
    height: auto;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 12px 26px rgba(4, 20, 36, 0.5));
}

.shot {
    width: min(15rem, 60vw);
    height: auto;
    border-radius: 2rem;
    border: 1px solid rgba(153, 199, 224, 0.25);
    box-shadow: 0 24px 60px rgba(3, 16, 30, 0.55);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.actions li {
    margin: 0;
}

.actions a {
    display: inline-block;
    padding: 0.55rem 1.15rem;
    border: 1px solid rgba(107, 204, 235, 0.4);
    border-radius: 999px;
    background: var(--panel);
    color: var(--foam);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}

.actions a:hover {
    border-color: var(--foam);
    background: rgba(107, 204, 235, 0.14);
}

/* Colophon */

.colophon {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.9375rem;
}

.colophon nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-bottom: 0.75rem;
}

.colophon p {
    margin: 0;
}
