/*
 * Dreiland landing page.
 *
 * Hand-written because the application ships without a Node or Vite toolchain:
 * Laravel Cloud's build runs composer only. Colours come from the brand palette
 * in resources/brand/README.md.
 */

:root {
    --coral: #ff6846;
    --cream: #fff4df;
    --sun: #ffc857;
    --navy: #123447;
    --teal: #0f766e;

    --surface: var(--cream);
    --surface-raised: #fffbf2;
    --ink: var(--navy);
    --ink-muted: #3a5666;
    --hairline: rgba(18, 52, 71, 0.14);
    --glow: rgba(255, 104, 70, 0.16);
    --phone-frame: var(--navy);
    --phone-shadow: rgba(18, 52, 71, 0.18);
    --photo-backdrop: #e5e1d8;

    --ring-1: var(--coral);
    --ring-2: var(--sun);
    --ring-3: var(--navy);

    --measure: 34rem;
    --gutter: clamp(1.25rem, 5vw, 4rem);
}

@media (prefers-color-scheme: dark) {
    :root {
        --surface: var(--navy);
        --surface-raised: #1a4257;
        --ink: var(--cream);
        --ink-muted: #c9d6de;
        --hairline: rgba(255, 244, 223, 0.16);
        --glow: rgba(255, 104, 70, 0.22);
        --phone-frame: #587184;
        --phone-shadow: rgba(0, 0, 0, 0.34);
        --photo-backdrop: #0d2c3c;

        --ring-1: var(--cream);
        --ring-2: var(--coral);
        --ring-3: var(--sun);
    }
}

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

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

body {
    margin: 0;
    background-color: var(--surface);
    background-image: radial-gradient(60rem 36rem at 78% -8%, var(--glow), transparent 68%);
    background-repeat: no-repeat;
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 100%;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
    margin: 0;
}

.page {
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 8vw, 6rem);
    max-width: 76rem;
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(1.75rem, 5vw, 3.5rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
}

main {
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 8vw, 5.5rem);
}

/* Masthead ---------------------------------------------------------------- */

.masthead {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.masthead__mark img {
    display: block;
    width: clamp(2.75rem, 9vw, 3.5rem);
    height: auto;
}

.masthead__wordmark {
    font-size: clamp(1.25rem, 4.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

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

.hero {
    display: grid;
    align-items: flex-start;
    gap: clamp(1.25rem, 3vw, 1.75rem);
}

.hero::before {
    content: "";
    width: 3.5rem;
    height: 0.3rem;
    border-radius: 999px;
    background-color: var(--coral);
}

.hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(1.25rem, 3vw, 1.75rem);
}

.hero__headline {
    max-width: 22ch;
    font-size: clamp(2rem, 7.2vw, 3.75rem);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -0.028em;
}

.hero__line {
    display: block;
    text-wrap: balance;
}

.hero__lead {
    max-width: var(--measure);
    color: var(--ink-muted);
    font-size: clamp(1.05rem, 2.6vw, 1.25rem);
}

.availability {
    display: inline-block;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    background-color: var(--coral);
    color: var(--navy);
    font-size: clamp(0.875rem, 2.6vw, 1.0625rem);
    font-weight: 700;
    letter-spacing: 0.005em;
    line-height: 1.3;
}

.hero__guide {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    width: min(100%, 19rem);
    justify-self: center;
}

.hero__stage {
    display: grid;
    width: min(100%, 18rem);
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--cream);
    box-shadow: 0 1.25rem 3rem var(--glow);
}

.hero__stage img {
    display: block;
    width: 88%;
    height: 88%;
    object-fit: contain;
}

.hero__guide figcaption {
    color: var(--ink-muted);
    font-size: 0.9375rem;
    font-weight: 650;
    text-align: center;
}

@media (min-width: 48em) {
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.55fr);
        column-gap: clamp(2.5rem, 6vw, 5rem);
    }

    .hero::before {
        grid-column: 1 / -1;
    }

    .hero__guide {
        align-self: center;
    }
}

/* Product demo ------------------------------------------------------------ */

.demo {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

.demo__heading-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.demo__eyebrow {
    color: var(--coral);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.demo__heading {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.demo__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 2.25rem);
    padding: 0;
    list-style: none;
}

.demo__state {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.25rem 0.65rem;
    align-items: center;
    min-width: 0;
}

.demo__number {
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    place-items: center;
    background: var(--sun);
    color: var(--navy);
    font-size: 0.8125rem;
    font-weight: 800;
}

.demo__label {
    font-size: 1.0625rem;
    line-height: 1.2;
}

.phone {
    position: relative;
    grid-column: 1 / -1;
    width: min(100%, 14rem);
    margin-top: 0.55rem;
    justify-self: center;
    overflow: hidden;
    padding: 0.34rem;
    border: 0.26rem solid var(--phone-frame);
    border-radius: 2rem;
    background: var(--phone-frame);
    box-shadow: 0 1rem 2.5rem var(--phone-shadow);
}

.phone__speaker {
    position: absolute;
    z-index: 1;
    top: 0.58rem;
    left: 50%;
    width: 28%;
    height: 0.28rem;
    border-radius: 999px;
    background: var(--phone-frame);
    transform: translateX(-50%);
}

.phone img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.48rem;
}

