/* =====================================================================
   Lighthouse website
   Colours come from the Lighthouse logo and app, so the website,
   the app and the booking pages all feel like one product.
   ===================================================================== */

:root {
    --night: #262046;       /* hero and closing sky */
    --night-soft: #3a3166;  /* lighter sky, for depth */
    --lavender: #8B6FC0;    /* the logo colour */
    --lavender-dark: #4b3a8c;
    --beam: #e6dcff;        /* the light beam and text on the night sky */
    --mist: #f6f4fc;        /* page background */
    --line: #e4ddf7;        /* soft borders */
    --ink: #2f2a45;         /* body text */
    --ink-soft: #5d5775;

    --font-head: "Jost", "Segoe UI", sans-serif;
    --font-body: "Nunito", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--mist);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: var(--font-head);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 0.6em;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    color: var(--lavender-dark);
}

h3 {
    font-size: 1.3rem;
    font-weight: 500;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--lavender-dark);
}

/* Keyboard users can always see where they are */
a:focus-visible {
    outline: 3px solid var(--lavender);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.wrap--narrow {
    max-width: 700px;
}

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background: var(--beam);
    color: var(--night);
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.btn:hover {
    background: #ffffff;
}

.btn--small {
    padding: 0.45rem 1.1rem;
    font-size: 0.95rem;
}

/* Lavender button, for light backgrounds (the normal .btn is pale, made for the night sky) */
.btn--lavender {
    background: var(--lavender-dark);
    color: #ffffff;
    border: 0;
    font-size: 1rem;
    cursor: pointer;
}

.btn--lavender:hover {
    background: var(--night-soft);
}

.btn:focus-visible {
    outline: 3px solid var(--lavender);
    outline-offset: 3px;
}

.link-light {
    color: var(--beam);
    font-weight: 600;
    text-underline-offset: 4px;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    position: relative;
    background: radial-gradient(ellipse at 75% 35%, var(--night-soft), var(--night) 65%);
    color: var(--beam);
    overflow: hidden;
}

.topbar {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-family: var(--font-head);
    font-size: 1.4rem;
    text-decoration: none;
}

/* The logo is lavender; on the night sky it's lightened so it shows up */
.brand img {
    filter: brightness(1.6);
}

.topbar__links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar__links a:not(.btn) {
    color: var(--beam);
    text-decoration: none;
    font-weight: 600;
}

.topbar__links a:not(.btn):hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 24px 110px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 32px;
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    font-weight: 300;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.hero__lead {
    max-width: 34em;
    font-size: 1.15rem;
    color: var(--beam);
}

/* The small line above the main heading */
.hero__eyebrow {
    margin: 0 0 0.8em;
    color: var(--beam);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-top: 28px;
}

.hero__art {
    color: var(--beam);
}

.hero__svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* The beam: a soft wedge of light. It fades in once when the page loads */
.hero__beam {
    fill: var(--beam);
    opacity: 0.12;
    animation: beam-on 2.4s ease-out both;
}

@keyframes beam-on {
    from { opacity: 0; }
    to   { opacity: 0.12; }
}

/* The sea line along the bottom of the hero (and the top of the closing section) */
.wave {
    display: block;
    width: 100%;
    height: 40px;
}

.wave--down {
    position: absolute;
    left: 0;
    bottom: -1px;
    fill: var(--mist);
}

.wave--up {
    fill: #ffffff; /* matches the white pricing section above it */
}

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section {
    padding: 72px 0;
}

.intro {
    padding-top: 56px;
    padding-bottom: 16px;
}

.intro p {
    font-size: 1.15rem;
    color: var(--ink-soft);
}

/* ----- Features: two columns of short notes, each with a lavender line ----- */
.feature-list {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 56px;
}

.feature-list li {
    padding-left: 20px;
    border-left: 3px solid var(--lavender);
}

.feature-list h3 {
    color: var(--ink);
    margin-bottom: 0.3em;
}

.feature-list p {
    color: var(--ink-soft);
    margin: 0;
}

/* ----- Videos: the explainer (intro) and the demos ----- */
.video {
    margin: 0;
}

/* height: auto keeps the 16:9 shape from the width and height on the tag,
   so the page doesn't jump when the cover picture loads */
.video video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    background: var(--night);
    box-shadow: 0 12px 30px rgba(38, 32, 70, 0.18);
}

.video figcaption {
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

/* The explainer sits under the intro text, a little apart from it */
.video--story {
    margin-top: 32px;
}

.demos__lead {
    font-size: 1.15rem;
    color: var(--ink-soft);
}

/* Lite and Lighthouse side by side (stacked on phones, see the media queries) */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 32px;
}

/* ----- Full demo: cover picture on the left, the short form on the right ----- */
.full-demo {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 40px;
    margin-top: 56px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
}

.full-demo__cover {
    position: relative;
}

.full-demo__cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(38, 32, 70, 0.18);
}

