/* kernable.com/cloud/: a product page, built differently from the kernel's homepage on purpose
   (founder): a light centered hero with the Cloud's picture, centered section heads, an icon grid,
   steps on a line, a plan card and questions. Same colours and type as app.css. */

.cloud-page { --narrow: 760px; }
.center-head { text-align: center; max-width: var(--narrow); margin: 0 auto 48px; }
.center-head .eyebrow { margin-bottom: 14px; }
.center-head p { margin: 14px auto 0; font-size: 1.05rem; line-height: 1.65; }

/* The hero: light, centered, the picture below it in a dark frame. */
.cloud-hero { padding: 96px 0 72px; text-align: center; border-bottom: 1px solid var(--line); background:
  radial-gradient(50% 60% at 50% 0%, rgba(11, 60, 255, 0.07), transparent 70%), var(--bg); }
.cloud-hero h1 { font: 800 clamp(2.4rem, 6vw, 4.2rem)/1.02 var(--display); letter-spacing: -0.045em; margin: 0 auto 22px; max-width: 900px; }
.cloud-hero .lead { font-size: 1.15rem; line-height: 1.65; max-width: 640px; margin: 0 auto; }
.cloud-hero .actions { justify-content: center; }
.cloud-visual { position: relative; margin: 56px auto 0; max-width: 1000px; height: 380px; border: 1px solid var(--line-strong); overflow: hidden; }
.cloud-visual::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--gradient); }
.cloud-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin: 28px 0 0; padding: 0; list-style: none; font: 400 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.trust li::before { content: "✓"; color: var(--ok); margin-right: 8px; }

/* What's included: a grid of icons. */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { border: 1px solid var(--line); background: var(--panel); padding: 26px 24px 24px; }
.feature .icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--bg); color: var(--accent); margin-bottom: 18px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature strong { display: block; font: 700 1.1rem/1.3 var(--display); letter-spacing: -0.01em; }
.feature p { margin: 8px 0 0; font-size: 0.95rem; line-height: 1.55; }

/* How it works: numbered steps on a line. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 22px; height: 2px; background: var(--gradient); opacity: 0.5; }
.step { position: relative; text-align: center; counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); color: var(--accent); font: 800 1.15rem/1 var(--display); position: relative; }
.step strong { display: block; font: 700 1.15rem/1.3 var(--display); letter-spacing: -0.01em; }
.step p { margin: 8px auto 0; max-width: 300px; font-size: 0.95rem; line-height: 1.55; }
.step code { white-space: normal; font-size: 0.82em; }

/* The plan card. */
.plan { max-width: 880px; margin: 0 auto; border: 1px solid var(--line-strong); background: var(--panel); position: relative; }
.plan::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--gradient); }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; padding: 30px 32px 22px; border-bottom: 1px solid var(--line); }
.plan-head strong { font: 800 1.6rem/1.1 var(--display); letter-spacing: -0.03em; }
.plan-head span { font: 400 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.plan-head .plan-price { font: 800 1.6rem/1.1 var(--display); letter-spacing: -0.03em; text-transform: none; color: var(--ink); margin-right: 8px; }
.plan-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 26px 32px 8px; }
.plan-body h3 { font: 500 11.5px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 12px; }
.plan-body ul { list-style: none; margin: 0; padding: 0; }
.plan-body li { padding: 7px 0 7px 26px; position: relative; font-size: 0.95rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
.plan-body li:first-child { border-top: 0; }
.plan-body .yes li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 600; }
.plan-body .not li::before { content: "–"; position: absolute; left: 4px; color: var(--ink-mute); }
.plan .actions { padding: 18px 32px 30px; margin: 0; }
.plan-more { margin-top: 28px; }
.plan-more::before { background: var(--line-strong); }
.plan-more .plan-head strong { font-size: 1.3rem; }
.plan-body p { margin: 0; color: var(--ink-soft); }

/* Questions. */
.faq { max-width: var(--narrow); margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 700 1.08rem/1.35 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 1.5rem/1 var(--sans); color: var(--accent); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; font-size: 0.97rem; line-height: 1.65; }

/* The closing call: light and centered too. */
.cloud-cta { text-align: center; padding: 96px 0; border-top: 1px solid var(--line); background:
  radial-gradient(45% 70% at 50% 100%, rgba(122, 77, 255, 0.08), transparent 70%), var(--bg); }
