/* Valtio marketing site — static rebuild of the Wix site for Cloudflare.
   Brand colors come from the original site (logo navy, sky blue, gold CTA). */
:root {
  --navy: #004f71;
  --navy-deep: #003a54;
  --sky: #3d9be9;
  --gold: #ffb700;
  --gold-hover: #f0aa00;
  --mist: #eef4f8;
  --line: #d5e2ea;
  --ink: #1b2730;
  --ink-soft: #4a5b67;
  --paper: #ffffff;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.25rem, 4.5vw + 1rem, 3.5rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--sky); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 38rem; }
.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.875rem; padding: 0.6rem 1.4rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn-gold { background: var(--gold); color: #111; }
.btn-gold:hover { background: var(--gold-hover); color: #111; }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: #fff; }
.on-navy .btn-line { border-color: #fff; color: #fff; }
.on-navy .btn-line:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand img { width: 128px; }
.nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a, .nav-login {
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--ink); text-decoration: none;
}
.nav-links a:hover, .nav-login:hover, .nav-links a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--gold); }
.nav-cta { display: flex; gap: 0.5rem; }
.nav-cta .btn { min-height: 2.5rem; padding: 0.4rem 1rem; font-size: 0.875rem; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; font-family: var(--font-head); font-weight: 600; padding: 0.5rem 0.75rem; border: 2px solid var(--navy); border-radius: var(--radius); color: var(--navy); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.5rem; }
.menu-panel ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.menu-panel li a { display: block; padding: 0.65rem 0; font-family: var(--font-head); font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-panel .btn-row { margin-top: 0.5rem; }
@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 6rem); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero-text-only .wrap { grid-template-columns: 1fr; }
.hero-text-only h1 { max-width: 20ch; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Navy statement band */
.band { background: var(--navy); color: #fff; padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.band p.statement { font-family: var(--font-head); font-weight: 600; font-size: var(--step-2); line-height: 1.3; margin: 0; max-width: 32ch; }
.band h2 { color: #fff; }
.band p { color: #d8e6ee; }

/* Feature checklist (home): the product turns onboarding into checklists, so the features read as one. */
.checklist { padding-block: clamp(3rem, 7vw, 5.5rem); }
.checklist ol { list-style: none; margin: 0; padding: 0; position: relative; }
.checklist ol::before { content: ""; position: absolute; left: 1.05rem; top: 1.5rem; bottom: 1.5rem; width: 2px; background: var(--line); }
.check-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding: 2.5rem 0 2.5rem 3.75rem; }
.check-item + .check-item { border-top: 1px solid var(--line); }
.check-item::before {
  content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23ffb700' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 60% no-repeat;
  box-shadow: 0 0 0 6px var(--paper);
}
.check-item h2 { font-size: var(--step-3); }
.check-item p:last-child { margin-bottom: 0; }
.check-item .art { max-width: 30rem; justify-self: center; }
.check-item:nth-child(even) .art { order: -1; }
@media (max-width: 820px) {
  .check-item { grid-template-columns: 1fr; padding-left: 3.25rem; }
  .check-item::before { top: 3.4rem; translate: none; }
  .check-item:nth-child(even) .art { order: 0; }
  .check-item .art { max-width: 22rem; justify-self: start; }
}

/* Steps (how it works): a real sequence, so it is numbered. */
.steps { padding-block: clamp(3rem, 7vw, 5.5rem); }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding-block: 2.5rem; }
.step + .step { border-top: 1px solid var(--line); }
.step:nth-child(even) .art { order: -1; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--gold); color: #111; font-family: var(--font-head); font-weight: 700; margin-bottom: 1rem; }
.step .art { max-width: 32rem; justify-self: center; }
@media (max-width: 820px) { .step { grid-template-columns: 1fr; } .step:nth-child(even) .art { order: 0; } }
.tasks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.5rem 1rem; }
.tasks li { display: flex; align-items: center; gap: 0.65rem; font-weight: 600; font-size: 0.95rem; }
.tasks img { width: 40px; height: 40px; flex: none; }
.tasks .soon { color: var(--ink-soft); font-weight: 400; }
.tasks .soon small { display: block; font-size: 0.75rem; color: #1a65a6; font-weight: 600; }

/* Closing CTA */
.cta { background: var(--navy); color: #fff; padding-block: clamp(3rem, 7vw, 5rem); }
.cta h2 { color: #fff; }
.cta p { color: #d8e6ee; font-size: var(--step-1); max-width: 34rem; }

/* FAQ */
.faq-group { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.faq-group + .faq-group { border-top: 1px solid var(--line); }
.faq-group .wrap { display: grid; grid-template-columns: 18rem 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.faq-group .side img { margin-top: 1.25rem; max-width: 16rem; border-radius: var(--radius); }
@media (max-width: 820px) { .faq-group .wrap { grid-template-columns: 1fr; } .faq-group .side img { display: none; } }
details.qa { border-bottom: 1px solid var(--line); }
details.qa summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.05rem; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; translate: 0 -50%; font-size: 1.5rem; font-weight: 400; color: var(--sky); }
details.qa[open] summary::after { content: "–"; }
details.qa .answer { padding-bottom: 1.25rem; color: var(--ink-soft); }
details.qa .answer ul { padding-left: 1.2rem; margin: 0 0 1em; }

/* Long-form text: legal pages and blog posts */
.prose { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.prose .wrap { max-width: 46rem; }
.prose h1 { font-size: var(--step-3); }
.prose h2 { font-size: var(--step-1); margin-top: 2em; }
.prose h3 { margin-top: 1.75em; }
.prose p, .prose li { color: var(--ink); }
.prose .meta { color: var(--ink-soft); font-size: var(--step--1); }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--radius); }
.prose a { word-break: break-word; }

/* Blog list */
.posts { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 2rem; }
.post-link { display: grid; grid-template-columns: 14rem 1fr; gap: 1.5rem; text-decoration: none; color: var(--ink); align-items: center; }
.post-link img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.post-link h2 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.post-link:hover h2 { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
@media (max-width: 640px) { .post-link { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.address { font-style: normal; margin-top: 2rem; color: var(--ink-soft); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* Embeds */
.embed { padding-bottom: clamp(3rem, 7vw, 5rem); }
.calendly-inline-widget { min-width: 320px; height: 720px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: var(--step--1); color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: flex-start; justify-content: space-between; }
.site-footer img { width: 104px; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--navy); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Inline illustrations have no intrinsic width; give their column a width so they don't collapse. */
.art { width: 100%; }
.art svg { width: 100%; height: auto; }
