/* ===== 2026-11-18 HERO WITH THE APP IN TILTED WINDOWS, for the pages that do not load home.css (the "minimal" landings, e.g. journal-planner-notes).
   Same look as the home (home.css, block "HERO v5") and as the landings that load home.css + landing.css (i_od_v3_hero.html); the markup of the picture is include/i_hero_tilt_stage.html and the script that melts the
   navbar into the band is include/i_hero_tilt_nav.html. Classes: .hvt (the section) .hvt-teal (the band) .hvt-landing (this layout) .hvt-grid .hvt-text .hvt-visual .hvt-stage .hvt-win .hvt-front .hvt-back .hvt-phone ===== */
.hvt { position: relative; }
.hvt-visual { position: relative; margin: 2.2rem auto 0; max-width: 640px; }
.hvt-stage { position: relative; }
.hvt-win { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -20px rgba(4, 28, 38, 0.55), 0 8px 24px rgba(4, 28, 38, 0.25); }
.hvt-win img { display: block; width: 100%; height: auto; }
.hvt-front { position: relative; z-index: 2; }      /* (straight under 1000px: one image only, no tilt) */
.hvt-back { display: none; background: #131d2b; }      /* (dark while its lazy image loads: no white flash) */

/* THE BAND: the brand gradient, the text in white, a soft fade into the light background of the next section; the navbar goes transparent at the top of the page and the band goes under it */
.hvt-teal {
    background:
        radial-gradient(900px 520px at 88% 0%, rgba(120, 214, 232, 0.34), rgba(120, 214, 232, 0) 62%),
        radial-gradient(800px 520px at 0% 100%, rgba(8, 40, 54, 0.45), rgba(8, 40, 54, 0) 70%),
        linear-gradient(135deg, #2f8fa6 0%, #1b6178 55%, #124657 100%) !important;
    margin-top: calc(-1 * var(--hvt-nav, 3.75rem));
    padding-top: calc(2rem + var(--hvt-nav, 3.75rem)) !important;
}
.hvt-teal::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 350px; background: linear-gradient(to bottom, rgba(244, 247, 249, 0), #f4f7f9); pointer-events: none; z-index: 0; }
.navbar.hvt-nav-top { background: transparent; box-shadow: none; }
.navbar { transition: background-color 0.25s ease, box-shadow 0.25s ease; }

/* THE PHONE: only from 700 to 999px, to the right of the text */
.hvt-phone { display: none; border-radius: 22px; padding: 5px; background: #0e1a21; box-shadow: 0 30px 60px -18px rgba(4, 28, 38, 0.65), 0 6px 18px rgba(4, 28, 38, 0.35); }
.hvt-phone img { display: block; width: 100%; height: auto; border-radius: 17px; }

/* THE LAYOUT */
.hvt-landing { max-width: none; margin-left: 0; margin-right: 0; margin-bottom: 0; padding: 2rem 1.5rem 6rem; text-align: left; position: relative; overflow-x: clip; box-sizing: border-box; }
.hvt-landing .hvt-grid { max-width: 1260px; margin: 0 auto; position: relative; z-index: 1; }      /* (z-index: above the fade of the band, or it covers the button) */
.hvt-landing .hvt-text { text-align: left; }
.hvt-landing .hvt-visual { margin-top: 2.2rem; }
@media (min-width: 700px) and (max-width: 999px) {
    .hvt-landing .hvt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 190px; column-gap: 2rem; align-items: center; max-width: 46rem; }
    .hvt-landing .hvt-text { grid-column: 1; grid-row: 1; }
    .hvt-visual, .hvt-stage { display: contents; }
    .hvt-phone { display: block; grid-column: 2; grid-row: 1; justify-self: center; align-self: center; width: 100%; max-width: 190px; }
    .hvt-front { grid-column: 1 / -1; grid-row: 2; margin-top: 2rem; }
}
@media (min-width: 1000px) {
    .hvt-landing { overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-height: clamp(34rem, 84svh, 54rem); }
    .hvt-landing .hvt-grid { width: 100%; max-width: 1400px; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: 0 3rem; align-items: center; }
    .hvt-landing .hvt-text { padding-left: clamp(1rem, 7vw, 6.5rem); padding-right: clamp(1rem, 2.5vw, 2.5rem); }
    .hvt-landing .hvt-visual { margin: 0; max-width: none; margin-right: -2.5rem; padding: 2rem 0 5rem; }
    .hvt-front { width: 80%; transform: rotate(-1.8deg); }
    /* the right edge of the dark window is always seen (the container is 1400px: its stage ends at 100vw + 16px up to 1448px and at 50vw + 740px beyond); the narrower the page, the more it is under the light one */
    .hvt-back { display: block; position: absolute; z-index: 1; width: 80%; right: min(max(calc(764px - 50vw), -18%), 40px); top: 16%; transform: rotate(1deg) translateZ(0); backface-visibility: hidden; }
}