@media (min-width: 36em) {
    .demo__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 68em) {
    .demo__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Steps ------------------------------------------------------------------- */

.steps {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vw, 2.25rem);
}

.steps__heading {
    font-size: clamp(0.8rem, 2.4vw, 0.875rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.steps__list {
    display: grid;
    gap: clamp(1rem, 2.5vw, 1.5rem);
    grid-template-columns: 1fr;
    padding: 0;
    list-style: none;
}

@media (min-width: 58em) {
    .steps__list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: clamp(1.25rem, 3.5vw, 1.75rem);
    border: 1px solid var(--hairline);
    border-radius: 1.25rem;
    background-color: var(--surface-raised);
}

.step__portal {
    width: 2.75rem;
    height: 2.75rem;
}

.step__portal path:nth-child(1) {
    fill: var(--ring-1);
}

.step__portal path:nth-child(2) {
    fill: var(--ring-2);
}

.step__portal path:nth-child(3) {
    fill: var(--ring-3);
}

.step__heading {
    font-size: clamp(1.125rem, 3vw, 1.3125rem);
    font-weight: 700;
    letter-spacing: -0.012em;
    line-height: 1.25;
}

.step__heading,
.step__body {
    max-width: 44ch;
}

.step__body {
    color: var(--ink-muted);
    font-size: 1rem;
}

/* Closing ----------------------------------------------------------------- */

.closing {
    padding-left: clamp(1rem, 3vw, 1.5rem);
    border-left: 0.3rem solid var(--coral);
}

.closing p {
    max-width: var(--measure);
    font-size: clamp(1.05rem, 2.6vw, 1.1875rem);
    line-height: 1.5;
}

/* Colophon ---------------------------------------------------------------- */

.colophon {
    margin-top: auto;
    padding-top: clamp(1.5rem, 4vw, 2rem);
    border-top: 1px solid var(--hairline);
    color: var(--ink-muted);
    font-size: 0.875rem;
}

/* Shared explanation ------------------------------------------------------ */

.share-page {
    display: flex;
    flex-direction: column;
    gap: clamp(0.875rem, 3vw, 1.5rem);
    width: min(calc(100% - 1.5rem), 58rem);
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(0.875rem, 3vw, 2.25rem) 0 1.5rem;
}

.share-page > .masthead {
    margin-inline: 0.25rem;
}

.share-card {
    min-width: 0;
    overflow: hidden;
    gap: 0;
    border: 1px solid var(--hairline);
    border-radius: clamp(1.125rem, 4vw, 1.75rem);
    background: var(--surface-raised);
    box-shadow: 0 1rem 2.5rem var(--phone-shadow);
}

.share-card__photo-frame {
    display: flex;
    height: clamp(11rem, 50vw, 13.5rem);
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background: var(--photo-backdrop);
}

.share-card__photo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.share-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    min-width: 0;
    padding: clamp(1rem, 4vw, 2rem);
}

.share-card__kind {
    align-self: flex-start;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--coral);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.share-card__meaning {
    font-size: clamp(1.375rem, 6.2vw, 2.125rem);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.share-card__facts {
    display: grid;
    gap: 0;
    margin: 0;
}

.share-card__facts div {
    display: grid;
    grid-template-columns: 6.25rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.75rem 0;
    border-top: 1px solid var(--hairline);
}

.share-card__facts dt,
.share-card__action h2,
.share-card__notes h2 {
    color: var(--ink-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.share-card__facts dt {
    letter-spacing: 0.08em;
}

.share-card__facts dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.45;
}

.share-card__action,
.share-card__notes {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.share-card__action {
    padding: 0.875rem 1rem;
    border-radius: 1rem;
    background: var(--teal);
    color: #fff;
}

.share-card__action h2 {
    color: #fff;
}

.share-card__action p {
    line-height: 1.5;
}

.share-card__notes {
    color: var(--ink-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.share-card__meaning,
.share-card__facts dd,
.share-card__action p,
.share-card__notes p {
    overflow-wrap: anywhere;
}

.share-credit {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    font-size: 0.875rem;
    text-align: center;
}

.share-credit a {
    color: var(--ink);
    font-weight: 750;
    text-underline-offset: 0.2em;
}

.share-credit__cta {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    background: var(--surface-raised);
    text-decoration: none;
}

@media (min-width: 56em) {
    .share-card {
        display: grid;
        grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    }

    .share-card__photo-frame {
        height: 100%;
        min-height: 34rem;
    }

    .share-card__content {
        align-self: center;
        justify-self: stretch;
        padding: 2rem 2rem 2rem 1.5rem;
    }

    .share-card__meaning {
        text-wrap: pretty;
    }
}
