/* Kloudserv site: shared design system for every page.
   Built from Concept L (home). Apple product-page grammar: huge confident type, one idea per screen,
   real objects instead of illustrations, quiet motion that only reveals and moves real things.
   Light theme. Ink on near-white, one accent (Kloudserv amber), one dark band per page at most.
   Radius scale: 28px panels, 18px cards, 12px inner rows, pills for buttons and tags. */

:root {
  --bg: #fbfbfd;
  --panel: #f2f3f5;
  --card: #ffffff;
  --ink: #1d1d1f;
  --body: #424245;
  --muted: #6e6e73;
  --line: #e3e3e8;
  --amber: #f5ad01;
  --amber-ink: #9a6700;
  --amber-soft: #fff5d6;
  --green: #1e7b34;
  --green-soft: #e6f4ea;
  --red: #b42318;
  --red-soft: #fdecea;
  --night: #0f1115;
  --night-2: #1b1e24;
  --night-line: #2a2e35;
  --night-body: #a1a1a6;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 5vw, 48px);
  --wrap: min(1120px, calc(100% - 2 * var(--gutter)));
  color-scheme: light;
}
* { box-sizing: border-box }
html { scroll-behavior: auto }
html.lenis, html.lenis body { height: auto }
.lenis.lenis-smooth { scroll-behavior: auto !important }
html, body { background: var(--bg); color: var(--ink) }
body { margin: 0; font-family: var(--sans); -webkit-font-smoothing: antialiased; line-height: 1.47; font-size: 17px; overflow-x: hidden }
img { max-width: 100%; display: block }
a { color: inherit; text-decoration: none }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0 }
h1, h2, h3, h4 { letter-spacing: -0.025em; text-wrap: balance; font-weight: 600 }
ul, ol { padding: 0; list-style: none }
.wrap { width: var(--wrap); margin-inline: auto }
.narrow { width: min(760px, calc(100% - 2 * var(--gutter))); margin-inline: auto }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase }
.tnum { font-variant-numeric: tabular-nums }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px }
.skip:focus { left: 16px }

/* links and buttons */
.link { color: var(--amber-ink); font-weight: 500; white-space: nowrap }
.link::after { content: " ›" }
@media (max-width: 600px) { .link, .book.inl { white-space: normal } }
.link:hover { text-decoration: underline; text-underline-offset: 3px }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding-inline: 22px; border-radius: 999px; font-weight: 500; font-size: 16px; white-space: nowrap;
  background: var(--ink); color: #fff; border: 0; cursor: pointer; font-family: inherit; transition: transform .25s var(--out), background-color .2s }
