/* PortSlot — public site and customer portal. */
:root {
    --bg: #f6f8fa;
    --surface: #ffffff;
    --surface-2: #eef2f6;
    --text: #14202b;
    --muted: #5b6b7a;
    --border: #d8e0e8;
    --brand: #0b3d5c;
    --brand-ink: #ffffff;
    --accent: #e8731c;
    --accent-ink: #ffffff;
    --ok-bg: #e7f5ec;   --ok: #17663a;
    --err-bg: #fdecec;  --err: #a12121;
    --info-bg: #e6f0fa; --info: #0d4f8b;
    --warn-bg: #fff4e0; --warn: #8a4b00;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 4px 16px rgba(16, 32, 48, .06);
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d1620;
        --surface: #142230;
        --surface-2: #1b2c3d;
        --text: #e6edf3;
        --muted: #93a4b5;
        --border: #2a3d50;
        --brand: #7cc4f0;
        --brand-ink: #0d1620;
        --accent: #f28c3c;
        --accent-ink: #1a0e04;
        --ok-bg: #12321f;   --ok: #7fd9a1;
        --err-bg: #3a1717;  --err: #f3a0a0;
        --info-bg: #13283d; --info: #8cc4f5;
        --warn-bg: #3a2a10; --warn: #f5c47a;
        --shadow: none;
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
}
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Header / footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.2rem;
        color: var(--text); text-decoration: none; }
.logo img { flex: none; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: .25rem 1rem; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; font-size: .95rem; }
.site-nav a:hover { color: var(--brand); }
.site-footer { border-top: 1px solid var(--border); margin-top: 4rem; padding: 2rem 0; font-size: .875rem; color: var(--muted); }
.site-footer .wrap { display: flex; gap: 1rem 2rem; flex-wrap: wrap; justify-content: space-between; }

/* Buttons */
.btn, button {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    font: inherit; font-weight: 600; line-height: 1.2;
    padding: .65rem 1.1rem; border-radius: 8px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); text-decoration: none; cursor: pointer;
}
.btn:hover, button:hover { background: var(--surface-2); }
.btn-primary, button.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover, button.btn-primary:hover { background: var(--accent); filter: brightness(1.07); }
.btn-small, button.btn-small { padding: .35rem .7rem; font-size: .875rem; }
button:disabled { opacity: .6; cursor: progress; }
.site-nav .btn { color: var(--text); }
.site-nav .btn-primary { color: var(--accent-ink); }

