/* Cold Snipe marketing site.
   Tokens mirror webapp/styles/base.css so the site and the product read as one
   thing. Kept as a copy rather than an import because this deploys on its own. */

:root {
    /* Brand green ramp */
    --green-deep: #1E2B26;
    --green-mid: #5C6E68;
    --green-accent: #7FA096;
    --green-bright: #C5D8D1;

    /* Neutral surfaces */
    --bg-page: #060807;
    --bg-card: #0F1412;
    --bg-raised: #151A18;
    --bg-hover: #1C2220;

    /* Text */
    --text-primary: #E9EDEB;
    --text-secondary: #A9B3AE;
    --text-muted: #7C8681;

    /* Hairlines. Deliberately low contrast: at this density a visible border
       turns the page into a spreadsheet. */
    --line: #1B211E;
    --line-strong: #2A322E;

    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
            "Liberation Mono", monospace;

    --radius: 12px;
    --maxw: 1180px;
}

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

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

body {
    margin: 0;
    background: var(--bg-page);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
}

/* Monospace micro-label. The one recurring device that sets the technical
   register, so it is used for every section marker and every data field. */
.mono {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green-accent);
}

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; }

/* --- Rules & sections ---------------------------------------------------- */
/* Full-bleed hairlines between sections, the way technical docs sites divide
   content -- cheaper visually than boxing every section in a card. */
.section { padding: 112px 0; border-top: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head .mono { display: block; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 18px; }
.section-head p { color: var(--text-secondary); font-size: 18px; margin: 0; max-width: 620px; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--green-bright); color: #08110D; }
.btn-primary:hover { background: #FFFFFF; }

.btn-ghost { color: var(--text-primary); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-hover); border-color: var(--green-mid); }

.btn-sm { padding: 8px 14px; font-size: 13.5px; }

/* --- Nav ----------------------------------------------------------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 8, 7, 0.7);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav-inner { display: flex; align-items: center; gap: 40px; height: 64px; }
.brand img { height: 24px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }

/* :not(.btn) matters -- .nav-links a outranks .btn-primary on specificity, so
   without it the CTA in the nav gets the grey link colour on its mint fill. */
.nav-links a:not(.btn) {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14.5px;
    transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover { color: var(--text-primary); }
.nav-links a.btn { text-decoration: none; }

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; padding: 128px 0 96px; overflow: hidden; }

/* Engineering-drawing grid, faded out toward the edges. Pure CSS so it costs
   nothing and cannot 404. */
.hero::before {
    content: "";
    position: absolute;
    inset: -1px 0 auto;
    height: 760px;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    top: -280px;
    left: 50%;
    width: 1000px;
    height: 620px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(127, 160, 150, 0.12), transparent 72%);
    pointer-events: none;
}

.hero-inner { position: relative; max-width: 860px; }

.hero h1 {
    font-size: clamp(40px, 7vw, 76px);
    margin: 22px 0 24px;
    letter-spacing: -0.045em;
}

.hero h1 span { color: var(--green-accent); }

.hero .lede {
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0 0 36px;
    max-width: 620px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cta-note { font-family: var(--mono); font-size: 12.5px; color: var(--text-muted); margin: 18px 0 0; }

/* --- Product panel ------------------------------------------------------- */
/* Real extracted values and real draft copy, not grey placeholder bars. A
   mock made of empty rectangles is what makes a page look unfinished. */
.connect {
    /* Wider than the text column: centred on the viewport, up to 1360px. */
    position: relative;
    width: min(1360px, 100vw - 32px);
    margin: 56px 0 0 50%;
    transform: translateX(-50%);
}
.connect img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.7));
}

.strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 40px;
    padding: 26px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--text-muted);
}

.strip span { color: var(--text-secondary); }

/* --- Bento feature grid -------------------------------------------------- */
/* Uneven cells rather than a uniform 3x2, which is the layout that makes a
   page look generated. */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }

.cell {
    grid-column: span 2;
    padding: 26px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.15s ease;
}

.cell:hover { border-color: var(--line-strong); }
.cell.wide { grid-column: span 3; }
.cell h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -0.02em; }
.cell p { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.62; }
.cell .mono { display: block; margin-bottom: 14px; color: var(--text-muted); }

