/* mountabledatasets.ca. One measure for every block: nav, text, cards, steps and footer sit on
   the same two edges (960 px, 16 px gutters on phones). Colors are the hero's bricks. */

@font-face {
    font-family: "Roboto Slab";
    src: url("/fonts/RobotoSlab-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Roboto Slab";
    src: url("/fonts/RobotoSlab-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

:root {
    --night: #071433;
    --navy: #0b2152;
    --deep: #1a3f8f;
    --royal: #2e6be0;
    --sky: #3aa6f2;
    --ice: #9fd0ff;
    --white: #eef4fc;
    --orange: #f26a1b;
    --yellow: #f7bf26;
    --paper: #ffffff;
    --wash: #eef4fd;
    --ink: #0b1a36;
    --muted: #4a5b78;
    --rule: #d6e2f5;
    --wide: 1024px;
    --gutter: 32px;
    --slab: "Roboto Slab", ui-serif, Georgia, serif;
    --sans: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    --stud: 13px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    background: var(--paper);
    color: var(--ink);
    font: 400 17px/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--royal); }
h1, h2, h3 { font-family: var(--slab); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
h3 { font-size: 20px; }
p, li { overflow-wrap: anywhere; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); position: relative; }

/* --- hero ------------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: min(920px, max(640px, 100svh));
    background:
        radial-gradient(120% 90% at 70% 45%, #123a8c 0%, #0b2152 45%, var(--night) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
}
/* The square the set fills; the scene maps its stage box onto this element. */
.hero-stage {
    --stage: min(112vh, 112svh, 72vw);
    position: absolute;
    width: var(--stage);
    height: var(--stage);
    left: calc(70% - var(--stage) / 2);
    top: calc(50% + 34px - var(--stage) / 2);
    pointer-events: none;
}
.hero-stage img { width: 100%; height: 100%; display: block; }
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .6s ease;
}
#hero-canvas.live { opacity: 1; }
@media (prefers-reduced-motion: reduce) { #hero-canvas { transition: none; } }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    padding-bottom: 22px;
    z-index: 2;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    font: 700 19px/1 var(--slab);
    white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: #dbe7ff; text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: #fff; }
.nav-links a.pill {
    color: var(--night);
    background: var(--yellow);
    padding: 7px 16px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 3px 0 #b98400;
}

.hero > .wrap { width: 100%; }
.hero-body { flex: 1; display: flex; align-items: center; z-index: 2; padding-bottom: 72px; }
.hero-card {
    max-width: 520px;
    padding: 30px 32px 32px;
    background: rgba(7, 20, 51, .62);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.chip {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--night);
    background: var(--ice);
    border-radius: 6px;
    padding: 3px 10px;
    margin-bottom: 14px;
}
.hero h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -.01em; margin-bottom: 14px; }
.lede { font-size: 19px; color: #e3ecff; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: var(--royal);
    box-shadow: 0 4px 0 var(--deep);
    transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--deep); }
.btn.ghost { background: transparent; border: 2px solid rgba(255, 255, 255, .55); box-shadow: none; padding: 10px 20px; }
.btn.light { background: #fff; color: var(--deep); box-shadow: 0 4px 0 #9db9ec; }
.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    color: #cfe0ff;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    z-index: 2;
    background: rgba(7, 20, 51, .55);
    padding: 4px 12px;
    border-radius: 999px;
}

/* --- sections ----------------------------------------------------------------------------- */
.band { padding: 88px 0; }
.band.wash { background: var(--wash); }
.eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--royal);
    margin-bottom: 8px;
}
.intro { color: var(--muted); font-size: 18px; margin-bottom: 40px; }

/* A row of studs on top of a block: the brick look. */
.studs-top, .brick, .step, .cta { position: relative; }
.brick::before, .step::before, .b::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(var(--stud) * -0.62);
    height: calc(var(--stud) * 0.62);
    background:
        radial-gradient(circle at 50% 100%, var(--stud-c) 0 calc(var(--stud) / 2), transparent calc(var(--stud) / 2 + .5px))
        0 0 / calc(var(--stud) * 2) 100% repeat-x;
    border-radius: 3px 3px 0 0;
}

