/* The public landing page (resources/views/landing.blade.php).
   Same family as the sign-in page: Figtree, the deep indigo band, white cards
   on a lilac-grey ground. Every colour is a token below; nothing in the rules
   names one. */

:root {
    --ld-ground: #f0eef6;
    --ld-card: #ffffff;
    --ld-well: #fafbfc;
    --ld-ink: #1e1b4b;
    --ld-text: #374151;
    --ld-muted: #6b7280;
    --ld-line: #e2e5eb;
    --ld-accent: #4338ca;
    --ld-accent-hover: #3730a3;
    --ld-accent-ink: #ffffff;
    --ld-focus: rgba(67, 56, 202, 0.28);
    --ld-band-1: #1e1b4b;
    --ld-band-2: #312e81;
    --ld-band-3: #4338ca;
    --ld-band-ink: #ffffff;
    --ld-band-muted: rgba(255, 255, 255, 0.78);
    --ld-band-chip: rgba(255, 255, 255, 0.14);
    --ld-band-line: rgba(255, 255, 255, 0.28);
    --ld-mark-shield: rgba(255, 255, 255, 0.2);
    --ld-mark-plane: #ffffff;
    --ld-phone-edge: #0f0d2e;
    --ld-shadow: rgba(15, 13, 46, 0.18);
    --ld-error: #b91c1c;
    --ld-error-line: #ef4444;
    --ld-ok-bg: #ecfdf5;
    --ld-ok-ink: #065f46;
}

:root[data-bs-theme="dark"] {
    --ld-ground: #1f2126;
    --ld-card: #292a31;
    --ld-well: #222329;
    --ld-ink: #e3e5fb;
    --ld-text: #c9cfd9;
    --ld-muted: #9ea4b2;
    --ld-line: #3f414b;
    --ld-accent: #a0abfc;
    --ld-accent-hover: #b8c0fd;
    --ld-accent-ink: #15142e;
    --ld-focus: rgba(160, 171, 252, 0.32);
    --ld-band-1: #15142e;
    --ld-band-2: #1e1b4b;
    --ld-band-3: #312e81;
    --ld-band-ink: #ffffff;
    --ld-band-muted: rgba(255, 255, 255, 0.74);
    --ld-band-chip: rgba(255, 255, 255, 0.12);
    --ld-band-line: rgba(255, 255, 255, 0.24);
    --ld-mark-shield: rgba(255, 255, 255, 0.2);
    --ld-mark-plane: #ffffff;
    --ld-phone-edge: #000000;
    --ld-shadow: rgba(0, 0, 0, 0.45);
    --ld-error: #fc8376;
    --ld-error-line: #f47b73;
    --ld-ok-bg: #173229;
    --ld-ok-ink: #7dc8aa;
}

*, *::before, *::after {box-sizing: border-box; margin: 0; padding: 0;}
html {font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth;}
@media (prefers-reduced-motion: reduce) {html {scroll-behavior: auto;}}
body.ld-page {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ld-text);
    background: var(--ld-ground);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a {color: var(--ld-accent);}
a:hover {color: var(--ld-accent-hover);}
:focus-visible {outline: 3px solid var(--ld-focus); outline-offset: 2px;}
img {max-width: 100%; height: auto; display: block;}

.ld-shell {width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px;}

/* Buttons */
.ld-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 600; font-size: 0.95rem;
    padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
    text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.ld-btn-primary {background: var(--ld-accent); color: var(--ld-accent-ink);}
.ld-btn-primary:hover {background: var(--ld-accent-hover); color: var(--ld-accent-ink);}
.ld-btn-primary[disabled] {opacity: .7; cursor: progress;}
.ld-btn-light {background: var(--ld-band-chip); color: var(--ld-band-ink); border-color: var(--ld-band-line);}
.ld-btn-light:hover {background: var(--ld-band-ink); color: var(--ld-band-1);}
.ld-btn-quiet {background: transparent; color: var(--ld-accent); border-color: var(--ld-line);}
.ld-btn-quiet:hover {border-color: var(--ld-accent);}

/* Header, sitting on the band */
.ld-head {background: var(--ld-band-1);}
.ld-head-inner {display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px;}
.ld-brand {display: inline-flex; align-items: center; gap: 10px; color: var(--ld-band-ink); font-weight: 700; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.01em;}
.ld-brand:hover {color: var(--ld-band-ink);}
.ld-mark {display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ld-band-chip);}
.ld-mark-shield {fill: var(--ld-mark-shield);}
.ld-mark-plane {fill: var(--ld-mark-plane);}
.ld-head-nav {display: flex; align-items: center; gap: 18px;}
.ld-head-link {color: var(--ld-band-muted); text-decoration: none; font-weight: 500;}
.ld-head-link:hover {color: var(--ld-band-ink);}

/* Hero band */
.ld-hero {
    background: linear-gradient(160deg, var(--ld-band-1) 0%, var(--ld-band-2) 55%, var(--ld-band-3) 100%);
    color: var(--ld-band-ink);
    overflow: hidden;
}
.ld-hero-inner {display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 0;}
.ld-hero-copy {padding-bottom: 56px;}
.ld-eyebrow {font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ld-band-muted); margin-bottom: 14px;}
.ld-hero h1 {font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; font-weight: 750; letter-spacing: -0.02em; text-wrap: balance; margin-bottom: 18px;}
.ld-lede {font-size: 1.1rem; color: var(--ld-band-muted); max-width: 34em; margin-bottom: 28px;}
.ld-hero-note {margin-top: 18px; font-size: 0.95rem; color: var(--ld-band-muted);}
.ld-hero-note a {color: var(--ld-band-ink); font-weight: 600;}