.cloud-cta h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); letter-spacing: -0.035em; }
.cloud-cta p { max-width: 560px; margin: 16px auto 0; }
.cloud-cta .actions { justify-content: center; }

@media (max-width: 900px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .cloud-hero { padding: 64px 0 48px; }
  .cloud-visual { height: 280px; margin-top: 40px; }
  .features, .steps, .plan-body { grid-template-columns: 1fr; }
  .steps { gap: 36px; }
  .steps::before { display: none; }
  .plan-head, .plan-body, .plan .actions { padding-left: 20px; padding-right: 20px; }
}

/* The idea: three promises, from your network to everywhere else, and what we see. */
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line-strong); background: var(--panel); position: relative; }
.promises::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--gradient); }
.promise { padding: 30px 28px 28px; border-left: 1px solid var(--line); position: relative; }
.promise:first-child { border-left: 0; }
.promise + .promise::before { content: "→"; position: absolute; left: -13px; top: 28px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); color: var(--accent); font-size: 13px; }
.promise .where { display: block; font: 500 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.promise strong { display: block; font: 700 1.2rem/1.3 var(--display); letter-spacing: -0.01em; }
.promise p { margin: 10px 0 0; font-size: 0.95rem; line-height: 1.6; }
.sees { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 880px; margin: 40px auto 0; }
.sees h3 { font: 500 11.5px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 12px; }
.sees ul { list-style: none; margin: 0; padding: 0; }
.sees li { padding: 7px 0 7px 26px; position: relative; font-size: 0.95rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
.sees li:first-child { border-top: 0; }
.sees .yes li::before { content: "○"; position: absolute; left: 2px; color: var(--ink-mute); }
.sees .not li::before { content: "✕"; position: absolute; left: 2px; color: var(--ok); font-weight: 600; }
@media (max-width: 900px) {
  .promises { grid-template-columns: 1fr; }
  .promise { border-left: 0; border-top: 1px solid var(--line); }
  .promise:first-child { border-top: 0; }
  .promise + .promise::before { content: "↓"; left: 28px; top: -13px; }
  .sees { grid-template-columns: 1fr; gap: 24px; }
}
.sees + .more { text-align: center; margin: 32px 0 0; font-weight: 500; }

/* The hero's key line and the trust strip's key. */
.cloud-hero .sealed-line { display: inline-flex; align-items: center; gap: 10px; margin: 0 auto 22px; padding: 10px 18px; border: 1px solid var(--accent); background: var(--accent-soft, rgba(11, 60, 255, 0.06)); color: var(--accent); font: 600 1.02rem/1.4 var(--sans); text-align: left; }
.cloud-hero .sealed-line svg { flex: none; width: 20px; height: 20px; }
.trust li.key { color: var(--accent); font-weight: 600; }
.trust li.key::before { content: none; }
.trust li.key svg { width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; }

/* Use cases: manufacturing with its picture, then two more. */
.uc-main { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 48px; align-items: start; border: 1px solid var(--line-strong); background: var(--panel); padding: 34px 32px; position: relative; }
.uc-main::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--gradient); }
.uc-main .where, .uc-card .where { display: block; font: 500 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.uc-main h3, .uc-card h3 { margin: 0; font: 700 1.3rem/1.3 var(--display); letter-spacing: -0.015em; }
.uc-main p, .uc-card p { margin: 12px 0 0; font-size: 0.97rem; line-height: 1.6; }
.uc-main ul { list-style: none; margin: 0; padding: 0; }
.uc-main li { padding: 7px 0 7px 24px; position: relative; font-size: 0.95rem; line-height: 1.55; color: var(--ink-soft); border-top: 1px solid var(--line); }
.uc-main li:first-child { border-top: 0; }
.uc-main li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 600; }
.uc-gain { font-weight: 600; color: var(--ink); }
.uc-main .uc-gain { margin-top: 16px; }
.uc-figure { grid-column: 1 / -1; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.uc-diagram { max-width: 960px; margin: 0 auto; }
.uc-legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin: 14px 0 0; font: 400 12px/1.4 var(--mono); color: var(--ink-mute); }
.uc-legend > span { display: inline-flex; align-items: center; gap: 8px; margin: 0 8px; }
.uc-legend i { flex: none; display: inline-block; width: 28px; height: 0; border-top: 2px solid var(--line-strong); }
.uc-legend i.dashed { border-top: 2px dashed var(--accent); }
.uc-figure { min-width: 0; overflow-x: auto; }
.topbar nav a { white-space: nowrap; }
.uc-diagram { display: block; width: 100%; min-width: 660px; height: auto; }
.uc-diagram text { font: 13px var(--sans); fill: var(--ink); text-anchor: middle; }
.uc-diagram text.sub { font-size: 11px; fill: var(--ink-mute); }
.uc-diagram .uc-zone { fill: none; stroke: var(--line-strong); stroke-dasharray: 4 4; }
.uc-diagram .uc-zone.cloud { stroke: var(--accent); }
.uc-diagram .uc-zone-label { font: 500 10px var(--mono); letter-spacing: 0.08em; fill: var(--ink-mute); text-anchor: start; }
.uc-diagram .uc-box rect { fill: var(--bg); stroke: var(--line-strong); }
.uc-diagram .uc-box.main rect { stroke: var(--ink); stroke-width: 1.5; }
.uc-diagram .uc-box.relay rect { stroke: var(--accent); }
.uc-diagram .uc-line { fill: none; stroke: var(--line-strong); stroke-width: 1.6; }
.uc-diagram .uc-line.sealed { stroke: var(--accent); stroke-dasharray: 5 4; }
.uc-diagram .uc-head { fill: var(--ink-mute); }
.uc-diagram .uc-note { font: 500 10.5px var(--mono); fill: var(--ink-mute); }
.uc-diagram .uc-note.sealed { fill: var(--accent); }
.uc-more { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.uc-card { border: 1px solid var(--line); background: var(--panel); padding: 28px 28px 26px; }
@media (max-width: 960px) {
  .uc-main { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .uc-main, .uc-card { padding: 24px 20px; }
  .uc-more { grid-template-columns: 1fr; }
  .cloud-hero .sealed-line { font-size: 0.95rem; }
}
.uc-own { margin: 14px 0 0; font-size: 0.88rem; color: var(--ink-mute); }
.uc-diagram .uc-cloud { fill: #0b1122; stroke: url(#uc-grad); stroke-width: 3; }
.uc-diagram .uc-cloud-title { font: 800 22px var(--display); letter-spacing: -0.02em; fill: #ffffff; }
.uc-diagram .uc-cloud-sub { font: 500 10.5px var(--mono); letter-spacing: 0.08em; fill: #8fa0c4; text-transform: uppercase; }
.uc-diagram .uc-relay rect { fill: #0b3cff; stroke: #5b8cff; }
.uc-diagram .uc-relay text { fill: #ffffff; font-weight: 600; }
.uc-diagram .uc-relay text.sub { fill: #c9d6ff; font-weight: 400; }
.uc-diagram .uc-chip rect { fill: rgba(255, 255, 255, 0.05); stroke: #2b3657; }
.uc-diagram .uc-chip circle { fill: #2fd5a0; }
.uc-diagram .uc-chip text { font-size: 11.5px; fill: #dbe3f5; text-anchor: start; }
.uc-diagram .uc-chip.later rect { stroke: #7a4dff; stroke-dasharray: 4 3; fill: rgba(122, 77, 255, 0.10); }
.uc-diagram .uc-chip.later circle { fill: #a98bff; }
.uc-diagram .uc-chip.later text { fill: #c9b8ff; }
.uc-diagram .uc-line.managed { stroke: var(--ink-mute); stroke-dasharray: 1.5 4; stroke-linecap: round; }
.uc-legend i.dotted { border-top: 2px dotted var(--ink-mute); }
.uc-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 960px; margin: 24px auto 0; }
.uc-vs > div { border: 1px solid var(--line); padding: 16px 18px; background: var(--bg); }
.uc-vs > div.us { border-color: var(--accent); }
.uc-vs h4 { margin: 0 0 6px; font: 500 11.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.uc-vs .us h4 { color: var(--accent); }
.uc-vs p { margin: 0; font-size: 0.93rem; line-height: 1.55; }
@media (max-width: 720px) { .uc-vs { grid-template-columns: 1fr; } }
.uc-diagram .uc-box.reader rect { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 3; }

/* The contract texts (terms, DPA, privacy), rendered from Markdown. */
.prose.legal h3 { font-size: 1rem; margin: 24px 0 8px; }
.prose.legal ul { margin: 0 0 12px; padding-left: 20px; line-height: 1.7; }
.prose.legal table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 8px 0 20px; display: block; overflow-x: auto; }
.prose.legal th, .prose.legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.5; }
.prose.legal th { background: var(--panel); font-weight: 600; }
.prose.legal hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
