/* Shared foundation: fonts, tokens, reset, type, buttons, forms, small components.
   --brand is set inline per page: the platform colour, or a business's own on its public pages.
   Everything derived from it (soft, tint, line, deep, glow) is mixed here, so one colour re-themes a page. */

@font-face {
	font-family: "DM Sans Variable"; font-style: normal; font-display: swap; font-weight: 100 1000;
	src: url(../fonts/dm-sans-latin-ext-wght-normal.woff2) format("woff2-variations");
	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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "DM Sans Variable"; font-style: normal; font-display: swap; font-weight: 100 1000;
	src: url(../fonts/dm-sans-latin-wght-normal.woff2) format("woff2-variations");
	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;
}

:root {
	--brand: #6A4BFF;
	--brand-ink: #fff;
	--brand-soft: color-mix(in srgb, var(--brand) 8%, #fff);
	--brand-tint: color-mix(in srgb, var(--brand) 14%, #fff);
	--brand-line: color-mix(in srgb, var(--brand) 30%, #fff);
	--brand-deep: color-mix(in srgb, var(--brand) 80%, #0b0520);
	--brand-glow: color-mix(in srgb, var(--brand) 55%, transparent);
	--ink: #18181A;
	--ink-2: #4B4B55;
	--ink-3: #85868F;
	--paper: #F6F6F9;      /* the quiet background behind cards (dashboard, forms) */
	--tint: #F5F6FF;       /* lavender surface: link cards, soft bands */
	--shade: #F5F5F6;      /* neutral surface: pricing band, footer */
	--card: #fff;
	--line: #E3E4EC;
	--line-2: #EFEFF4;
	--night: #0B0A12;
	--night-2: #16132A;
	--night-ink: #F8F9FA;
	--night-ink-2: #B9B8CC;
	--ok: #0A8F58;
	--ok-soft: #E3F6EC;
	--warn: #9A5B00;
	--warn-soft: #FFF2D9;
	--bad: #C1272D;
	--bad-soft: #FDECEC;
	--radius: 16px;
	--radius-s: 12px;
	--radius-btn: 8px;
	--shadow: 0 1px 2px rgba(24, 24, 26, .04), 0 10px 28px -16px rgba(24, 24, 26, .16);
	--shadow-up: 0 2px 6px rgba(24, 24, 26, .06), 0 22px 44px -22px rgba(24, 24, 26, .28);
	--ease: cubic-bezier(.4, 0, .2, 1);
	--font: "DM Sans Variable", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1280px;
	--top: 72px;           /* height of the fixed header on the marketing site */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 76px); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}
img, svg, canvas, video { max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { line-height: 1.14; letter-spacing: -.025em; font-weight: 500; text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--brand) 22%, transparent); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.ico { flex: none; vertical-align: -4px; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 14px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.grow { flex: 1 1 0; min-width: 0; }
.stack > * + * { margin-top: 14px; }
/* The trap field for robots. Hidden by clipping, not by moving it off-screen: on a right-to-left page "left: -9999px" is inside the scrollable area and makes the page ten thousand pixels wide. */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 24px;
	border: 1px solid transparent; border-radius: var(--radius-btn);
	background: var(--brand); color: var(--brand-ink);
	font-weight: 600; font-size: 16px; line-height: 1.25; text-decoration: none; text-align: center;
	transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { background: var(--brand-deep); box-shadow: 0 10px 22px -12px var(--brand-glow); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .ico { transition: transform .18s var(--ease); }
.btn:hover .ico-go { transform: translateX(3px); }
.btn[disabled], .btn.is-busy { opacity: .5; pointer-events: none; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--tint); border-color: var(--brand-line); box-shadow: none; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); color: var(--brand-deep); box-shadow: none; }
.btn-invert { background: #fff; color: var(--ink); }
.btn-invert:hover { background: #fff; color: var(--ink); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .45); }
.btn-quiet { background: transparent; color: var(--ink-2); padding-inline: 12px; }
.btn-quiet:hover { background: var(--line-2); color: var(--ink); box-shadow: none; transform: none; }
.btn-danger { background: transparent; color: var(--bad); padding-inline: 12px; }
.btn-danger:hover { background: var(--bad-soft); box-shadow: none; transform: none; }
.btn-s { min-height: 38px; padding: 7px 14px; font-size: 14.5px; }
.btn-l { min-height: 52px; padding: 14px 32px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

/* Forms */
.field { display: block; }
.field + .field { margin-top: 16px; }
.field > span, .label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14.5px; }
.field small, .hint { display: block; margin-top: 6px; color: var(--ink-3); font-size: 13.5px; line-height: 1.4; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="tel"],
.field input[type="url"], .field input[type="number"], .field input[type="date"], .field select, .field textarea {
	display: block; width: 100%; min-height: 48px; padding: 11px 14px;
	border: 1px solid var(--line); border-radius: var(--radius-s);
	background: #fff; color: var(--ink); font-size: 16px; /* 16px: smaller makes iPhone Safari zoom the page */
	transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea, textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
	outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent);
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-2 > .field { margin-top: 0; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* Small parts */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-wait { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-off { background: var(--line-2); color: var(--ink-2); }
.tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 8px; background: var(--brand-tint); color: var(--brand-deep); font-size: 13px; font-weight: 600; line-height: 1.4; }
.notice { padding: 13px 16px; border-radius: var(--radius-s); font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.notice-ok { background: var(--ok-soft); color: var(--ok); }
.notice-bad { background: var(--bad-soft); color: var(--bad); }
.notice-info { background: var(--brand-soft); color: var(--ink); font-weight: 500; }
.notice-warn { background: var(--warn-soft, #FFF4DA); color: #7A4B00; font-weight: 500; }
.src { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-3); font-size: 12px; font-weight: 500; line-height: 1.5; vertical-align: 1px; cursor: help; }
.stars { color: #F5A400; letter-spacing: 1px; }
.stars-off { color: #DFE0E8; }
.langs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--line-2); }
.langs a { padding: 5px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: background-color .15s var(--ease), color .15s var(--ease); }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }

.prose > * + * { margin-top: 1em; }
.prose h1 { font-size: clamp(2rem, 4vw, 3rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul { list-style: disc; padding-inline-start: 1.3em; }
.prose ol { list-style: decimal; padding-inline-start: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--brand); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; background: var(--tint); }

/* ---------- Plans: one description for the marketing pages and the dashboard's billing page ---------- */
.plan-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-bottom: 44px; font-weight: 500; }
.plan-facts li { display: inline-flex; align-items: center; gap: 8px; }
.plan-facts .ico { color: var(--ok); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 20px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.plan:hover { transform: translateY(-6px); border-color: var(--brand-line); box-shadow: var(--shadow-up); }
.plan h3 { font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; }
.plan-blurb { min-height: 3em; margin-top: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0; }
/* The price in two parts: the fixed part is the big figure; under it what a result costs, and the most a month can cost. */
.plan-price:has(+ .plan-results) { margin-bottom: 12px; }
.plan-results { display: grid; gap: 8px; margin: 0 0 22px; font-size: 15px; line-height: 1.4; }
.plan-plus { font-weight: 600; }
.plan-cap { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 6px 12px; border-radius: 99px; background: color-mix(in srgb, var(--ok) 12%, #fff); color: color-mix(in srgb, var(--ok) 70%, #000); font-weight: 600; font-size: 14px; }
.plan-cap .ico { flex: none; }
.plan-top .plan-cap { background: rgba(126, 231, 176, .14); color: #7EE7B0; }
.plan-extras { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 14.5px; }
.plan-extras .ico { flex: none; color: var(--brand); }
.plan-top .plan-extras { color: var(--night-ink-2); }
.plan-top .plan-extras .ico { color: #B9A8FF; }
/* Complete: one wide card under the three — the package that holds them all. */
.plan-full { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 36px; align-items: center; margin-top: 34px; padding: 36px 32px 32px; border-radius: 24px; color: var(--night-ink); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--brand) 62%, #000) 0%, var(--night) 58%); box-shadow: 0 40px 70px -44px color-mix(in srgb, var(--brand) 80%, #000); transition: transform .3s var(--ease); }
.plan-full:hover { transform: translateY(-4px); }
.plan-full h3 { font-size: 1.75rem; font-weight: 500; letter-spacing: -.02em; }
.plan-full .plan-blurb { min-height: 0; color: var(--night-ink-2); }
.plan-full .plan-price { margin: 18px 0 10px; }
.plan-full .plan-price span { color: var(--night-ink-2); }
.plan-full .plan-flag { top: -14px; }
.plan-save { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; margin: 0 0 22px; color: #7EE7B0; font-weight: 600; font-size: 15px; }
.plan-save s { color: var(--night-ink-2); font-weight: 500; }
.plan-full .btn { max-width: 320px; }
.plan-full .plan-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 0; padding-top: 0; border-top: 0; }
.plan-full .plan-list .ico { color: #7EE7B0; }
.plan-full.plan-current { outline-color: #7EE7B0; }
.plan-price b { font-size: 3rem; font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.plan-price span { color: var(--ink-2); }
.plan-list { display: grid; gap: 12px; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 15px; }
.plan-list li { display: flex; align-items: flex-start; gap: 10px; }
.plan-list .ico { flex: none; margin-top: 3px; color: var(--ok); }
.plan-flag { position: absolute; top: -14px; inset-inline-start: 28px; padding: 5px 14px; border-radius: 99px; background: linear-gradient(90deg, var(--brand), #D946EF); color: #fff; font-size: 13px; font-weight: 600; }
/* The plan we recommend is the dark one: the eye lands there first. */
.plan-top { border-color: var(--night); background: var(--night); color: var(--night-ink); box-shadow: 0 40px 70px -44px color-mix(in srgb, var(--brand) 80%, #000); }
.plan-top:hover { border-color: color-mix(in srgb, var(--brand) 70%, #fff); }
.plan-top .plan-blurb, .plan-top .plan-price span { color: var(--night-ink-2); }
.plan-top .plan-list { border-color: rgba(255, 255, 255, .14); }
.plan-top .plan-list .ico { color: #7EE7B0; }
.plan-current { outline: 3px solid color-mix(in srgb, var(--ok) 55%, transparent); outline-offset: 2px; }
.plans-note { margin-top: 26px; }
@media (max-width: 1000px) {
	.plans { grid-template-columns: minmax(0, 1fr); }
	.plan-full { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 34px 24px 26px; }
	.plan-full .btn { max-width: none; }
	.plan-blurb { min-height: 0; }
	.plan-facts { justify-content: flex-start; margin-bottom: 32px; }
}

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

@media (max-width: 640px) {
	.plan-full .plan-list { grid-template-columns: minmax(0, 1fr); }
}
