/* VALCRAN site system: shared by every page on valcran.ai */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/site/fonts/newsreader-roman.woff2?v=1") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/site/fonts/newsreader-italic.woff2?v=1") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #050606;
  --ink-2: #0c0c0b;
  --ink-3: #131311;
  --cream: #f1ecdf;
  --soft: rgba(241, 236, 223, .72);
  --faint: rgba(241, 236, 223, .56);
  --dim: rgba(241, 236, 223, .5);
  --line: rgba(241, 236, 223, .11);
  --line-2: rgba(241, 236, 223, .2);
  --accent: #e3d6b8;
  --accent-soft: rgba(227, 214, 184, .4);
  --live: #6fd394;
  --ivory: #f3efe6;
  --ivory-card: #faf7f1;
  --ivory-ink: #1b1915;
  --ivory-soft: #5a5449;
  --ivory-line: rgba(27, 25, 21, .13);
  --clay: #8a5812;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 60px;
  --radius: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 14px; border-radius: 10px; background: var(--cream); color: var(--ink);
  font-weight: 600; font-size: 14px;
}
.skip:focus { top: 12px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* Type: Newsreader's optical sizes tighten the big headlines on their own */
.display {
  font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(44px, 6.4vw, 88px); line-height: 1; letter-spacing: -.022em;
  text-wrap: balance;
}
.display-2 {
  font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(36px, 4.8vw, 64px); line-height: 1.04; letter-spacing: -.018em;
  text-wrap: balance;
}
.display-3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.012em;
  text-wrap: balance;
}
.dim { color: var(--dim); }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--soft); text-wrap: pretty; }
.eyebrow {
  font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px;
}
.fine { font-size: 13px; color: var(--faint); }
/* Lit from the right like the eclipse: cream fading into white */
.glow-text {
  display: inline-block;
  background: linear-gradient(100deg, #d9c7a2 0%, #efe4cc 55%, #fff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Hand-drawn line icons from /assets/site/icons.svg */
.icon {
  display: block; width: 32px; height: 32px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--sans); white-space: nowrap;
  transition: background-color .2s, transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--cream); color: #12110f; }
.btn-primary:hover { background: #fff; }
.btn-primary:active { transform: scale(.98); }
.btn-small { height: 34px; padding: 0 15px; font-size: 13px; }
.btn-quiet { border: 1px solid var(--line-2); color: var(--soft); cursor: default; }
.link-arrow { color: var(--accent); font-weight: 500; font-size: 16px; }
.link-arrow::after { content: " \203A"; font-size: 1.15em; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent-soft); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 30px; margin-top: 36px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.scrolled, .site-header.menu-open {
  background: rgba(5, 6, 6, .74);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  border-bottom-color: var(--line);
}
.bar {
  max-width: var(--container); height: var(--header-h); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand img { display: block; height: 15px; width: auto; }
.nav { display: flex; gap: 34px; }
.nav a { font-size: 14px; color: var(--soft); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.bar-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none; place-items: center; width: 40px; height: 40px; margin-right: -8px;
  border: 0; background: none; color: var(--cream); cursor: pointer; border-radius: 10px;
}
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .close { display: none; }
.menu-open .menu-btn .open { display: none; }
.menu-open .menu-btn .close { display: block; }

/* Sections and surfaces */
.section { padding: clamp(88px, 10vw, 140px) 0; }
.section-head { max-width: 820px; margin: 0 auto; text-align: center; }
.section-head .lede { max-width: 36em; margin: 22px auto 0; }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); }
.center { text-align: center; margin-top: 40px; }

.ivory { background: var(--ivory); color: var(--ivory-ink); padding: clamp(96px, 12vw, 168px) 0; }
.ivory .eyebrow { color: var(--clay); }
.ivory .lede { color: var(--ivory-soft); }
.ivory .dim { color: rgba(27, 25, 21, .42); }
.ivory .link-arrow { color: var(--clay); }
.ivory .icon { color: var(--clay); }

/* Inner pages open with a centered title */
.page-hero { padding: calc(var(--header-h) + clamp(72px, 11vh, 128px)) 0 clamp(56px, 7vw, 88px); text-align: center; }
.page-hero h1 { max-width: 13em; margin: 0 auto; }
.page-hero .lede { max-width: 34em; margin: 24px auto 0; }

/* FAQ and other disclosures */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font: 400 22px/1.3 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 26px/1 var(--sans); color: var(--faint); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 26px 0; color: var(--soft); line-height: 1.6; }

/* Long-form documents (Privacy Policy, Terms of Service) */
.doc { padding: calc(var(--header-h) + clamp(64px, 9vh, 112px)) 0 clamp(88px, 10vw, 140px); }
.doc h1 { font: 400 clamp(40px, 5.4vw, 68px)/1.04 var(--serif); letter-spacing: -.02em; }
.doc .updated { margin-top: 18px; font-size: 14px; color: var(--faint); }
.doc .summary { margin-top: 28px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--soft); }
.doc .highlights {
  list-style: none; margin: 36px 0 8px; padding: 26px 28px;
  display: grid; gap: 12px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 20px;
}
.doc .highlights li { position: relative; padding-left: 28px; color: var(--cream); line-height: 1.5; }
.doc .highlights li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%2312110f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.doc section { padding-top: 44px; }
.doc h2 { margin-bottom: 14px; font: 400 clamp(24px, 2.4vw, 30px)/1.2 var(--serif); letter-spacing: -.01em; }
.doc section p, .doc section li { color: var(--soft); font-size: 16.5px; line-height: 1.7; }
.doc section p + p { margin-top: 14px; }
.doc section ul, .doc section ol { margin: 12px 0 0; padding-left: 22px; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-soft); }
.doc strong { color: var(--cream); font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.footer-top .brand img { height: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 32px clamp(40px, 6vw, 88px); }
.footer-cols h4 { margin-bottom: 14px; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.footer-cols a { display: block; padding: 5px 0; color: var(--soft); transition: color .2s; }
.footer-cols a:hover { color: var(--cream); }
.footer-legal { margin-top: 56px; font-size: 13px; color: var(--faint); }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .faq summary::after { transition: none; }
}

/* Phones and tablets can't install the Mac app */
.handheld .bar-actions .btn-small { display: none; }

@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 4px var(--gutter) 24px;
    background: var(--ink); border-bottom: 1px solid var(--line);
  }
  .menu-open .nav { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font: 400 22px/1.2 var(--serif); color: var(--cream); }
  .footer-cols { grid-template-columns: repeat(2, auto); }
  .faq summary { font-size: 19px; }
  .faq details p { padding-right: 0; }
}

@media (max-width: 420px) {
  .cta-row { flex-direction: column; }
}