/* Store badges. Apple's badge is drawn edge to edge; Google's PNG carries
   its own clear space, so it is drawn larger and pulled in to look the same
   size, as Google's badge guidelines describe. */
.ld-stores {display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;}
.ld-store {position: relative; display: inline-flex; align-items: center;}
.ld-store.is-apple img {height: 48px; width: auto;}
.ld-store.is-google img {height: 71px; width: auto; margin: -11px -10px;}
.ld-store.is-soon img {opacity: 0.55;}
.ld-soon {
    position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
    background: var(--ld-band-ink); color: var(--ld-band-1); padding: 2px 8px; border-radius: 999px;
}

/* The phone, rising from the bottom of the band */
.ld-phone {justify-self: center; width: min(300px, 100%); align-self: end;}
.ld-phone img {
    border: 8px solid var(--ld-phone-edge); border-bottom: 0;
    border-radius: 38px 38px 0 0;
    box-shadow: 0 24px 60px var(--ld-shadow);
    height: 520px; width: 100%; object-fit: cover; object-position: top;
}

/* Sections */
.ld-section-title {font-size: 1.6rem; font-weight: 700; color: var(--ld-ink); letter-spacing: -0.01em; margin-bottom: 20px;}

.ld-features {padding-top: 64px; padding-bottom: 24px;}
.ld-feature-grid {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;}
.ld-feature {background: var(--ld-card); border: 1px solid var(--ld-line); border-radius: 14px; padding: 22px 22px 24px;}
.ld-feature h3 {font-size: 1.08rem; color: var(--ld-ink); margin-bottom: 8px;}
.ld-feature p {font-size: 0.97rem;}

.ld-shots {padding: 40px 0 16px;}
.ld-shot-row {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; justify-items: center;}
.ld-shot {width: min(260px, 100%); text-align: center;}
.ld-shot img {border-radius: 26px; border: 6px solid var(--ld-phone-edge); box-shadow: 0 14px 36px var(--ld-shadow);}
.ld-shot figcaption {margin-top: 12px; font-weight: 600; color: var(--ld-ink);}
.ld-shots-note {margin-top: 18px; text-align: center; font-size: 0.85rem; color: var(--ld-muted);}

/* Contact */
.ld-contact {display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; padding-top: 64px; padding-bottom: 72px; align-items: start;}
.ld-contact-intro p {max-width: 30em; margin-bottom: 12px;}
.ld-contact-direct a {font-weight: 600;}
.ld-form-wrap {background: var(--ld-card); border: 1px solid var(--ld-line); border-radius: 16px; padding: 26px;}
.ld-form {display: grid; gap: 16px;}
.ld-row {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;}
.ld-field {display: grid; gap: 6px;}
.ld-field label {font-size: 0.88rem; font-weight: 600; color: var(--ld-ink);}
.ld-optional {font-weight: 400; color: var(--ld-muted);}
.ld-field input, .ld-field textarea {
    font: inherit; font-size: 1rem; color: var(--ld-text);
    background: var(--ld-well); border: 1px solid var(--ld-line); border-radius: 10px;
    padding: 10px 12px; width: 100%;
}
.ld-field textarea {resize: vertical; min-height: 130px;}
.ld-field input:focus, .ld-field textarea:focus {outline: none; border-color: var(--ld-accent); box-shadow: 0 0 0 3px var(--ld-focus);}
.ld-field .is-invalid {border-color: var(--ld-error-line);}
.ld-error, .ld-form .text-danger {font-size: 0.85rem; color: var(--ld-error);}
.ld-form .mb-4 {margin: 0;}
.ld-hp {position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden;}
.ld-form-foot {display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;}
.ld-form-note {font-size: 0.85rem; color: var(--ld-muted); flex: 1 1 240px;}
.ld-sent {display: grid; gap: 10px; justify-items: start; background: var(--ld-ok-bg); color: var(--ld-ok-ink); border-radius: 12px; padding: 20px;}
.ld-sent-title {font-weight: 700; font-size: 1.1rem;}

/* Footer */
.ld-foot {border-top: 1px solid var(--ld-line); background: var(--ld-card); font-size: 0.85rem; color: var(--ld-muted);}
.ld-foot-inner {display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 20px; padding-bottom: 24px;}
.ld-foot-links {display: flex; flex-wrap: wrap; gap: 6px 18px;}
.ld-foot-links a {color: var(--ld-muted); text-decoration: none;}
.ld-foot-links a:hover {color: var(--ld-accent);}

/* Narrow screens */
@media (max-width: 900px) {
    .ld-hero-inner {grid-template-columns: 1fr; gap: 8px; padding-top: 36px;}
    .ld-hero-copy {padding-bottom: 24px;}
    .ld-phone {width: min(260px, 80%);}
    .ld-phone img {height: 380px;}
    .ld-feature-grid {grid-template-columns: 1fr;}
    .ld-contact {grid-template-columns: 1fr; gap: 20px;}
}
@media (max-width: 640px) {
    .ld-shell {padding-left: 16px; padding-right: 16px;}
    .ld-head-link {display: none;}
    .ld-shot-row {grid-template-columns: repeat(3, minmax(150px, 1fr)); overflow-x: auto; justify-items: start; padding-bottom: 8px; scroll-snap-type: x mandatory;}
    .ld-shot {scroll-snap-align: start; width: 180px;}
    .ld-row {grid-template-columns: 1fr;}
    .ld-form-wrap {padding: 18px;}
}
