:root {
    --red: #c8102e;
    --red-dark: #a00d24;
    --ink: #14171c;
    --muted: #5b6370;
    --line: #e4e7ec;
    --bg: #ffffff;
    --bg-soft: #f5f6f8;
    --radius: 14px;
    --max: 1120px;
    color-scheme: light;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

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

h1,
h2,
h3 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--ink);
    text-decoration: none;
}

.brand img {
    width: 34px;
    height: 34px;
}

.brand span {
    color: var(--red);
}

.nav {
    display: none;
}

.nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
    color: var(--red);
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
}

.nav-toggle span::before {
    top: -7px;
}

.nav-toggle span::after {
    top: 7px;
}

.nav-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
}

.nav-open .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.nav-open .nav a.btn {
    margin-top: 12px;
    padding: 12px 22px;
    border-bottom: 0;
}

@media (min-width: 900px) {
    .nav,
    .nav-open .nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 28px;
        position: static;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .nav-open .nav a {
        padding: 0;
        border: 0;
    }

    .nav-open .nav a.btn {
        margin-top: 0;
        padding: 10px 20px;
    }

    .nav a.btn {
        padding: 10px 20px;
    }

    .nav-toggle {
        display: none;
    }
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-family: inherit;
}

.btn-primary,
.nav a.btn-primary {
    background: var(--red);
    color: #fff;
}

.btn-primary:hover,
.nav a.btn-primary:hover {
    background: var(--red-dark);
    color: #fff;
}

.btn-ghost {
    border-color: var(--line);
    color: var(--ink);
    background: #fff;
}

.btn-ghost:hover {
    border-color: var(--ink);
}

/* Hero */

.hero {
    padding: 56px 0 72px;
    background:
        radial-gradient(900px 400px at 85% 0%, rgba(200, 16, 46, 0.08), transparent 70%),
        var(--bg);
    overflow: hidden;
}

.hero .container {
    display: grid;
    gap: 48px;
    align-items: center;
}

@media (min-width: 900px) {
    .hero {
        padding: 96px 0 112px;
    }

    .hero .container {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
}

.lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 34em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-points li::before {
    content: "✓ ";
    color: var(--red);
    font-weight: 700;
}

/* Phone mockup */

.phone {
    width: min(300px, 100%);
    margin: 0 auto;
    background: var(--ink);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 40px 80px -30px rgba(20, 23, 28, 0.45);
    transform: rotate(2deg);
}

.phone-screen {
    background: var(--bg-soft);
    border-radius: 30px;
    padding: 18px 14px 22px;
}

.phone-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.phone-bar img {
    width: 24px;
    height: 24px;
}

.phone-bar span {
    color: var(--red);
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(20, 23, 28, 0.06);
    font-size: 0.82rem;
}

.card:last-child {
    margin-bottom: 0;
}

.card-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.card-title {
    font-weight: 700;
    margin: 2px 0 8px;
}

.card-alarm {
    background: var(--red);
    color: #fff;
}

.card-alarm .card-label {
    color: rgba(255, 255, 255, 0.8);
}

.chip-row {
    display: flex;
    gap: 6px;
}

.chip {
    flex: 1;
    text-align: center;
    border-radius: 8px;
    padding: 6px 0;
    font-weight: 600;
    font-size: 0.75rem;
    background: var(--bg-soft);
}

.chip-yes {
    background: #e3f4e8;
    color: #1d7a3a;
}

.chip-no {
    background: #fbe7ea;
    color: var(--red-dark);
}

.card-alarm .chip {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 0;
}

.status-ok {
    color: #1d7a3a;
    font-weight: 600;
}

.status-warn {
    color: #b45309;
    font-weight: 600;
}

/* Sections */

.section {
    padding: 72px 0;
}

@media (min-width: 900px) {
    .section {
        padding: 104px 0;
    }
}

.section-soft {
    background: var(--bg-soft);
}

.section-head {
    max-width: 680px;
    margin-bottom: 48px;
}

.section-head p {
    color: var(--muted);
    font-size: 1.05rem;
}

/* Product */

.split {
    display: grid;
    gap: 32px;
}

@media (min-width: 768px) {
    .split {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pillar {
    border-top: 3px solid var(--red);
    padding-top: 20px;
}

.pillar p {
    color: var(--muted);
    margin: 0;
}

.steps {
    display: grid;
    gap: 16px;
    margin-top: 56px;
    counter-reset: step;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 20px;
    counter-increment: step;
}

.step::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    margin-bottom: 12px;
}

.step strong {
    display: block;
    margin-bottom: 4px;
}

.step span {
    color: var(--muted);
    font-size: 0.92rem;
}

/* Features */

.features {
    display: grid;
    gap: 16px;
}

@media (min-width: 640px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.feature p {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(200, 16, 46, 0.1);
    color: var(--red);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

/* Pricing */

.pricing {
    display: grid;
    gap: 24px;
}

@media (min-width: 900px) {
    .pricing {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

.plan {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    background: #fff;
    position: relative;
}

.plan-featured {
    border: 2px solid var(--red);
    box-shadow: 0 24px 48px -24px rgba(200, 16, 46, 0.35);
}

.plan-badge {
    position: absolute;
    top: -13px;
    left: 24px;
    background: var(--red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
}

.plan-desc {
    color: var(--muted);
    font-size: 0.95rem;
}

.price {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 8px 0 4px;
}

.price small {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0;
}

.price-note {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.plan ul {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
}

.plan li {
    padding: 7px 0 7px 26px;
    position: relative;
    font-size: 0.95rem;
}

.plan li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 13px;
    width: 12px;
    height: 6px;
    border-left: 2px solid var(--red);
    border-bottom: 2px solid var(--red);
    transform: rotate(-45deg);
}

.pricing-footnote {
    margin-top: 24px;
    color: var(--muted);
    font-size: 0.88rem;
}

/* Contact */

.contact {
    display: grid;
    gap: 40px;
}

@media (min-width: 900px) {
    .contact {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 64px;
    }
}

.contact-info p {
    color: var(--muted);
}

.contact-info dl {
    margin: 24px 0 0;
}

.contact-info dt {
    font-weight: 700;
    font-size: 0.85rem;
}

.contact-info dd {
    margin: 0 0 14px;
    color: var(--muted);
}

.form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    display: grid;
    gap: 16px;
}

@media (min-width: 640px) {
    .form {
        padding: 32px;
        grid-template-columns: 1fr 1fr;
    }

    .form .full {
        grid-column: 1 / -1;
    }
}

.field label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid var(--red);
    outline-offset: 1px;
    border-color: transparent;
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.88rem;
    color: var(--muted);
}

.check input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--red);
    flex: none;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    font-size: 0.92rem;
    margin: 0;
}

.form-status:empty {
    display: none;
}

.form-status.ok {
    color: #1d7a3a;
}

.form-status.error {
    color: var(--red-dark);
}

/* Footer */

.site-footer {
    background: var(--ink);
    color: #c3c8d0;
    padding: 40px 0;
    font-size: 0.9rem;
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    justify-content: space-between;
    align-items: center;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 24px;
}

/* Legal pages */

.legal {
    padding: 56px 0 88px;
}

.legal .container {
    max-width: 780px;
}

.legal h2 {
    font-size: 1.35rem;
    margin-top: 2em;
}

.legal h3 {
    margin-top: 1.5em;
}

.legal p,
.legal li {
    color: #343a44;
}

.placeholder {
    background: #fff4d6;
    padding: 0 4px;
    border-radius: 4px;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    text-decoration: none;
    font-weight: 600;
}

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

    .btn {
        transition: none;
    }
}
