/* ==========================================================================
   Apptivity — site styles
   Plain CSS, no framework, no build step. Served as-is by Firebase Hosting.
   ========================================================================== */

:root {
    --brand: #133679;            /* logo navy */
    --brand-dark: #0e2a60;
    --ink: #17203a;
    --ink-soft: #545d75;
    --paper: #faf8f4;
    --paper-deep: #f2eee6;
    --card: #ffffff;
    --line: rgba(23, 32, 58, .1);

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 20px;
    --container: 1120px;
    --gutter: clamp(20px, 4vw, 32px);
    --header-h: 64px;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1 0 auto; }

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0;
    text-wrap: balance;
}

:focus-visible {
    outline: 3px solid #f0a53a;
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(250, 248, 244, .85);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* logo.png has transparent space above/below the mark; trim it visually */
.brand { display: flex; align-items: center; margin-left: -4px; }
.brand img { height: 54px; width: auto; margin-block: -8px; }

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav a {
    display: block;
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.site-nav a:hover { background: rgba(19, 54, 121, .08); color: var(--brand); }
.site-nav a.nav-cta { background: var(--brand); color: #fff; margin-left: 6px; }
.site-nav a.nav-cta:hover { background: var(--brand-dark); }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: rgba(23, 32, 58, .2); }
.btn-ghost:hover { background: #fff; }

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

.hero {
    padding: clamp(44px, 6vw, 72px) 0 clamp(8px, 2vw, 16px);
}
.hero h1 {
    margin-top: 12px;
    max-width: 18ch;
    font-size: clamp(2.3rem, 5vw, 3.6rem);
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--brand); }
.hero .lead {
    margin-top: 16px;
    max-width: 54ch;
    font-size: clamp(1.02rem, 1.4vw, 1.15rem);
    color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------- Section heading ---------- */

.section { padding: clamp(40px, 6vw, 64px) 0; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { color: var(--ink-soft); font-size: 15px; }

/* ---------- App grid ---------- */

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-card {
    --app: var(--brand);            /* each card overrides this with its own colour */
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.app-card::before {                 /* soft tint in the app's colour */
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 110px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--app) 11%, transparent), transparent);
    pointer-events: none;
}
.app-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--app) 30%, transparent);
    box-shadow: 0 22px 40px -26px rgba(23, 32, 58, .45);
}

.app-card__head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}
.app-card__icon {
    width: 64px;
    height: 64px;
    flex: none;
    border-radius: 22%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(23, 32, 58, .08), 0 8px 18px -10px rgba(23, 32, 58, .5);
}
.app-card h3 { font-size: 1.35rem; }
.app-card__meta {
    margin-top: 3px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--app);
}
.app-card__desc {
    position: relative;
    margin-top: 14px;
    color: var(--ink-soft);
    flex-grow: 1;
}

.app-card__links {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}
.soon-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: var(--app);
    background: color-mix(in srgb, var(--app) 10%, transparent);
}
.soon-chip::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}
.store-badge { display: inline-block; border-radius: 7px; transition: opacity .2s ease; }
.store-badge:hover { opacity: .85; }
.store-badge img { height: 36px; width: auto; }

.app-card__more {
    margin-left: 4px;
    font-weight: 700;
    color: var(--app);
    text-decoration: none;
    white-space: nowrap;
}
.app-card__more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- About & contact ---------- */

.about-band {
    background: var(--paper-deep);
    border-block: 1px solid var(--line);
}
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}
.about-grid h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 8px; }
.about-grid .about-text p { margin-top: 14px; color: var(--ink-soft); max-width: 56ch; }

.contact-list { display: grid; gap: 12px; }
.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}
.contact-card:hover { border-color: rgba(19, 54, 121, .35); transform: translateY(-2px); }
.contact-card .glyph {
    width: 42px;
    height: 42px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(19, 54, 121, .08);
    color: var(--brand);
}
.contact-card .glyph svg { width: 20px; height: 20px; }
.contact-card small {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.contact-card strong { display: block; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */

.site-footer { padding: 28px 0 32px; }
.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    font-size: 14px;
    color: var(--ink-soft);
}
.footer-brand img { height: 46px; width: auto; margin: -6px 0 -6px -4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; font-weight: 500; color: var(--ink); }
.footer-links a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Inner pages
   ========================================================================== */

.page { padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 80px); }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--ink-soft);
}
.breadcrumb a { text-decoration: none; font-weight: 500; color: var(--brand); }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

.page-head { margin-bottom: clamp(24px, 4vw, 36px); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-top: 8px; }
.page-head .lead { margin-top: 12px; max-width: 62ch; color: var(--ink-soft); font-size: 1.06rem; }

