/* Jollify site (beta landing, Markdown guide). Look taken from the original Jollify-Software.github.io:
   a random sea video behind the logo, dark-cyan panels with ivory rules,
   green buttons; plus the orange of the dolphin logo. */
:root {
    --cyan: #0b7a7a;
    --cyan-deep: #075c5c;
    --navy: #1d2a44;
    --ivory: ivory;
    --green: #9fd067;
    --orange: #f4803b;
    --text: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--navy);
    line-height: 1.6;
}
/* Juel injects its own body { color; background } after this sheet: html body outranks it. */
html body { color: var(--text); background: var(--navy); }
a { color: var(--text); }

/* Splash */
#splash {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4.5rem 1rem 4rem; /* clear of the fixed top bar */
    overflow: hidden;
    background: linear-gradient(160deg, var(--cyan) 0%, var(--navy) 100%);
}
#splash::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .25);
    z-index: 0;
}
#bkvid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.splash-inner { position: relative; z-index: 1; max-width: 60rem; }
#splash h1 { margin: 0; }
#logo { width: 711px; max-width: 90vw; height: auto; } /* no filter: a drop-shadow would fill the see-through dolphin */
#tagline {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 700;
    margin: .5rem 0 1.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
#strap {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    margin: .5rem auto 1.5rem;
    max-width: 40rem;
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
#btn-container { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.scroll {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    font-size: 2.5rem;
    text-decoration: none;
    line-height: 1;
}

.btn {
    display: inline-block;
    text-decoration: none;
    background-color: var(--green);
    color: #fff;
    border-radius: 6px;
    padding: .55rem 1.2rem;
    font-family: "Oswald", sans-serif;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color .2s;
}
.btn:hover, .btn:focus-visible { background-color: var(--orange); }
.btn-outline { background: transparent; border: 2px solid var(--green); }

/* Panels */
.panel {
    background-color: var(--cyan);
    border-top: 4px solid var(--ivory);
    padding: 3.5rem 1rem;
    scroll-margin-top: 0;
}
.panel:nth-of-type(even) { background-color: var(--navy); }
.panel-inner { max-width: 54rem; margin: 0 auto; }
.panel h2 {
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0 0 1rem;
    color: var(--ivory);
}
.panel h2::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 4px;
    margin-top: .4rem;
    background: var(--orange);
    border-radius: 2px;
}
.panel p, .panel li { font-size: 1.1rem; }
.panel strong { color: #fff; }
.panel code { background: rgba(0,0,0,.25); padding: .05rem .35rem; border-radius: 4px; }
.panel img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.4); }

.panel table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(255,255,255,.06);
    border-radius: 8px;
    overflow: hidden;
    display: block;
    overflow-x: auto;
}
.panel thead, .panel tbody { display: table; width: 100%; border-collapse: collapse; }
.panel th, .panel td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.15); }
.panel th { font-family: "Oswald", sans-serif; font-weight: 500; letter-spacing: .5px; background: rgba(0,0,0,.2); }

/* "What makes us different": the three USPs as cards */
#different .panel-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
#different h2 { grid-column: 1 / -1; }
#different p {
    margin: 0;
    padding: 1.2rem;
    background: rgba(255,255,255,.08);
    border-left: 4px solid var(--orange);
    border-radius: 6px;
}

.contact-links { border-top: none; padding-top: 0; }
.panel.contact-links { background-color: var(--cyan); } /* same as the "Get in touch" panel above it */
.contact-links .panel-inner { display: flex; flex-wrap: wrap; gap: 1rem; }

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: 1.5rem 1rem;
    background: transparent;
    font-size: .9rem;
    border-top: 1px solid rgba(255,255,255,.15);
}
footer img { display: block; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
#different p strong { display: block; color: var(--orange); font-family: "Oswald", sans-serif; font-weight: 500; font-size: 1.3rem; letter-spacing: .5px; }

/* ---- Beta site (BETA-PLAN §5) ---- */

/* Top bar: over the splash on the home page, solid elsewhere */
#topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
    padding: .5rem 1rem;
    background: transparent;
    transition: background-color .25s, border-color .25s;
    border-bottom: 1px solid transparent;
}
.home #topbar { position: fixed; left: 0; right: 0; }
/* Transparent at the top; once the page scrolls, a backing keeps the links readable. */
#topbar.scrolled { background: rgba(17, 26, 44, .85); backdrop-filter: blur(6px); border-bottom-color: rgba(255,255,255,.12); }
#topbar .brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-decoration: none;
}
#topbar .brand img { display: block; }
#topbar ul { display: flex; flex-wrap: wrap; gap: .25rem .9rem; list-style: none; margin: 0; padding: 0; }
#topbar li a { text-decoration: none; font-size: .95rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
#topbar li a:hover, #topbar li a.active { border-bottom-color: var(--orange); }
#topbar li a.menu-launch {
    background: var(--green);
    border-radius: 6px;
    padding: .25rem .7rem;
    border: none;
    color: #10202a;
    font-weight: 600;
}
#topbar li a.menu-launch:hover { background: var(--orange); }

