/* PROTOTYPE — throwaway. Visual language of the Angular start page. */

:root {
    --black: #1b1b1b;
    --grey: #777777;
    --light: #eeeeee;
    --middle: #cccccc;
    --line: #cccccc;
    --red: #5f2321;
    --dark-red: #800508;
    --blue: #0088cc;
    --ink: #1b1b1b;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background: white;
    color: var(--ink);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 0.015rem;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

#root { min-height: 100vh; padding-bottom: 88px; }

.app-header {
    background: var(--black);
    color: var(--grey);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 20px;
    min-height: 48px;
    flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo, .nav-btn, .account-btn {
    background: none;
    border: 0;
    color: var(--grey);
    padding: 4px 0;
}
.logo { color: #eee; font-size: 20px; }
.nav-btn:hover, .account-btn:hover, .logo:hover, .nav-btn.is-on { color: white; }
.nav, .account { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.menu-wrap { position: relative; }
.popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    color: var(--ink);
    min-width: 220px;
    padding: 6px;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    z-index: 30;
}
.popover button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    border-radius: 6px;
    padding: 6px 10px;
}
.popover button:hover { background: var(--red); color: white; }

.start {
    max-width: 80rem;
    margin: 0 auto;
    padding: 48px 16px 32px;
}

.lead {
    text-align: center;
    font-size: 24px;
    margin: 8px 0 0;
    line-height: 1.35;
}

.modules {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.module { text-align: center; }
.module img { height: 80px; width: auto; }
.module-title {
    display: block;
    margin-top: 12px;
    color: var(--red);
}
.module p {
    margin: 10px 0 0;
    color: #333;
    font-size: 14px;
    line-height: 1.45;
}

.paths {
    margin-top: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.column-title {
    margin: 0;
    text-align: center;
    font-size: 24px;
    font-weight: 400;
}

.column-lead {
    margin: 12px 0 16px;
    text-align: center;
    color: #333;
    line-height: 1.45;
}

.card { background: var(--light); padding: 12px; }
.card h2 { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; margin-top: 12px; }
.field input {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 8px 10px;
    background: white;
}
.field input.is-invalid { border-color: var(--dark-red); background: #fff5f5; }
.check { display: flex; gap: 8px; align-items: center; margin: 12px 0; font-size: 14px; }
.hint { color: #333; font-size: 14px; line-height: 1.45; margin: 8px 0 0; }
.error { color: var(--dark-red); font-size: 14px; margin: 0 0 8px; }

.btn {
    background: var(--red);
    color: white;
    border: 0;
    border-radius: 6px;
    padding: 8px 14px;
}
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.link {
    display: inline-block;
    margin-top: 12px;
    text-decoration: none;
}

#calendly-embed {
    min-width: 320px;
    height: 700px;
}

.site-footer {
    background: var(--middle);
    color: #525252;
    display: flex;
    flex-wrap: wrap;
    gap: 32px 64px;
    padding: 28px 40px;
    font-size: 14px;
}
.site-footer strong { display: block; font-size: 18px; margin-bottom: 8px; color: #404040; }
.site-footer a, .site-footer span { display: block; margin-top: 4px; }
.site-footer a:hover { color: var(--ink); }

#chrome {
    position: fixed;
    z-index: 80;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
}

.chrome-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #111;
    color: white;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.chrome-bar a, .chrome-bar button, .chrome-tools button {
    background: #2a2a2a;
    color: white;
    border: 0;
    border-radius: 999px;
    padding: 6px 10px;
    text-decoration: none;
}

.chrome-bar button.chrome-summary {
    max-width: min(520px, 70vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chrome-panel {
    width: min(640px, 100%);
    max-height: 240px;
    overflow: auto;
    background: #111;
    color: #ddd;
    border-radius: 12px;
    padding: 10px 12px;
}
.chrome-panel pre { margin: 8px 0 0; white-space: pre-wrap; }

@media (max-width: 900px) {
    .modules { grid-template-columns: 1fr 1fr; }
    .paths { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .app-header { align-items: flex-start; }
    .account { width: 100%; }
}