/* The small "2-minute tour" label on the corner of the picture */
.full-demo__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: var(--beam);
    color: var(--night);
    font-size: 0.85rem;
    font-weight: 700;
}

.full-demo__text h3 {
    font-size: 1.6rem;
    color: var(--lavender-dark);
}

.full-demo__text > p {
    color: var(--ink-soft);
}

/* The form: label on top, box underneath, one field per line */
.demo-form__field {
    display: block;
    margin-bottom: 14px;
}

.demo-form__field span {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 0.95rem;
}

.demo-form__field input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid #cfc5ec;
    border-radius: 10px;
    background: var(--mist);
    color: var(--ink);
    font: inherit;
}

.demo-form__field input:focus {
    outline: 3px solid var(--line);
    border-color: var(--lavender);
    background: #ffffff;
}

/* Tick box with its words next to it (the words wrap under themselves, not under the box) */
.demo-form__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 20px;
    font-size: 0.95rem;
    color: var(--ink-soft);
    cursor: pointer;
}

.demo-form__check input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--lavender-dark);
}

.demo-form__small {
    margin: 14px 0 0;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

/* The honeypot: kept off screen for people, but still in the page for bots */
.demo-form__hidden {
    position: absolute;
    left: -9999px;
}

/* ----- Demo page (demo.html): the video, then the discovery call box ----- */
.demo-page .wrap {
    max-width: 900px;
}

.demo-page h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: var(--lavender-dark);
}

.demo-page__thanks {
    margin-bottom: 0.4em;
    color: var(--lavender);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* LITE+ DEMO: the second video's heading, with space above to separate it from the first */
.demo-page__title {
    margin-top: 56px;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--lavender-dark);
}

.demo-page__lead {
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin-bottom: 28px;
}

.demo-page__next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 40px;
    padding: 28px 32px;
    border-left: 4px solid var(--lavender);
    border-radius: 0 14px 14px 0;
    background: #ffffff;
}

.demo-page__next h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3em;
}

.demo-page__next p {
    margin: 0;
    color: var(--ink-soft);
}

.demo-page__next .btn {
    flex-shrink: 0;
}

.demo-page__back {
    margin-top: 28px;
    color: var(--ink-soft);
}

/* ----- Pricing ----- */
.pricing {
    background: #ffffff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* QUESTIONS BEFORE YOU JOIN (home page): the same .faq cards as the Help page */
.questions h2 {
    margin-bottom: 24px;
}

.pricing__lead {
    max-width: 38em;
    font-size: 1.15rem;
    color: var(--ink-soft);
}

.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);   /* Lite, Lite+, Lighthouse: three equal cards */
    align-items: start;
    gap: 24px;
    margin-top: 40px;
}

.plan {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--mist);
}

/* The full Lighthouse plan sits on the night sky, so it stands out from Lite and Lite+ */
/* (".plan.plan--main" so it beats the ".plan h3" colour further down) */
.plan--main {
    background: var(--night);
    border-color: var(--night);
    color: var(--beam);
}

.plan.plan--main h3,
.plan.plan--main .plan__price span {
    color: #ffffff;
}

.plan h3 {
    color: var(--lavender-dark);
    margin-bottom: 0.4em;
}

.plan__price {
    margin: 0;
    color: var(--ink-soft);
}

.plan--main .plan__price {
    color: var(--beam);
}

.plan__price span {
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 400;
    color: var(--ink);
}

.plan__extra {
    margin: 0 0 0.6em;
    font-size: 0.95rem;
}

.plan__for {
    margin: 0 0 1em;
    font-weight: 600;
}

.plan ul {
    margin: 0;
    padding-left: 1.1em;
}

.plan li {
    margin-bottom: 0.35em;
}

.plan li::marker {
    color: var(--lavender);
}

