/* ==========================================================
   Landing page. Colours come from brand.css (load it first).
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.ld {
    margin: 0;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

.ld h1,
.ld h2,
.ld h3 {
    margin: 0;
    font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.ld p {
    margin: 0;
}

.ld a {
    color: inherit;
}

.ld-skip {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    padding: 10px 16px;
    font-weight: 700;
    background: var(--sun);
    color: var(--pine-deep);
    border-radius: 8px;
}

.ld-skip:focus {
    left: 8px;
}

.ld a:focus-visible,
.ld button:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 3px;
}

.ld-wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.ld-icon {
    width: 24px;
    height: 24px;
    flex: none;
}

/* ---------- Buttons ---------- */

.ld-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 28px;
    font: inherit;
    font-weight: 700;
    text-decoration: none !important;
    border: 1.5px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}

.ld-btn:active {
    transform: translateY(1px);
}

.ld-btn--sun {
    color: var(--pine-deep);
    background: var(--sun);
}

.ld-btn--sun:hover {
    background: color-mix(in srgb, var(--sun) 88%, white);
}

.ld-btn--line {
    color: var(--paper);
    border-color: color-mix(in srgb, var(--paper) 45%, transparent);
}

.ld-btn--line:hover {
    background: color-mix(in srgb, var(--paper) 10%, transparent);
}

.ld-btn--pine {
    color: #fff;
    background: var(--pine);
}

.ld-btn--pine:hover {
    background: var(--pine-deep);
}

.ld-btn--ghost {
    color: var(--pine);
    border-color: var(--pine);
}

.ld-btn--ghost:hover {
    background: color-mix(in srgb, var(--pine) 8%, transparent);
}

.ld-btn--sm {
    height: 42px;
    padding: 0 20px;
    font-size: 15px;
    border-radius: 10px;
}

/* ---------- Hero ---------- */

.ld-hero {
    position: relative;
    overflow: hidden;
    color: var(--paper);
    background: var(--pine);
}

.ld-hero::before {
    content: "";
    position: absolute;
    top: -220px;
    right: -180px;
    width: 640px;
    height: 640px;
    border: 90px solid color-mix(in srgb, var(--pine-line) 45%, transparent);
    border-radius: 50%;
}

.ld-hero::after {
    content: "";
    position: absolute;
    bottom: 60px;
    left: -40px;
    width: 18px;
    height: 18px;
    background: var(--sun);
    border-radius: 50%;
}

.ld-nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
}

.ld-brand {
    display: inline-flex;
    align-items: center;
    font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--paper);
}

.ld-brand span {
    padding: 4px 12px;
    background: var(--paper);
    border-radius: 12px;
}

.ld-brand img {
    display: block;
    height: 46px;
    width: auto;
}

.ld-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ld-links a:not(.ld-btn) {
    padding: 8px 14px;
    font-weight: 600;
    text-decoration: none;
    color: color-mix(in srgb, var(--paper) 85%, var(--pine));
    border-radius: 8px;
}

.ld-links a:not(.ld-btn):hover {
    color: var(--paper);
    background: color-mix(in srgb, var(--paper) 10%, transparent);
}

.ld-links .ld-btn {
    margin-left: 8px;
}

.ld-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
    padding: 56px 0 96px;
}

.ld-eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sun);
    border: 1.5px solid color-mix(in srgb, var(--sun) 50%, transparent);
    border-radius: 999px;
}

.ld-hero h1 {
    font-size: clamp(40px, 6vw, 70px);
    font-weight: 700;
}

.ld-hero h1 em {
    font-style: normal;
    color: var(--sun);
}

.ld-lede {
    max-width: 46ch;
    margin: 22px 0 32px;
    font-size: 19px;
    color: color-mix(in srgb, var(--paper) 82%, var(--pine));
}

.ld-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ld-fine {
    margin-top: 16px;
    font-size: 14px;
    color: color-mix(in srgb, var(--paper) 65%, var(--pine));
}

/* Photo collage in the hero */

.ld-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ld-collage > div:nth-child(even) {
    transform: translateY(40px);
}

.ld-person {
    display: block;
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(6, 24, 22, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ld-person:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(6, 24, 22, 0.34);
}

.ld-person-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    background: color-mix(in srgb, var(--pine) 12%, white);
}

.ld-person-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ld-tick {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: #fff;
    background: var(--pine);
    border: 2px solid #fff;
    border-radius: 50%;
}

.ld-tick svg {
    width: 13px;
    height: 13px;
}

.ld-person-body {
    padding: 12px 14px 14px;
}