.btn:hover { background: #000 }
.btn:active { transform: scale(.98) }
.btn.amber { background: var(--amber); color: #1d1600 }
.btn.amber:hover { background: #ffb915 }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px #d2d2d7 }
.btn.ghost:hover { background: var(--panel) }
a:focus-visible, .btn:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--amber-ink); outline-offset: 3px }
.ctas { display: flex; gap: 26px; align-items: center; flex-wrap: wrap }

/* type */
.eyebrow { font-size: 17px; font-weight: 600; color: var(--amber-ink) }
.lead { font-size: clamp(19px, 1.6vw, 21px); color: var(--body); max-width: 40ch; line-height: 1.42 }
.body { color: var(--body); max-width: 62ch }
.muted { color: var(--muted) }
.h-xl { font-size: clamp(44px, 7vw, 88px); line-height: 1.02; letter-spacing: -0.04em }
.h-l { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -0.035em }
.h-m { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.03em }
.h-s { font-size: clamp(21px, 2vw, 26px); line-height: 1.18 }
.hl { color: var(--amber) }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgb(251 251 253 / .8); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgb(0 0 0 / .06) }
.nav .wrap { height: 52px; display: flex; align-items: center; gap: 28px }
.nav .logo { margin-right: auto; display: flex }
.nav .logo img { height: 18px; width: auto }
.nav a.n { font-size: 13px; color: var(--body) }
.nav a.n:hover, .nav a.n[aria-current="page"] { color: var(--ink) }
.nav a.n[aria-current="page"] { font-weight: 600 }
.nav .btn { height: 30px; padding-inline: 14px; font-size: 13px }
.nav .menu { display: none; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; padding: 8px; margin-right: -8px }
.nav .menu i { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--out), opacity .2s }
.nav .menu i + i { margin-top: 6px }
.nav.open .menu i:first-child { transform: translateY(3.75px) rotate(45deg) }
.nav.open .menu i:last-child { transform: translateY(-3.75px) rotate(-45deg) }
.sheet-nav { display: none }
@media (max-width: 900px) {
  .nav a.n { display: none }
  .nav .menu { display: block }
  .nav .wrap { gap: 14px }
  .sheet-nav { display: block; position: fixed; z-index: 39; inset: 52px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .35s var(--out), visibility 0s .35s }
  .nav.open + .sheet-nav { opacity: 1; transform: none; visibility: visible; transition: opacity .25s, transform .35s var(--out) }
  .sheet-nav a { display: block; padding: 13px 0; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; border-bottom: 1px solid var(--line) }
  .sheet-nav a:last-child { border-bottom: 0 }
}

/* page hero: every inner page opens with one of these */
.phero { padding-top: clamp(64px, 11vh, 120px); padding-bottom: clamp(40px, 7vh, 80px) }
.phero .eyebrow { margin-bottom: 14px }
.phero h1 { font-size: clamp(44px, 7vw, 88px); line-height: 1.02; letter-spacing: -0.04em; max-width: 14ch }
.phero .lead { margin-top: 22px; max-width: 44ch }
.phero .ctas { margin-top: 32px }
.phero.center { text-align: center }
.phero.center h1, .phero.center .lead { margin-inline: auto }
.phero.center .ctas { justify-content: center }

/* sections */
.sec { padding-block: clamp(80px, 13vh, 150px) }
.sec.tight { padding-block: clamp(56px, 9vh, 100px) }
.sec:not(.panel):not(.night) + .sec:not(.panel):not(.night) { padding-top: 0 }
.sec.panel { background: var(--panel) }
.sec.night { background: var(--night); color: #f5f5f7 }
.sec.night .lead, .sec.night .body { color: var(--night-body) }
.sec.night .eyebrow { color: var(--amber) }
.shead { max-width: 760px }
.shead h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.035em; margin-top: 10px }
.shead .lead { margin-top: 18px }
.shead + * { margin-top: clamp(40px, 6vh, 64px) }