/* Two promises under the plans: locked price and your data */
.promises {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.promise {
    padding: 20px 24px;
    border-left: 4px solid var(--lavender);
    border-radius: 0 14px 14px 0;
    background: var(--mist);
}

.promise h3 {
    margin: 0 0 0.3em;
    font-size: 1.15rem;
    color: var(--lavender-dark);
}

.promise p {
    margin: 0;
    color: var(--ink-soft);
}

.pricing__note {
    margin: 32px 0 0;
    color: var(--ink-soft);
}

.pricing__note a {
    font-weight: 700;
}

/* ----- Closing call to action ----- */
.closing {
    background: var(--night);
    color: var(--beam);
    text-align: center;
}

.closing__inner {
    padding: 56px 24px 80px;
}

.closing h2 {
    color: #ffffff;
}

.closing p {
    font-size: 1.15rem;
    margin-bottom: 28px;
}

/* ----- Footer ----- */
.footer {
    background: var(--night);
    color: #b3a9d6;
    font-size: 0.9rem;
    border-top: 1px solid var(--night-soft);
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.footer p {
    margin: 0;
}

.footer a {
    color: var(--beam);
}

/* =====================================================================
   PRIVACY POLICY (and any other plain text pages later)
   ===================================================================== */

/* Just the night-sky top bar, without the big hero underneath */
.hero--short {
    padding-bottom: 4px;
}

.legal h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: var(--lavender-dark);
}

.legal__updated {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* Smaller section headings than the home page, so long text stays easy to scan */
.legal h2 {
    font-size: 1.5rem;
    margin-top: 2em;
}

.legal h3 {
    font-size: 1.15rem;
    margin-top: 1.4em;
    color: var(--ink);
}

.legal ul,
.legal ol {
    padding-left: 1.2em;
    margin: 0 0 1em;
}

.legal li {
    margin-bottom: 0.5em;
}

.legal li::marker {
    color: var(--lavender);
}

/* =====================================================================
   HELP PAGE (help.html)
   ===================================================================== */
.help h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: var(--lavender-dark);
}

.help__lead {
    color: var(--ink-soft);
}

/* The key under the heading: what the two tags mean */
.help__key {
    display: block;
    margin-top: 8px;
    font-size: 0.95rem;
}

.help__key .tag {
    margin-left: 0;
}

.help__key .tag--full {
    margin-left: 14px;
}

/* Plan tags: "Lite" (lavender outline) and "Lighthouse" (night sky) */
.tag {
    display: inline-block;
    margin-left: 6px;
    padding: 0.05rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    vertical-align: 2px;
    white-space: nowrap;
}

.tag--lite {
    border: 1px solid var(--lavender);
    color: var(--lavender-dark);
    background: #ffffff;
}

.tag--full {
    background: var(--night);
    color: var(--beam);
}

/* Search box */
.help-search {
    margin: 24px 0 8px;
}

.help-search__label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.help-search__hint {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.help-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cfc5ec;
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

.help-search input:focus {
    outline: 3px solid var(--line);
    border-color: var(--lavender);
}

.help-search__none {
    margin-top: 12px;
    color: var(--ink-soft);
}

/* Jump links to each section, as small rounded buttons */
.help-contents {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 8px;
}

/* Hidden while searching (help-search.js). Needed because display: flex above would show it anyway */
.help-contents[hidden] {
    display: none;
}

.help-contents a {
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.help-contents a:hover {
    border-color: var(--lavender);
}

.help-section {
    margin-top: 40px;
    /* Leaves a little space above a section when a link jumps to it */
    scroll-margin-top: 16px;
}

.help-section h2 {
    font-size: 1.6rem;
}

/* One question: a white card that opens to show the answer */
.faq {
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
}

.faq summary {
    padding: 14px 44px 14px 18px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
}

/* Hide the browser's own arrow, and use a + / – instead */
.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lavender);
    font-size: 1.4rem;
    font-weight: 400;
}

.faq[open] summary::after {
    content: "–";
}

.faq summary:focus-visible {
    outline: 3px solid var(--lavender);
    outline-offset: 2px;
    border-radius: 12px;
}

/* The answer */
.faq > :not(summary) {
    margin-left: 18px;
    margin-right: 18px;
    color: var(--ink-soft);
}

.faq > :last-child {
    margin-bottom: 16px;
}

.faq ul,
.faq ol {
    padding-left: 1.2em;
}

.faq li {
    margin-bottom: 0.4em;
}

.faq li::marker {
    color: var(--lavender);
}

/* How-to videos that aren't made yet */
.video-soon {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.video-soon li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
    border-radius: 12px;
    background: var(--night);
    color: #ffffff;
    font-weight: 700;
}

.video-soon em {
    color: var(--beam);
    font-style: normal;
    font-weight: 400;
    font-size: 0.9rem;
}

/* "Still stuck?" at the bottom */
.help-contact {
    margin-top: 48px;
    padding: 24px 28px;
    border-left: 4px solid var(--lavender);
    border-radius: 0 14px 14px 0;
    background: #ffffff;
}

.help-contact h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3em;
}

.help-contact p {
    margin: 0;
    color: var(--ink-soft);
}

/* =====================================================================
   MEDIA QUERIES (kept at the bottom)
   ===================================================================== */
@media (max-width: 900px) {
    .plans {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
  
    /* Promises: one under the other */
    .promises {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    /* Full demo: picture on top, form underneath */
    .full-demo {
        grid-template-columns: 1fr;
        max-width: 560px;
        gap: 28px;
    }
}

@media (max-width: 760px) {
    .hero__inner {
        grid-template-columns: 1fr;
        padding-top: 24px;
        padding-bottom: 90px;
    }

    /* On phones the drawing sits under the text, smaller */
    .hero__art {
        max-width: 280px;
    }

    .topbar__links a:not(.btn) {
        display: none;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Demo videos: one under the other on phones */
    .video-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 56px 0;
    }

    /* Less padding round the full demo box, so the form has room on a phone */
    .full-demo {
        padding: 20px;
    }

    /* Demo page: the discovery call words, then the button underneath */
    .demo-page__next {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    /* Help page: the coming-soon videos one under the other */
    .video-soon {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero__beam {
        animation: none;
    }
}
