/* ===================================================================
   Onlyview — shared styling for the standalone content pages
   (Download + Contact). Loaded on top of ov.css and scoped to
   body.t-page, via the {{ define "head" }} blocks in
   layouts/page/download_layout.html and layouts/page/contact_layout.html.

   The :root tokens + primitives (.overline, .gradient-text, .btn, .wrap,
   .rule, .pr-section) mirror static/pricing.css and static/project.css on
   purpose: each page loads its own stylesheet, so the duplication is
   isolated. If these spread further, hoist the shared block into tokens.css.
   =================================================================== */

:root {
  --ink:        #0b0b0f;
  --ink-2:      #101015;
  --paper:      #ffffff;
  --paper-2:    #f4f4f7;
  --text:       #16161c;
  --text-dim:   #5c5c68;
  --text-inv-dim: rgba(243,243,246,.68);
  --magenta: #E6007E;
  --grad:      linear-gradient(100deg, #FF7A00, #FF1E50, #E6007E, #8A2BE2);
  --grad-soft: linear-gradient(100deg, rgba(255,122,0,.16), rgba(230,0,126,.16), rgba(138,43,226,.18));
  --line:    #e7e7ee;
  --maxw: 1180px;
  --maxw-text: 760px;
  --r: 14px;
  --font-display: 'Now', 'Montserrat', system-ui, sans-serif;
  --font-body:    'Now', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- base (opt these pages into the brand palette) ---------- */
body.t-page {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.6; color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.t-page h1, .t-page h2, .t-page h3 {
  font-family: var(--font-display); font-weight: 700;
  line-height: 1.06; letter-spacing: -0.02em; margin: 0;
}
.t-page h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.t-page h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.t-page h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

.t-page .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.t-page .measure { max-width: var(--maxw-text); margin-left: auto; margin-right: auto; }
.t-page .center { text-align: center; }
.t-page .muted { color: var(--text-dim); }

/* ---------- type accents ---------- */
.t-page .overline {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .2em; font-size: 13px; display: inline-block; margin-bottom: 16px;
}
.t-page .gradient-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.t-page .rule { height: 4px; width: 64px; border: 0; border-radius: 4px; background: var(--grad); margin: 0 0 26px; }

/* ---------- buttons ---------- */
.t-page .btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 14px 28px; border-radius: 100px; text-decoration: none;
  border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .25s ease, opacity .2s ease;
}
.t-page .btn:hover { transform: translateY(-2px); }
.t-page .btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 28px rgba(230,0,126,.35); }
.t-page .btn-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; opacity: .85; }
.t-page .btn-ghost:hover { opacity: 1; }

/* ===================================================================
   Header — branded hero over a cover image (mirrors pricing's hero).
   The shared site-navigation partial sits inside it, dimmed for legibility.
   =================================================================== */
.page-hero {
  position: relative; isolation: isolate;
  background-color: var(--ink-2); background-size: cover; background-position: center;
  color: #fff;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(11,11,15,.86) 0%, rgba(11,11,15,.58) 48%, rgba(11,11,15,.74) 100%);
}
.page-hero-titles { max-width: 760px; margin: 0 auto; text-align: center; padding: 3rem 24px 5rem; }
.page-hero-titles h1 { color: #fff; margin-bottom: 18px; }
.page-hero-sub {
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55;
  color: rgba(255,255,255,.86); max-width: 56ch; margin: 0 auto;
}

/* ---------- section rhythm ---------- */
.t-page .pr-section { padding: 80px 0; }
.t-page .pr-section--tight { padding: 56px 0; }
.t-page .pr-section--paper { background: var(--paper-2); }

.t-page .sec-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.t-page .sec-head h2 { margin-bottom: 14px; }
.t-page .sec-head p { color: var(--text-dim); font-size: 1.12rem; margin: 0 auto; max-width: 56ch; }

/* ===================================================================
   Download — latest-release card + release lists
   =================================================================== */
.dl-latest { max-width: 760px; margin: 0 auto; }
.dl-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-radius: 18px; padding: 30px 32px; background: var(--grad-soft); border: 1px solid transparent;
}
.dl-card .dl-meta { min-width: 0; }
.dl-tag {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; padding: 6px 14px; border-radius: 100px;
  margin-bottom: 14px; background: var(--grad); color: #fff;
}
.dl-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; word-break: break-word; }
.dl-sub { color: var(--text-dim); font-size: .9rem; margin-top: 6px; }

