/* The start page: the services' look (report/frontend/src/styles.css and brand.css), so that the page and the
   reports read as one. White and ink with red as the one signal, a heartbeat beside each heading, and Outfit for
   headings and large figures. No scripts and nothing from another host. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/outfit-latin-wght-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f6f6fa;
  --card: #ffffff;
  --line: #e5e4ee;
  --line-strong: #cfcde0;
  --ink: #17162b;
  --ink-2: #56546f;
  --accent: #d9192c;
  --accent-ink: #ffffff;
  --accent-soft: #fdeeef;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Outfit", var(--font-sans);
  --gutter: 16px;
  --pulse-rule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30'%3E%3Cpath fill='none' stroke='%23E11D2E' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' d='M0 15H5L8 5.4L12.8 20.4L15.5 15H34'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #11111b;
    --surface: #1a1a28;
    --card: #151522;
    --line: #2a2a3d;
    --line-strong: #3a3a52;
    --ink: #eceaf7;
    --ink-2: #b0aecb;
    --accent: #ff4d57;
    --accent-ink: #11111b;
    --accent-soft: #3a1a22;
    --pulse-rule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30'%3E%3Cpath fill='none' stroke='%23FF4D57' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' d='M0 15H5L8 5.4L12.8 20.4L15.5 15H34'/%3E%3C/svg%3E");
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* The main action. */
.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.1); }
.btn-large { padding: 13px 26px; font-size: 18px; }
.login { font-family: var(--font-display); font-size: 15px; font-weight: 600; white-space: nowrap; }

/* The top bar, as in the reports. */
.topbar { border-bottom: 1px solid var(--line-strong); }
.topbar .wrap { display: flex; align-items: center; gap: 12px 28px; min-height: 64px; }
.logo { display: block; flex: none; }
.logo img { width: auto; height: 34px; }
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a { padding: 6px 10px; color: var(--ink-2); font-family: var(--font-display); font-size: 15px; text-decoration: none; white-space: nowrap; }
.topnav a:hover { color: var(--ink); }
.account { display: flex; flex: none; align-items: center; gap: 14px; }
.account .login { text-decoration: none; }
.account .login:hover { text-decoration: underline; }
/* The links take about 1010px on one line with the logo and the account links; narrower, they go. */
@media (max-width: 1040px) {
  .topnav { display: none; }
  .account { margin-left: auto; }
}
/* Both account links have to fit beside the logo on a phone. */
@media (max-width: 480px) {
  .logo img { height: 26px; }
}

section { padding-block: 44px; scroll-margin-top: 8px; }
@media (min-width: 861px) {
  section { padding-block: 64px; }
}

/* Headings: a heartbeat where the rule starts. */
/* A heading too long for one line keeps the rule to itself, under the heading. */
.ruled { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 28px; }
.ruled h2 { font-size: 28px; line-height: 1.2; }
.ruled::after {
  content: "";
  flex: 1;
  min-width: 40px;
  height: 30px;
  background:
    var(--pulse-rule) left center / 34px 30px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) 34px center / calc(100% - 34px) 1px no-repeat;
}
.lede { max-width: 62ch; color: var(--ink-2); }

.hero { padding-block: 48px 40px; }
.hero h1 { max-width: 18ch; font-size: clamp(38px, 6.4vw, 64px); line-height: 1.06; letter-spacing: -0.01em; }
.hero .lede { margin-top: 20px; font-size: 19px; }
.hero-action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.hero-action p { color: var(--ink-2); font-size: 15px; }
/* The picture holds cards of its own and a margin as wide as the gutter, so no frame, and they line up with the text. */
.hero figure { margin: 40px -16px 0; }
.hero .shot { border: 0; border-radius: 0; }
.hero figcaption { padding-inline: 16px; }

/* A screenshot in a frame, with its caption under it. */
figure { margin: 0; }
.shot { display: block; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); }
figcaption { margin-top: 8px; color: var(--ink-2); font-size: 14px; }

