/* Runbell product site: landing, pricing, legal pages.
   Palette from the logo: signal green #01A544, ink #1B1E21. Fonts are served
   from here (SIL OFL 1.1, fonts/OFL*.txt): no third-party requests. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/ibm-plex-sans-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
    --ink: #1b1e21;
    --ink-2: #4d555c;
    --ink-3: #6f777e;
    --paper: #f3f5f4;
    --surface: #ffffff;
    --rule: #dde2df;
    --signal: #01a544;        /* logo green: graphics only */
    --green-ink: #00803a;     /* green for text and buttons on white (4.9:1) */
    --green-wash: #e2f5e9;
    --red: #d2382f;
    --red-ink: #b42a22;
    --red-wash: #fbe7e5;
    --amber: #e39a12;
    --screen: #15191c;        /* the monitor */
    --screen-line: #2a3136;
    --focus: #1f6feb;
    --display: "Plus Jakarta Sans", "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    --wrap: 1160px;
    --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.cw {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font: 400 17px/1.6 var(--sans);
}
.cw [hidden] { display: none !important; }
.cw img { max-width: 100%; height: auto; }
.cw a { color: var(--green-ink); text-underline-offset: 3px; }
.cw :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.cw h1, .cw h2, .cw h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }
.cw h1 { font-size: clamp(38px, 4.7vw, 60px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.cw h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; text-wrap: balance; }
.cw h3 { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.cw code, .cw pre { font-family: var(--mono); }
.cw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cw-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.cw-narrow { max-width: 780px; }
.cw-skip { position: absolute; top: 16px; inset-inline-start: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; }
.cw-skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and footer */
.cw-header {
    position: sticky; top: 0; z-index: 5;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: saturate(1.6) blur(10px); backdrop-filter: saturate(1.6) blur(10px);
    border-bottom: 1px solid var(--rule);
}
.cw-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.cw-brand { flex: none; }
.cw-brand img { display: block; height: 36px; width: auto; }
.cw-nav { display: flex; align-items: center; gap: 24px; font-size: 16px; white-space: nowrap; }
.cw-nav a:not(.cw-btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.cw-nav a:not(.cw-btn):hover, .cw-nav a[aria-current] { color: var(--green-ink); text-decoration: underline; }

.cw-footer { border-top: 1px solid var(--rule); background: var(--paper); padding: 36px 0; font-size: 15px; color: var(--ink-2); }
.cw-footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cw-footer-row img { height: 28px; width: auto; }
.cw-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.cw-footer nav a { color: var(--ink-2); }
.cw-footer p { margin: 0; margin-inline-start: auto; }

/* Buttons */
.cw-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 22px;
    border: 1.5px solid var(--ink); border-radius: 10px;
    background: var(--surface); color: var(--ink);
    font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
    white-space: nowrap;
}
.cw a.cw-btn { color: var(--ink); text-decoration: none; }
.cw-btn:hover { background: var(--paper); }
.cw-btn-solid, .cw a.cw-btn-solid { background: var(--green-ink); border-color: var(--green-ink); color: #fff; }
.cw-btn-solid:hover { background: #006a30; border-color: #006a30; }
.cw-btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.cw-btn-large { min-height: 56px; padding: 0 30px; font-size: 17px; }
.cw-btn-quiet { border-color: var(--rule); color: var(--ink-3); background: transparent; cursor: default; }
.cw-btn-quiet:hover { background: transparent; }
.cw-btn[disabled] { opacity: .6; cursor: progress; }

/* Hero */
.cw-hero {
    padding: 76px 0 84px;
    background:
        radial-gradient(900px 420px at 88% 18%, rgba(1, 165, 68, .10), transparent 70%),
        var(--surface);
}
.cw-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.cw-hero-text { max-width: 600px; }
.cw-lede { margin: 24px 0 0; font-size: 19px; color: var(--ink-2); max-width: 54ch; }

.cw-signup { margin-top: 32px; }
.cw-signup label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.cw-signup-row { display: flex; gap: 10px; }
.cw-signup input {
    flex: 1; min-width: 0; min-height: 48px; padding: 0 14px;
    border: 1.5px solid #a9b1b7; border-radius: 10px;
    font: 400 16px var(--sans); color: var(--ink); background: var(--surface);
}
.cw-signup input:focus-visible { border-color: var(--focus); }
.cw-signup-hint { margin: 10px 0 0; font-size: 14px; color: var(--ink-3); max-width: 60ch; }
.cw-signup-hint a { color: var(--ink-2); }
#signup-result:not(:empty) { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--green-wash); font-size: 15px; }
#signup-result p { margin: 0; }

/* The monitor: the page's one loud element */
.cw-monitor {
    margin: 0; border-radius: 18px; overflow: hidden;
    background: var(--screen); color: #e8ecef;
    box-shadow: 0 30px 60px -28px rgba(15, 30, 22, .55), 0 0 0 1px rgba(0, 0, 0, .04);
}
.cw-monitor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--screen-line); }
.cw-monitor-id { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 15px; }
.cw-monitor-id b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-monitor-id code { font-size: 13px; color: #8d989f; white-space: nowrap; }
.cw-pill {
    flex: none; min-width: 58px; text-align: center; padding: 3px 8px; border-radius: 6px;
    font: 700 12px/1.4 var(--sans); letter-spacing: .02em; color: #06150c; background: var(--signal);
}
.cw-monitor[data-state="late"] .cw-pill { background: var(--amber); color: #1d1300; }
.cw-monitor[data-state="down"] .cw-pill { background: var(--red); color: #fff; }
.cw-monitor-toggle {
    flex: none; min-height: 38px; padding: 0 14px; border-radius: 8px; cursor: pointer;
    border: 1px solid #47525a; background: transparent; color: #f1f4f6; font: 600 14px var(--sans);
}
.cw-monitor-toggle:hover { background: #222a2f; }
.cw-monitor-toggle[aria-pressed="true"] { border-color: var(--signal); color: #9be8b6; }
.cw-monitor-screen {
    position: relative; height: 250px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 40px 40px;
}
.cw-monitor-screen svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cw-grid { stroke: rgba(255, 255, 255, .12); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cw-trace { fill: none; stroke: var(--signal); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cw-flat { fill: none; stroke: #8d989f; stroke-width: 2.5; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.cw-monitor[data-state="late"] .cw-flat { stroke: var(--amber); }
.cw-monitor[data-state="down"] .cw-flat { stroke: var(--red); stroke-dasharray: none; }
.cw-grace { fill: rgba(227, 154, 18, .12); }
.cw-monitor[data-state="down"] .cw-grace { fill: rgba(210, 56, 47, .14); }
.cw-head { fill: var(--signal); }
.cw-monitor[data-state="late"] .cw-head { fill: var(--amber); }
.cw-monitor[data-state="down"] .cw-head { fill: var(--red); }

.cw-alerts { position: absolute; inset-inline-start: 16px; top: 14px; margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; max-width: calc(100% - 32px); }
.cw-alerts li {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px;
    background: rgba(255, 255, 255, .96); color: var(--ink); font-size: 13.5px; line-height: 1.35;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}
.cw-alerts li b { font-weight: 600; }
.cw-alerts li i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.cw-alerts li.cw-ok i { background: var(--signal); }
@media (prefers-reduced-motion: no-preference) {
    .cw-alerts li { animation: cw-drop .35s cubic-bezier(.2, .8, .3, 1) both; }
}
@keyframes cw-drop { from { opacity: 0; transform: translateY(-8px); } }

.cw-monitor-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--screen-line); font-size: 13px; color: #9aa4aa; }

/* Works with */
.cw-works { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper); }
.cw-works p { margin: 0; padding: 22px 0; font-size: 16px; color: var(--ink-2); text-align: center; }

/* Sections */
.cw-section { padding: 96px 0; scroll-margin-top: 68px; }
#start { scroll-margin-top: 100px; }
.cw-section + .cw-section { border-top: 1px solid var(--rule); }
.cw-section-lede { margin: 14px 0 0; color: var(--ink-2); max-width: 62ch; font-size: 18px; }

.cw-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: step; }
.cw-steps li { counter-increment: step; padding-top: 20px; border-top: 3px solid var(--ink); min-width: 0; }
.cw-steps li::before { content: "Step " counter(step); display: block; font-size: 14px; color: var(--ink-3); margin-bottom: 6px; }
.cw-steps p { margin: 8px 0 0; color: var(--ink-2); }

.cw-snippet { margin-top: 40px; border-radius: 14px; overflow: hidden; background: var(--screen); }
.cw-tabs { display: flex; gap: 4px; padding: 8px 8px 0; border-bottom: 1px solid var(--screen-line); }
.cw-tabs button {
    min-height: 38px; padding: 0 14px; border: 0; border-radius: 8px 8px 0 0; cursor: pointer;
    background: transparent; color: #9aa4aa; font: 500 14px var(--sans);
}
.cw-tabs button[aria-selected="true"] { background: #20272b; color: #fff; box-shadow: inset 0 -2px 0 var(--signal); }
.cw-code {
    margin: 0; padding: 18px 20px; overflow-x: auto;
    background: #20272b; color: #e6edf1; font-size: 14px; line-height: 1.7;
    white-space: pre-wrap; word-break: break-all;
}
.cw-code .c { color: #7f8b92; }

/* Product tour */
.cw-tour { background: var(--paper); }
.cw-shot { margin: 32px 0 0; }
.cw-shot img {
    display: block; width: 100%; border-radius: 12px; background: #fff;
    box-shadow: 0 0 0 1px var(--rule), 0 24px 48px -30px rgba(15, 30, 22, .35);
}
.cw-shot figcaption { margin-top: 14px; font-size: 15.5px; color: var(--ink-2); max-width: 56ch; }
.cw-shot figcaption b { color: var(--ink); font-weight: 600; }
.cw-tour-pair { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; }

/* Features */
.cw-features { margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.cw-features div { padding: 20px 0; border-top: 1px solid var(--rule); }
.cw-features dt { font-weight: 600; font-size: 17.5px; }
.cw-features dd { margin: 4px 0 0; color: var(--ink-2); }
/* Alert channels: two rows of real logos drifting in opposite directions.
   Now and then one of them receives an alert (site.js adds .cw-hit). */
.cw-channels { margin-top: 72px; }
.cw-channels-head { margin-bottom: 26px; }
.cw-channels-head h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.02em; }
.cw-channels-head p { margin: 8px 0 0; color: var(--ink-2); max-width: 60ch; }
.cw-marquee {
    overflow: hidden; padding: 10px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.cw-marquee-track { display: flex; width: max-content; gap: 14px; margin: 0; padding: 0 7px; list-style: none; }
.cw-marquee-track li {
    position: relative; display: flex; align-items: center; gap: 12px; flex: none;
    padding: 12px 12px; padding-inline-end: 20px; border-radius: 16px;
    background: var(--surface); border: 1px solid var(--rule);
    box-shadow: 0 1px 2px rgba(27, 30, 33, .05);
    font-weight: 600; font-size: 16px; white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cw-marquee-track img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; }
.cw-marquee-track li:hover { transform: translateY(-3px); border-color: #c8d0cb; box-shadow: 0 10px 22px -12px rgba(15, 30, 22, .35); }
/* An alert arrives: a green ring spreads from the card and a dot appears. */
.cw-marquee-track li::after {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
    box-shadow: 0 0 0 0 rgba(1, 165, 68, .55); opacity: 0;
}
.cw-marquee-track li::before {
    content: ""; position: absolute; top: 8px; left: 36px; width: 10px; height: 10px; border-radius: 50%;
    background: var(--signal); border: 2px solid var(--surface); transform: scale(0);
}
.cw-marquee-track li.cw-hit { border-color: var(--signal); }
.cw-marquee-track li.cw-hit::after { animation: cw-ring 1.3s ease-out; }
.cw-marquee-track li.cw-hit::before { animation: cw-dot 1.6s ease-out; }
@keyframes cw-ring { 0% { opacity: 1; box-shadow: 0 0 0 0 rgba(1, 165, 68, .5); } 100% { opacity: 0; box-shadow: 0 0 0 18px rgba(1, 165, 68, 0); } }
@keyframes cw-dot { 0%, 100% { transform: scale(0); } 15%, 80% { transform: scale(1); } }

@media (prefers-reduced-motion: no-preference) {
    .cw-marquee-track { animation: cw-drift 48s linear infinite; }
    .cw-marquee-reverse .cw-marquee-track { animation-direction: reverse; animation-duration: 56s; }
    .cw-marquee:hover .cw-marquee-track, .cw-marquee:focus-within .cw-marquee-track { animation-play-state: paused; }
}
@keyframes cw-drift { to { transform: translateX(-50%); } }
/* No motion: one static, wrapped set. */
@media (prefers-reduced-motion: reduce) {
    .cw-marquee { -webkit-mask-image: none; mask-image: none; padding: 4px var(--gutter); max-width: var(--wrap); margin: 0 auto; }
    .cw-marquee-track { width: auto; flex-wrap: wrap; }
    .cw-marquee-track .cw-dup { display: none; }
    .cw-marquee-track li.cw-hit::after, .cw-marquee-track li.cw-hit::before { animation: none; }
}

/* Pricing */
.cw-pricing-section { background: var(--surface); }
.cw-pricing-page h1 { font-size: clamp(36px, 4.6vw, 54px); }
.cw-pricing { margin-top: 32px; }
.cw-switches { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.cw-seg { display: inline-flex; padding: 3px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); }
.cw-seg button {
    min-height: 38px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent;
    font: 500 15px var(--sans); color: var(--ink-2); cursor: pointer;
}
.cw-seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(27, 30, 33, .2); }
.cw-seg button[disabled] { cursor: not-allowed; }

.cw-plans { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); border-radius: 14px; }
.cw-plan { padding: 28px 22px 24px; min-width: 0; display: flex; flex-direction: column; }
.cw-plan + .cw-plan { border-inline-start: 1px solid var(--rule); }
.cw-plan-lead { box-shadow: inset 0 4px 0 var(--signal); }
.cw-plan-current { background: var(--green-wash); }
.cw-plan-summary { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); min-height: 3em; }
.cw-price { margin: 18px 0 0; min-height: 76px; }
.cw-price-opt { display: block; }
.cw-amount { font-family: var(--display); font-size: 36px; font-weight: 800; letter-spacing: -0.03em; }
.cw-per { margin-inline-start: 6px; font-size: 15px; color: var(--ink-2); }
.cw-price-sub { display: block; font-size: 14px; color: var(--ink-3); }
.cw-plan-action { margin-top: 10px; }
.cw-plan-action .cw-btn, .cw-plan-action form, .cw-plan-action form .cw-btn { width: 100%; }
.cw-trial-form { margin-top: 8px; text-align: center; }
.cw-link-btn { border: 0; background: none; padding: 4px; color: var(--green-ink); font: 500 14.5px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cw-limits { list-style: none; margin: 22px 0 0; padding: 0; font-size: 15px; }
.cw-limits li { padding: 8px 0; border-top: 1px solid var(--rule); }
.cw-limits strong { font-weight: 600; }
.cw-none { color: var(--ink-3); }
.cw-pricing-note { margin: 18px 0 0; font-size: 15px; color: var(--ink-2); max-width: 72ch; }
.cw-pricing-cta { margin-top: 32px; }
.cw-flash { padding: 12px 14px; border-radius: 10px; background: var(--green-wash); }
.cw-flash-error { background: var(--red-wash); }

/* FAQ */
.cw-faq { margin-top: 28px; }
.cw-faq details { border-top: 1px solid var(--rule); }
.cw-faq details:last-child { border-bottom: 1px solid var(--rule); }
.cw-faq summary { position: relative; padding: 18px 0; padding-inline-end: 40px; font-weight: 600; cursor: pointer; list-style: none; }
.cw-faq summary::-webkit-details-marker { display: none; }
.cw-faq summary::after { content: "+"; position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); font: 400 26px/1 var(--sans); color: var(--ink-3); }
.cw-faq details[open] summary::after { content: "\2212"; }
.cw-faq p { margin: 0 0 18px; color: var(--ink-2); max-width: 64ch; }

/* Final call */
.cw-final { background: var(--ink); color: #fff; padding: 72px 0; }
.cw-final-row { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cw-final h2 { max-width: 18ch; color: #fff; }
.cw-final a.cw-btn-solid { background: var(--signal); border-color: var(--signal); color: #04140a; }
.cw-final a.cw-btn-solid:hover { background: #22c063; border-color: #22c063; }

/* Legal pages */
.cw-legal { background: var(--surface); }
.cw-legal-grid { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 24px 64px; }
.cw-legal-head { grid-column: 1 / -1; max-width: 760px; }
.cw-legal-head h1 { font-size: clamp(34px, 4.4vw, 50px); }
.cw-legal-meta { margin: 10px 0 0; font-size: 15px; color: var(--ink-3); }
.cw-legal-summary { margin: 18px 0 0; font-size: 19px; color: var(--ink-2); }
.cw-legal-toc { align-self: start; position: sticky; top: 92px; font-size: 15px; }
.cw-legal-toc p { margin: 0 0 8px; font-weight: 600; }
.cw-legal-toc ol { margin: 0; padding-inline-start: 20px; color: var(--ink-3); }
.cw-legal-toc li { padding: 3px 0; }
.cw-legal-toc a { color: var(--ink-2); text-decoration: none; }
.cw-legal-toc a:hover { color: var(--green-ink); text-decoration: underline; }
.cw-legal-body { min-width: 0; }
.cw-legal-body section { padding: 28px 0 4px; border-top: 1px solid var(--rule); scroll-margin-top: 88px; }
.cw-legal-body section:first-child { border-top: 0; padding-top: 0; }
.cw-legal-body h2 { font-size: 24px; margin-bottom: 10px; }
.cw-legal-body p, .cw-legal-body li, .cw-legal-body dd { max-width: 68ch; }
.cw-legal-body p { margin: 0 0 14px; }
.cw-legal-body ul { margin: 0 0 14px; padding-inline-start: 22px; }
.cw-legal-body li { margin: 6px 0; }
.cw-legal-list { margin: 0 0 14px; }
.cw-legal-list div { padding: 10px 0; border-top: 1px solid var(--rule); }
.cw-legal-list div:first-child { border-top: 0; }
.cw-legal-list dt { font-weight: 600; }
.cw-legal-list dd { margin: 2px 0 0; color: var(--ink-2); }
.cw-legal-table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 15px; }
.cw-legal-table th, .cw-legal-table td { text-align: start; padding: 9px 0; padding-inline-end: 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cw-legal-table th { font-weight: 600; }

/* Cron tool */
.cw-tool-hero { padding: 64px 0 72px; background: radial-gradient(800px 380px at 90% 0%, rgba(1, 165, 68, .09), transparent 70%), var(--surface); }
.cw-tool-hero h1 { max-width: 16ch; }
.cw-tool { margin-top: 36px; border-radius: 18px; overflow: hidden; background: var(--screen); color: #e8ecef;
           box-shadow: 0 30px 60px -30px rgba(15, 30, 22, .5); }
.cw-tool-inputs { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; padding: 24px; border-bottom: 1px solid var(--screen-line); }
.cw-field label { display: block; font-size: 14px; font-weight: 600; color: #a9b3b9; margin-bottom: 8px; }
.cw-field input, .cw-field select {
    width: 100%; min-height: 56px; padding: 0 16px; border-radius: 12px;
    border: 1.5px solid #3a444b; background: #0f1214; color: #fff;
}
.cw-field input { font: 500 clamp(22px, 3vw, 32px)/1 var(--mono); letter-spacing: .04em; }
.cw-field select { font: 500 16px var(--sans); }
.cw-field input:focus-visible, .cw-field select:focus-visible { outline: 3px solid var(--signal); outline-offset: 1px; border-color: var(--signal); }
.cw-field-legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 0; font-size: 12.5px; color: #7f8b92; }
.cw-tool-result { padding: 24px; min-height: 260px; }
.cw-tool-explain { margin: 0; font: 800 clamp(24px, 3vw, 34px)/1.2 var(--display); letter-spacing: -0.02em; color: #9be8b6; }
.cw-tool-sub { margin: 14px 0 8px; font-size: 14px; color: #9aa4aa; }
.cw-tool-sub b { color: #e8ecef; font-weight: 600; }
.cw-tool-error { margin: 0; padding: 14px 16px; border-radius: 12px; background: rgba(210, 56, 47, .16); color: #ffb4ae; font-size: 16px; }
.cw-runs { list-style: none; margin: 0; padding: 0; counter-reset: run; }
.cw-runs li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 12px; align-items: baseline;
              padding: 10px 0; border-top: 1px solid var(--screen-line); font-size: 15.5px; }
.cw-runs time { font-family: var(--mono); color: #fff; }
.cw-runs span { color: #9aa4aa; }
.cw-runs-utc { font-family: var(--mono); font-size: 13.5px; }
.cw-examples { margin-top: 22px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cw-examples p { margin: 0; font-weight: 600; }
.cw-examples ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cw-examples a { display: inline-flex; gap: 8px; align-items: baseline; padding: 6px 12px; border: 1px solid var(--rule);
                 border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--surface); font-size: 14.5px; }
.cw-examples a:hover { border-color: var(--green-ink); }
.cw-examples code { font-size: 13.5px; }
.cw-examples span { color: var(--ink-3); }
.cw-tool-cta { background: var(--paper); }
.cw-tool-cta-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.cw-cheat { margin-top: 28px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
@media (max-width: 900px) { .cw-nav-wide { display: none; } }
@media (max-width: 420px) { .cw-nav-signin { display: none; } }
@media (max-width: 380px) {
    .cw-brand img { height: 26px; }
    .cw-nav { gap: 10px; font-size: 14.5px; }
    .cw-nav .cw-btn-small { padding: 0 9px; min-height: 36px; }
    .cw-tool-inputs, .cw-tool-result { padding: 18px; }
}
@media (max-width: 760px) {
    .cw-tool-inputs { grid-template-columns: 1fr; }
    .cw-tool-cta-grid, .cw-cheat { grid-template-columns: 1fr; }
    .cw-runs li { grid-template-columns: 1fr auto; }
    .cw-runs li span:not(.cw-runs-utc) { grid-column: 1; grid-row: 2; font-size: 14px; }
    .cw-runs-utc { grid-row: 1 / span 2; }
    .cw-tool-hero { padding: 40px 0 48px; }
}

/* Tablet */
@media (max-width: 1000px) {
    .cw-hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .cw-hero-text { max-width: 680px; }
    .cw-features { grid-template-columns: repeat(2, 1fr); }
    .cw-tour-pair { grid-template-columns: 1fr; }
    .cw-plans { grid-template-columns: repeat(2, 1fr); }
    .cw-plan:nth-child(3) { border-inline-start: 0; }
    .cw-plan:nth-child(n+3) { border-top: 1px solid var(--rule); }
    .cw-legal-grid { grid-template-columns: 1fr; }
    .cw-legal-toc { position: static; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); }
}

/* Phone */
@media (max-width: 640px) {
    :root { --gutter: 16px; }
    body.cw { font-size: 16px; }
    .cw-nav { gap: 12px; font-size: 15px; }
    .cw-nav-docs { display: none; }
    .cw-brand img { height: 30px; }
    .cw-nav .cw-btn-small { padding: 0 11px; }
    .cw-hero { padding: 40px 0 48px; }
    .cw-lede { font-size: 17px; }
    .cw-signup-row { flex-direction: column; }
    .cw-monitor { border-radius: 14px; }
    .cw-monitor-head { flex-wrap: wrap; }
    .cw-monitor-id code { display: none; }
    .cw-monitor-screen { height: 210px; }
    .cw-section { padding: 64px 0; }
    .cw-steps, .cw-features { grid-template-columns: 1fr; }
    .cw-steps { gap: 28px; }
    .cw-plans { grid-template-columns: 1fr; }
    .cw-plan + .cw-plan { border-inline-start: 0; border-top: 1px solid var(--rule); }
    .cw-plan-summary, .cw-price { min-height: 0; }
    .cw-final { padding: 56px 0; }
    .cw-marquee-track { gap: 10px; }
    .cw-marquee-track li { padding: 9px; padding-inline-end: 14px; gap: 9px; font-size: 15px; border-radius: 13px; }
    .cw-marquee-track img { width: 26px; height: 26px; }
    .cw-marquee-track li::before { left: 27px; top: 5px; }
    .cw-legal-table td:first-child { white-space: nowrap; }
    .cw-footer p { margin-inline-start: 0; width: 100%; }
}

/* Language switch and the "this page is in Arabic" bar */
/* Language menu */
.cw-langmenu { position: relative; }
.cw-langmenu summary {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 8px; border-radius: 8px;
    list-style: none; cursor: pointer; font-weight: 500; color: var(--ink);
}
.cw-langmenu summary::-webkit-details-marker { display: none; }
.cw-langmenu summary:hover, .cw-langmenu[open] summary { background: var(--paper); }
.cw-langmenu summary svg { color: var(--ink-2); }
.cw-langmenu ul {
    position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 20; min-width: 170px;
    margin: 0; padding: 6px; list-style: none; background: var(--surface);
    border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 16px 32px -16px rgba(15, 30, 22, .35);
}
.cw-langmenu li a { display: block; padding: 9px 12px; border-radius: 8px; text-align: start; }
.cw-nav .cw-langmenu li a:hover { background: var(--paper); text-decoration: none; }
.cw-nav .cw-langmenu li a[aria-current] { color: var(--green-ink); font-weight: 600; text-decoration: none; }
.cw-langbar { margin: 0; padding: 9px var(--gutter); text-align: center; font-size: 15px; background: var(--green-wash); color: var(--ink); }
.cw-langbar a { font-weight: 600; }
.cw-footer-note { color: var(--ink-3); }
.cw-tour-note { margin: 18px 0 0; font-size: 15px; color: var(--ink-3); }

/* Use cases: a list of kinds of jobs */
.cw-cases-page h1 { font-size: clamp(34px, 4.4vw, 52px); max-width: 20ch; }
.cw-case-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.cw-case-list li { border-top: 1px solid var(--rule); min-width: 0; }
.cw-case-list li[aria-current] { border-top-color: var(--green-ink); }
.cw-case-list a { display: grid; gap: 4px; padding: 20px 0 24px; color: var(--ink); text-decoration: none; }
.cw-case-list b { font-weight: 600; font-size: 18px; }
.cw-case-list span { color: var(--ink-2); }
.cw-case-list .cw-case-tag { font: 500 13px/1.5 var(--mono); color: var(--ink-3); justify-self: start; }
.cw-case-list a:hover b { color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; }
.cw-cases-more { margin: 28px 0 0; color: var(--ink-2); max-width: 70ch; }
.cw-cases .cw-case-list { margin-top: 32px; }

/* Use-case page */
.cw-crumbs { margin-bottom: 18px; font-size: 15px; color: var(--ink-3); }
.cw-crumbs a { color: var(--ink-2); }
.cw-case-hero h1 { font-size: clamp(34px, 4.2vw, 54px); }
.cw-check-card {
    margin: 0; padding: 22px 24px 8px; border-radius: 18px; background: var(--screen); color: #e8ecef;
    box-shadow: 0 30px 60px -28px rgba(15, 30, 22, .55);
}
.cw-check-card figcaption { font-size: 14px; color: #9aa4aa; }
.cw-check-card-head { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; font-size: 18px; }
.cw-check-card-head b { font: 500 18px var(--mono); color: #fff; }
.cw-check-card .cw-pill { flex: none; min-width: 58px; text-align: center; padding: 3px 8px; border-radius: 6px;
                          font: 700 12px/1.4 var(--sans); color: #06150c; background: var(--signal); }
.cw-check-card dl { margin: 0; }
.cw-check-card dl div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--screen-line); }
.cw-check-card dt { color: #9aa4aa; font-size: 15px; }
.cw-check-card dd { margin: 0; color: #fff; }
.cw-check-card code { font-size: 15px; color: #9be8b6; }
.cw-check-card dd span { color: #b8c1c6; }
.cw-snippet-name { margin: 0; padding: 12px 20px; font: 500 13.5px var(--mono); color: #9aa4aa; border-bottom: 1px solid var(--screen-line); }
.cw .cw-tips-head { margin-top: 44px; }
.cw-tips { margin: 12px 0 0; padding-inline-start: 22px; max-width: 72ch; color: var(--ink-2); }
.cw-tips li { margin: 8px 0; }

@media (max-width: 1000px) { .cw-case-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
    .cw-case-list { grid-template-columns: 1fr; }
    .cw-check-card dl div { grid-template-columns: 1fr; gap: 2px; }
    .cw-langbar { font-size: 14px; }
}

/* Arabic (right to left). One family for headings and text: Plus Jakarta
   has no Arabic letters, and Arabic must not be letter-spaced. */
[dir="rtl"] {
    --display: "IBM Plex Sans Arabic", "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
    --sans: "IBM Plex Sans Arabic", "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
}
[dir="rtl"] body.cw { line-height: 1.75; }
[dir="rtl"] .cw h1, [dir="rtl"] .cw h2, [dir="rtl"] .cw h3,
[dir="rtl"] .cw-amount, [dir="rtl"] .cw-tool-explain, [dir="rtl"] .cw-channels-head h3 { letter-spacing: 0; font-weight: 700; }
[dir="rtl"] .cw h1 { line-height: 1.3; }
[dir="rtl"] .cw h2 { line-height: 1.35; }
[dir="rtl"] .cw-tool-explain { line-height: 1.5; }
[dir="rtl"] .cw-steps li::before { content: "الخطوة " counter(step); }
[dir="rtl"] .cw-code, [dir="rtl"] .cw-snippet { text-align: left; }
[dir="rtl"] .cw-field-legend { justify-content: flex-start; }
[dir="rtl"] .cw-pill { letter-spacing: 0; }
[dir="rtl"] .cw-runs time { font-family: var(--sans); }
[dir="rtl"] .cw-hero { background: radial-gradient(900px 420px at 12% 18%, rgba(1, 165, 68, .10), transparent 70%), var(--surface); }
[dir="rtl"] .cw-tool-hero { background: radial-gradient(800px 380px at 10% 0%, rgba(1, 165, 68, .09), transparent 70%), var(--surface); }
/* Commands inside running text */
.cw-tips code, .cw-steps code, .cw-features code, .cw-faq code {
    font-size: .86em; padding: 1px 6px; border-radius: 5px; background: rgba(27, 30, 33, .07); white-space: nowrap;
}

/* Narrow phones: logo, language and the sign-up button only (pricing is in the page and footer). */
@media (max-width: 480px) {
    .cw-nav-pricing { display: none; }
    .cw-langmenu summary svg { display: none; }
    .cw-langmenu summary { padding: 0 6px; }
}
@media (max-width: 420px) { .cw-brand img { height: 28px; } .cw-nav { gap: 10px; } }

/* Plan buttons: translated labels can be long, so they wrap. */
.cw-plan-action .cw-btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
/* Line the plans up row by row (name, summary, price, button, limits), so a
   button that wraps in a longer language does not push one list down. */
@supports (grid-template-rows: subgrid) {
    .cw-plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; align-content: start; }
    .cw-plan-action { align-self: start; }
}

/* Public beta bar (CRONWATCH_BETA) */
.cw-betabar { margin: 0; padding: 8px 16px; text-align: center; font-size: 14px; line-height: 1.45;
    background: var(--green-wash); color: var(--ink); border-bottom: 1px solid var(--rule); }
.cw-betabar a { color: var(--green-ink); }
.cw-betatag { display: inline-block; margin-inline-end: 8px; padding: 1px 8px; border-radius: 999px;
    background: var(--signal); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; vertical-align: 1px; }

/* Common cron schedule pages (/cron/) */
.cw-sched-group { margin: 36px 0 12px; font-size: 20px; }
.cw-sched-group:first-child { margin-top: 0; }
.cw-sched-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cw-sched-list a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px;
    border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; }
.cw-sched-list a:hover, .cw-sched-list a:focus-visible { border-color: var(--green-ink); }
.cw-sched-list code { font-family: var(--mono); font-size: 15px; color: var(--green-ink); }
.cw-sched-list span { font-size: 15px; color: var(--ink-2); }
.cw-schedules-link { margin: 22px 0 0; }
.cw-schedules-link a { color: var(--green-ink); font-weight: 500; }
.cw-sched-panel { max-width: 720px; }
.cw-sched-panel .cw-tool-result { min-height: 0; }
.cw-sched-code { display: block; font: 600 clamp(28px, 5vw, 44px)/1.15 var(--mono); color: #fff; letter-spacing: .04em; }
.cw-tool-hero h2 { margin: 40px 0 0; font-size: 22px; }
.cw-tool-hero .cw-code { max-width: 920px; margin-top: 14px; }
[dir="rtl"] .cw-sched-code { text-align: left; }


.cw-muted { color: var(--ink-3); font-size: 15px; }
.cw-section h2 + .cw-sched-list { margin-top: 20px; }
/* Code always reads left to right, also on Arabic pages. */
.cw-code, .cw-code code { direction: ltr; unicode-bidi: isolate; text-align: left; }