/* split: words on one side, a real object on the other */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: center }
.split.rev > :first-child { order: 2 }
.split > * { min-width: 0 }
.split h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; margin-top: 10px }
.split .lead { margin-top: 16px }
.ticks { margin-top: 22px; display: grid; gap: 10px }
.ticks li { position: relative; padding-left: 22px; color: var(--body) }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; border-radius: 2px; background: var(--amber) }
.sec.night .ticks li { color: #d1d1d6 }

/* numbers row */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; border-top: 1px solid var(--line); padding-top: 32px }
.nums b { display: block; font-size: clamp(44px, 5vw, 64px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; font-variant-numeric: tabular-nums }
.nums span { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; max-width: 22ch }

/* cards */
.cards { display: grid; gap: 20px }
.cards.c2 { grid-template-columns: repeat(2, 1fr) }
.cards.c3 { grid-template-columns: repeat(3, 1fr) }
.cards.c4 { grid-template-columns: repeat(4, 1fr) }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0 }
.sec.panel .card { border-color: transparent }
.card h3 { font-size: 21px; line-height: 1.2 }
.card p { color: var(--body); font-size: 16px }
.card .k { font-family: var(--mono); font-size: 12px; color: var(--amber-ink); letter-spacing: .04em }
.card .link { margin-top: auto; padding-top: 8px }
.card.feature { border-color: var(--amber); box-shadow: 0 20px 50px -30px rgb(201 140 0 / .55) }
.sec.night .card { background: var(--night-2); border-color: var(--night-line) }
.sec.night .card p { color: var(--night-body) }
.sec.night .card h3 { color: #f5f5f7 }
.sec.night .card .k { color: var(--amber) }

/* window: the product frame used for every "real object" picture */
.win { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px -40px rgb(30 30 40 / .35); overflow: hidden; min-width: 0 }
.win .bar { height: 38px; display: flex; align-items: center; gap: 7px; padding-inline: 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted) }
.win .bar i { width: 9px; height: 9px; border-radius: 50%; background: #e1e1e6 }
.win .bar span { margin-left: 8px }
.win .in { padding: 22px }
.win h4 { font-size: 18px; line-height: 1.25 }
.win .row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px }
.win .row:first-of-type { border-top: 0 }
.win .row small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px }
.sec.night .win { background: var(--night-2); border-color: var(--night-line); box-shadow: 0 30px 80px -40px rgb(0 0 0 / .8) }
.sec.night .win .bar, .sec.night .win .row { border-color: var(--night-line) }
.sec.night .win .bar i { background: #3a3f47 }

/* tags: status pills */
.tag { display: inline-flex; align-items: center; height: 22px; padding-inline: 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--panel); color: var(--body) }
.tag.amber { background: var(--amber-soft); color: var(--amber-ink) }
.tag.green { background: var(--green-soft); color: var(--green) }
.tag.red { background: var(--red-soft); color: var(--red) }
.tag.ink { background: var(--ink); color: #fff }

/* steps: a numbered sequence (weeks, sprints, how a request moves) */
.steps { display: grid; gap: 0; counter-reset: s }
.steps > li { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line) }
.steps > li:last-child { border-bottom: 1px solid var(--line) }
.steps .when { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--amber-ink); padding-top: 6px }
.steps h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15 }
.steps p { color: var(--body); margin-top: 8px; max-width: 60ch }
.steps .ticks { margin-top: 14px }

/* quote */
.quote { display: grid; gap: 14px }
.quote p { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.28; letter-spacing: -0.02em; font-weight: 500 }
.quote cite { font-style: normal; color: var(--muted); font-size: 15px }
.quote cite b { color: var(--ink); font-weight: 600 }

/* FAQ */
.faq { border-top: 1px solid var(--line) }
.faq details { border-bottom: 1px solid var(--line) }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-size: clamp(18px, 1.7vw, 21px); font-weight: 600; letter-spacing: -0.015em }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .3s var(--out) }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px }
.faq .a { padding: 0 0 24px; color: var(--body); max-width: 68ch; display: grid; gap: 12px }

/* compare table */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--card) }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px }
table.cmp th, table.cmp td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top }
table.cmp thead th { border-top: 0; font-size: 12px; font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 500 }
table.cmp td:first-child { font-weight: 600 }
table.cmp td { color: var(--body) }

/* prose: long-form text pages (privacy, articles) */
.prose { color: var(--body); font-size: 17px; line-height: 1.6 }
.prose > * + * { margin-top: 1em }
.prose h2 { color: var(--ink); font-size: 26px; line-height: 1.2; margin-top: 2em }
.prose h3 { color: var(--ink); font-size: 20px; margin-top: 1.6em }
.prose ul { list-style: disc; padding-left: 1.2em }
.prose ul li + li { margin-top: .4em }
.prose a { color: var(--amber-ink); text-decoration: underline; text-underline-offset: 3px }

