/* smartly-cloudy.com home page.
   Idea: the house look is a cool grey paper with navy ink, deliberately colourless, so the customer's brand
   (shown in the Word sample) is the only colour on the page. One family, Archivo, varied by width:
   expanded for the headline, normal for reading, condensed for small labels. */
/* Archivo variable (wdth 62-125, wght 100-900), self-hosted: SIL Open Font License, see assets/fonts/Archivo-OFL.txt */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --paper: #eef1f4;
  --sheet: #ffffff;
  --ink: #16233b;
  --ink-2: #4d5a70;
  --rule: #c8d0da;
  --link: #1f5fbf;
  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --measure: 38rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #121821; --sheet: #1a2230; --ink: #e6ebf2; --ink-2: #9aa6b8; --rule: #2c3646; --link: #8fb4ff; color-scheme: dark; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--font); font-variation-settings: "wdth" 100; }
a { color: var(--link); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0 0 1rem; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--sheet); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 16px; }

/* ---- header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 4vw, 48px);
  max-width: 1240px; margin: 0 auto; }
.mark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700;
  font-variation-settings: "wdth" 112; font-size: 1.05rem; }
.top nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); font-size: .95rem; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.top nav a.signin { color: var(--ink); font-weight: 600; border: 1.5px solid var(--ink); padding: 6px 14px; border-radius: 999px; }
@media (max-width: 640px) { .top nav a:not(.signin) { display: none; } }

main > section { max-width: 1240px; margin: 0 auto; padding: clamp(48px, 8vw, 104px) clamp(16px, 4vw, 48px); }
main > section + section { border-top: 1px solid var(--rule); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.1; font-weight: 700; font-variation-settings: "wdth" 108;
  letter-spacing: -.01em; max-width: 24ch; margin-bottom: 1.5rem; }
h3 { font-size: 1.15rem; font-weight: 700; font-variation-settings: "wdth" 104; margin-bottom: .75rem; }
.intro { max-width: var(--measure); color: var(--ink-2); }
.small { font-size: .95rem; }

/* ---- hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-top: clamp(32px, 6vw, 72px) !important; }
h1 { font-size: clamp(2.3rem, 4.1vw, 3.6rem); line-height: 1.02; font-weight: 800; font-variation-settings: "wdth" 112;
  letter-spacing: -.02em; margin-bottom: 1.5rem; text-wrap: balance; }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); max-width: 32rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.btn { display: inline-block; font-weight: 650; text-decoration: none; padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink); }
.btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.btn.quiet { background: transparent; color: var(--ink); }
.btn.quiet:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

/* ---- the Word sample: the one place with colour, and it is the customer's */
.specimen { margin: 0; }
.window[data-firm="acme"]      { --t-primary: #0b3d2e; --t-accent: #c9a227; }
.window[data-firm="northgate"] { --t-primary: #5b2a86; --t-accent: #e7c6ff; }
.window[data-firm="harbor"]    { --t-primary: #9a3412; --t-accent: #fde7d6; }
.sw-acme { background: #0b3d2e; } .sw-northgate { background: #5b2a86; } .sw-harbor { background: #9a3412; }

.window { background: #f3f3f3; border-radius: 10px; overflow: hidden; color: #242424;
  box-shadow: 0 1px 0 rgba(22, 35, 59, .08), 0 24px 48px -24px rgba(22, 35, 59, .45);
  font: 13px/1.4 "Segoe UI", system-ui, sans-serif; font-variation-settings: normal; }
.titlebar { display: flex; align-items: center; gap: 12px; background: #1f4e9c; color: #fff; padding: 7px 12px; font-size: 12px; }
.titlebar span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dots { display: inline-flex; gap: 6px; } .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); }
.ribbon { display: flex; align-items: center; gap: 18px; padding: 8px 14px; background: #fff; border-bottom: 1px solid #e1e1e1; color: #555; font-size: 12px; }
.ribbon-btn { margin-left: auto; background: var(--t-primary); color: #fff; padding: 3px 10px; border-radius: 4px; font-weight: 600; transition: background .35s; }
.body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 44%); min-height: 340px; }
.page { background: #fff; margin: 18px 0 18px 18px; padding: 28px 24px; box-shadow: 0 0 0 1px #e4e4e4; display: flex; flex-direction: column; gap: 9px; }
.ph { display: block; height: 7px; border-radius: 2px; background: #e4e7eb; }
.ph.h { height: 12px; width: 58%; background: #c9ced6; margin-bottom: 8px; }
.ph.s { width: 62%; } .ph.m { width: 80%; } .ph.gap { height: 4px; background: none; }
.pane { background: #fff; border-left: 1px solid #e1e1e1; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.pane-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #ececec; }
.pane-head strong { display: block; font-size: 13.5px; } .pane-head small { color: #6b6b6b; font-size: 11.5px; }
.mono { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; font-weight: 700;
  background: var(--t-primary); color: var(--t-accent); transition: background .35s, color .35s; flex: none; }
.pane-record { border-left: 3px solid var(--t-primary); padding: 2px 0 2px 10px; transition: border-color .35s; }
.pane-record small { display: block; color: #6b6b6b; font-size: 11px; } .pane-record strong { display: block; font-size: 13px; }
.pane-h { margin: 0; font-weight: 600; font-size: 12.5px; }
.pane-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; }
.pane-list li { display: flex; gap: 8px; align-items: center; }
.pane-list li::before { content: ""; width: 12px; height: 12px; border: 1.5px solid #9a9a9a; border-radius: 3px; flex: none; }
.pane-list li.done { color: #7a7a7a; text-decoration: line-through; }
.pane-list li.done::before { content: "✓"; color: #fff; font-size: 10px; line-height: 12px; text-align: center; font-weight: 700;
  background: var(--t-primary); border-color: var(--t-primary); }
.pane-btn { align-self: flex-start; margin-top: auto; background: var(--t-primary); color: #fff; padding: 6px 12px; border-radius: 5px; font-weight: 600; transition: background .35s; }
@media (max-width: 560px) { .body { grid-template-columns: 1fr; } .page { display: none; } .pane { border-left: 0; } }

.switch { border: 0; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.switch legend { float: left; margin-right: 6px; font-size: .9rem; color: var(--ink-2); font-variation-settings: "wdth" 80; font-weight: 600; }
.switch label { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1.5px solid var(--rule); cursor: pointer; font-size: .92rem; background: var(--sheet); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch label:has(input:checked) { border-color: var(--ink); font-weight: 600; }
.switch label:has(input:focus-visible) { outline: 3px solid var(--link); outline-offset: 2px; }
.sw { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--sheet), 0 0 0 2.5px var(--rule); }
.note { margin-top: 12px; font-size: .92rem; color: var(--ink-2); }

/* ---- the blend: two clouds and the join between them. The middle is the only filled block. */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; margin-top: 2.5rem; position: relative; }
.join > div { padding: 26px clamp(18px, 2.4vw, 30px); position: relative; }
.join .side { border: 1.5px solid var(--ink); background: var(--sheet); border-radius: 14px; }
.join .middle { background: var(--ink); color: var(--paper); border-radius: 14px; margin: 0 clamp(18px, 3vw, 40px); }
.join .middle h3, .join .middle li { color: var(--paper); }
/* connectors: a line from each cloud into the join */
.join .middle::before, .join .middle::after { content: ""; position: absolute; top: 50%; width: clamp(18px, 3vw, 40px); border-top: 2px solid var(--ink); }
.join .middle::before { right: 100%; } .join .middle::after { left: 100%; }
.join h3 { font-size: 1.3rem; font-variation-settings: "wdth" 112; margin-bottom: 2px; }
.join .what { font-size: .9rem; font-variation-settings: "wdth" 80; font-weight: 600; color: var(--ink-2); margin-bottom: 1rem; }
.join .middle .what, .join .middle .where { color: color-mix(in srgb, var(--paper) 72%, var(--ink)); }
.join ul { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 8px; }
.join li { padding-left: 16px; position: relative; }
.join li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; }
.join .where { margin: 0; font-size: .92rem; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 12px; }
.join .middle .where { border-top-color: color-mix(in srgb, var(--paper) 25%, var(--ink)); }
@media (max-width: 900px) {
  .join { grid-template-columns: 1fr; gap: 28px; }
  .join .middle { margin: 0; }
  .join .middle::before, .join .middle::after { top: auto; left: 50%; right: auto; width: 0; height: 28px; border-top: 0; border-left: 2px solid var(--ink); }
  .join .middle::before { bottom: 100%; } .join .middle::after { top: 100%; }
}

/* ---- comparison */
.compare table { width: 100%; border-collapse: collapse; margin-top: 2rem; font-size: 1rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 18px 14px 0; border-bottom: 1px solid var(--rule); }
.compare thead th { font-size: .95rem; font-weight: 700; font-variation-settings: "wdth" 104; border-bottom: 1.5px solid var(--ink); }
.compare tbody th { font-weight: 600; color: var(--ink-2); width: 24%; font-variation-settings: "wdth" 90; }
.compare td:nth-child(2) { color: var(--ink-2); }
.compare td:nth-child(3) { font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  .compare thead { display: none; }
  .compare tr { display: grid; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .compare th, .compare td { border: 0; padding: 2px 0; width: auto !important; }
  .compare td:nth-child(2)::before { content: "Usual route: "; font-weight: 600; }
  .compare td:nth-child(3)::before { content: "With Smartly Cloudy: "; font-weight: 400; color: var(--ink-2); }
}

/* ---- problem / answer pairs */
.pairs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); }
.pairs div { padding: 22px 0; border-top: 1px solid var(--rule); }
.pairs dt { font-weight: 650; font-variation-settings: "wdth" 104; margin-bottom: 6px; }
.pairs dd { margin: 0; color: var(--ink-2); max-width: 34rem; }
@media (max-width: 760px) { .pairs { grid-template-columns: 1fr; } }

/* ---- industries */
.ind { margin-top: 2.5rem; }
.ind table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.ind th, .ind td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); }
.ind thead th { font-size: .85rem; color: var(--ink-2); font-weight: 600; font-variation-settings: "wdth" 80; border-bottom: 1.5px solid var(--ink); }
.ind tbody th { font-weight: 650; width: 26%; }
.ind td:nth-child(2) { width: 16%; color: var(--ink-2); }
@media (max-width: 640px) {
  .ind thead { display: none; }
  .ind tr { display: grid; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .ind th, .ind td { border: 0; padding: 2px 0; width: auto !important; }
}
.industries > .small { margin-top: 2rem; }

/* ---- setup: a real sequence, so it is numbered */
.setup ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.setup li { counter-increment: step; color: var(--ink-2); }
.setup li::before { content: counter(step); display: block; font-size: 3.2rem; line-height: 1; font-weight: 800;
  font-variation-settings: "wdth" 125; color: var(--ink); margin-bottom: 14px; }
.setup li strong { display: block; color: var(--ink); margin-bottom: 6px; font-variation-settings: "wdth" 104; }
@media (max-width: 820px) { .setup ol { grid-template-columns: 1fr; } }

/* ---- security */
.security ul { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.security li { padding: 18px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.security li strong { display: block; color: var(--ink); font-variation-settings: "wdth" 104; margin-bottom: 4px; }

/* ---- closing */
.close { background: var(--ink); color: var(--paper); max-width: none !important; border-top: 0 !important; }
.close > * { max-width: 1144px; margin-left: auto; margin-right: auto; }
.close h2 { color: var(--paper); max-width: 1144px; }
.close p { max-width: 1144px; color: color-mix(in srgb, var(--paper) 78%, var(--ink)); }
.close .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.close .btn:hover { background: color-mix(in srgb, var(--paper) 88%, var(--ink)); }

.foot { display: flex; flex-wrap: wrap; gap: 24px; padding: 28px clamp(16px, 4vw, 48px); max-width: 1240px; margin: 0 auto; font-size: .9rem; color: var(--ink-2); }
.foot a { color: var(--ink-2); }
