/* The product site (apptloop.com): static, no script, no cookie, no outside font. Colours and font
   as in the dashboard. */

@font-face {
    font-family: 'Inter Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
    --font: 'Inter Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --background: #f5f7f8;
    --foreground: #0f1c24;
    --card: #ffffff;
    --muted: #eef2f4;
    --muted-foreground: #556670;
    --border: #dde4e8;
    --primary: #0b6670;
    --primary-hover: #08525a;
    --accent: #e6f3f4;
    --brand-950: #05282e;
    --brand-100: #d5f1f3;
    --radius: 12px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--foreground);
    background: var(--card);
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-hover);
}

h1,
h2,
h3 {
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0 0 0.6em;
}

h1 {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    font-weight: 700;
    max-width: 18em;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 650;
}

h3 {
    font-size: 1.08rem;
    font-weight: 620;
}

p {
    margin: 0 0 1em;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.top {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
}

.top-row {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--foreground);
    text-decoration: none;
}

.top nav {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.top nav a,
.bottom nav a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.95rem;
}

.top nav a:hover,
.bottom nav a:hover {
    color: var(--foreground);
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--primary);
}

.button:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff;
}

.button.secondary {
    background: var(--card);
    color: var(--primary);
    border-color: var(--border);
}

.button.secondary:hover {
    background: var(--accent);
    color: var(--primary-hover);
}

.button.small {
    padding: 8px 16px;
    font-size: 0.95rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 20px;
}

/* Sections */
.hero {
    padding: 88px 0 72px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--card) 100%);
}

.lead {
    font-size: 1.2rem;
    color: #2b3b44;
    max-width: 40em;
}

.note {
    font-size: 0.95rem;
    color: var(--muted-foreground);
    max-width: 46em;
}

.band {
    padding: 72px 0;
}

.band.muted {
    background: var(--background);
}

/* Below the sticky header when reached from the menu. */
section[id] {
    scroll-margin-top: 64px;
}

.grid.four {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

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

.band.muted .grid article {
    background: var(--card);
}

.grid p {
    color: #33444e;
    font-size: 0.98rem;
}

ul.checks,
ul.plain {
    padding: 0;
    margin: 24px 0;
    list-style: none;
    max-width: 52em;
}

ul.checks li,
ul.plain li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

ul.checks li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.45em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand-100);
    box-shadow: inset 0 0 0 5px var(--primary);
}

ul.plain li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0.7em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
}

/* Privacy and terms */
/* Screenshots of the demo. */
.shot {
    margin: 40px 0 0;
}

.shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(5, 40, 46, 0.12);
}

.shot figcaption {
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--muted-foreground);
}

.shots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 8px 28px;
}

.shots .shot {
    margin-top: 32px;
}

.push {
    margin-left: auto;
}

.doc {
    max-width: 760px;
    padding-top: 56px;
    padding-bottom: 72px;
}

.doc h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.doc h2 {
    font-size: 1.2rem;
    margin-top: 2em;
}

.doc ul.plain {
    margin: 12px 0 16px;
}

/* Footer */
.bottom {
    background: var(--brand-950);
    color: #c9d6da;
    padding: 28px 0;
    font-size: 0.95rem;
}

.bottom-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.bottom nav a {
    color: #c9d6da;
}

.bottom nav a:hover {
    color: #ffffff;
}

/* Phones */
@media (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .top nav {
        display: none;
    }

    .top-row {
        justify-content: space-between;
    }

    .hero {
        padding: 56px 0 48px;
    }

    .band {
        padding: 52px 0;
    }
}