.block-title { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: 16px; }
.block { margin-top: clamp(36px, 5vw, 56px); }

.card {
    padding: 22px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
}

.prose p { color: var(--ink-soft); max-width: 68ch; }
.prose p + p { margin-top: 14px; }
.prose blockquote {
    margin: 0 0 18px;
    padding-left: 16px;
    border-left: 3px solid var(--app, var(--brand));
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--ink);
}

/* Product / press banner */
.banner {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--paper-deep);
}

.product-head {
    --app: var(--brand);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
    margin-top: 24px;
}
.product-head .app-card__icon { width: 76px; height: 76px; }
.product-head h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.product-head__meta { margin-top: 4px; font-weight: 500; color: var(--app); }
.product-head__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.product-head__actions .store-badge img { height: 44px; }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
    margin-top: clamp(28px, 4vw, 40px);
}
.split--aside-left { grid-template-columns: 300px minmax(0, 1fr); }

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px 28px;
}
.check-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-list li { position: relative; padding-left: 30px; color: var(--ink); }
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--app, var(--brand)) 13%, transparent);
}
.check-list li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 9px;
    width: 8px;
    height: 5px;
    border-left: 2px solid var(--app, var(--brand));
    border-bottom: 2px solid var(--app, var(--brand));
    transform: rotate(-45deg);
}

/* Side card with facts and links */
.facts { display: grid; gap: 10px; margin: 0; }
.facts div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 15px; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0 0 0 auto; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.side-stack { display: grid; gap: 14px; }
.side-card h2, .side-card h3 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 14px;
}
.side-card p { color: var(--ink-soft); font-size: 15px; }
.side-links { display: grid; gap: 8px; margin-top: 4px; }
.side-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: border-color .2s ease;
}
.side-links a:hover { border-color: color-mix(in srgb, var(--app, var(--brand)) 40%, transparent); }
.btn-block { width: 100%; margin-top: 14px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.logo-tile { display: inline-block; }
.hint { color: var(--ink-soft); margin-bottom: 14px; }
.mt-s { margin-top: 12px; }

/* Screenshot strip: scrolls sideways, works for any number of images */
.shots {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.shots > * { flex: none; scroll-snap-align: start; }
.shots img {
    height: clamp(300px, 42vw, 440px);
    width: auto;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
}
.shots a { border-radius: 16px; }

.video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.note {
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--paper-deep);
    color: var(--ink-soft);
    font-size: 15px;
}

/* Link list (privacy policies) */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.link-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}
.link-grid a:hover { border-color: rgba(19, 54, 121, .35); transform: translateY(-2px); }
.link-grid a span { color: var(--brand); }

/* Forms (account deletion) — mirrors the Bootstrap validation classes the scripts use */
.form-card { max-width: 680px; }
.prose-intro { color: var(--ink-soft); }
.warning-box {
    margin: 18px 0 22px;
    padding: 16px 18px 6px;
    border-radius: 14px;
    background: #fff6e0;
    border: 1px solid #f3d48a;
    color: #5b4410;
}
.warning-box p { font-weight: 700; }
.warning-box ul { margin: 10px 0; padding-left: 20px; }
.warning-box li { margin-bottom: 6px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-control {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid rgba(23, 32, 58, .2);
    border-radius: 12px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(19, 54, 121, .12); }
.form-text { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.form-check { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.form-check-input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.form-check-label { flex: 1; min-width: 0; }
.invalid-feedback { display: none; width: 100%; margin-top: 6px; font-size: 14px; color: #b42318; }
.was-validated .form-control:invalid { border-color: #b42318; }
.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-check-input:invalid ~ .invalid-feedback { display: block; }
.was-validated .form-check-input:invalid ~ .form-check-label { color: #b42318; }

.btn-danger { background: #b42318; color: #fff; width: 100%; margin-top: 8px; border: 0; cursor: pointer; font-family: inherit; }
.btn-danger:hover { background: #8f1c13; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .about-grid { grid-template-columns: 1fr; }
    .split, .split--aside-left { grid-template-columns: 1fr; }
    .product-head__actions { margin-left: 0; width: 100%; }
    .check-list--2 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    :root { --header-h: 60px; }
    .brand img { height: 48px; margin-block: -6px; }
    .site-nav a { padding: 7px 10px; font-size: 14px; }
    .site-nav a.nav-cta { margin-left: 2px; }
    .app-grid { grid-template-columns: 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (max-width: 360px) {
    .site-nav li.hide-xs { display: none; }
}
