/* =====================================================================
   PRILEN shared chrome — self-hosted fonts, tokens, and layout styles
   Referenced by all main-site pages via <link rel="stylesheet" href="/assets/chrome.css">
   ===================================================================== */

/* ---------- Self-hosted fonts (also used by /use-cases/) ---------- */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

    :root {
      --primary-color: #0f172a; /* Slate 900 */
      --accent-color: #3b82f6;  /* Blue 500 */
      --bg-color: #f8fafc;      /* Slate 50 */
      --card-bg: #ffffff;
      --border-color: #e2e8f0;
      --text-color: #334155;
      --heading-color: #0f172a;
      --muted-color: #64748b;
      --success-color: #059669;
      --error-color: #b91c1c;
    }

    * { box-sizing: border-box; }
    html, body { margin: 0; padding: 0; }
    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
      background-color: var(--bg-color);
      color: var(--text-color);
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
      padding-top: 64px; /* space for sticky top bar */
    }

    a { color: var(--accent-color); text-decoration: none; }
    a:hover { text-decoration: underline; }

    /* ================== STICKY TOP BAR ================== */
    .topbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      height: 64px;
      background: #fff;
      border-bottom: 1px solid var(--border-color);
      box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 22px;
      gap: 14px;
    }
    .topbar-left {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      flex-wrap: nowrap;
    }
    .topbar .brand-mini {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }
    .topbar .brand-mini img {
      height: 38px;
      width: auto;
      display: block;
    }
    .nav-btn {
      background: #fff;
      color: var(--primary-color) !important;
      padding: 9px 14px;
      border-radius: 6px;
      font-weight: 600;
      font-size: 14px;
      letter-spacing: 0.01em;
      border: 1px solid var(--border-color);
      transition: background-color .15s, border-color .15s;
      white-space: nowrap;
      text-decoration: none;
      line-height: 1;
    }
    .nav-btn:hover {
      background: #f1f5f9;
      border-color: #cbd5e1;
      text-decoration: none;
    }
    .menu-toggle {
      display: none;
      background: none;
      border: 0;
      padding: 6px;
      cursor: pointer;
      color: var(--primary-color);
      align-items: center;
      justify-content: center;
    }
    .menu-toggle svg { display: block; }
    .menu-toggle[aria-expanded="true"] { color: var(--accent-color); }

    .mobile-drawer {
      position: fixed;
      top: 64px; left: 0; right: 0;
      background: #fff;
      border-bottom: 1px solid var(--border-color);
      box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
      z-index: 999;
      animation: slideDown 0.2s ease;
    }
    @keyframes slideDown {
      from { transform: translateY(-10px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
    .mobile-drawer nav { display: flex; flex-direction: column; }
    .mobile-drawer a {
      padding: 14px 22px;
      color: var(--primary-color) !important;
      font-weight: 500;
      font-size: 15px;
      border-bottom: 1px solid #f1f5f9;
      text-decoration: none;
    }
    .mobile-drawer a:hover {
      background: #f8fafc;
      color: var(--accent-color) !important;
      text-decoration: none;
    }
    .mobile-drawer a:last-child { border-bottom: 0; }
    .topbar .nav-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }
    .app-btn {
      background: var(--primary-color);
      color: #fff !important;
      padding: 9px 16px;
      border-radius: 6px;
      font-weight: 600;
      font-size: 14px;
      letter-spacing: 0.01em;
      transition: background-color .15s;
      white-space: nowrap;
    }
    .app-btn:hover { background: var(--accent-color); text-decoration: none; }
    .lang-switch {
      display: flex;
      gap: 6px;
      background: #f1f5f9;
      padding: 4px;
      border-radius: 999px;
    }
    .lang-switch button {
      background: none;
      border: 0;
      padding: 4px 8px;
      cursor: pointer;
      border-radius: 999px;
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12.5px;
      color: var(--muted-color);
      transition: background-color .15s, color .15s;
    }
    .lang-switch button:hover { color: var(--primary-color); }
    .lang-switch button.active { background: var(--primary-color); color: #fff; }
    .lang-switch .flag {
      width: 20px;
      height: 14px;
      border-radius: 2px;
      box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
      display: block;
    }
    .lang-switch .code { font-weight: 600; letter-spacing: 0.05em; }

    @media (max-width: 640px) {
      .topbar { padding: 0 10px; gap: 6px; }
      .topbar .brand-mini img { height: 30px; }
      .topbar-left { gap: 6px; }
      .app-btn { padding: 7px 10px; font-size: 12.5px; }
      .app-btn .app-btn-long { display: none; }
      .lang-switch button .code { display: none; }
      .lang-switch { padding: 3px; }
      .menu-toggle { display: flex; }
      .nav-btn.uc-link { display: none; }
    }
    @media (min-width: 641px) {
      .app-btn .app-btn-short { display: none; }
    }

    /* ================== HERO ================== */
    .hero {
      background: linear-gradient(180deg, #ffffff 0%, var(--bg-color) 100%);
      padding: 24px 20px 40px;
      text-align: center;
      border-bottom: 1px solid var(--border-color);
    }
    .hero h1 {
      font-size: clamp(28px, 4vw, 40px);
      color: var(--heading-color);
      margin: 8px 0 10px;
      letter-spacing: -0.01em;
    }
    .hero .tagline {
      font-size: clamp(16px, 2vw, 19px);
      color: var(--muted-color);
      max-width: 720px;
      margin: 0 auto 18px;
    }
    .hero .cta-row {
      display: flex;
      gap: 12px;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 14px;
    }
    .hero .cta {
      display: inline-block;
      background: var(--primary-color);
      color: #fff;
      padding: 12px 24px;
      border-radius: 8px;
      font-weight: 600;
      font-size: 15px;
    }
    .hero .cta:hover { background: #1e293b; text-decoration: none; }
    .hero .cta-secondary {
      background: #fff;
      color: var(--primary-color);
      border: 1px solid var(--border-color);
    }
    .hero .cta-secondary:hover { background: #f1f5f9; }

    /* ================== SECTIONS ================== */
    section {
      max-width: 980px;
      margin: 0 auto;
      padding: 28px 20px;
    }
    section h2 {
      font-size: clamp(22px, 2.6vw, 28px);
      color: var(--heading-color);
      margin: 0 0 14px;
      letter-spacing: -0.005em;
    }
    section h3 {
      font-size: 18px;
      color: var(--heading-color);
      margin: 22px 0 8px;
    }
    section p { margin: 0 0 14px; }
    section ul { margin: 0 0 14px 0; padding-left: 22px; }
    section ul li { margin-bottom: 6px; }

    .infographic {
      display: block;
      max-width: 100%;
      height: auto;
      margin: 24px auto 0;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
      border: 1px solid var(--border-color);
      background: #fff;
    }
    .img-zoom-link {
      display: block;
      cursor: zoom-in;
      transition: box-shadow .2s, transform .2s;
      border-radius: 10px;
    }
    .img-zoom-link:hover .infographic {
      box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
      transform: translateY(-1px);
    }

    .pillars {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 18px;
      margin-top: 8px;
    }
    .pillar {
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      border-radius: 10px;
      padding: 20px;
    }
    .pillar h3 { margin-top: 0; }

    .beta-banner {
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      color: #1e3a8a;
      padding: 16px 20px;
      border-radius: 10px;
      margin: 24px 0;
      font-size: 15px;
    }

    .uc-teaser {
      background: #fff;
      border: 1px solid var(--border-color);
      border-left: 4px solid var(--accent-color);
      border-radius: 10px;
      padding: 22px 24px;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    }
    .uc-teaser h2 {
      font-size: 22px !important;
      margin-bottom: 8px !important;
    }
    .uc-teaser p {
      color: var(--text-color);
      font-size: 15px;
    }
    .uc-teaser .cta {
      display: inline-block;
      background: var(--primary-color);
      color: #fff !important;
      padding: 10px 20px;
      border-radius: 8px;
      font-weight: 600;
      font-size: 14px;
      text-decoration: none;
    }
    .uc-teaser .cta:hover { background: var(--accent-color); text-decoration: none; }

    .testimonials {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 18px;
      margin-top: 14px;
    }
    .testimonial {
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 34px 28px 24px;
      font-size: 15.5px;
      line-height: 1.6;
      position: relative;
      box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
      transition: box-shadow .15s, transform .15s;
    }
    .testimonial:hover {
      box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
      transform: translateY(-1px);
    }
    .testimonial::before {
      content: "\201C";
      position: absolute;
      top: 6px;
      left: 18px;
      font-family: Georgia, "Times New Roman", serif;
      font-size: 56px;
      line-height: 1;
      color: var(--accent-color);
      opacity: 0.22;
      pointer-events: none;
    }
    .testimonial .quote {
      color: var(--text-color);
      margin: 0 0 14px;
    }
    .testimonial .attribution {
      font-size: 13.5px;
      color: var(--muted-color);
    }
    .testimonial .attribution .name {
      color: var(--accent-color);
      font-weight: 700;
    }

    footer {
      text-align: center;
      padding: 30px 20px 40px;
      color: var(--muted-color);
      font-size: 13px;
    }
    .footer-nav {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 2px;
      margin-bottom: 10px;
    }
    .footer-nav a {
      color: var(--primary-color) !important;
      font-weight: 600;
      padding: 2px 4px;
    }
    .footer-nav a:hover { color: var(--accent-color) !important; }
    .footer-line {
      line-height: 1.6;
    }

    /* Language visibility */
    [data-lang] { display: none; }
    html[lang="en"] [data-lang="en"],
    html[lang="de"] [data-lang="de"],
    html[lang="zh"] [data-lang="zh"] { display: inline; }
    html[lang="en"] [data-lang="en"].block,
    html[lang="de"] [data-lang="de"].block,
    html[lang="zh"] [data-lang="zh"].block { display: block; }

    /* =================================================================
       FORM SECTION — ported verbatim from /interest/index.html
       to preserve the same field descriptions and shading.
       ================================================================= */
    .form-section {
      background: var(--bg-color);
      padding: 40px 20px 60px;
      border-top: 1px solid var(--border-color);
    }
    .form-container {
      max-width: 700px;
      margin: 0 auto;
      background: var(--card-bg);
      padding: 40px;
      border-radius: 12px;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                  0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }
    .form-container h2 {
      color: var(--primary-color);
      text-align: center;
      margin: 0 0 6px;
      font-size: 1.6rem;
    }
    .form-container .subtitle {
      text-align: center;
      color: var(--muted-color);
      margin: 0 0 32px;
      font-size: 1.05rem;
      font-weight: 600;
    }
    .form-group { margin-bottom: 20px; }
    .form-container label {
      display: block;
      font-weight: 600;
      margin-bottom: 8px;
      color: var(--primary-color);
    }
    .label-large {
      font-size: 1.1rem;
      font-weight: 700;
    }
    .form-container input[type="text"],
    .form-container input[type="email"],
    .form-container input[type="tel"],
    .form-container input[type="number"],
    .form-container select,
    .form-container textarea {
      width: 100%;
      padding: 12px;
      border: 1px solid var(--border-color);
      border-radius: 6px;
      font-size: 1rem;
      transition: border-color 0.2s, box-shadow 0.2s;
      box-sizing: border-box;
      font-family: inherit;
    }
    .form-container input:focus,
    .form-container select:focus,
    .form-container textarea:focus {
      outline: none;
      border-color: var(--accent-color);
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
    .category-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      margin-bottom: 24px;
      background: #f1f5f9;
      padding: 18px;
      border-radius: 8px;
    }
    .checkbox-wrapper {
      display: flex;
      align-items: center;
      cursor: pointer;
      user-select: none;
    }
    .checkbox-wrapper input[type="checkbox"] {
      width: 18px;
      height: 18px;
      margin-right: 12px;
      accent-color: var(--accent-color);
      cursor: pointer;
    }
    .currency-header {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 10px;
      margin-bottom: 8px;
    }
    .currency-actions {
      font-size: 0.85rem;
      color: var(--muted-color);
      font-weight: 500;
      white-space: nowrap;
    }
    .currency-actions a {
      color: var(--accent-color);
      text-decoration: none;
      cursor: pointer;
    }
    .currency-actions a:hover { text-decoration: underline; }
    .currency-box {
      border: 1px solid var(--border-color);
      border-radius: 6px;
      height: 150px;
      overflow-y: auto;
      padding: 10px;
      background: #fff;
    }
    .currency-option {
      display: block;
      padding: 4px 0;
      font-size: 0.95rem;
    }
    .currency-option input { margin-right: 10px; }
    .dynamic-section {
      display: none;
      background: #fff;
      border: 1px solid var(--border-color);
      border-left: 4px solid var(--accent-color);
      padding: 20px;
      margin-bottom: 18px;
      border-radius: 4px;
      animation: fadeIn 0.35s ease;
    }
    .dynamic-section.active { display: block; }
    .dynamic-section h3 {
      margin-top: 0;
      font-size: 1.1rem;
      color: var(--accent-color);
      margin-bottom: 14px;
      border-bottom: 1px solid #f1f5f9;
      padding-bottom: 10px;
    }
    .dynamic-section h3 .optional-hint {
      font-size: 0.82rem;
      color: var(--muted-color);
      font-weight: 400;
      font-style: italic;
      margin-left: 8px;
    }
    .form-container .input-row {
      display: flex;
      gap: 15px;
      margin-bottom: 15px;
      flex-wrap: wrap;
    }
    .input-col {
      flex: 1;
      min-width: 200px;
    }
    .input-col label {
      font-size: 0.85rem;
      color: var(--muted-color);
    }
    .btn-submit {
      display: block;
      width: 100%;
      padding: 14px;
      background-color: var(--primary-color);
      color: white;
      border: none;
      border-radius: 6px;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      margin-top: 20px;
      transition: background-color 0.2s, transform 0.05s;
    }
    .btn-submit:hover { background-color: #1e293b; }
    .btn-submit:active { transform: translateY(1px); }
    .btn-submit[disabled] { opacity: 0.7; cursor: not-allowed; }
    #formStatus {
      margin-top: 14px;
      padding: 12px;
      border-radius: 8px;
      display: none;
      font-size: 0.95rem;
      border: 1px solid transparent;
    }
    #formStatus.success {
      display: block;
      color: var(--success-color);
      background: rgba(5, 150, 105, 0.08);
      border-color: rgba(5, 150, 105, 0.25);
    }
    #formStatus.error {
      display: block;
      color: var(--error-color);
      background: rgba(185, 28, 28, 0.06);
      border-color: rgba(185, 28, 28, 0.25);
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @media (min-width: 600px) {
      .category-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 560px) {
      .form-container { padding: 28px 20px; }
    }

/* ---------- Typography overrides (Schibsted Grotesk for display) ---------- */
h1, h2, h3, .hero h1, section h2, section h3, .hero .tagline, .pillar h3, .form-container h2 {
  font-family: 'Schibsted Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.005em;
}
.hero h1 { font-weight: 700; }
section h2 { font-weight: 600; }
section h3, .pillar h3, .form-container h2 { font-weight: 600; }
.hero .tagline { font-family: 'Inter', -apple-system, sans-serif; font-weight: 400; }


/* ---------- Hero with faded background image (optional usage per page) ---------- */
.hero-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg .hero-bg-image {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
}
.hero-bg .hero-bg-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.16;
  /* Lightly colored (no grayscale) by default. Add filter: grayscale(100%) per page if desired. */
}
.hero-bg .hero-bg-caption {
  position: absolute;
  right: 12px; bottom: 8px;
  font-size: 11px;
  color: var(--muted-color);
  background: rgba(255, 255, 255, 0.75);
  padding: 2px 7px;
  border-radius: 4px;
  pointer-events: none;
  font-style: italic;
  line-height: 1.3;
  z-index: 1;
}
