/* Klarflow website. Direction: design option C ("Three roles") with the menu bar stage from option A.
   Orange is used only for the K, primary buttons and the active role segment. */

:root {
  --orange: #FF6A2B;
  --orange-hover: #FF7D45;
  --ink: #14171C;
  --ink-line: #2B313A;

  /* Ink areas look the same in both schemes. */
  --hero-bg: #14171C;
  --hero-text: #FFFFFF;
  --hero-text-2: #B4BAC4;
  --hero-text-3: #9AA2AD;
  --hero-motif: #262B33;
  --band-ink: #14171C;

  /* Light bands. */
  --mist: #EEF1F4;
  --white: #FFFFFF;
  --text: #14171C;
  --text-2: #4F5763;
  --line: rgba(20, 23, 28, .14);
  --plan-ink: #14171C;
  --footer-bg: #EEF1F4;
  --footer-text: #4F5763;
  --desk: #DCE1E7;
  --bar: rgba(255, 255, 255, .62);
  --bar-line: rgba(20, 23, 28, .08);
  --bar-ink: rgba(20, 23, 28, .82);
  --bar-active: rgba(20, 23, 28, .10);
  --oit-filter: brightness(0);
  --focus: #14171C;

  --wrap: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --band-ink: #0D0F12;
    --mist: #1D2128;
    --white: #181B21;
    --text: #F2F4F7;
    --text-2: #AAB1BC;
    --line: rgba(255, 255, 255, .13);
    --plan-ink: #0D0F12;
    --footer-bg: #101216;
    --footer-text: #A3AAB5;
    --desk: #2A2F37;
    --bar: rgba(255, 255, 255, .07);
    --bar-line: rgba(255, 255, 255, .06);
    --bar-ink: rgba(238, 241, 244, .86);
    --bar-active: rgba(255, 255, 255, .14);
    --oit-filter: brightness(0) invert(1);
    --focus: #F2F4F7;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--footer-bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 0 24px; }
@media (max-width: 400px) { .wrap { padding: 0 16px; } }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 12px; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
.lead, .points p, .steps p { text-wrap: pretty; }
h2 { font-size: clamp(32px, 4.6vw, 52px); }
h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
kbd { font: 600 15px/1 var(--sans); padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line); letter-spacing: .04em; white-space: nowrap; }