/* Landing page */
.hero { padding: 3.5rem 0 3rem; }
.hero .wrap { display: grid; gap: 2.5rem; grid-template-columns: 1.25fr 1fr; align-items: center; }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.hero .ctas { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.tag { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
       color: var(--brand); background: var(--info-bg); padding: .25rem .6rem; border-radius: 99px; margin-bottom: 1rem; }
.phone { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 1.25rem;
         box-shadow: var(--shadow); max-width: 340px; justify-self: center; width: 100%; }
.phone .from { font-size: .8rem; color: var(--muted); margin-bottom: .5rem; }
.bubble { background: var(--surface-2); border-radius: 14px 14px 14px 4px; padding: .75rem .9rem;
          font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; word-break: break-word; }
.bubble + .bubble { margin-top: .5rem; }

.section { padding: 3rem 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-intro { max-width: 42rem; color: var(--muted); margin-bottom: 2rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.step-num { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
            background: var(--brand); color: var(--brand-ink); font-weight: 700; margin-bottom: .75rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.section.alt .card { background: var(--bg); box-shadow: none; }
.card p:last-child { margin-bottom: 0; }
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { padding-left: 1.6rem; position: relative; margin-bottom: .5rem; }
.list-check li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.list-cross li::before { content: "✕"; color: var(--err); }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.times { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1rem; }
.times span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2);
              border: 1px solid var(--border); padding: .2rem .55rem; border-radius: 6px; font-size: .9rem; }
details { border-bottom: 1px solid var(--border); padding: .9rem 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: .6rem 0 0; color: var(--muted); }

/* Forms and portal */
.page { padding: 2rem 0; }
.auth-box { max-width: 440px; margin: 2rem auto; }
form.stack { display: grid; gap: 1rem; }
label { font-weight: 600; display: block; margin-bottom: .3rem; }
label.check { font-weight: 400; display: flex; gap: .55rem; align-items: flex-start; }
label.check input { margin-top: .3rem; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface);
    border: 1px solid var(--border); border-radius: 8px; padding: .55rem .7rem; width: 100%; }
label.check input { width: auto; }
textarea { min-height: 120px; text-transform: uppercase; }
input:focus, select:focus, textarea:focus, button:focus-visible, .btn:focus-visible {
    outline: 2px solid var(--brand); outline-offset: 1px; }
.hint { color: var(--muted); font-size: .85rem; margin-top: .3rem; font-weight: 400; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.alert { padding: .7rem .9rem; border-radius: 8px; margin: 0 0 .6rem; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-err { background: var(--err-bg); color: var(--err); }
.alert-info { background: var(--info-bg); color: var(--info); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.portal-grid { display: grid; gap: 1.25rem; grid-template-columns: 380px 1fr; align-items: start; }
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin-bottom: 1.25rem; }
.stat .num { font-size: 1.8rem; font-weight: 800; }
.stat .lbl { color: var(--muted); font-size: .85rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { border-bottom: 1px solid var(--border); padding: .5rem; text-align: left; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
td.note { white-space: normal; min-width: 14rem; color: var(--muted); }
td form { margin: 0; }
.status { padding: .1rem .55rem; border-radius: 99px; font-size: .8rem; font-weight: 600; background: var(--surface-2); }
.s-p { background: var(--info-bg); color: var(--info); }
.s-r, .s-u { background: var(--warn-bg); color: var(--warn); }
.s-b { background: var(--ok-bg); color: var(--ok); }
.s-a { background: var(--surface-2); color: var(--muted); }
.s-f, .s-x { background: var(--err-bg); color: var(--err); }
.choice { display: grid; gap: .5rem; }
.choice label { font-weight: 400; display: flex; gap: .5rem; align-items: center; border: 1px solid var(--border);
                border-radius: 8px; padding: .6rem .75rem; cursor: pointer; }
.choice input { width: auto; }

/* Recharge slider */
input[type=range] { padding: 0; border: 0; background: none; accent-color: var(--accent); height: 2rem; }
.range-scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); padding: 0 .3rem; }
.topup-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
               background: var(--surface-2); border-radius: 8px; padding: .8rem 1rem; }
.topup-total strong { font-size: 1.8rem; letter-spacing: -.01em; }

@media (max-width: 900px) {
    .hero .wrap, .portal-grid { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .grid-4, .grid-2, .stats { grid-template-columns: 1fr; }
    .hero { padding: 2rem 0; }
    .site-nav { margin-left: 0; width: 100%; padding-bottom: .75rem; }
}

/* Public homepage: warmer colours and transporter-led storytelling.
   Scoped to .landing so customer and admin screens retain their layout. */
.landing {
    --text: #173c3d; --muted: #526768; --surface: #fffefa; --bg: #f7f5ee;
    --surface-2: #eeeee5; --border: #d9ded4; --brand: #174d4d;
    --brand-ink: #fffefa; --accent: #f4a65c; --accent-ink: #203b37;
    color: var(--text); background: var(--bg); color-scheme: light;
}
.landing .wrap { max-width: 1160px; padding-inline: 24px; }
.landing .hero { background: #173f3f; color: #fffefa; padding: 5rem 0; }
.landing .hero .wrap { grid-template-columns: 1.2fr 1fr; gap: 4rem; }
.landing .tag { background: #2b5351; color: #f8c78e; letter-spacing: .09em; padding: .45rem .8rem; }
.landing h1 { font-size: clamp(2.5rem, 5vw, 4.15rem); line-height: 1.06; max-width: 13ch; letter-spacing: -.045em; margin: .3rem 0 1.2rem; }
.landing h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); letter-spacing: -.035em; max-width: 25ch; }
.landing h3 { font-size: 1.15rem; }
.landing .hero-promise { color: #ffd09e; font-size: 1.35rem; font-weight: 600; margin-bottom: .8rem; }
.landing .hero .lede { color: #d5e3dc; font-size: 1.08rem; }
.landing .hero .btn:not(.btn-primary) { background: transparent; color: #fffefa; border-color: #7c9690; }
.landing .btn { min-height: 48px; padding: .8rem 1.1rem; }
.landing .btn-primary { color: #203b37; }
.landing .hero-note { margin-top: 1.2rem; margin-bottom: .45rem; font-size: .94rem; color: #e5ebe5; }
.landing .availability { font-size: .82rem; color: #bdd0c8; max-width: 46ch; }
.landing .booking-story { background: #f8f6ed; color: #173c3d; padding: 2rem; border-radius: 20px; box-shadow: 0 18px 40px #082c2c55; transform: rotate(1deg); }
.landing .story-top { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #d9ded4; margin-bottom: 1.5rem; }
.landing .story-label { font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.landing .booking-story h2 { font-size: 1.8rem; }
.landing .booking-journey { list-style: none; margin: 1.7rem 0; padding: 0; display: grid; gap: 1.4rem; }
.landing .booking-journey li { display: flex; gap: .9rem; align-items: flex-start; }
.landing .journey-dot { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: #e3e8db; color: #174d4d; font-weight: 700; }
.landing .booking-journey strong, .landing .booking-journey div > span { display: block; }
.landing .booking-journey div > span { font-size: .88rem; color: #526768; margin-top: .2rem; }
.landing .booking-message { padding: 1rem; border-radius: 12px; background: #e4eddf; border-left: 3px solid #4a7756; display: grid; gap: .25rem; font-size: .9rem; }
.landing .example-label { font-size: .72rem; color: #4b6454; margin-bottom: .35rem; }
.landing .promise-strip { background: #e9eddf; border-bottom: 1px solid #d9ded4; }
.landing .promise-strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem 1.5rem; padding-block: 1.15rem; font-size: .92rem; font-weight: 600; }
.landing .promise-strip span::before { content: '✓'; color: #40734e; margin-right: .6rem; }
.landing .section { padding-block: 4.5rem; }
.landing .eyebrow { display: block; font-size: .77rem; text-transform: uppercase; font-weight: 700; letter-spacing: .12em; color: #52705c; margin-bottom: 1rem; }
.landing .section-intro { font-size: 1.08rem; max-width: 65ch; }
.landing .card { border-radius: 14px; padding: 1.6rem; box-shadow: none; }
.landing .benefit-grid { margin-top: 2.5rem; }
.landing .benefit-number { display: block; color: #5d7165; font-size: .8rem; margin-bottom: 1.5rem; }
.landing .card p { color: var(--muted); }
.landing .step-num { margin-bottom: 1.3rem; }
.landing .release-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--border); }
.landing .release-panel p { margin-bottom: 0; }
.landing .times span { font-family: inherit; font-weight: 600; padding: .4rem .65rem; }
.landing .pricing-layout { gap: 4rem; align-items: center; }
.landing .price-card { border-top: 4px solid #e5a56c; padding: 2rem; }
.landing .price { font-size: 3.5rem; }
.landing .price-card .btn { margin-top: 1rem; width: 100%; }
.landing .list-check li { margin-bottom: .85rem; }
.landing .list-check li::before { color: #40734e; }
.landing .faq-wrap { max-width: 860px; }
.landing details { padding-block: 1.2rem; }
.landing summary { padding-right: .5rem; }
.landing details p { max-width: 72ch; }
.landing .closing { background: #e8ecde; text-align: center; }
.landing .closing h2 { max-width: 29ch; margin-inline: auto; }
.landing .closing .ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.landing .contact-link { font-weight: 600; }
body:has(> .landing) .site-footer { margin-top: 0; }
@media (max-width: 900px) {
    .landing .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; }
    .landing h1 { max-width: 18ch; }
    .landing .booking-story { transform: none; max-width: 540px; width: 100%; }
    .landing .pricing-layout { gap: 2rem; }
}
@media (max-width: 600px) {
    .landing .wrap { padding-inline: 20px; }
    .landing .hero, .landing .section { padding-block: 3rem; }
    .landing .hero .ctas { align-items: stretch; flex-direction: column; }
    .landing .booking-story { padding: 1.4rem; }
    .landing .release-panel { grid-template-columns: 1fr; gap: 1rem; }
    .landing .promise-strip .wrap { flex-direction: column; }
}
/* Allow grid children and long CTA labels to shrink on narrow phones. */
.landing .grid > *, .landing .hero .wrap > * { min-width: 0; }
.landing .btn { text-align: center; }
@media (max-width: 360px) {
    .landing .price-card { padding: 1.25rem; }
    .landing .price-card .btn { padding-inline: .65rem; font-size: .9rem; }
}
