:root {
    --bg: #0a1221;
    --bg-deep: #081221;
    --sheet: #0d1526;
    --card: #2d3358;
    --card-hi: #302358;
    --ink: #ffffff;
    --ink-soft: #b8c0d0;
    --ink-faint: #7f8aa0;
    --cream: #e7dfa3;
    --cream-hi: #f2ecc4;
    --cream-deep: #cfc684;
    --coral: #f8a790;
    --lilac: #e39dfa;
    --purple: #5330ac;
    --teal: #00d2b5;
    --rule: rgba(255, 255, 255, 0.12);
    --gutter: 1.15rem;
}

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

html {
    -webkit-text-size-adjust: 100%;
    background: var(--bg-deep);
}

/* The body is the sheet — one centred column, topographic texture tiled behind
   the whole thing the way the product does it. */
body {
    position: relative;
    width: 100%;
    max-width: 600px;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background-color: var(--bg);
    background-image: url("./ce.lines.png");
    background-size: 600px auto;
    background-position: top center;
    background-repeat: repeat-y;
    color: var(--ink);
    font-family: "Jost", "Futura", "Century Gothic", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Brand bar ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem var(--gutter);
    background: rgba(10, 18, 33, 0.88);
    border-bottom: 1px solid var(--rule);
    -webkit-backdrop-filter: saturate(150%) blur(10px);
    backdrop-filter: saturate(150%) blur(10px);
}

.logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 62vw;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    line-height: 0;
}

.hero img {
    display: block;
    width: 100%;
    height: clamp(170px, 30vh, 260px);
    object-fit: cover;
    object-position: center 55%;
}

/* Fade the photo into the sheet so there is no hard seam under it. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
                rgba(10, 18, 33, 0.15) 0%,
                rgba(10, 18, 33, 0.55) 55%,
                var(--bg) 100%);
}

.hero-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 var(--gutter) 0.9rem;
    line-height: 1.25;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 0.45rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lilac);
    background: rgba(83, 48, 172, 0.35);
    border: 1px solid rgba(227, 157, 250, 0.35);
    border-radius: 99px;
}

h1 {
    margin: 0;
    font-size: clamp(1.35rem, 5.6vw, 1.75rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-wrap: balance;
}

/* ---------- Step rail ---------- */
/* Two-step DCB flow made explicit: Handynummer, then PIN. */
.steps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.9rem var(--gutter) 0.2rem;
    list-style: none;
}

.steps li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.steps .dot {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ink-faint);
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 99px;
}

.steps .is-active { color: var(--cream); }

.steps .is-active .dot {
    color: #1a1608;
    background: var(--cream);
    border-color: var(--cream);
}

.steps .is-done .dot {
    background: var(--cream);
    border-color: var(--cream);
}

.steps .bar {
    flex: 1;
    height: 1px;
    background: var(--rule);
}

/* ---------- Form card ---------- */
.cta {
    padding: 0.7rem var(--gutter) 1.2rem;
}

.card {
    padding: 1.1rem 1rem 1.2rem;
    background: linear-gradient(165deg, var(--card-hi) 0%, var(--card) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.9),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0;
}

.label {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.input-msisdn {
    width: 100%;
    min-height: 52px;
    padding: 0.6rem 1rem;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink);
    background: rgba(8, 12, 26, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -moz-appearance: textfield;
}

.input-msisdn::placeholder {
    color: var(--ink-faint);
    font-weight: 400;
    letter-spacing: 0.06em;
}

.input-msisdn:focus {
    outline: none;
    border-color: var(--lilac);
    box-shadow: 0 0 0 3px rgba(227, 157, 250, 0.22);
}

.input-msisdn::-webkit-outer-spin-button,
.input-msisdn::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* PIN entry gets the wider tracking that makes short codes readable. */
.input-pin {
    text-align: center;
    font-size: 1.6rem;
    letter-spacing: 0.5em;
    text-indent: 0.5em;
}

/* ---------- Call to action ---------- */
.submit {
    width: 100%;
    min-height: 54px;
    padding: 0.8rem 1rem;
    font-family: inherit;
    font-size: clamp(0.9rem, 3.6vw, 1rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a1608;
    background: linear-gradient(180deg, var(--cream-hi) 0%, var(--cream) 55%, var(--cream-deep) 100%);
    border: 0;
    border-radius: 99px;
    box-shadow: 0 16px 30px -16px rgba(231, 223, 163, 0.7),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.submit:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 9px 20px -14px rgba(231, 223, 163, 0.7),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

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

.cancel {
    display: block;
    padding: 0.15rem 0;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    color: var(--ink-faint);
    text-decoration: none;
}

.cancel:hover,
.cancel:focus { color: var(--coral); }

/* ---------- Error state ---------- */
.error-message {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    color: #ffd7cd;
}

/* ---------- Price ticket ---------- */
.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.15rem 0 0;
    padding: 0.6rem 0.8rem;
    text-align: center;
}

.price strong {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--cream);
}

.price span {
    font-size: 0.78rem;
    color: var(--ink-faint);
}

/* ---------- Service copy ---------- */
.desc {
    padding: 0.2rem var(--gutter) 1.1rem;
}

.desc p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--ink-soft);
    text-wrap: pretty;
}

/* Three-up feature strip — what the subscription actually gets you. */
.perks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
}

.perks li {
    padding: 0.7rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    color: var(--ink-soft);
    background: rgba(45, 51, 88, 0.45);
    border: 1px solid var(--rule);
    border-radius: 12px;
}

.perks b {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--lilac);
}

/* ---------- Legal block ---------- */
.legal {
    margin: 0;
    padding: 0 var(--gutter) 1.3rem;
    list-style: none;
}

.legal li {
    font-size: 0.72rem;
    line-height: 1.7;
    color: var(--ink-faint);
}

.legal a { color: var(--coral); }

/* ---------- Footer ---------- */
/* Link set mirrors the footer on content.cityexplorerai.com/tour. */
.footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom, 0px));
    background: var(--bg-deep);
    border-top: 1px solid var(--rule);
    text-align: center;
}

.footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer a {
    display: inline-block;
    padding: 0.1rem 0;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.footer a:hover,
.footer a:focus {
    color: var(--coral);
    border-bottom-color: var(--coral);
}

.copyright {
    margin: 0.7rem 0 0;
    font-size: 0.68rem;
    color: var(--ink-faint);
}


/* ---------- Roomier phones and up ---------- */
@media (min-width: 26rem) and (min-height: 44rem) {
    :root { --gutter: 1.4rem; }

    .logo { height: 40px; }

    .hero img { height: clamp(200px, 32vh, 290px); }

    .card { padding: 1.25rem 1.15rem 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition-duration: 0.01ms !important; }
}