/* Ink areas: white focus ring. */
.head-bar, .hero, .ink, .offer, dialog.video { --focus: #FFFFFF; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 12px;
  font: 600 17px/1.15 var(--sans); text-decoration: none; letter-spacing: -0.01em; text-align: center;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-quiet { color: #fff; border-color: #4A525E; }
.btn-quiet:hover { border-color: #7A8290; }
.btn-quiet svg { flex: none; }

/* ---------- Header ---------- */
.head-bar { background: var(--hero-bg); color: var(--hero-text); }
.top { display: flex; align-items: center; gap: 32px; height: 76px; }
.top .logo { flex: none; }
.top .logo img { width: 132px; height: auto; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: 15px; }
.top .sections { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.top .sections a { text-decoration: none; color: var(--hero-text-2); }
.top .sections a:hover { color: #fff; }
.top .btn { min-height: 38px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.lang { display: inline-flex; align-items: center; gap: 6px; color: var(--hero-text-2); }
.lang a { color: var(--hero-text-2); text-decoration: none; padding: 6px 2px; }
.lang a:hover { color: #fff; text-decoration: underline; }
.lang .lang-current { color: #fff; font-weight: 600; }
.lang-sep { opacity: .6; }
@media (max-width: 1020px) { .top .sections { display: none; } }
@media (max-width: 480px) {
  .top { gap: 16px; height: 64px; }
  .top nav { gap: 16px; }
  .top .logo img { width: 112px; }
  .top-try { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-text); padding-bottom: 104px; }
.motif { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; color: var(--hero-motif); }
.hero > .wrap { position: relative; }
.intro { text-align: center; padding-top: 72px; max-width: 880px; margin: 0 auto; }
.intro h1 { font-size: clamp(40px, 6.4vw, 72px); letter-spacing: -0.04em; line-height: 1.02; }
.intro .lead { margin: 24px auto 0; max-width: 34em; font-size: clamp(18px, 1.6vw, 20px); color: var(--hero-text-2); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* Role switcher: radios + CSS, no JS needed. */
.roles { border: 0; margin: 64px 0 0; padding: 0; min-width: 0; }
.roles > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg {
  display: flex; width: max-content; max-width: 100%; margin: 0 auto;
  padding: 5px; gap: 4px; border-radius: 14px;
  background: #1E2229; border: 1px solid var(--ink-line);
}
.seg label {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; padding: 8px 22px; border-radius: 10px;
  font-size: 16px; font-weight: 600; line-height: 1.2; color: var(--hero-text-2); cursor: pointer;
  transition: background-color .25s, color .25s;
  white-space: nowrap;
}
.seg label:hover { color: #fff; }
#r-field:checked ~ .seg [for="r-field"],
#r-business:checked ~ .seg [for="r-business"],
#r-own:checked ~ .seg [for="r-own"] { background: var(--orange); color: var(--ink); }
#r-field:focus-visible ~ .seg [for="r-field"],
#r-business:focus-visible ~ .seg [for="r-business"],
#r-own:focus-visible ~ .seg [for="r-own"] { outline: 3px solid #fff; outline-offset: 2px; }

.stage {
  display: grid; grid-template-columns: 300px minmax(0, 400px); justify-content: center; align-items: center;
  gap: 80px; margin-top: 48px;
}
.phone { width: 300px; padding: 9px; border-radius: 50px; background: #0B0D10; border: 1.5px solid #3A414C; }
.screens { display: grid; border-radius: 41px; overflow: hidden; background: #F2F2F7; }
.screens picture, .panes .pane { grid-area: 1 / 1; }
.panes { display: grid; }
.pane .who { font-size: 15px; color: var(--hero-text-3); font-weight: 600; }
.pane h2 { font-size: clamp(30px, 3.2vw, 40px); margin-top: 8px; }
.pane ul { list-style: none; margin: 28px 0 0; padding: 0; }
.pane li { position: relative; padding: 16px 0 16px 32px; border-top: 1px solid var(--ink-line); font-size: 19px; color: #E4E7EC; }
.pane li:last-child { border-bottom: 1px solid var(--ink-line); }
.pane li::before { content: ""; position: absolute; left: 2px; top: 1.32em; width: 14px; height: 2px; background: #6B7380; }

/* Cross-fade: the one motion moment. */
.screens picture, .pane { opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
#r-field:checked ~ .stage .is-field,
#r-business:checked ~ .stage .is-business,
#r-own:checked ~ .stage .is-own { opacity: 1; visibility: visible; transition: opacity .45s ease, visibility 0s; }
@media (prefers-reduced-motion: reduce) {
  .screens picture, .pane, .seg label { transition: none !important; }
}

@media (max-width: 860px) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: 40px; justify-items: center; }
  .panes { width: 100%; max-width: 480px; }
  .phone { width: 264px; border-radius: 44px; padding: 8px; }
  .screens { border-radius: 36px; }
}
@media (max-width: 560px) {
  .seg { width: 100%; }
  .seg label { padding: 8px 6px; font-size: 14.5px; white-space: normal; }
  .intro { padding-top: 48px; }
  .roles { margin-top: 48px; }
  .hero { padding-bottom: 72px; }
  .actions .btn { width: 100%; }
}

/* ---------- Bands ---------- */
.band { padding: 120px 0; color: var(--text); }
@media (max-width: 560px) { .band { padding: 80px 0; } }
.mac, .how, .teams { background: var(--mist); }
.pricing, .faq { background: var(--white); }
.ink { background: var(--band-ink); color: #fff; }

/* Shared: two-column list of short points with a hairline. */
.points { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.points li { padding: 24px 0; border-top: 1px solid var(--line); }
.points h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.points p { margin-top: 8px; color: var(--text-2); font-size: 18px; max-width: 30em; }
@media (max-width: 720px) { .points { grid-template-columns: 1fr; } }

/* ---------- On the Mac: a drawn menu bar, the panel hanging from the K ---------- */
.mac .head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: end; }
.mac .head p { color: var(--text-2); }
@media (max-width: 860px) { .mac .head { grid-template-columns: 1fr; gap: 20px; } }

.desk-frame { container-type: inline-size; margin-top: 64px; }
.desk {
  --bar-h: 30px;
  --k-right: 223px;                                   /* centre of the K item, from the right edge */
  --pw: min(360px, 31cqw);                            /* panel width; the panel is 720 x 1120 */
  --pr: calc(var(--k-right) - var(--pw) / 2);         /* panel's right offset, centred under the K */
  position: relative; overflow: hidden; border-radius: 22px; background: var(--desk);
  min-height: calc(var(--bar-h) + 6px + var(--pw) * 1.5556 + 48px);
}
.menubar {
  position: absolute; inset: 0 0 auto 0; height: var(--bar-h); z-index: 3;
  background: var(--bar); border-bottom: 1px solid var(--bar-line);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  color: var(--bar-ink); font-size: 13px; font-weight: 500; line-height: 1;
}
.mb-left { position: absolute; left: 18px; top: 0; height: 100%; display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.mb-left span:first-child { font-weight: 700; }
.mb-right { position: absolute; right: 16px; top: 0; height: 100%; display: flex; align-items: center; }
.mb-item { height: 100%; display: grid; place-items: center; flex: none; }
.mb-item svg { width: 16px; height: 16px; }
.mb-k { width: 30px; }
.mb-k > span { display: grid; place-items: center; width: 30px; height: 22px; border-radius: 6px; background: var(--bar-active); }
.mb-k svg { width: 15px; height: 15px; }
.mb-wifi { width: 26px; }
.mb-batt { width: 34px; }
.mb-batt svg { width: 25px; }
.mb-clock { width: 132px; justify-items: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mb-clock .day { margin-right: 6px; }

.desk .win {
  position: absolute; z-index: 1; left: 4%; top: calc(var(--bar-h) + 44px);
  width: calc(96% - var(--pw) - var(--pr) - 24px);
}
.desk .win img { border-radius: 10px; box-shadow: 0 0 0 1px rgba(20,23,28,.08), 0 24px 48px -24px rgba(20,23,28,.4); }
.desk .panel {
  position: absolute; z-index: 2; top: calc(var(--bar-h) + 6px); right: var(--pr); width: var(--pw);
  filter: drop-shadow(0 18px 30px rgba(20, 23, 28, .22)) drop-shadow(0 1px 2px rgba(20, 23, 28, .14));
}
@media (max-width: 760px) {
  .desk {
    --bar-h: 26px; --k-right: 135px; --pw: min(260px, 60cqw);
    min-height: 0; border-radius: 16px;
    padding: calc(var(--bar-h) + 6px + var(--pw) * 1.5556 + 24px) 16px 20px;
  }
  .menubar { font-size: 12px; }
  .mb-left, .mb-clock .day { display: none; }
  .mb-clock { width: 44px; }
  .desk .win { position: static; width: 100%; }
}

/* ---------- Availability (Ink) ---------- */
.statement .grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.statement h2 { font-size: clamp(30px, 4vw, 48px); }
.statement dl { margin: 0; }
.statement dt { font-size: 15px; font-weight: 600; color: var(--hero-text-3); }
.statement dd { margin: 4px 0 24px; color: #E4E7EC; }
.statement dd:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .statement .grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- How it works ---------- */
.steps { list-style: none; counter-reset: step; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 24px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px;
  border-radius: 50%; border: 1.5px solid var(--text); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums;
}
.steps p { margin-top: 10px; color: var(--text-2); font-size: 18px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 0; } .steps li { padding: 24px 0 32px; } }

/* ---------- Pricing: one plan on an Ink panel ---------- */
.offer {
  margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 64px; align-items: center;
  padding: 56px; border-radius: 24px; background: var(--plan-ink); color: #fff;
}
@media (prefers-color-scheme: dark) { .offer { border: 1px solid #3A414C; } }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.price strong { font-family: var(--display); font-size: clamp(56px, 9vw, 104px); font-weight: 700; letter-spacing: -0.05em; line-height: .95; }
.per { color: #AAB1BC; }
.trial { margin: 14px 0 32px; color: #E4E7EC; }
.offer-list { list-style: none; margin: 0; padding: 0; }
.offer-list li { padding: 15px 0; border-top: 1px solid #2E343D; }
.offer-list li:last-child { border-bottom: 1px solid #2E343D; }
.aside { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 40px; font-size: 17px; color: var(--text-2); }
.aside p:first-child { max-width: 46em; }
.aside a { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ---------- Teams, IT and partners ---------- */
.teams-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 32px 72px; align-items: start; }
.teams-intro .lead-dark { margin-top: 20px; color: var(--text-2); }
.teams-intro .more { margin-top: 28px; font-weight: 600; }
.teams-intro .partner { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 17px; }
.teams-intro .partner a { color: var(--text); font-weight: 600; }
.teams-points { margin-top: 0; }
@media (max-width: 960px) { .teams-grid { grid-template-columns: 1fr; } .teams-points { margin-top: 24px; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 32px 72px; align-items: start; }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; font-weight: 600; font-size: 19px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg);
}
.qa details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.qa details p { padding: 0 40px 24px 0; color: var(--text-2); font-size: 18px; }
.qa details a { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Closing (Ink) ---------- */
.closing { text-align: center; }
.closing h2 { max-width: 16em; margin: 0 auto; }
.closing .lead { margin: 20px auto 0; max-width: 34em; color: var(--hero-text-2); }
.closing .contact { margin-top: 28px; font-size: 17px; color: var(--hero-text-2); }
.closing .contact a { color: #fff; font-weight: 600; }

/* ---------- Video dialog ---------- */
dialog.video { width: min(1000px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 18px; background: #0D0F12; color: #fff; }
dialog.video::backdrop { background: rgba(8, 9, 11, .82); }
.video-box { padding: 16px 20px 18px; }
.video-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.video-head h2 { font-size: 19px; letter-spacing: -0.01em; }
.close { font: 600 15px/1 var(--sans); color: #fff; background: transparent; border: 1.5px solid #4A525E; border-radius: 10px; min-height: 36px; padding: 0 14px; cursor: pointer; }
.close:hover { border-color: #7A8290; }
dialog.video video { display: block; width: 100%; height: auto; border-radius: 10px; background: #000; }
.video-foot { margin-top: 12px; font-size: 15px; color: var(--hero-text-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 56px 0 48px; font-size: 15px; border-top: 1px solid var(--line); }
.site-footer .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.site-footer .row + .row { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.credit { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--footer-text); }
.credit img { width: 96px; height: auto; filter: var(--oit-filter); }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: var(--text); }
.site-footer .lang a { color: var(--footer-text); text-decoration: underline; }
.site-footer .lang .lang-current { color: var(--text); }
.site-footer .dbip { margin-top: 20px; font-size: 13px; }

/* ---------- Small pages ---------- */
.page { background: var(--white); color: var(--text); padding: 48px 0 112px; }
.page .back { font-size: 15px; margin-bottom: 40px; }
.page .back a { color: var(--text-2); }
.prose { max-width: 720px; font-size: 18px; overflow-wrap: anywhere; }
.prose h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 32px; }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; margin: 48px 0 12px; }
.prose h3 { font-size: 20px; margin: 32px 0 8px; }
.prose p, .prose ul, .prose ol, .prose dl, .prose address, .prose table { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose address { font-style: normal; }
.prose dt { font-weight: 600; }
.prose dd { margin: 0 0 12px; }
.prose a { color: var(--text); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; overflow-wrap: normal; }
@media (max-width: 720px) { .prose table { display: block; overflow-x: auto; } .prose td:last-child { min-width: 15em; } }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; }
.prose td:first-child { white-space: nowrap; }

/* ---------- Language chooser and 404 ---------- */
body.chooser { min-height: 100vh; display: grid; place-items: center; background: var(--mist); padding: 48px 16px; }
body.chooser main { width: min(520px, 100%); }
.chooser-logo { margin: 0 0 40px; }
.chooser-logo img { width: 200px; margin: 0 auto; }
.nf-title { font-size: clamp(26px, 5vw, 34px); text-align: center; margin-bottom: 32px; }
.chooser-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.chooser-list a {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border-radius: 16px;
  background: var(--white); color: var(--text); text-decoration: none; border: 1px solid var(--line);
}
.chooser-list a:hover { border-color: var(--text-2); }
.chooser-list strong { font-size: 21px; }
.chooser-list span { color: var(--text-2); font-size: 17px; }