.btn-launch { font-size: 1.15rem; padding: .7rem 1.4rem; color: #10202a; font-weight: 500; }
.badge {
    display: inline-block;
    margin-left: .35rem;
    padding: 0 .4rem;
    border-radius: 4px;
    background: var(--navy);
    color: var(--green);
    font-size: .75em;
    vertical-align: .1em;
}
.btn-small { font-size: .85rem; padding: .35rem .8rem; }

/* Spinner + shutter: two halves part as soon as the page is read; CSS opens them
   anyway after 0.8 s, so nothing waits on script or the video. */
#shutter { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
#shutter .half {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50.5%;
    background: var(--navy);
    animation: shutter-open .45s ease-in .8s forwards;
}
#shutter .left { left: 0; --to: -100%; }
#shutter .right { right: 0; --to: 100%; }
#shutter .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border: 3px solid transparent;
    border-top-color: var(--orange);
    border-left-color: var(--green);
    border-radius: 50%;
    animation: spin .7s linear infinite, fade-out .2s linear .8s forwards;
}
.ready #shutter .half { animation-delay: .15s; }
.ready #shutter .spinner { animation: spin .7s linear infinite, fade-out .15s linear forwards; }
@keyframes shutter-open { to { transform: translateX(var(--to)); visibility: hidden; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-out { to { opacity: 0; visibility: hidden; } }

/* Demo gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.2rem; margin-top: 1rem; }
.card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,.08);
    border-top: 4px solid var(--orange);
    border-radius: 8px;
    padding: 1rem 1.1rem 1.1rem;
}
.card h3 { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 1.4rem; margin: .6rem 0 .2rem; color: var(--ivory); }
.card p { font-size: 1rem; margin: .3rem 0; }
.card-shot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: none; border-radius: 4px; }
.card-actions { margin-top: auto !important; padding-top: .6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.card-more { border-top-color: var(--green); }

/* Feedback form */
.feedback-form { display: grid; gap: 1rem; margin-top: 1.2rem; }
.feedback-form label { display: grid; gap: .3rem; font-weight: 600; }
.feedback-form .hint { font-weight: 400; font-size: .9rem; opacity: .8; }
.feedback-form textarea, .feedback-form input[type=email] {
    width: 100%;
    font: inherit;
    font-weight: 400;
    color: #10202a;
    background: #fdfdf6;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: .55rem .7rem;
}
.feedback-form textarea:focus, .feedback-form input:focus { outline: none; border-color: var(--orange); }
.feedback-form input[type=file] { font: inherit; font-weight: 400; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.feedback-form button { justify-self: start; border: none; cursor: pointer; font-size: 1.05rem; color: #10202a; }
.honey { position: absolute; left: -9999px; }

/* Inner pages: the guide, privacy */

.doc-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2rem; max-width: 72rem; margin: 0 auto; padding: 2rem 1rem 3rem; }
.doc-nav { position: sticky; top: 4.5rem; align-self: start; }
.doc-nav-home { font-family: "Oswald", sans-serif; font-size: 1.3rem; text-decoration: none; color: var(--ivory); }
.doc-nav ul { list-style: none; padding: 0; margin: .6rem 0 1rem; }
.doc-nav li a { display: block; padding: .3rem .6rem; border-left: 3px solid rgba(255,255,255,.15); text-decoration: none; }
.doc-nav li a:hover, .doc-nav li a[aria-current] { border-left-color: var(--orange); background: rgba(255,255,255,.06); }
.doc { min-width: 0; }
.doc-single { max-width: 50rem; margin: 0 auto; padding: 2rem 1rem 3rem; }
.doc h1 { font-family: "Oswald", sans-serif; font-weight: 500; font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 1rem; color: var(--ivory); }
.doc h2 { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 1.6rem; margin: 2.2rem 0 .5rem; color: var(--ivory); }
.doc h2::after { content: ""; display: block; width: 2.5rem; height: 3px; margin-top: .3rem; background: var(--orange); border-radius: 2px; }
.doc h3 { font-size: 1.15rem; margin: 1.5rem 0 .4rem; }
.doc a { color: var(--green); }
.doc pre {
    background: #0f1726;
    border: 1px solid rgba(255,255,255,.12);
    border-left: 4px solid var(--green);
    border-radius: 6px;
    padding: .9rem 1rem;
    overflow-x: auto;
    font-size: .92rem;
    line-height: 1.5;
}
.doc code { font-family: Consolas, "Cascadia Mono", Menlo, monospace; }
.doc :not(pre) > code { background: rgba(0,0,0,.3); padding: .05rem .35rem; border-radius: 4px; }
.doc table { border-collapse: collapse; margin: 1rem 0; display: block; overflow-x: auto; }
.doc th, .doc td { padding: .45rem .7rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.15); }
.doc th { background: rgba(0,0,0,.2); }
.doc img { max-width: 100%; height: auto; }

@media (max-width: 760px) {
    .doc-layout { grid-template-columns: 1fr; gap: 1rem; }
    .doc-nav { position: static; }
    .doc-nav ul { display: flex; flex-wrap: wrap; gap: .3rem; }
    .doc-nav li a { border-left: none; border-bottom: 2px solid rgba(255,255,255,.15); }
    #topbar { justify-content: center; }
    .home #topbar { position: absolute; }
}

@media (prefers-reduced-motion: reduce) {
    #shutter { display: none; }
}
