/* Trakr — the app's own palette and typeface, so the site reads as the same product
   rather than a website about it. Values taken from the asset catalogue. */

:root {
    --black: #090d13;
    --midnight-900: #07080a;
    --midnight-800: #0b0d10;
    --midnight-700: #10131a;
    --lime: #a6d22d;
    --lime-dim: #7ea022;
    --white: #ffffff;
    --graphite-300: #cbd5e1;
    --graphite-500: #64748b;
    --hairline: rgba(255, 255, 255, 0.08);
    --surface: rgba(255, 255, 255, 0.04);

    --measure: 1120px;
    --radius: 20px;
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    background: var(--black);
    color: var(--graphite-300);
    font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

h1 {
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 700;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

p {
    margin: 0;
}

a {
    color: var(--lime);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.accent {
    color: var(--lime);
}

.shell {
    width: min(100% - 2.5rem, var(--measure));
    margin-inline: auto;
}

/* The lime bloom the app puts behind its screens, bled off the corner the same way. */
.bloom {
    position: absolute;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(166, 210, 45, 0.16), transparent 68%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

/* ---------------------------------------------------------------- header */

header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(9, 13, 19, 0.78);
    border-bottom: 1px solid var(--hairline);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.1rem;
}

.wordmark {
    color: var(--white);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.wordmark:hover {
    text-decoration: none;
}

/* ---------------------------------------------------------------- hero */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(4rem, 12vw, 7.5rem) clamp(3rem, 8vw, 5rem);
}

.hero .bloom:first-of-type {
    top: -220px;
    left: -260px;
}

.hero .bloom:last-of-type {
    top: 40%;
    right: -320px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

@media (max-width: 860px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lime);
    border: 1px solid rgba(166, 210, 45, 0.28);
    background: rgba(166, 210, 45, 0.07);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.hero p.lede {
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    margin-top: 1.4rem;
    max-width: 30rem;
}

@media (max-width: 860px) {
    .hero p.lede {
        margin-inline: auto;
    }
}

/* ---------------------------------------------------------------- form */

.signup {
    margin-top: 2.2rem;
    max-width: 30rem;
}

@media (max-width: 860px) {
    .signup {
        margin-inline: auto;
    }
}

.signup-row {
    display: flex;
    gap: 0.6rem;
}

@media (max-width: 520px) {
    .signup-row {
        flex-direction: column;
    }
}

input[type="email"] {
    flex: 1;
    min-width: 0;
    font: inherit;
    font-size: 1rem;
    color: var(--white);
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    padding: 0.95rem 1.3rem;
}

input[type="email"]::placeholder {
    color: var(--graphite-500);
}

input[type="email"]:focus {
    outline: 2px solid var(--lime);
    outline-offset: 1px;
}

button {
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    color: var(--midnight-900);
    background: var(--lime);
    border: 0;
    border-radius: 999px;
    padding: 0.95rem 1.7rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, transform 0.15s ease;
}

button:hover:not(:disabled) {
    background: #b6e33a;
}

button:active:not(:disabled) {
    transform: translateY(1px);
}

button:disabled {
    opacity: 0.55;
    cursor: default;
}

.form-note {
    font-size: 0.85rem;
    color: var(--graphite-500);
    margin-top: 0.85rem;
}

.form-note.error {
    color: #f87171;
}

.form-note.success {
    color: var(--lime);
}

/* ---------------------------------------------------------------- phone */

/* No fixed aspect ratio on the phone itself — the screen carries the Figma frame's
   402:874 exactly, so nothing gets cropped, and the bezel sizes itself around it. */
.phone {
    position: relative;
    width: min(300px, 78vw);
    margin-inline: auto;
    border-radius: 42px;
    padding: 11px;
    background: linear-gradient(160deg, #23272f, #0d1014);
    box-shadow:
        0 40px 90px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 402 / 874;
    border-radius: 32px;
    overflow: hidden;
    background: var(--midnight-800);
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Shown until a real screenshot is dropped in beside it. */
.placeholder {
    padding: 2rem 1.4rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--graphite-500);
    line-height: 1.5;
}

/* No .notch: the exported frames draw their own iOS status bar, so a bezel notch on
   top of it would read as two phones stacked. */

/* ---------------------------------------------------------------- sections */

section {
    padding-block: clamp(3.5rem, 9vw, 6rem);
}

.section-head {
    max-width: 46rem;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head p {
    margin-top: 1rem;
    font-size: 1.05rem;
}

.rule {
    border: 0;
    border-top: 1px solid var(--hairline);
    margin: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.1rem;
}

.card {
    background: var(--midnight-800);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 1.6rem;
}

.card h3 {
    margin-bottom: 0.6rem;
}

.card p {
    font-size: 0.97rem;
}

.card .mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(166, 210, 45, 0.12);
    color: var(--lime);
    margin-bottom: 1.1rem;
}

.card .mark svg {
    width: 20px;
    height: 20px;
}

/* The privacy section, which is the argument rather than a feature list. */
.pledge {
    position: relative;
    overflow: hidden;
    background: var(--midnight-900);
    border: 1px solid rgba(166, 210, 45, 0.18);
    border-radius: var(--radius);
    padding: clamp(1.8rem, 5vw, 3rem);
}

.pledge ul {
    list-style: none;
    margin: 1.6rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.pledge li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.pledge li svg {
    flex: none;
    width: 20px;
    height: 20px;
    color: var(--lime);
    margin-top: 2px;
}

.shots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.shots .phone {
    width: 100%;
    border-radius: 34px;
    padding: 8px;
}

.shots .phone-screen {
    border-radius: 27px;
}

.shots figure {
    margin: 0;
}

.shots figcaption {
    text-align: center;
    margin-top: 0.9rem;
    font-size: 0.9rem;
    color: var(--graphite-500);
}

/* ---------------------------------------------------------------- footer */

footer {
    border-top: 1px solid var(--hairline);
    padding-block: 2.5rem;
    font-size: 0.9rem;
    color: var(--graphite-500);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--graphite-300);
}

/* ---------------------------------------------------------------- prose */

.prose {
    max-width: 44rem;
    padding-block: clamp(3rem, 8vw, 4.5rem);
}

.prose h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 0.75rem;
}

.prose h2 {
    font-size: 1.35rem;
    margin-top: 2.6rem;
    margin-bottom: 0.7rem;
}

.prose p,
.prose li {
    font-size: 1rem;
}

.prose p + p {
    margin-top: 1rem;
}

.prose ul {
    padding-left: 1.2rem;
    margin: 0.8rem 0 0;
}

.prose li + li {
    margin-top: 0.5rem;
}

.prose .updated {
    color: var(--graphite-500);
    font-size: 0.9rem;
}

.prose strong {
    color: var(--white);
    font-weight: 600;
}