.ld-person-body strong {
    display: block;
    font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.ld-person-body span {
    display: block;
    overflow: hidden;
    font-size: 14px;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Fallback when there are no student photos yet */

.ld-stack {
    display: grid;
    gap: 14px;
}

.ld-stack-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    color: var(--ink);
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(6, 24, 22, 0.28);
}

.ld-stack-item .ld-icon {
    width: 44px;
    height: 44px;
    padding: 10px;
    color: var(--pine);
    background: color-mix(in srgb, var(--pine) 10%, white);
    border-radius: 12px;
}

.ld-stack-item strong {
    display: block;
}

.ld-stack-item span {
    font-size: 14px;
    color: var(--muted);
}

/* ---------- Trust strip ---------- */

.ld-strip {
    background: var(--pine-deep);
    color: var(--paper);
}

.ld-strip-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
    padding: 28px 0;
}

.ld-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 48px;
}

.ld-stat strong {
    display: block;
    font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--sun);
}

.ld-stat span {
    font-size: 14px;
    color: color-mix(in srgb, var(--paper) 75%, var(--pine-deep));
}

.ld-unis {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 560px;
}

.ld-unis a {
    padding: 4px 12px;
    font-size: 14px;
    color: inherit;
    text-decoration: none;
    border: 1.5px solid color-mix(in srgb, var(--paper) 25%, transparent);
    border-radius: 999px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ld-unis a:hover {
    background: color-mix(in srgb, var(--paper) 12%, transparent);
    border-color: var(--sun);
}

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

.ld-section {
    padding: 96px 0;
}

.ld-section--white {
    background: var(--white);
}

.ld-section--tight {
    padding: 56px 0;
}

.ld-section--tint {
    background: color-mix(in srgb, var(--pine) 4%, var(--paper));
}

.ld-head {
    max-width: 640px;
    margin-bottom: 48px;
}

.ld-section--tight .ld-head {
    margin-bottom: 28px;
}

.ld-head h2 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 700;
}

.ld-head p {
    margin-top: 14px;
    font-size: 18px;
    color: var(--muted);
}

/* How it works */

.ld-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    counter-reset: step;
}

.ld-step {
    position: relative;
    padding: 22px 22px 24px;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(18, 64, 60, 0.05);
}

.ld-step::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--pine-deep);
    background: var(--sun);
    border-radius: 50%;
}

.ld-step h3 {
    margin-bottom: 6px;
    font-size: 19px;
}

.ld-step p {
    font-size: 14.5px;
    color: var(--muted);
}

/* Features */

.ld-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.ld-feature {
    padding: 20px;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 16px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.ld-feature:hover {
    border-color: color-mix(in srgb, var(--pine) 40%, var(--line));
    transform: translateY(-2px);
}

.ld-feature .ld-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    padding: 10px;
    color: var(--pine);
    background: color-mix(in srgb, var(--pine) 12%, white);
    border-radius: 12px;
}

/* Alternate the icon colour so the grid doesn't read as one flat block */
.ld-feature:nth-child(3n + 2) .ld-icon {
    color: var(--pine-deep);
    background: color-mix(in srgb, var(--sun) 35%, white);
}

.ld-feature:nth-child(3n + 3) .ld-icon {
    color: #fff;
    background: var(--pine);
}

.ld-feature h3 {
    margin-bottom: 4px;
    font-size: 18px;
}

.ld-feature p {
    font-size: 14.5px;
    color: var(--muted);
}

/* People */

.ld-people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.ld-people .ld-person {
    box-shadow: none;
    border: 1.5px solid var(--line);
}

.ld-people .ld-person:hover {
    transform: none;
    border-color: var(--pine);
    box-shadow: 0 8px 20px rgba(6, 24, 22, 0.1);
}

.ld-more {
    margin-top: 40px;
    text-align: center;
}

/* Roommates */

.ld-rooms {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    padding: 56px;
    color: var(--paper);
    background: var(--pine);
    border-radius: 28px;
}

.ld-rooms h2 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
}

.ld-rooms > div > p {
    margin: 16px 0 28px;
    color: color-mix(in srgb, var(--paper) 82%, var(--pine));
}

.ld-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

.ld-tags span {
    padding: 8px 16px;
    font-weight: 600;
    color: var(--ink);
    background: var(--white);
    border-radius: 999px;
}

.ld-tags span:nth-child(3n + 1) {
    background: var(--sun);
    color: var(--pine-deep);
}

.ld-tags:hover span {
    filter: brightness(0.96);
}

.ld-roomcount {
    margin-top: 24px;
    font-size: 15px;
    color: color-mix(in srgb, var(--paper) 75%, var(--pine));
}

/* Plans */

.ld-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 860px;
}

.ld-plan {
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 20px;
}

.ld-plan--premium {
    color: var(--paper);
    background: var(--pine);
    border-color: var(--pine);
}

.ld-plan h3 {
    font-size: 26px;
}

