/* Cuedis website. Night (Cuedis learns while the shop is closed) above, daylight (the briefing) below. */
:root {
  --night: #15123B; --night-2: #231D5E; --night-ink: #E9E7FF; --night-muted: #ABA6D6;
  --lamp: #F6B93B; --lamp-soft: #FFF3D6;
  --violet: #6C4CF5; --violet-ink: #4B2FD1; --violet-soft: #EEEAFE;
  --paper: #F5F5FA; --surface: #FFFFFF; --ink: #1B1A2E; --muted: #5C5A72; --subtle: #7B7990; --line: #E2E1EC;
  --ok: #0B7A4B; --ok-bg: #E8F7EF; --bad: #B42318; --bad-bg: #FEF0EF; --warn: #9A5B00; --warn-bg: #FFF6E0;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--violet-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--lamp); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 12px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(245, 245, 250, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top.on-night { background: rgba(21, 18, 59, .92); border-bottom-color: rgba(255, 255, 255, .08); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 21px var(--display); color: var(--ink); text-decoration: none; }
.on-night .brand { color: #fff; }
.mark { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 18%, transparent 19%), var(--lamp); box-shadow: 0 0 0 4px rgba(246, 185, 59, .18); }
.brand.small { font-size: 16px; }
.brand.small .mark { width: 16px; height: 16px; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a, .link { color: var(--muted); text-decoration: none; font: 500 15px var(--body); background: none; border: 0; padding: 0; cursor: pointer; }
.nav a:hover, .link:hover { color: var(--ink); }
.on-night .nav a, .on-night .link { color: var(--night-muted); }
.on-night .nav a:hover, .on-night .link:hover { color: #fff; }
.nav a.btn { color: var(--night); }
.inline { display: inline; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font: 600 15px var(--body); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--lamp); border-color: var(--lamp); color: var(--night); }
.btn.primary:hover { background: #FFC955; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn.ghost:hover { border-color: #fff; }
.btn.big { padding: 14px 24px; font-size: 16px; }
.btn.small { padding: 7px 14px; font-size: 14px; }
.btn.danger { color: var(--bad); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }

/* night: the hero */
.night { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: var(--night-ink); position: relative; overflow: hidden; }
.night::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(246, 185, 59, .55), transparent); pointer-events: none; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.hero h1 { color: #fff; max-width: 12ch; }
.lead { font-size: 19px; color: var(--night-muted); max-width: 56ch; }
.fine { font-size: 14px; color: var(--subtle); }
.night .fine { color: var(--night-muted); margin-top: 18px; }
.center { text-align: center; }

/* the briefing on a phone: the one memorable thing */
.phone { margin: 0; justify-self: end; width: min(400px, 100%); background: #0F0C2E; border-radius: 34px; padding: 12px; box-shadow: 0 40px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06); }
.phone-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; color: #fff; font-size: 14px; }
.phone-bar small { display: block; color: var(--night-muted); font-size: 12px; }
.phone-bar time { margin-left: auto; color: var(--night-muted); font-size: 13px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 16%, transparent 17%), var(--lamp); flex: none; }
.chat { background: #DCD8F2; border-radius: 24px; padding: 14px 12px 16px; display: grid; gap: 10px; }
.bubble { background: #fff; color: var(--ink); border-radius: 16px 16px 16px 4px; padding: 11px 13px 18px; font-size: 14px; line-height: 1.45; position: relative; max-width: 92%; box-shadow: 0 1px 1px rgba(27, 26, 46, .08); }
.bubble p { margin: 0 0 6px; }
.bubble.me { justify-self: end; background: #E4F7D6; border-radius: 16px 16px 4px 16px; }
.bubble .item { padding-left: 14px; position: relative; }
.bubble .item::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--subtle); }
.bubble .item.warn::before { background: var(--lamp); box-shadow: 0 0 0 3px var(--lamp-soft); }
.bubble .list { font-variant-numeric: tabular-nums; }
.stamp { position: absolute; right: 10px; bottom: 4px; font-size: 11px; color: var(--subtle); }
@media (prefers-reduced-motion: no-preference) {
  .chat .bubble { animation: arrive .5s ease both; }
  .chat .bubble:nth-child(2) { animation-delay: .9s; }
  .chat .bubble:nth-child(3) { animation-delay: 1.6s; }
  @keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* daylight bands */
.band { padding: 88px 0; }
.band.light { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { font-size: 18px; color: var(--muted); max-width: 62ch; margin-bottom: 36px; }

/* six months in one shop */
.strip { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; padding-top: 34px; }
.strip::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--line); }
.strip li { position: relative; }
.strip li::before { content: ""; position: absolute; top: -30px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 5px var(--lamp-soft); }
.strip time { display: block; font: 700 15px var(--display); color: var(--warn); margin-bottom: 4px; }
.strip strong { display: block; font: 700 19px/1.25 var(--display); margin-bottom: 6px; }
.strip span { color: var(--muted); font-size: 15px; }
.strip-axis { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--subtle); font-size: 13px; }

/* how it works */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.steps li { counter-increment: step; padding-top: 58px; position: relative; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font: 800 19px var(--display); background: var(--night); color: var(--lamp); }
.steps p, .facts-row p { color: var(--muted); }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 36px; border-top: 1px solid var(--line); }
.facts-row h3 { font-size: 17px; }
.facts-row p { font-size: 15px; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); overflow: hidden; }
.plan { padding: 32px 30px; display: flex; flex-direction: column; gap: 6px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan.main { background: var(--night); color: var(--night-ink); }
.plan.main h3 { color: #fff; }
.plan.main li { color: var(--night-muted); }
.plan.main .fine { color: var(--night-muted); }
.price { font: 800 38px var(--display); margin: 4px 0 8px; }
.price small { font: 500 14px var(--body); color: var(--subtle); }
.plan.main .price small { color: var(--night-muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; flex: 1; align-content: start; }
.plan li { padding-left: 22px; position: relative; color: var(--muted); }
.plan li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 5px; border-left: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: rotate(-45deg); }
.plan.main li::before { border-color: var(--lamp); }
.plan .btn { align-self: flex-start; }
.band > .wrap > .fine.center { margin-top: 18px; }
.plan .tiers { font-size: 15px; line-height: 1.5; margin: 6px 0 4px; }
.discounts { margin-top: 28px; font-weight: 500; }

/* download and cloud */
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.mini-steps { padding-left: 20px; color: var(--muted); display: grid; gap: 8px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.band.light .panel { background: var(--paper); }
.band:not(.light) .panel { background: var(--surface); }
.key { font: 700 22px var(--mono); letter-spacing: .02em; background: var(--surface); border: 1.5px dashed var(--violet); border-radius: 14px; padding: 14px 16px; margin: 8px 0 18px; word-break: break-all; }

/* forms (also account and admin pages) */
form.stack, .stack { display: grid; gap: 14px; }
.two { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
input, select, textarea { font: 16px var(--body); padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 4px var(--violet-soft); }
input[type=checkbox] { width: auto; }
textarea.code, .code { font-family: var(--mono); font-size: 13px; word-break: break-all; }
pre.code { white-space: pre-wrap; background: var(--violet-soft); padding: 14px; border-radius: 12px; margin: 0; }

/* inner pages: account, admin, sign-in, guide */
.main { padding-top: 40px; padding-bottom: 72px; display: grid; gap: 20px; }
.flash-wrap { padding-top: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); font-size: 13px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stat { font: 800 32px var(--display); }
.banner { padding: 13px 16px; border-radius: 14px; font-size: 15px; }
.banner.ok { color: var(--ok); background: var(--ok-bg); }
.banner.bad { color: var(--bad); background: var(--bad-bg); }
.banner.warn { color: var(--warn); background: var(--warn-bg); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--subtle); font-weight: 600; font-size: 13px; }
.table-wrap { overflow-x: auto; }
.badge { display: inline-block; font: 600 12px var(--body); padding: 3px 9px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-ink); vertical-align: middle; }
.badge.free { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
dl.facts dt { color: var(--subtle); }
dl.facts dd { margin: 0; }
.ticks { padding-left: 18px; }

/* footer */
.foot { background: var(--night); color: var(--night-muted); padding: 36px 0 44px; font-size: 14px; }
.foot-row { display: flex; gap: 18px 28px; align-items: center; flex-wrap: wrap; }
.foot .brand { color: #fff; }
.foot-nav { display: flex; gap: 18px; margin-left: auto; }
.foot a { color: var(--night-muted); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .subtle { color: var(--night-muted); }

/* the user guide */
.guide-page { max-width: 860px; }
.guide h1 { font-size: clamp(34px, 5vw, 48px); }
.guide h2 { font-size: 26px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
.guide .lead { color: var(--muted); }
.guide-toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 18px; margin: 18px 0; }
.guide figure { margin: 18px 0; }
.guide figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; }
.guide figcaption { font-size: 14px; color: var(--subtle); margin-top: 6px; }
.guide .tip { background: var(--lamp-soft); padding: 12px 16px; border-radius: 12px; }
.guide code { font-family: var(--mono); font-size: 14px; background: var(--violet-soft); padding: 1px 6px; border-radius: 6px; }
.guide dt { font-weight: 600; margin-top: 12px; }
.guide dd { margin: 2px 0 0; color: var(--muted); }

/* narrower screens */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 64px; gap: 40px; }
  .phone { justify-self: center; }
  .strip { grid-template-columns: 1fr 1fr; }
  .steps, .facts-row { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .nav { gap: 14px; }
  .nav a:not(.btn) { display: none; }
  .band { padding: 64px 0; }
  .strip { grid-template-columns: 1fr; padding-top: 0; padding-left: 28px; }
  .strip::before { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; }
  .strip li::before { top: 4px; left: -28px; }
  .strip-axis { display: none; }
  .steps, .facts-row { grid-template-columns: 1fr; }
  .card, .panel { padding: 20px; }
  .foot-nav { margin-left: 0; }
}

/* inner pages fit the screen; headings in cards stay modest */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main, body > section:last-of-type { flex: 1 0 auto; }
.main h1 { font-size: clamp(30px, 4vw, 40px); }
.card h1 { font-size: 30px; }
.main > form.card[style*="max-width"] { margin: 24px auto; width: 100%; }
.main form.card.stack { max-width: 760px; }

/* logo: the C with an amber end */
.mark { width: 26px; height: 26px; border-radius: 0; background: none; box-shadow: none; color: var(--violet); }
.on-night .mark, .foot .mark { color: #E9E7FF; }
.brand.small .mark { width: 20px; height: 20px; }

/* hero, v3 */
.tagline { font: 600 17px var(--display); color: var(--lamp); margin-bottom: 14px; }
.hero h1 { max-width: 16ch; font-size: clamp(36px, 5vw, 58px); }
.lead strong { color: #fff; font-weight: 600; }
.hero { padding-bottom: 48px; }
.brief { display: none; }
.brief.is-on { display: block; }
@media (prefers-reduced-motion: no-preference) { .brief.is-on .bubble { animation: arrive .5s ease both; } }
.chat .bubble.me { animation-delay: 0s; }
.phone figcaption { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 4px; color: var(--night-muted); font-size: 13px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .25); cursor: pointer; }
.dots button[aria-pressed="true"] { background: var(--lamp); }
.story-pic { padding-bottom: 0; }
.story-pic img { display: block; width: 100%; height: auto; border-radius: 22px 22px 0 0; }
.night::after { display: none; }

/* what is Cuedis */
.what { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.memory-pic { width: 100%; height: auto; border-radius: 24px; position: sticky; top: 96px; }
.traits { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin: 0 0 26px; }
.traits h3 { font-size: 18px; margin: 0 0 4px; }
.traits p { margin: 0; color: var(--muted); font-size: 15px; }
.punch { font: 600 20px/1.4 var(--display); border-left: 4px solid var(--lamp); padding-left: 16px; max-width: 46ch; }

/* tests and industries */
.tests { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.tests > div { padding: 22px 22px 0 0; }
.tests > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.tests p { color: var(--muted); font-size: 15px; }
.industries { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.industries li { background: var(--surface); padding: 18px 18px 20px; }
.industries strong { display: block; font: 700 16px/1.3 var(--display); margin-bottom: 6px; }
.industries span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.tested { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--lamp-soft); color: var(--warn); font: 600 11px var(--body); vertical-align: 2px; }

@media (max-width: 900px) {
  .what { grid-template-columns: 1fr; gap: 28px; }
  .memory-pic { position: static; max-width: 420px; }
  .traits { grid-template-columns: 1fr; }
  .tests { grid-template-columns: 1fr 1fr; }
  .tests > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .industries { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .tests { grid-template-columns: 1fr; }
  .tests > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .industries { grid-template-columns: 1fr; }
  .story-pic img { border-radius: 14px 14px 0 0; }
}

/* ------------------------------------------------------------------ blog */
.blog-head { max-width: 760px; }
.blog-head h1 { font-size: clamp(36px, 5vw, 52px); }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 760px; }
.post-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px;
  color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--violet); transform: translateY(-1px); }
.post-card h2 { font-size: 22px; margin: 6px 0 8px; }
.post-card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.post-meta { font-size: 13.5px; color: var(--subtle); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.post-meta a { color: var(--subtle); }
.post { max-width: 720px; width: 100%; margin: 0 auto; }
.post > h1 { font-size: clamp(32px, 4.6vw, 46px); margin: 10px 0 10px; }
.byline { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.post-body { font-size: 17.5px; line-height: 1.7; color: var(--ink); }
.post-body h2 { font-size: 26px; margin: 38px 0 12px; scroll-margin-top: 80px; }
.post-body h3 { font-size: 20px; margin: 28px 0 8px; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 18px; }
.post-body li { margin: 4px 0; }
.post-body a { color: var(--violet); }
.post-body blockquote { margin: 0 0 18px; padding: 4px 18px; border-left: 3px solid var(--lamp); color: var(--muted); }
.post-body code { font-family: var(--mono); font-size: .88em; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.post-body pre { background: var(--night); color: var(--night-ink); border-radius: 14px; padding: 16px 18px; overflow-x: auto; margin: 0 0 20px; line-height: 1.5; }
.post-body pre code { background: none; border: 0; padding: 0; color: inherit; font-size: 14.5px; }
.post-body table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15.5px; display: block; overflow-x: auto; }
.post-body th, .post-body td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body th { font-weight: 600; background: var(--paper); }
.post-cta { margin-top: 44px; background: var(--night); color: var(--night-ink); border-radius: 20px; padding: 26px 28px; }
.post-cta h2 { font-size: 24px; color: #fff; }
.post-cta p { color: var(--night-muted); margin: 0; }
.post-more { margin-top: 36px; }
.post-more h2 { font-size: 20px; }
.post-more ul { padding-left: 18px; margin: 0; }
.post-more li { margin: 6px 0; }
.post-more a { color: var(--violet); }

/* cookie bar (Google Analytics only after OK) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 640px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(21, 18, 59, .14); }
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 15px; }
.consent-actions { display: flex; align-items: center; gap: 10px; font-size: 14px; }