.dl-list { max-width: 760px; margin: 0 auto; list-style: none; padding: 0; }
.dl-list li { border-top: 1px solid var(--line); }
.dl-list li:last-child { border-bottom: 1px solid var(--line); }
.dl-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 4px; text-decoration: none; color: var(--text); font-weight: 600; word-break: break-word;
  transition: color .2s ease, padding .2s ease;
}
.dl-list a::after { content: "\2193"; color: var(--text-dim); font-weight: 700; transition: color .2s ease, transform .2s ease; }
.dl-list a:hover { color: var(--magenta); padding-left: 10px; }
.dl-list a:hover::after { color: var(--magenta); transform: translateY(2px); }
.dl-empty { text-align: center; color: var(--text-dim); }

/* ===================================================================
   Contact — branded form
   =================================================================== */
.contact-wrap {
  max-width: 640px; margin: 0 auto; background: var(--paper);
  border: 1px solid var(--line); border-radius: 18px; padding: 36px 34px;
  box-shadow: 0 24px 60px rgba(16,16,28,.06);
}
.contact-wrap > p:first-child { margin-top: 0; }
.contact-intro { color: var(--text-dim); font-size: 1.12rem; text-align: center; max-width: 56ch; margin: 0 auto 8px; }

.contact-form label {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: .04em; color: var(--text); margin: 20px 0 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(230,0,126,.12);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .form-note { color: var(--text-dim); font-size: .85rem; margin: 8px 0 0; }
.contact-form .form-submit {
  margin-top: 26px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 14px 32px; border-radius: 100px; border: 0; color: #fff; background: var(--grad);
  cursor: pointer; box-shadow: 0 10px 28px rgba(230,0,126,.35); transition: transform .15s ease;
}
.contact-form .form-submit:hover { transform: translateY(-2px); }

/* ===================================================================
   Download modal — branded over the per-file registration prompt
   =================================================================== */
.dl-modal-overlay { position: fixed; inset: 0; background: rgba(8,8,12,.7); backdrop-filter: blur(3px); z-index: 9998; }
.dl-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 9999;
  width: 100%; max-width: 420px; background: var(--paper); color: var(--text);
  border-radius: 18px; padding: 34px 30px 30px; box-shadow: 0 40px 100px rgba(0,0,0,.45);
}
.dl-modal h3 { font-family: var(--font-display); font-weight: 700; margin: 0 0 6px; font-size: 1.4rem; }
.dl-modal p { color: var(--text-dim); margin: 0 0 18px; }
.dl-modal input[type="text"],
.dl-modal input[type="email"] {
  width: 100%; font: inherit; color: var(--text); background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.dl-modal input:focus { outline: 0; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(230,0,126,.12); }
.dl-modal .form-submit {
  width: 100%; font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 100px; border: 0; color: #fff; background: var(--grad);
  cursor: pointer; box-shadow: 0 10px 28px rgba(230,0,126,.35); transition: transform .15s ease;
}
.dl-modal .form-submit:hover { transform: translateY(-2px); }
.dl-modal .form-submit:disabled { opacity: .7; cursor: default; transform: none; }
.dl-skip { position: absolute; top: 14px; left: 18px; font-size: .8em; color: var(--text-dim); text-decoration: underline; }
.dl-close { position: absolute; top: 10px; right: 14px; font-size: 1.3em; background: none; border: 0; cursor: pointer; color: var(--text-dim); line-height: 1; }
.dl-close:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) { .t-page * { transition-duration: .001ms !important; } }
