/*
 * The design system every page of ineedalerts.com starts from: fonts, colour and size tokens,
 * the page base, buttons and the mono "countdown" label. Page styles (index.html's inline
 * styles, site.css, agents.css, legal.css) build on these; DESIGN.md explains the rules.
 */
/* Geist and Geist Mono (SIL Open Font License), served from /fonts so the first paint
 * doesn't wait on another server. Geist is one variable file for every weight. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/geist-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/geist-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/geist-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/geist-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    /* Surfaces */
    --paper: #f6f3ee;          /* the page canvas */
    --card: #ffffff;           /* sheets and cards on the canvas */
    --card-hover: #fcfaf7;
    --dark: #15130f;           /* dark cards, primary buttons */
    --dark-2: #2a2721;
    --code-bg: #0b0a08;

    /* Ink */
    --ink: #14120f;
    --ink-2: #4b473f;
    --ink-3: #726d64;

    /* Lines */
    --line: #e7e1d7;
    --line-2: #d9d2c5;

    /* Alert Red: the brand, and anything that's due */
    --red: #ff2d3a;
    --red-ink: #d31b27;
    --red-soft: #ffeceb;
    --red-line: #ffd0cc;

    /* Status */
    --green: #1b7a34;
    --green-soft: #e6f6ea;
    --amber: #a8660f;
    --amber-soft: #fdf3e1;
    --blue: #2266c8;
    --blue-soft: #e8f0fd;

    /* Layout */
    --wrap: min(1440px, 100% - 64px);
    --r-xl: 36px;   /* hero and section cards */
    --r-lg: 24px;   /* cards */
    --r-md: 16px;   /* inner panels */
    --r-sm: 11px;   /* fields, rows */
    --shadow: 0 1px 2px rgba(20, 18, 15, .05), 0 24px 48px -24px rgba(20, 18, 15, .22);

    /* Type */
    --font: "Geist", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    --display: var(--font);
    --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (max-width: 1020px) { :root { --wrap: min(1440px, 100% - 40px); --r-xl: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
svg { display: block; }
[hidden] { display: none !important; }
/* "or pay on the web" appears only once pricing.js learns that web checkout is set up. */
html:not(.web-checkout) .plan-web { display: none !important; }
.wrap { width: var(--wrap); margin-inline: auto; }
::selection { background: var(--red-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* The mono label above headings: a red dot, then uppercase Geist Mono. */
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow::before, .kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }

/*
 * The layout every marketing page shares (home, pricing, AI agents, MCP): a reading column, a
 * centred hero on the paper, one way to open a section, white bands and trays.
 */
.col { width: min(1200px, 100% - 64px); margin-inline: auto; }
.band { background: var(--card); border-block: 1px solid var(--line); }
.section { padding: 100px 0; scroll-margin-top: 64px; }
/* Two paper sections in a row share one gap. */
.section:not(.band) + .section:not(.band) { padding-top: 0; }

/* A section opens with a label pill, a headline and one line, all centred. */
.head { display: grid; justify-items: center; text-align: center; max-width: 780px; margin: 0 auto 52px; }
.head .eyebrow, .head .kicker, .page-hero > .eyebrow, .page-hero > .kicker { font-size: 12px; padding: 7px 13px 7px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.band .head .eyebrow, .band .head .kicker { background: var(--paper); }
.head h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; margin-top: 18px; text-wrap: balance; }
.head h2 em, .head h2 span { font-style: normal; color: var(--red-ink); }
.head > p:not(.eyebrow) { font-size: clamp(17px, 1.3vw, 18.5px); line-height: 1.5; color: var(--ink-2); max-width: 620px; margin-top: 18px; text-wrap: pretty; }

/* A page's hero: the words centred on the paper, no card around them. */
.page-hero { display: grid; justify-items: center; text-align: center; padding: 64px 0 0; }
.page-hero h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1; letter-spacing: -.045em; font-weight: 600; margin: 24px 0 22px; max-width: 1040px; text-wrap: balance; }
.page-hero h1 em, .page-hero h1 span { font-style: normal; color: var(--red-ink); }
.page-hero .lead { font-size: clamp(17.5px, 1.4vw, 19.5px); line-height: 1.5; color: var(--ink-2); max-width: 600px; text-wrap: pretty; }

/* The stage under a hero: a white card with the faint week grid and a red glow. */
.stage { position: relative; isolation: isolate; overflow: hidden; margin-top: 64px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / 7) 100%; background-position: -1px 0; opacity: .55; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.stage::after { content: ""; position: absolute; z-index: -1; width: 860px; height: 860px; left: 50%; bottom: -540px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 45, 58, .22), rgba(255, 45, 58, 0) 62%); pointer-events: none; }

/* A tray: a big rounded block 20px in from the screen edges. Dark, or red on the home page's close. */
.tray { margin-inline: 20px; border-radius: 44px; position: relative; overflow: hidden; isolation: isolate; }
.tray.dark { background: var(--dark); color: #fff; }
.tray-close { padding: 96px 40px; text-align: center; }
.tray-close h2 { font-size: clamp(32px, 4.2vw, 58px); letter-spacing: -.04em; line-height: 1.02; font-weight: 600; max-width: 980px; margin-inline: auto; text-wrap: balance; }
.tray-close h2 em, .tray-close h2 span { font-style: normal; color: var(--red); }
.tray-close p { color: rgba(255, 255, 255, .74); font-size: 18px; line-height: 1.5; margin: 20px auto 34px; max-width: 560px; text-wrap: pretty; }
.tray-close .btn { height: 52px; padding: 0 26px; font-size: 16.5px; }
.tray-close .tray-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Questions: rows split by lines, each with a round + that turns into × when open. */
.faq { display: grid; max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); padding: 22px 4px; }
.faq summary { cursor: pointer; font-size: 18.5px; font-weight: 600; letter-spacing: -.015em; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-2); font-weight: 400; font-size: 21px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 10px; color: var(--ink-2); font-size: 16.5px; line-height: 1.55; max-width: 720px; }

@media (max-width: 1020px) {
    .col { width: min(1200px, 100% - 40px); }
    .section { padding: 84px 0; }
    .head { margin-bottom: 44px; }
    .tray { margin-inline: 10px; border-radius: 32px; }
    .tray-close { padding: 88px 28px; }
}
@media (max-width: 640px) {
    .section { padding: 68px 0; }
    .head { margin-bottom: 32px; }
    .page-hero { padding-top: 36px; }
    .page-hero h1 { margin: 22px 0 22px; }
    .stage { margin-top: 48px; }
    .tray { margin-inline: 8px; border-radius: 28px; }
    .tray-close { padding: 72px 22px; }
    .faq summary { font-size: 17px; }
    .faq details { padding: 20px 2px; }
}

/* Buttons: pills. Dark is the main action, ghost the second; red is never a button colour. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 600 16px/1 var(--font); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn .arrow { width: 17px; height: 17px; transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--dark); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--dark-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink-3); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover:not(:disabled) { background: #f4f1ec; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-outline-light:hover:not(:disabled) { border-color: rgba(255, 255, 255, .6); }
.btn-danger { background: transparent; color: var(--red-ink); border-color: var(--red-line); }
.btn-danger:hover:not(:disabled) { background: var(--red-soft); }
.btn-sm { height: 38px; padding: 0 15px; font-size: 14.5px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 17px; }

/* Inline code */
code { font-family: var(--mono); font-size: .88em; background: var(--paper); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; border-radius: 0; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
