/* CloudApp public website. Same colours as the portal (light and dark), system fonts, no external files. */
:root {
  --bg: #f4f6fa; --surface: #ffffff; --surface-2: #eef2f8; --text: #17202e; --muted: #586478; --border: #d5dbe6;
  --primary: #1557b0; --primary-strong: #0f4690; --primary-text: #ffffff; --primary-soft: #e3edfb;
  --ok: #17663a; --ok-soft: #dff3e6; --warn: #8a4b00; --warn-soft: #fdeed3;
  --focus: #0b57d0; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 20px rgba(16, 24, 40, .07);
  --band: #1557b0; --band-text: #ffffff;
  --radius: 12px; --tap: 44px; --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141b; --surface: #171e28; --surface-2: #1f2835; --text: #e7ecf3; --muted: #a3afc2; --border: #334052;
    --primary: #8ab4f8; --primary-strong: #a8c7fa; --primary-text: #0b1b33; --primary-soft: #1d2f4a;
    --ok: #7fd49b; --ok-soft: #153322; --warn: #f5c26b; --warn-soft: #3a2a0c;
    --focus: #a8c7fa; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3);
    --band: #1d2f4a; --band-text: #e7ecf3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f141b; --surface: #171e28; --surface-2: #1f2835; --text: #e7ecf3; --muted: #a3afc2; --border: #334052;
  --primary: #8ab4f8; --primary-strong: #a8c7fa; --primary-text: #0b1b33; --primary-soft: #1d2f4a;
  --ok: #7fd49b; --ok-soft: #153322; --warn: #f5c26b; --warn-soft: #3a2a0c;
  --focus: #a8c7fa; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3);
  --band: #1d2f4a; --band-text: #e7ecf3;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--surface); color: var(--text); padding: 12px 16px; border-radius: 8px; min-height: var(--tap); }
.skip:focus { top: 8px; }
.draft-banner { background: var(--warn-soft); color: var(--warn); text-align: center; font-weight: 600; font-size: .95rem; padding: 8px 16px; }
.ph { background: var(--warn-soft); color: var(--warn); outline: 1px dashed currentColor; outline-offset: 1px; border-radius: 3px; padding: 0 2px; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--surface); background: color-mix(in srgb, var(--surface) 92%, transparent); border-bottom: 1px solid var(--border); backdrop-filter: saturate(1.4) blur(8px); }
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-height: var(--tap); flex: none; }
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.mainnav { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.mainnav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mainnav li a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .98rem; white-space: nowrap; }
.mainnav li a:hover { background: var(--surface-2); }
.mainnav li a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.nav-logins { display: flex; gap: 8px; }
.topbar-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.nav-toggle { display: none; }

@media (max-width: 1239px) {
  .nav-toggle { display: inline-flex; }
  .topbar-actions { margin-left: auto; }
  .mainnav {
    position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 12px; margin: 0; padding: 12px 20px 20px;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
  }
  .nav-open .mainnav { visibility: visible; opacity: 1; transform: none; transition: opacity .15s ease, transform .15s ease; }
  .mainnav ul { flex-direction: column; }
  .mainnav li a { display: flex; padding: 0 12px; font-size: 1.05rem; }
  .nav-logins { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .mainnav { transition: none !important; } }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 10px 20px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.25; text-decoration: none; border: 1px solid transparent; cursor: pointer; text-align: center; }
.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-ghost { background: var(--surface); color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-onband { background: #ffffff; color: #0f4690; }
.btn-onband-ghost { background: transparent; color: var(--band-text); border-color: color-mix(in srgb, var(--band-text) 55%, transparent); }
.btn-block { width: 100%; }
.btn-wrap { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 639px) { .btn { white-space: normal; } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { flex: 0 1 auto; }

/* Sections */
.section { padding: clamp(48px, 4vw + 24px, 88px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--muted); }

.hero { padding: clamp(40px, 4vw + 20px, 88px) 0 clamp(40px, 3vw + 24px, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero .btn-row { margin-top: 24px; }
.hero-art { width: 100%; max-width: 520px; justify-self: center; }
.ha-surface { fill: var(--surface); stroke: var(--border); }
.ha-bar { fill: var(--surface-2); }
.ha-bg { fill: var(--bg); }
.ha-primary { fill: var(--primary); }
.ha-line { fill: var(--border); }
.ha-muted { fill: var(--muted); opacity: .5; }
.ha-text { fill: var(--text); opacity: .7; }
.ha-cloud { fill: var(--primary-soft); stroke: var(--primary); }
.section-more { margin-top: 24px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 20px 0 0; color: var(--muted); font-size: .97rem; }
.hero-points li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 6px; }
.page-hero { padding: clamp(36px, 3vw + 20px, 72px) 0 clamp(24px, 2vw + 12px, 40px); }
.page-hero .lead { max-width: 760px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.section-alt .card { background: var(--bg); box-shadow: none; }
.card h3 { margin-top: 4px; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 12px; }
.icon svg { width: 24px; height: 24px; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); vertical-align: middle; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { counter-increment: step; position: relative; padding: 24px 24px 24px 76px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.steps li::before { content: counter(step); position: absolute; left: 22px; top: 22px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-text); font-weight: 800; }
.steps h3 { margin-top: 6px; }

.ticks { list-style: none; padding: 0; margin: 0 0 20px; }
.ticks li { position: relative; padding-left: 28px; margin: 8px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.soon li::before { content: "◷"; color: var(--warn); }

.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { background: var(--surface-2); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
@media (max-width: 719px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border-bottom: 1px solid var(--border); padding: 8px 0; }
  .compare tbody th { border: 0; padding-bottom: 4px; }
  .compare td { border: 0; padding-top: 4px; padding-bottom: 4px; }
  .compare td::before { content: attr(data-label); display: block; font-size: .85rem; font-weight: 700; color: var(--muted); }
}

.plan { display: flex; flex-direction: column; }
.plan .ticks { flex: 1; }
.price { font-size: 1.35rem; font-weight: 800; margin: 8px 0 12px; }
.price-unit { display: block; font-size: .9rem; font-weight: 500; color: var(--muted); }

.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 20px; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--primary); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 20px 16px; }
.faq .answer p:last-child { margin-bottom: 0; }

.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.contact-list .k { color: var(--muted); font-weight: 600; }
.contact-list .v { overflow-wrap: anywhere; }

.note { border-left: 4px solid var(--primary); background: var(--primary-soft); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }

.band { background: var(--band); color: var(--band-text); padding: 48px 0; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { margin-bottom: 4px; }
.band p { margin: 0; opacity: .92; }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 24px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer h2 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li a { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); color: var(--text); text-decoration: none; }
.footer li a:hover { color: var(--primary); text-decoration: underline; }
.footer-brand p { color: var(--muted); margin-top: 8px; }
.footer-legal { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 20px; color: var(--muted); font-size: .88rem; }
.footer-legal p { margin-bottom: 6px; }

.notfound { text-align: center; padding: 96px 0; }
.notfound .btn-row { justify-content: center; }

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 440px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .steps li { padding: 20px 20px 20px 70px; }
  .steps li::before { left: 18px; top: 18px; }
  .btn-row .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .band-inner { flex-direction: column; align-items: stretch; }
  .brand-name { font-size: 1.2rem; }
}