.columns { display: grid; gap: 28px; }
.columns > * { padding-top: 14px; border-top: 1px solid var(--line-strong); }
.columns h3 { margin-bottom: 8px; font-size: 21px; line-height: 1.25; }
.columns p { color: var(--ink-2); }
@media (min-width: 761px) {
  .columns { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* A benefit: what it is beside how it looks, changing sides as the page goes down. */
.benefit { display: grid; gap: 24px; align-items: start; }
.benefit + .benefit { margin-top: 56px; }
.benefit h3 { margin-bottom: 12px; font-size: clamp(26px, 3vw, 32px); line-height: 1.15; }
.benefit-text > p { color: var(--ink-2); }
.benefit ul { display: grid; gap: 8px; margin-top: 16px; }
.benefit li { position: relative; padding-left: 20px; }
.benefit li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.benefit .small { margin-top: 16px; font-size: 14px; }
@media (min-width: 961px) {
  .benefit { grid-template-columns: 5fr 8fr; gap: 48px; }
  .benefit:nth-of-type(even) { grid-template-columns: 8fr 5fr; }
  .benefit:nth-of-type(even) figure { order: -1; }
  .benefit + .benefit { margin-top: 72px; }
}

.band { background: var(--surface); }

/* You decide what we build next: what customers ask for is one of the things qloudpulse measures itself by
   (docs/adr/0010), so it gets a panel in the red of the main action. */
.decide { display: grid; gap: 24px; padding: 24px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent-soft); }
.decide .lede { color: var(--ink); font-size: 19px; }
.decide-points { display: grid; gap: 12px; margin-top: 18px; }
.decide-points li { position: relative; padding-left: 20px; }
.decide-points li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.decide-points b { font-family: var(--font-display); }
.decide-action { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.decide-action p { color: var(--ink-2); font-size: 15px; }
.decide-action a:not(.btn) { overflow-wrap: anywhere; }
@media (min-width: 861px) {
  .decide { grid-template-columns: 2fr 1fr; align-items: center; gap: 48px; padding: 36px 40px; }
}

.notice { max-width: 72ch; margin-bottom: 28px; padding: 10px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); }

.steps { display: grid; gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; margin-bottom: 4px; color: var(--accent); font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1.1; }
.steps h3 { margin-bottom: 8px; font-size: 21px; line-height: 1.25; }
.steps p { color: var(--ink-2); }
@media (min-width: 761px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* What we read, and what we do not. */
.reads { display: grid; gap: 16px; }
@media (min-width: 761px) {
  .reads { grid-template-columns: 1fr 1fr; }
}
.reads > div { padding: 20px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); }
.reads h3 { margin-bottom: 6px; font-size: 23px; line-height: 1.2; }
.reads > div > p { color: var(--ink-2); }
.reads ul { display: grid; gap: 10px; margin-top: 14px; }
.reads li { position: relative; padding-left: 26px; }
.reads li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.yes li::before { content: "\2713"; content: "\2713" / ""; color: var(--ink-2); }
.no li::before { content: "\2715"; content: "\2715" / ""; color: var(--accent); }
.closing { max-width: 72ch; margin-top: 24px; }

.facts { display: grid; gap: 16px; margin-block: 8px 28px; }
.facts li { padding: 16px 20px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); }
.facts b { display: block; font-family: var(--font-display); font-size: 32px; font-weight: 600; line-height: 1.15; }
.facts span { color: var(--ink-2); }
@media (min-width: 761px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}
.early-text { max-width: 72ch; }
.early-text p + p { margin-top: 12px; }
.early-action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.early-action a:not(.btn) { overflow-wrap: anywhere; }

/* The pricing page: the plans side by side, each a card with its price on top. */
.topnav a[aria-current="page"] { color: var(--ink); }
.plans { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 761px) {
  .plans { grid-template-columns: 1fr 1fr; gap: 24px; }
  .plan-onprem { grid-column: 1 / -1; }
}
@media (min-width: 1061px) {
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan-onprem { grid-column: auto; }
}
.plan { padding: 24px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); }
.plan h2 { font-size: 23px; line-height: 1.2; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 10px; }
.price b { font-family: var(--font-display); font-size: 48px; font-weight: 600; line-height: 1.05; }
.price span { color: var(--ink-2); }
.first-month { display: inline-block; margin-top: 8px; padding: 1px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.plan-for { margin-top: 10px; color: var(--ink-2); }
.plan ul { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.plan li { position: relative; padding-left: 26px; }
.plan li::before { content: "\2713"; content: "\2713" / ""; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.plan .small { margin-top: 16px; color: var(--ink-2); font-size: 14px; }
.soon { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-family: var(--font-display); font-size: 13px; font-weight: 600; line-height: 1.6; vertical-align: 1px; }
.plan-link { margin-top: 16px; font-family: var(--font-display); font-weight: 600; }
.plan h2 .soon { vertical-align: 3px; }
.plans-note { margin-top: 14px; color: var(--ink-2); font-size: 15px; }

/* What qloudpulse adds to the customer's own AWS bill. */
.charges { display: grid; gap: 16px; margin: 24px 0 0; }
@media (min-width: 761px) {
  .charges { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1061px) {
  .charges { grid-template-columns: repeat(4, 1fr); }
}
.charges > div { padding-top: 14px; border-top: 1px solid var(--line-strong); }
.charges dt { margin-bottom: 6px; font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.25; }
.charges dd { margin: 0; color: var(--ink-2); }

footer { border-top: 1px solid var(--line-strong); color: var(--ink-2); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 24px 32px; }
footer img { width: 28px; height: 28px; }
footer p { flex: 1 1 28ch; }