.bricks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
.brick {
    --c: var(--royal);
    --stud-c: var(--c);
    background: var(--c);
    color: #fff;
    border-radius: 12px;
    padding: 26px 26px 28px;
    box-shadow: 0 7px 0 var(--edge, var(--deep)), 0 18px 30px rgba(11, 33, 82, .18);
    margin-top: calc(var(--stud) * .62);
}
.brick h3 { font-size: 24px; }
.brick .tag { font-family: var(--slab); font-size: 16px; opacity: .9; margin: 2px 0 12px; }
.brick p { color: rgba(255, 255, 255, .94); }
.c-royal { --c: var(--royal); --edge: #1d4ea6; }
.c-deep { --c: var(--deep); --edge: #0f2a66; }
.c-sky { --c: var(--sky); --edge: #1f7fc8; }
.c-ice { --c: var(--ice); --edge: #6aa9e6; }
.c-orange { --c: var(--orange); --edge: #b8470a; }
.brick.c-ice, .step.c-ice { color: var(--ink); }
.brick.c-ice p { color: var(--ink); }

/* the pieces */
.pieces { display: grid; gap: 18px; }
.piece {
    display: grid;
    grid-template-columns: 196px 1fr;
    gap: 26px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 24px 26px;
}
.piece h3 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.piece p { color: var(--muted); }
.piece-art {
    --u: 22px;
    --stud: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 120px;
    padding-top: 8px;
}
.b {
    --stud-c: var(--bc);
    position: relative;
    display: block;
    height: 26px;
    background: var(--bc);
    border-radius: 4px;
    box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18);
}
.b::before { left: 4px; right: 4px; }
.w2 { width: calc(var(--u) * 2); }
.w3 { width: calc(var(--u) * 3); }
.w4 { width: calc(var(--u) * 4); }
.w6 { width: calc(var(--u) * 6); }
.b-royal { --bc: var(--royal); }
.b-deep { --bc: var(--deep); }
.b-sky { --bc: var(--sky); }
.b-white { --bc: #dfe9f8; }
.b-round { --bc: var(--orange); width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2); }
.b-round::before { left: 6px; right: 6px; }
.towers { display: flex; gap: 22px; }
.towers .b { width: 22px; }
.side { display: flex; align-items: center; gap: 0; }
.link { width: 30px; height: 0; border-top: 3px dashed var(--royal); }

.status {
    display: inline-block;
    font: 600 12px/1 var(--sans);
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 5px 9px;
    border-radius: 6px;
    white-space: nowrap;
}
.s-built { background: #d9f0e3; color: #0f5b33; }
.s-spec { background: #dde8fb; color: #1a3f8f; }
.s-design { background: #fde6d6; color: #8f3a07; }
.legend { margin-top: 22px; color: var(--muted); font-size: 14px; display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; }
.legend .status { margin-left: 10px; }
.legend .status:first-child { margin-left: 0; }

/* how it works */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 18px; margin-top: 8px; }
.step {
    --stud-c: var(--c);
    background: var(--c);
    color: #fff;
    border-radius: 12px;
    padding: 22px 20px 24px;
    box-shadow: 0 7px 0 var(--edge, var(--deep));
    margin-top: calc(var(--stud) * .62);
}
.step .n {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--c);
    font: 700 16px/1 var(--slab);
    margin-bottom: 10px;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 16px; color: rgba(255, 255, 255, .95); }
.fit {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 3px solid var(--rule);
}
.fit h3 { margin-bottom: 8px; }
.fit p { color: var(--muted); }

/* lineage */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 12px; }
.card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 24px 26px;
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 5px 0 #d2e0f6;
    transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(2px); box-shadow: 0 3px 0 #d2e0f6; }
.card p { color: var(--muted); flex: 1; }
.card .go { color: var(--royal); font-weight: 600; font-size: 15px; }
.card .go::after { content: " \2192"; }

/* call to action */
.cta {
    --stud: 16px;
    background:
        radial-gradient(circle at 12px 12px, rgba(255, 255, 255, .08) 0 7px, transparent 7.5px) 0 0 / 32px 32px,
        linear-gradient(135deg, var(--royal), var(--deep));
    color: #fff;
    padding: 80px 0;
}
.cta p { font-size: 19px; color: #e3ecff; margin-bottom: 26px; }

.footer { background: var(--night); color: #cfdcf5; padding: 34px 0; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.foot ul { list-style: none; display: flex; gap: 8px 22px; flex-wrap: wrap; }
.foot a { color: #cfdcf5; text-decoration: none; font-size: 15px; }
.foot a:hover { color: #fff; }

.foot-legal { margin-top: 22px; }
.foot-legal p { font-size: 13px; line-height: 1.6; color: #9fb3d6; padding-top: 18px; border-top: 1px solid rgba(207, 220, 245, .18); }
.foot-legal a { color: #cfdcf5; }

/* the terms page */
.topbar { background: var(--night); color: #fff; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 10px; }
.legal .updated { color: var(--muted); margin-bottom: 18px; }
.legal h2 { font-size: 21px; margin: 30px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; margin-top: 8px; }

/* --- narrower screens ----------------------------------------------------------------------- */
@media (max-width: 900px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
    .hero-stage { --stage: min(96vw, 118svh); left: calc(58% - var(--stage) / 2); }
}
@media (max-width: 700px) {
    :root { --gutter: 16px; }
    body { font-size: 16px; }
    .nav-links a:not(.pill) { display: none; }
    .hero { min-height: 0; }
    .hero-body { padding-bottom: calc(min(128vw, 560px) * .78); align-items: flex-start; padding-top: 6px; }
    .scroll-hint { display: none; }
    .hero-stage { --stage: min(128vw, 560px); left: calc(50% - var(--stage) / 2); top: auto; bottom: calc(var(--stage) * -0.1); }
    .hero-card { padding: 22px 20px 24px; }
    .bricks, .cards { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .piece { grid-template-columns: 1fr; gap: 14px; }
    .piece-art { align-items: flex-start; min-height: 0; }
    .band { padding: 64px 0; }
}