.ld-price {
    margin: 10px 0 22px;
    font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ld-price small {
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 500;
    opacity: 0.75;
}

.ld-plan ul {
    flex: 1;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.ld-plan li {
    position: relative;
    padding: 6px 0 6px 28px;
}

.ld-plan li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 13px;
    width: 12px;
    height: 7px;
    border-left: 2.5px solid var(--pine);
    border-bottom: 2.5px solid var(--pine);
    transform: rotate(-45deg);
}

.ld-plan--premium li::before {
    border-color: var(--sun);
}

.ld-boost-note {
    max-width: 860px;
    margin-top: 20px;
    color: var(--muted);
}

/* Final call to action */

.ld-final {
    padding: 96px 0;
    text-align: center;
    color: var(--paper);
    background: var(--pine-deep);
}

.ld-final h2 {
    max-width: 18ch;
    margin: 0 auto 28px;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 700;
}

.ld-final .ld-cta {
    justify-content: center;
}

/* Footer */

.ld-footer {
    padding: 32px 0;
    font-size: 15px;
    color: color-mix(in srgb, var(--paper) 70%, var(--pine-deep));
    background: var(--pine-deep);
    border-top: 1px solid color-mix(in srgb, var(--paper) 14%, transparent);
}

.ld-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
}

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

/* ---------- Small screens ---------- */

@media (max-width: 960px) {
    .ld-hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-bottom: 72px;
    }

    .ld-collage {
        max-width: 460px;
        margin-bottom: 40px;
    }

    .ld-links a:not(.ld-btn) {
        display: none;
    }

    .ld-steps,
    .ld-features {
        grid-template-columns: 1fr;
    }

    .ld-rooms {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 36px 28px;
    }

    .ld-plans {
        grid-template-columns: 1fr;
    }

    .ld-section {
        padding: 72px 0;
    }
}

@media (max-width: 520px) {
    .ld-wrap {
        padding: 0 18px;
    }

    .ld-brand img {
        height: 40px;
    }

    .ld-collage > div:nth-child(even) {
        transform: translateY(24px);
    }

    .ld-cta .ld-btn {
        flex: 1;
    }
}

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

    * {
        transition: none !important;
    }
}

/* ==========================================================
   Full footer (site-footer partial) + shared public pages
   ========================================================== */

.ld-footer--full {
    padding: 48px 0 0;
}

.ftr-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 36px;
}

.ftr-brand .ld-brand {
    text-decoration: none;
}

.ftr-brand .ld-brand img {
    height: 36px;
}

.ftr-tag {
    max-width: 32ch;
    margin: 0;
    font-size: 14px;
    color: color-mix(in srgb, var(--paper) 75%, var(--pine-deep));
}

.ftr-col h3 {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sun);
}

.ftr-col {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ftr-col a {
    font-size: 14.5px;
    color: color-mix(in srgb, var(--paper) 82%, var(--pine-deep));
    text-decoration: none;
}

.ftr-col a:hover {
    color: var(--paper);
    text-decoration: underline;
}

.ftr-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;
    padding: 20px 0;
    font-size: 13px;
    color: color-mix(in srgb, var(--paper) 65%, var(--pine-deep));
    border-top: 1px solid color-mix(in srgb, var(--paper) 14%, transparent);
}

.ftr-bottom a {
    color: color-mix(in srgb, var(--paper) 82%, var(--pine-deep));
}

@media (max-width: 860px) {
    .ftr-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ftr-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .ftr-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Shared public pages (About, FAQ, Contact, Privacy, Terms) ---------- */

.pg-top-nav {
    border-bottom: 1.5px solid var(--line);
    background: var(--white);
}

.pg-content {
    padding: 48px 0 80px;
}

.pg-article {
    max-width: 720px;
}

.pg-article h1 {
    margin: 0 0 8px;
    font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.pg-article h2 {
    margin: 32px 0 10px;
    font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
}

.pg-article p {
    margin: 0 0 14px;
    color: var(--ink);
    line-height: 1.6;
}

.pg-article ul {
    margin: 0 0 14px;
    padding-left: 22px;
    color: var(--ink);
    line-height: 1.7;
}

.pg-article a {
    color: var(--pine);
    font-weight: 600;
    text-decoration: underline;
}

.pg-lede {
    font-size: 18px;
    color: var(--muted);
}

.pg-updated {
    margin: 0 0 20px !important;
    font-size: 13px;
    color: var(--muted);
}

.pg-contact-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px;
    margin-bottom: 20px;
    background: var(--paper);
    border-radius: 14px;
}

.pg-contact-box span {
    font-size: 13px;
    color: var(--muted);
}

.pg-contact-box a {
    font-size: 18px;
    font-weight: 700;
}

.pg-faq details {
    padding: 16px 0;
    border-bottom: 1.5px solid var(--line);
}

.pg-faq summary {
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
    cursor: pointer;
}

.pg-faq p {
    margin: 10px 0 0;
}
