/* Zenter public site — zenter.cloud
 *
 * One stylesheet for all three pages. No framework, no CDN, no build step: the
 * whole site is HTML and this file, so it deploys as a folder and loads in one
 * round trip. Nothing here is shared with the staff app or the resident app.
 *
 * The three brand colours are sampled from the wordmark itself rather than
 * guessed, so the gradient on the page and the gradient in the logo are the same
 * three stops. If the logo is ever re-cut, re-sample it and change them here.
 */

:root {
    --g1: #5e80cb;   /* indigo, the Z */
    --g2: #07b6df;   /* cyan, the middle */
    --g3: #2fb689;   /* green, the R */

    --bg: #08090c;
    --bg-raised: #101217;
    --rule: rgba(255, 255, 255, 0.08);
    --rule-strong: rgba(255, 255, 255, 0.14);

    --ink: #f4f6f8;
    --ink-body: #a8b0bb;
    --ink-faint: #6b7380;

    --maxw: 1080px;
    --prose: 720px;
}

* { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink-body);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
                 Helvetica, Arial, sans-serif;
    /* 16px floor. Below it iOS Safari zooms on focus, which shows up as the page
       scrolling sideways with the headings clipped - not a layout bug. */
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--g2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Visible focus for keyboard users. The default outline disappears on a dark
   background, and these pages are the ones a screen-reader user is most likely
   to reach cold. */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--g2);
    outline-offset: 3px;
    border-radius: 3px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Always an element INSIDE .wrap, never on the same element. Both set max-width,
   so combining them shrank the centring box to 720px and shifted those sections
   inward - the hero and the cards started at one left edge and every prose
   section at another, about 150px further in. Nested, the page keeps a single
   left edge and only the measure is constrained. */
.prose { max-width: var(--prose); }

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

header.site {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(8, 9, 12, 0.82);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--rule);
}

header.site .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 68px;
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 26px; width: auto; display: block; }

nav.site { display: flex; align-items: center; gap: 22px; }
nav.site a {
    color: var(--ink-body);
    font-size: 15px;
    font-weight: 500;
}
nav.site a:hover { color: var(--ink); text-decoration: none; }
nav.site a[aria-current="page"] { color: var(--ink); }

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

.hero {
    position: relative;
    padding: 104px 0 88px;
    overflow: hidden;
}

/* The glow. Sits behind everything, never intercepts a click, and is purely
   decorative - hidden from assistive tech. */
.hero::before {
    content: "";
    position: absolute;
    inset: -40% 0 auto 50%;
    transform: translateX(-50%);
    width: min(1100px, 150vw);
    aspect-ratio: 1.6 / 1;
    background:
        radial-gradient(45% 50% at 28% 45%, rgba(94, 128, 203, 0.26), transparent 70%),
        radial-gradient(42% 48% at 55% 38%, rgba(7, 182, 223, 0.22), transparent 70%),
        radial-gradient(40% 46% at 78% 52%, rgba(47, 182, 137, 0.20), transparent 70%);
    filter: blur(14px);
    pointer-events: none;
}

.hero .wrap { position: relative; }

.hero h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 700;
    color: var(--ink);
    max-width: 16ch;
}

.hero h1 .grad {
    background: linear-gradient(100deg, var(--g1), var(--g2) 52%, var(--g3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Fallback if background-clip:text is unsupported: the text stays visible
       in a brand colour rather than vanishing. */
    -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero h1 .grad { color: var(--g2); -webkit-text-fill-color: currentColor; }
}

.hero p.lede {
    margin: 22px 0 0;
    font-size: clamp(17px, 2vw, 20px);
    max-width: 52ch;
    color: var(--ink-body);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 34px;
    padding: 9px 16px;
    border: 1px solid var(--rule-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
}
.chip .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--g3);
    box-shadow: 0 0 0 3px rgba(47, 182, 137, 0.18);
}

/* ---- buttons --------------------------------------------------------- */

/* The page sells to property managers, so it needs one obvious way to start a
   conversation. Two weights: the gradient one is the single primary action on
   the page, and nothing else is allowed to use it. */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 650;
    border: 1px solid transparent;
    transition: transform .15s ease, opacity .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
    background: linear-gradient(100deg, var(--g1), var(--g2) 55%, var(--g3));
    /* Near-black rather than white: the gradient is light enough in its middle
       that white text drops below 4.5:1 across the cyan. */
    color: #06070a;
}
.btn-primary:hover { opacity: .92; }

.btn-ghost {
    border-color: var(--rule-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink-faint); }

/* ---- brand mark ------------------------------------------------------ */

/* The Z symbol, sitting in the empty right half of the hero as a watermark
   rather than as a second logo - the wordmark in the header already carries
   the name, so repeating it at full strength would just read as clutter.
   Low opacity plus a radial mask makes it blend into the glow behind it
   instead of looking like a picture dropped on the page.
   Purely decorative: alt="" and aria-hidden, so it is skipped by screen
   readers and never announced as "Zenter" a second time. */