/* guide shelf and request modal (shared by home and Resources) */
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px }
.book { display: flex; flex-direction: column; gap: 12px; min-width: 0; text-align: left; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none }
.book .cover { position: relative; aspect-ratio: 816 / 1056; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 50px -26px rgb(30 30 40 / .5); transition: transform .5s var(--out) }
.book:hover .cover, .book:focus-visible .cover { transform: translateY(-6px) }
.book:focus-visible { outline: 2px solid var(--amber-ink); outline-offset: 6px; border-radius: 8px }
.book b { font-size: 17px; line-height: 1.25; font-weight: 600 }
.book .s2 { color: var(--muted); font-size: 14px; margin-top: -6px }
.book .get { color: var(--amber-ink); font-weight: 500; font-size: 15px }
.book .sent { position: absolute; top: 10px; right: 10px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgb(15 17 21 / .45); backdrop-filter: blur(6px) }
.modal[hidden] { display: none !important }
.mbox { width: min(520px, 100%); background: #fff; border-radius: 24px; padding: 30px; display: grid; gap: 14px; box-shadow: 0 40px 100px -30px rgb(0 0 0 / .5); max-height: calc(100vh - 32px); max-height: calc(100svh - 32px); overflow: auto }
.mbox h3 { font-size: 26px; line-height: 1.1 }
.mbox p { color: var(--muted); font-size: 15px }

/* forms (guide modal, book page, scorecard) */
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--body); min-width: 0 }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; padding: 11px 13px; border-radius: 12px; border: 1px solid #d2d2d7; background: #fff; color: var(--ink); width: 100%; min-width: 0 }
.field textarea { min-height: 110px; resize: vertical }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--amber); outline-offset: 0; border-color: var(--amber) }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--body) }
.chk input { margin-top: 3px; width: auto; flex: none; accent-color: var(--amber) }
.formrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px }
button.x { font: inherit; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 15px }
.err { color: var(--red); font-size: 13px }
.fine { font-size: 12px; color: var(--muted) }

/* closing call to action: the last section of every page */
.close { text-align: center; padding: clamp(110px, 16vh, 180px) 0 clamp(80px, 12vh, 130px) }
.close h2 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.04em; max-width: 15ch; margin: 0 auto }
.close .lead { margin: 20px auto 0; text-align: center; max-width: 44ch }
.close .ctas { margin-top: 32px; justify-content: center }
.close .alt { margin-top: 22px; color: var(--muted); font-size: 15px }

/* footer */
footer.site { border-top: 1px solid var(--line); background: var(--panel); font-size: 14px }
footer.site .top { padding-block: 48px 36px; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px }
footer.site .brand img { height: 18px; width: auto }
footer.site .brand p { margin-top: 14px; color: var(--muted); max-width: 30ch; font-size: 14px }
footer.site h4 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 12px }
footer.site ul { display: grid; gap: 9px }
footer.site ul a { color: var(--body) }
footer.site ul a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px }
footer.site .bottom { border-top: 1px solid var(--line); padding-block: 18px 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--muted); font-size: 12px }

/* reveal on scroll (content is visible without JS) */
.rise { transition: opacity 1.1s cubic-bezier(.22, 1, .36, 1), transform 1.3s cubic-bezier(.22, 1, .36, 1) }
.js .rise:not(.in) { opacity: 0; transform: translateY(28px) }

@media (max-width: 900px) {
  .split, .split.rev { grid-template-columns: 1fr }
  .split.rev > :first-child { order: 0 }
  .cards.c3, .cards.c4 { grid-template-columns: 1fr 1fr }
  .nums { grid-template-columns: 1fr 1fr; row-gap: 36px }
  .shelf { grid-template-columns: 1fr 1fr }
  footer.site .top { grid-template-columns: 1fr 1fr }
  footer.site .brand { grid-column: 1 / -1 }
}
@media (max-width: 600px) {
  .cards.c2, .cards.c3, .cards.c4 { grid-template-columns: 1fr }
  .steps > li { grid-template-columns: 1fr; gap: 8px }
  .two { grid-template-columns: 1fr }
  .card { padding: 22px }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .book .cover, .btn { transition: none }
}
