/* ===== Brand vars (matches screenshots) ===== */
:root {
    --bg: #043F52;
    --bg-2: #0A6A7F;
    --band: rgba(255, 255, 255, .06);
    --watermark: rgba(255, 255, 255, .05);
    --text: #EAF5F7;
    --muted: #B7D0D6;
    --accent: #08B3CC;
    --accent-dark: #0B8FA5;
    --container: 1100px;
}

/* Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html,
body {
    min-height: 100%;
    /* Global typography */
    font-family: system-ui, -apple-system, "SF Pro", Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100dvh;
}

.landing {
    display: flex;
    flex-direction: column;
    color: var(--text);
    background: linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
    background-color: var(--bg); /* fallback under gradient for iOS Safari */
    position: relative;
    overflow-x: hidden;
}

/* Ensure iOS Safari paints the viewport (overscroll area) in brand blue */
html { background-color: var(--bg); }

/* Diagonal bands + subtle pick watermarks */
.landing::before,
.landing::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none
}

.landing::before {
    background:
        linear-gradient(-12deg, transparent 64%, var(--band) 64%, var(--band) 72%, transparent 72%),
        linear-gradient(-12deg, transparent 24%, var(--band) 24%, var(--band) 32%, transparent 32%);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.25rem
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0
}

.brand {
    display: flex;
    gap: .55rem;
    align-items: center;
    text-decoration: none;
    color: #fff
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    margin-left: 1rem
}

nav a:hover {
    color: #fff
}

.center-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Hero */
.hero {
    display: grid;
    gap: 1.5rem;
    padding: 3.5rem 0;
}

.hero__title {
    font-size: clamp(2rem, 3.8vw, 3rem);
    line-height: 1.05
}

.hero__lead {
    color: var(--muted);
    max-width: 60ch;
    padding-bottom: 0.25rem;
    margin-left: 22px;
    margin-right: 22px;
}

.hero__gb {
    color: var(--muted);
    max-width: 60ch;
    padding-bottom: 0.5rem;
}

.hero__actions {
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
    align-items: center
}

/* App Store button */
.appstore {
    display: inline-block;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.appstore img {
    display: block;
    height: 48px;
    /* Light drop shadow to make the badge pop */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.10);
}


/* Screenshot */
.shot {
    width: min(880px, 80%);
    border-radius: 22px;
    overflow: hidden;
    padding-left: 22px;
    padding-right: 22px;
}

/* Footer */
footer {
    padding: 2rem 0;
    color: var(--muted);
    font-size: .95rem;
    text-align: center;
    margin-left: 22px;
    margin-right: 22px;
}


footer a {
    color: var(--muted);
    text-decoration: none;
    margin: 0 .6rem;
    font-weight: 700
}

footer a:hover {
    color: #fff
}

/* Footer layout (flex, stacks on small screens) */
.site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    justify-content: center;
    align-items: center;
}

.site-footer__brand {
    white-space: nowrap;
}

.site-footer__links {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Footer: links on top, copyright on bottom */
.site-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}
.site-footer__links {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  order: 1; /* top row */
}
.site-footer__brand {
  order: 2;           /* bottom row */
  flex-basis: 100%;   /* force second row */
  margin-top: 0.25rem;
}

/* Collapse link groups; hide dot before Terms when stacked */
@media (max-width: 700px) {
  .site-footer__links { width: 100%; }
  .site-footer__links + .site-footer__links > span:first-child { display: none; }
}

@media (max-width: 600px) {
    .site-footer {
        flex-direction: column;
    }
}

/* Layout at larger screens */
@media (min-width:900px) {
    .hero {
        grid-template-columns: 1.1fr .9fr;
        align-items: center;
        gap: 2rem
    }

    .hero__title {
        margin-bottom: 1rem
    }

}

@media (max-width: 899px) {
    .hero__title {
        margin-bottom: 0.5rem;
    }

    .appstore {
        padding-bottom: 1rem;
    }
}

/* Theme Light */
/* Page-specific theming for Terms */
.theme-light main {
    background: #fff;
    color: #000;
    padding: 24px;
}

.theme-light main p {
    margin-bottom: 8px;
}

.theme-light main h1,
.theme-light main h2,
.theme-light main h3 {
    margin-top: 24px;
    margin-bottom: 16px;
}

.theme-light main ul,
.theme-light main ol {
    margin-left: 32px;
    margin-bottom: 16px;
}

header.container {
    margin-left: 16px;
    margin-right: 16px;

}

header.container .nav-toggle {
    color: var(--on-header-bg, #ffffff);
}

/* Full-bleed solid brand blue behind header/footer while keeping container layout */
.theme-light header.container,
.theme-light footer {
    background-color: var(--bg);
    box-shadow: 0 0 0 100vmax var(--bg);
    clip-path: inset(0 -100vmax);
    max-width: 100%;
}

/* Screen-reader-only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Burger button: hidden by default (no-JS fallback shows the full nav) */
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    border-radius: 8px;
    line-height: 0;
    color: inherit;
    cursor: pointer;
}

/* Mobile behavior (<= 600px) */
@media (max-width: 600px) {

    /* Show the burger only when JS is available */
    .has-js header .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Hide the nav by default on small screens when JS is available */
    .has-js header nav {
        display: none;
    }

    /* When open, stack the nav links vertically */
    .has-js header.nav-open nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-top: 8px;
    }

    /* Remove left margin on stacked links */
    header nav a {
        margin-left: 0;
    }
}