.cell-code {
    margin-top: 18px;
    padding: 14px 16px;
    background: var(--bg-page);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--text-secondary);
    overflow-x: auto;
}

.cell-code .k { color: var(--green-accent); }
.cell-code .c { color: var(--text-muted); }

/* --- Steps --------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { padding: 32px; }
.step + .step { border-left: 1px solid var(--line); }
.step .mono { display: block; margin-bottom: 16px; }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { margin: 0; color: var(--text-secondary); font-size: 15px; }

/* --- Split band ---------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 18px; }
.split p { color: var(--text-secondary); margin: 0 0 14px; }
.split .mono { display: block; margin-bottom: 20px; }
.split .cta-row { margin-top: 24px; }

.spec { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.spec-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 20px;
    font-family: var(--mono);
    font-size: 13px;
}

.spec-row + .spec-row { border-top: 1px solid var(--line); }
.spec-row b { font-weight: 400; color: var(--text-primary); }
.spec-row i { font-style: normal; color: var(--text-muted); }

/* --- Pricing ------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 720px; }

/* One plan: a single card centred at a readable width, rather than one card
   stranded in a two-column grid. */
.plans-single { grid-template-columns: minmax(0, 1fr); max-width: 400px; margin-inline: auto; }

.plan {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.plan.featured { border-color: var(--green-mid); }
.plan .mono { display: block; margin-bottom: 20px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price strong { font-size: 48px; font-weight: 600; letter-spacing: -0.05em; }
.price span { color: var(--text-muted); font-family: var(--mono); font-size: 13px; }
.plan-sub { color: var(--text-muted); font-size: 13.5px; margin: 0 0 26px; min-height: 20px; }
.plan .btn { width: 100%; }

/* With a single plan the whole section reads as one centred column. Left-
   aligning the head and the feature list either side of a centred card is
   what makes the section look broken rather than deliberate. Scoped to
   #pricing so every other .section-head stays left-aligned. */
#pricing .section-head { margin-inline: auto; text-align: center; }
#pricing .section-head p { margin-inline: auto; }


.included { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 12px; max-width: 720px; }
.included li { position: relative; padding-left: 26px; color: var(--text-secondary); font-size: 15px; }
.included li::before {
    content: "";
    position: absolute; left: 3px; top: 8px;
    width: 9px; height: 5px;
    border-left: 1.5px solid var(--green-accent);
    border-bottom: 1.5px solid var(--green-accent);
    transform: rotate(-45deg);
}

/* --- Offering table ------------------------------------------------------ */
/* The full offering, as a spec sheet rather than a tick list: a long column of
   ticks reads as filler, where a grouped table reads as a product that has
   been thought about. Centred under the plan card. */
.matrix-wrap {
    margin: 56px auto 0;
    max-width: 860px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.matrix {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px;
}

/* Group heading: the one place the mono label earns a filled band. */
.matrix-group th {
    padding: 12px 24px;
    background: var(--bg-raised);
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green-accent);
}

.matrix tbody:first-child .matrix-group th { border-top: 0; }

.matrix th[scope="row"],
.matrix td {
    padding: 14px 24px;
    border-top: 1px solid var(--line);
    vertical-align: top;
}

.matrix th[scope="row"] {
    width: 34%;
    font-weight: 400;
    color: var(--text-primary);
}

.matrix td { color: var(--text-secondary); }
.matrix tbody tr:not(.matrix-group):hover { background: var(--bg-hover); }

/* The price is the last row of the table, not a card floating above it: you
   read everything you get, then what it costs, then the button. Same box, so
   it lands as the conclusion rather than a separate object. */
.matrix-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    padding: 28px 24px;
    border-top: 1px solid var(--line-strong);
    background: var(--bg-raised);
}

.matrix-foot .mono { display: block; margin-bottom: 10px; color: var(--text-muted); }
.matrix-foot .price { margin-bottom: 6px; }
.matrix-foot .plan-sub { margin: 0; min-height: 0; }
.matrix-foot .btn { padding: 14px 28px; }

/* Monthly / annual toggle, no script. The two radios sit first inside
   .matrix-foot so `:checked ~` can reach everything after them. Annual is
   the default (checked in the markup). */
.bill-radio {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.bill-toggle {
    display: inline-flex;
    padding: 3px;
    margin-bottom: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--bg-card);
}
.bill-toggle label {
    padding: 7px 16px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    user-select: none;
}
.bill-toggle label em {
    font-style: normal;
    color: var(--green-accent);
    margin-left: 4px;
}
.bill-toggle label:hover { color: var(--text-primary); }

/* The selected label, and a focus ring when the (invisible) radio is tabbed to. */
#bill-monthly:checked ~ .bill-block .bill-toggle label[for="bill-monthly"],
#bill-annual:checked  ~ .bill-block .bill-toggle label[for="bill-annual"] {
    background: var(--green-bright);
    color: #08110D;
}
#bill-annual:checked ~ .bill-block .bill-toggle label[for="bill-annual"] em { color: #08110D; opacity: 0.7; }
#bill-monthly:focus-visible ~ .bill-block .bill-toggle label[for="bill-monthly"],
#bill-annual:focus-visible  ~ .bill-block .bill-toggle label[for="bill-annual"] {
    outline: 2px solid var(--green-accent);
    outline-offset: 2px;
}

