/* Roomster landing site.
 *
 * Deliberately hand-written CSS with no build step and no third-party requests: the page is
 * deployed as-is by firebase.landing.json, and every byte it loads comes from its own origin.
 * That is not only a performance choice - a German site embedding fonts or analytics from a US
 * CDN needs a consent banner and an argument to go with it (see docs/domains.md), and this page
 * has neither to make.
 *
 * Colours are the app's own: blue-grey primary, lime accent - so the site and the product read as
 * one thing.
 */

:root {
    --primary: #546E7A;
    --primary-dark: #37474F;
    --accent: #CDDC39;
    --accent-ink: #3E4610;
    --ink: #17201F;
    --muted: #5C6B73;
    --paper: #FFFFFF;
    --surface: #F3F5F6;
    --rule: #DCE3E6;
    --radius: 12px;
    --measure: 68ch;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #8BA3AE;
        --primary-dark: #B0C2CB;
        --accent: #CDDC39;
        --accent-ink: #CDDC39;
        --ink: #E7EDEF;
        --muted: #A2B1B8;
        --paper: #12181B;
        --surface: #1A2225;
        --rule: #2B363B;
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
    padding-inline: 20px;
}

a {
    color: var(--primary);
}

h1, h2, h3 {
    line-height: 1.15;
    text-wrap: balance;
    margin: 0;
}

h1 {
    font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.1rem;
}

p {
    margin: 0;
}

/* --- header ------------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-block: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
}

.brand img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
    font-size: 0.95rem;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--ink);
}

/* The rule above is a link colour for the nav's text links - without winning it back here, it also
   repaints the call-to-action's label in --muted, which on the --primary pill is the same colour as
   the pill itself. The button read as an empty capsule. */
.site-nav .btn--primary {
    color: #fff;
}

.site-nav .btn--ghost {
    color: var(--ink);
}

.lang {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.lang [aria-current="true"] {
    color: var(--ink);
    font-weight: 600;
}

@media (max-width: 720px) {
    .site-nav .nav-link {
        display: none;
    }
}

/* --- buttons ------------------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--primary-dark);
}

.btn--ghost {
    border-color: var(--rule);
    color: var(--ink);
}

.btn--ghost:hover {
    border-color: var(--primary);
}

/* --- sections ----------------------------------------------------------------------------- */
section {
    padding-block: clamp(48px, 6vw, 88px);
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: var(--measure);
    margin-bottom: 32px;
}

.eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
}

.lead {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: var(--measure);
}

.hero {
    padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 72px);
    display: grid;
    gap: 26px;
    max-width: 44rem;
}

.hero .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-note {
    font-size: 0.9rem;
    color: var(--muted);
}

/* The accent earns its keep in exactly one place per screen. */
.underline {
    background: linear-gradient(transparent 62%, var(--accent) 62%);
    padding-inline: 2px;
}

/* --- feature grid ------------------------------------------------------------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
    gap: 18px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card h3 {
    display: flex;
    align-items: center;
    gap: 9px;
}

.card p {
    color: var(--muted);
    font-size: 0.97rem;
}

.card svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: var(--primary);
}

/* --- steps -------------------------------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    counter-reset: step;
}

.step {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
    border-top: 2px solid var(--accent);
}

.step h3::before {
    counter-increment: step;
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 0.8rem;
    font-weight: 700;
}

.step p {
    color: var(--muted);
    font-size: 0.97rem;
}

/* --- FAQ ---------------------------------------------------------------------------------- */
.faq {
    display: grid;
    gap: 2px;
    max-width: var(--measure);
}

details {
    border-bottom: 1px solid var(--rule);
    padding-block: 14px;
}

summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: "+";
    color: var(--primary);
    font-weight: 700;
    width: 1ch;
}

details[open] summary::before {
    content: "–";
}

details p {
    color: var(--muted);
    margin-top: 10px;
    font-size: 0.97rem;
}

/* --- call to action ----------------------------------------------------------------------- */
.cta {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 44px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.cta div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 300px;
}

/* --- footer ------------------------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--rule);
    padding-block: 28px 40px;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    align-items: center;
}

.site-footer a {
    color: var(--muted);
}

.site-footer .spacer {
    margin-left: auto;
}

/* --- legal pages -------------------------------------------------------------------------- */
.legal {
    padding-block: 48px 72px;
    max-width: var(--measure);
}

.legal h2 {
    font-size: 1.25rem;
    margin-top: 34px;
}

.legal p, .legal li {
    color: var(--muted);
    margin-top: 12px;
}

.legal ul {
    padding-left: 1.2em;
}

/* Marks the fields whoever operates the site has to fill in before it goes live. Loud on
   purpose: an Impressum with placeholders in it is worse than no site at all. */
.todo {
    display: inline-block;
    background: #FFF3C4;
    color: #5B4300;
    border: 1px dashed #C9A227;
    border-radius: 6px;
    padding: 0 6px;
    font-weight: 600;
}