.hero .mark {
    position: absolute;
    right: 0;
    top: 50%;
    height: clamp(300px, 36vw, 430px);
    width: auto;
    opacity: .17;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    filter: saturate(125%);
    -webkit-mask-image: radial-gradient(72% 72% at 50% 50%, #000 34%, transparent 80%);
    mask-image: radial-gradient(72% 72% at 50% 50%, #000 34%, transparent 80%);
    /* The file carries about 25% transparent padding on its right edge, so
       right:0 alone parks the visible Z ~130px short of the column and it
       reads as badly centred rather than as a deliberate bleed. The 24.5% is
       that padding, as a share of the element's own width - a percentage in
       translate resolves against the element, so this stays correct at every
       size the clamp() produces. The hero's overflow:hidden trims whatever
       hangs past the viewport, and only the padding ever does.
       The -50% lives here AND in the keyframes: a transform set in both
       places would be overwritten by the animation, so the keyframes repeat
       the full value rather than just the part that moves. */
    animation: mark-drift 15s ease-in-out infinite;
    transform: translate(24.5%, -50%);
}

/* A drift of a few pixels, slow enough to be felt rather than watched. The
   global prefers-reduced-motion rule collapses the duration, so this stops
   dead for anyone who asked for that. */
@keyframes mark-drift {
    0%, 100% { transform: translate(24.5%, -50%); }
    50%      { transform: translate(24.5%, calc(-50% - 14px)); }
}

/* Below ~900px the hero text reaches the full width of the wrap, so the mark
   can no longer sit beside it. Rather than dropping it, it moves behind the
   text and drops to a seventh of its opacity - at that strength it reads as
   texture and leaves the body text well clear of the contrast floor. */
@media (max-width: 900px) {
    .hero .mark {
        right: 50%;
        height: clamp(320px, 78vw, 460px);
        opacity: .07;
        animation: none;
        transform: translate(50%, -50%);
    }
}

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

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--rule); }

h2 {
    margin: 0 0 10px;
    font-size: clamp(24px, 3.4vw, 32px);
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--ink);
    font-weight: 650;
}

h3 { margin: 28px 0 4px; font-size: 17px; font-weight: 600; color: var(--ink); }

p { margin: 14px 0 0; }
strong { color: var(--ink); font-weight: 600; }

.section-lede { max-width: 58ch; margin-top: 10px; }

/* ---- feature cards --------------------------------------------------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.card {
    background: var(--bg-raised);
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 24px 22px 26px;
    transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--rule-strong); transform: translateY(-2px); }

.card .ico {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(94,128,203,.20), rgba(47,182,137,.20));
    border: 1px solid var(--rule-strong);
    margin-bottom: 14px;
}
.card .ico svg { width: 17px; height: 17px; stroke: var(--g2); fill: none;
                 stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p  { margin: 0; font-size: 15px; line-height: 1.6; }

/* ---- prose lists ----------------------------------------------------- */

ul.diamonds { margin: 16px 0 0; padding: 0; list-style: none; }
ul.diamonds li { display: flex; gap: 13px; align-items: baseline; margin-top: 10px; }
ul.diamonds .diamond {
    flex: 0 0 auto;
    width: 6px; height: 6px;
    background: var(--g2);
    transform: rotate(45deg);
    margin-top: 2px;
}

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

footer.site {
    border-top: 1px solid var(--rule);
    padding: 44px 0 64px;
    color: var(--ink-faint);
    font-size: 14px;
}
footer.site .row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    align-items: flex-start;
    justify-content: space-between;
}
footer.site a { color: var(--ink-body); }
footer.site .links { display: flex; flex-wrap: wrap; gap: 20px; }
footer.site p { margin: 0; }
footer.site .addr { margin-top: 18px; line-height: 1.55; }

/* The mark at full strength here, where it is the only brand element on an
   otherwise plain row - the opposite treatment to the hero watermark, and the
   reason the two do not compete. Also decorative: the sentence beside it
   already says "Zenter". */
footer.site .brandline {
    display: flex;
    align-items: center;
    gap: 13px;
}
footer.site .brandline img {
    height: 30px;
    width: auto;
    flex: 0 0 auto;
    /* The symbol's own padding is about a quarter of its height. Pulling that
       back optically aligns it with the cap height of the text beside it
       instead of floating it above the line. */
    margin: -4px 0;
}

/* ---- document pages (support, privacy) ------------------------------- */

.doc { padding: 56px 0 24px; }
.doc h1 {
    margin: 0 0 6px;
    font-size: clamp(30px, 5vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.doc .updated { color: var(--ink-faint); font-size: 14px; margin: 0; }
.doc h2 { margin-top: 44px; }

@media (max-width: 560px) {
    .hero { padding: 72px 0 64px; }
    section { padding: 56px 0; }
    header.site .wrap { height: 60px; }
    nav.site { gap: 16px; }
    nav.site a { font-size: 14px; }
}

/* 320-360px, where the header is the tightest thing on the page: the wordmark
   plus two nav links plus the gutters is the only row that cannot reflow. An
   iPhone SE is still 320 CSS px and headless Chrome refuses to render below
   500, so this is reasoned rather than observed - which is why it only shrinks
   type and spacing and changes no layout. */
@media (max-width: 380px) {
    .logo img { height: 21px; }
    nav.site { gap: 13px; }
    nav.site a { font-size: 13px; }
    .wrap { padding: 0 18px; }
}