/* Only the chosen period's price, note and button are shown. */
.price-monthly, .plan-sub-monthly, .cta-monthly { display: none; }
#bill-monthly:checked ~ .bill-block .price-monthly   { display: flex; }
#bill-monthly:checked ~ .bill-block .plan-sub-monthly { display: block; }
#bill-monthly:checked ~ .bill-block .price-annual,
#bill-monthly:checked ~ .bill-block .plan-sub-annual,
#bill-monthly:checked ~ .cta-annual { display: none; }
#bill-monthly:checked ~ .cta-monthly { display: inline-flex; }

/* --- FAQ ----------------------------------------------------------------- */
/* The FAQ block sits centred on the page, but its text stays left-aligned --
   questions and answers are read, not scanned. */
#faq .section-head { margin-inline: auto; }
.faq { max-width: 800px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 22px 40px 22px 0;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.015em;
    position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

/* Plus/minus rather than a chevron: reads as a control, not decoration. */
.faq summary::before,
.faq summary::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 50%;
    background: var(--green-accent);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq summary::before { width: 13px; height: 1.5px; transform: translateY(-50%); }
.faq summary::after  { width: 1.5px; height: 13px; right: 10px; transform: translateY(-50%); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(90deg); opacity: 0; }

.faq p { color: var(--text-secondary); margin: 0 0 24px; padding-right: 40px; max-width: 680px; }

/* --- CTA ----------------------------------------------------------------- */
.endcta { text-align: center; padding: 120px 0; border-top: 1px solid var(--line); }
.endcta h2 { font-size: clamp(30px, 5vw, 52px); margin-bottom: 20px; }
.endcta p { color: var(--text-secondary); font-size: 18px; margin: 0 auto 32px; max-width: 520px; }
.endcta .cta-row { justify-content: center; }

/* --- Footer -------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 64px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text-primary); }
.copy { color: var(--text-muted); font-family: var(--mono); font-size: 12.5px; margin: 0; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 940px) {
    .section { padding: 80px 0; }
    .hero { padding: 88px 0 72px; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .cell, .cell.wide { grid-column: span 2; }
    .steps { grid-template-columns: 1fr; }
    .step + .step { border-left: 0; border-top: 1px solid var(--line); }
    .split { grid-template-columns: 1fr; gap: 36px; }
    .plans { grid-template-columns: 1fr; }
    .nav-links a:not(.btn) { display: none; }
}

@media (max-width: 560px) {
    .bento { grid-template-columns: 1fr; }
    .cell, .cell.wide { grid-column: span 1; }
    .wrap { padding: 0 20px; }

    /* The table stays a table on a phone -- two short columns still read fine
       -- but the gutters have to give. */
    .matrix { font-size: 14px; }
    .matrix-group th,
    .matrix th[scope="row"],
    .matrix td { padding-left: 16px; padding-right: 16px; }
    .matrix th[scope="row"] { width: 42%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
