/* Signal Square website */

:root {
    --ink: #1a1c23;
    --ink-deep: #12141a;
    --teal: #008b8b;
    --teal-dark: #006d6d;
    --teal-bright: #2fc4c4;
    --muted: #5f6b78;
    --line: #e2e6ea;
    --tint: #f4f7f8;
    --white: #ffffff;
    --radius: 10px;
    --wrap: 1120px;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

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

.mono { font-family: Consolas, "SF Mono", Menlo, monospace; font-size: 0.92em; overflow-wrap: anywhere; }

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--ink-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 68px;
}

.brand svg { height: 34px; display: block; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.92rem;
}

.site-nav a { color: #c9d1d9; text-decoration: none; }
.site-nav a:hover { color: var(--white); }

/* Buttons */

.btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 8px;
    background: var(--teal);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--teal);
    transition: background 0.15s, border-color 0.15s;
}

.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn:focus-visible, .site-nav a:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; }

.site-nav .btn-small { padding: 8px 16px; color: var(--white); }

.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--white); }

.btn-large { font-size: 1.15rem; padding: 16px 32px; }

/* Hero */

.hero {
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(0, 139, 139, 0.28), transparent 70%),
        var(--ink-deep);
    color: var(--white);
    padding: 88px 0 96px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: center;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-bright);
    margin-bottom: 16px;
}

.eyebrow.dark { color: var(--teal); }

h1 {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.lead {
    margin-top: 22px;
    font-size: 1.18rem;
    color: #c9d1d9;
    max-width: 34em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Hero screenshot */

.shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.shot figcaption { margin-top: 12px; font-size: 0.78rem; color: #8a96a3; text-align: right; }

/* Pillars */

.pillars { border-bottom: 1px solid var(--line); }

.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); }

.pillar-grid article { padding: 44px 32px 44px 0; }
.pillar-grid article + article { padding-left: 32px; border-left: 1px solid var(--line); }

.pillar-grid h2 { font-size: 1.3rem; margin-bottom: 8px; }
.pillar-grid p { color: var(--muted); }

/* Sections */

.section { padding: 88px 0; }
.section-tint { background: var(--tint); }

.section-title {
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    max-width: 20em;
}

.section-lead { margin-top: 16px; color: var(--muted); font-size: 1.08rem; max-width: 40em; }

/* Features */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 44px;
}

.feature {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 30px;
    border-top: 4px solid var(--teal);
}

.feature h3 { font-size: 1.2rem; margin-bottom: 14px; }

.feature li {
    position: relative;
    padding: 5px 0 5px 22px;
    color: #3b4450;
}

.feature li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
}

/* Screens gallery */

.section-screens { padding-top: 0; }

.gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 28px 24px;
    margin-top: 44px;
}

.shot-card { grid-column: span 2; }
.shot-card.wide { grid-column: span 3; }

.shot-card a {
    display: block;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink);
    box-shadow: 0 10px 30px rgba(26, 28, 35, 0.1);
    transition: box-shadow 0.15s, transform 0.15s;
}

.shot-card a:hover { box-shadow: 0 16px 40px rgba(26, 28, 35, 0.18); transform: translateY(-2px); }
.shot-card a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.shot-card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot-card.console img { object-fit: contain; }

.shot-card figcaption { margin-top: 12px; font-size: 0.93rem; color: var(--muted); }
.shot-card figcaption strong { display: block; color: var(--ink); font-size: 1.02rem; }

/* Modules */

.module-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 44px;
}

.module-cols h3 { font-size: 1.1rem; margin-bottom: 14px; }

.chips li {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
    font-size: 0.93rem;
    color: var(--muted);
}

.chips strong { display: block; color: var(--ink); font-size: 1rem; }

/* Steps */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 44px;
}

.step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 3px solid var(--teal);
    color: var(--teal);
    font-weight: 700;
    margin-bottom: 16px;
}

.steps h3, .assurances h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p, .assurances p { color: var(--muted); }

.assurances {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid var(--line);
}

/* Pricing */

.pricing {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: center;
}

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

.price-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.price-card p { color: var(--muted); margin-bottom: 22px; }

/* Contact */

.contact { background: var(--ink-deep); color: var(--white); text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact .section-lead { color: #c9d1d9; margin-bottom: 28px; }
.contact-email { font-size: clamp(1.3rem, 3.4vw, 1.9rem); font-weight: 700; color: var(--teal-bright); user-select: all; overflow-wrap: anywhere; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 24px; }
.contact-actions button { font-family: inherit; cursor: pointer; }
.contact-note { min-height: 1.6em; margin-top: 14px; font-size: 0.92rem; color: #c9d1d9; }

/* Ask for a demo dialog */

.demo-dialog {
    width: min(520px, calc(100vw - 32px));
    padding: 36px 32px 24px;
    border: 0;
    border-radius: 14px;
    background: var(--white);
    color: var(--ink);
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.demo-dialog::backdrop { background: rgba(11, 13, 17, 0.7); }
.demo-dialog h2 { font-size: 1.6rem; margin-bottom: 10px; }
.demo-dialog > p { color: var(--muted); }
.demo-dialog .contact-email { color: var(--teal); margin-top: 20px; }
.demo-dialog .contact-note { color: var(--muted); }

.demo-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: none;
    font-size: 1.9rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}

.btn-outline { background: transparent; color: var(--teal); }
.btn-outline:hover { background: var(--tint); color: var(--teal-dark); }

/* Footer */

.site-footer { background: #0b0d11; color: #8a96a3; font-size: 0.88rem; padding: 26px 0; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }

/* Smaller screens */

@media (max-width: 900px) {
    .hero { padding: 60px 0 68px; }
    .hero-grid, .pricing { grid-template-columns: 1fr; gap: 40px; }
    .pillar-grid, .module-cols, .steps, .assurances, .feature-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .shot-card, .shot-card.wide { grid-column: auto; }
    .pillar-grid article { padding: 28px 0; }
    .pillar-grid article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
    .section { padding: 60px 0; }
    .site-nav a:not(.btn) { display: none; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
}

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