/* ============================================================
   nolreload.org — site stylesheet
   prefix: nrx-  ·  style: corporate-trust (skeleton) + glassmorph (accent)
   palette shifted from #e60000 / #1a1a1a / #ffffff
   ============================================================ */

@layer tokens, base, layout, components, utils;

/* ---------------- tokens ---------------- */
@layer tokens {
  :root {
    --brand: #d4241a;          /* primary red, shifted off #e60000 */
    --brand-700: #ab1810;      /* hover / pressed */
    --brand-100: #fbe7e4;      /* tint */
    --ink: #181b21;            /* near-black, cooled */
    --ink-soft: #4b515c;
    --ink-mute: #7c828d;
    --paper: #ffffff;
    --paper-2: #f5f7f9;
    --paper-3: #eef1f4;
    --line: #e2e6eb;
    --glass: rgba(255, 255, 255, 0.62);
    --glass-line: rgba(255, 255, 255, 0.75);
    --ring: rgba(212, 36, 26, 0.32);
    --shadow-sm: 0 1px 2px rgba(24, 27, 33, 0.06), 0 2px 8px rgba(24, 27, 33, 0.05);
    --shadow-md: 0 8px 28px rgba(24, 27, 33, 0.10);
    --shadow-glass: 0 10px 40px rgba(24, 27, 33, 0.12);
    --r-sm: 4px;
    --r-md: 10px;
    --r-lg: 18px;
    --maxw: 1140px;
    --gap: clamp(16px, 3vw, 32px);
    --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  }
}

/* ---------------- base ---------------- */
@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
  }
  body.nrx-noscroll { overflow: hidden; }
  h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.01em; }
  h1 { font-size: clamp(2.1rem, 1.4rem + 2.7vw, 3.3rem); }
  h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.15rem); }
  h3 { font-size: 1.18rem; }
  p { margin: 0 0 1rem; max-width: 65ch; }
  a { color: var(--brand-700); text-decoration: none; }
  a:hover { text-decoration: underline; }
  img, svg { max-width: 100%; height: auto; display: block; }
  :focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 3px; }
}

/* ---------------- layout ---------------- */
@layer layout {
  .nrx-container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 28px); }
  .nrx-section { padding-block: clamp(44px, 6vw, 86px); position: relative; }
  .nrx-section.-tight { padding-block: clamp(28px, 4vw, 52px); }
  .nrx-section.-paper { background: var(--paper-2); }
  .nrx-section.-ink { background: var(--ink); color: #e9ebef; }
  .nrx-section.-ink h2 { color: #fff; }
  .nrx-head { max-width: 62ch; margin-bottom: clamp(22px, 3vw, 38px); }
  .nrx-eyebrow { display: inline-block; font-family: var(--font-head); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 12px; }
  .nrx-grid { display: grid; gap: var(--gap); }
  .nrx-grid.-c2 { grid-template-columns: repeat(2, 1fr); }
  .nrx-grid.-c4 { grid-template-columns: repeat(4, 1fr); }
  .nrx-grid.-auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}

/* ---------------- components ---------------- */
@layer components {

  /* scroll progress thread (vertical) */
  .nrx-thread { position: fixed; top: 0; inset-inline-start: 0; width: 3px; height: 100%; z-index: 60; pointer-events: none; }
  .nrx-thread > i { display: block; width: 100%; height: 0%; background: linear-gradient(var(--brand), var(--brand-700)); transition: height .1s linear; }

  /* announcement bar */
  .nrx-announce { background: var(--ink); color: #f1f2f5; font-size: .85rem; }
  .nrx-announce .row { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 16px; text-align: center; }
  .nrx-announce strong { color: #fff; font-weight: 600; }
  .nrx-announce .x { margin-inline-start: auto; background: none; border: 0; color: #b8bcc6; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 4px; }
  .nrx-announce.-hidden { display: none; }

  /* header — floating island, blur, hide on scroll down */
  .nrx-header { position: sticky; top: 12px; z-index: 50; transition: transform .3s ease, box-shadow .3s ease; }
  .nrx-header .island {
    display: flex; align-items: center; gap: 18px;
    margin: 12px auto 0; max-width: var(--maxw);
    width: calc(100% - clamp(20px, 6vw, 48px));
    padding: 10px 14px 10px 18px;
    background: var(--glass);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--glass-line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-glass);
  }
  .nrx-header.-hidden { transform: translateY(-130%); }
  .nrx-nav { display: flex; gap: 22px; margin-inline-start: 8px; }
  .nrx-nav a { color: var(--ink-soft); font-size: .92rem; font-weight: 500; }
  .nrx-nav a:hover { color: var(--brand-700); text-decoration: none; }
  .nrx-nav a[aria-current="page"] { color: var(--brand-700); }
  .nrx-header .spacer { margin-inline-start: auto; }
  .nrx-actions { display: flex; align-items: center; gap: 12px; }

  /* logo */
  .nrx-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
  .nrx-logo:hover { text-decoration: none; }
  .nrx-logo .mark { width: 34px; height: 34px; flex: none; }
  .nrx-logo .word { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
  .nrx-logo .word b { color: var(--brand); font-weight: 700; }
  .nrx-logo .sub { font-size: .74rem; color: var(--ink-mute); font-family: var(--font-body); }

  /* language pill (split) */
  .nrx-lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: .8rem; }
  .nrx-lang a { padding: 5px 11px; color: var(--ink-soft); font-weight: 600; }
  .nrx-lang a:hover { text-decoration: none; background: var(--paper-2); }
  .nrx-lang a.-on { background: var(--ink); color: #fff; }

  /* buttons — sharp corners */
  .nrx-btn { --b: var(--brand); display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 600; font-size: .98rem; padding: 13px 22px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .05s; line-height: 1; }
  .nrx-btn:hover { text-decoration: none; }
  .nrx-btn:active { transform: translateY(1px); }
  .nrx-btn.-primary { background: var(--brand); color: #fff; }
  .nrx-btn.-primary:hover { background: var(--brand-700); }
  .nrx-btn.-ink { background: var(--ink); color: #fff; }
  .nrx-btn.-ink:hover { background: #000; }
  .nrx-btn.-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
  .nrx-btn.-ghost:hover { border-color: var(--ink); }
  .nrx-btn.-glass { background: var(--glass); backdrop-filter: blur(8px); border: 1px solid var(--glass-line); color: var(--ink); box-shadow: var(--shadow-sm); }
  .nrx-btn.-lg { padding: 16px 28px; font-size: 1.05rem; }
  .nrx-btn.-block { width: 100%; justify-content: center; }
  .nrx-btn .arrow { transition: transform .15s; }
  .nrx-btn:hover .arrow { transform: translateX(3px); }
  [dir="rtl"] .nrx-btn:hover .arrow { transform: translateX(-3px); }

  /* chips */
  .nrx-chips { display: flex; flex-wrap: wrap; gap: 10px; }
  .nrx-chip { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; }
  .nrx-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

  /* cards — glass */
  .nrx-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; box-shadow: var(--shadow-sm); }
  .nrx-card h3 { margin-top: 0; }
  .nrx-card.-glass { background: var(--glass); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border: 1px solid var(--glass-line); box-shadow: var(--shadow-glass); }
  .nrx-card.-pad { padding: clamp(22px, 3vw, 34px); }
  .nrx-card .num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--brand-100); color: var(--brand-700); font-family: var(--font-head); font-weight: 700; font-size: .9rem; flex: none; }

  /* hero */
  .nrx-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
  .nrx-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 34px 34px; opacity: .5;
    -webkit-mask-image: radial-gradient(120% 90% at 80% 0%, #000 30%, transparent 75%);
            mask-image: radial-gradient(120% 90% at 80% 0%, #000 30%, transparent 75%);
  }
  .nrx-hero .inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 54px); align-items: center; padding-block: clamp(40px, 6vw, 76px); }
  .nrx-hero h1 { margin-bottom: 16px; }
  .nrx-hero .lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 52ch; }
  .nrx-hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 26px 0 22px; }
  .nrx-hero .meta { font-size: .85rem; color: var(--ink-mute); }

  /* hero glass panel */
  .nrx-panel { padding: clamp(20px, 2.5vw, 30px); }
  .nrx-panel .tag { display: inline-block; font-family: var(--font-head); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-100); padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
  .nrx-panel ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
  .nrx-panel li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
  .nrx-panel li b { display: block; font-family: var(--font-head); font-size: .98rem; margin-bottom: 2px; }
  .nrx-panel li span.t { font-size: .9rem; color: var(--ink-soft); }

  /* steps */
  .nrx-steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; gap: 18px; }
  .nrx-step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
  .nrx-step .n { counter-increment: st; }
  .nrx-step .n::before { content: counter(st, decimal-leading-zero); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--brand); }
  .nrx-step h3 { margin: 0 0 4px; }
  .nrx-step p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

  /* single pricing card */
  .nrx-price { max-width: 460px; }
  .nrx-price .amt { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--ink); }
  .nrx-price ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
  .nrx-price li { display: flex; gap: 10px; align-items: start; font-size: .95rem; color: var(--ink-soft); }
  .nrx-price li svg { flex: none; color: var(--brand); margin-top: 3px; }

  /* trust strip */
  .nrx-strip { display: flex; flex-wrap: wrap; gap: clamp(14px, 3vw, 40px); align-items: center; justify-content: space-between; }
  .nrx-stat { }
  .nrx-stat b { display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--brand-700); line-height: 1; }
  .nrx-stat span { font-size: .85rem; color: var(--ink-mute); }

  /* faq */
  .nrx-faq { display: grid; gap: 10px; max-width: 820px; }
  .nrx-faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); overflow: hidden; }
  .nrx-faq summary { cursor: pointer; padding: 16px 20px; font-family: var(--font-head); font-weight: 500; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
  .nrx-faq summary::-webkit-details-marker { display: none; }
  .nrx-faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; flex: none; }
  .nrx-faq details[open] summary::after { content: "\2013"; }
  .nrx-faq .ans { padding: 0 20px 18px; color: var(--ink-soft); font-size: .96rem; }
  .nrx-faq .ans p { margin: 0; }

  /* breadcrumbs */
  .nrx-crumbs { font-size: .84rem; color: var(--ink-mute); padding-block: 14px; }
  .nrx-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
  .nrx-crumbs li::after { content: "/"; margin-inline-start: 8px; color: var(--line); }
  .nrx-crumbs li:last-child::after { content: ""; }

  /* forms */
  .nrx-form { display: grid; gap: 20px; }
  .nrx-field { display: grid; gap: 6px; }
  .nrx-field label { font-family: var(--font-head); font-weight: 500; font-size: .92rem; }
  .nrx-field input, .nrx-field select {
    font-family: var(--font-body); font-size: 1rem; padding: 13px 14px; border: 1px solid var(--line);
    border-radius: var(--r-sm); background: var(--paper); color: var(--ink); width: 100%;
  }
  .nrx-field input:focus, .nrx-field select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--ring); }
  .nrx-field .hint { font-size: .8rem; color: var(--ink-mute); }
  .nrx-field .err { font-size: .8rem; color: var(--brand-700); display: none; }
  .nrx-field.-invalid input, .nrx-field.-invalid select { border-color: var(--brand); }
  .nrx-field.-invalid .err { display: block; }
  .nrx-field.-invalid .hint { display: none; }

  /* amount picker */
  .nrx-amount { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
  .nrx-amount label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 50px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-family: var(--font-head); font-weight: 600; cursor: pointer; transition: border-color .12s, background .12s, color .12s; background: var(--paper); }
  .nrx-amount input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
  .nrx-amount label:has(input:checked) { background: var(--brand); color: #fff; border-color: var(--brand); }
  .nrx-amount label.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }

  /* footer */
  .nrx-footer { background: var(--ink); color: #c4c8d0; padding-block: clamp(40px, 5vw, 60px) 26px; font-size: .92rem; }
  .nrx-footer a { color: #c4c8d0; }
  .nrx-footer a:hover { color: #fff; }
  .nrx-footer .cols { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
  .nrx-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
  .nrx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
  .nrx-footer .brand p { color: #9aa0ab; max-width: 34ch; font-size: .9rem; }
  .nrx-footer .wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: #fff; font-weight: 500; }
  .nrx-footer .bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
  .nrx-footer .bottom p { color: #868d99; font-size: .82rem; margin: 0; max-width: none; }

  /* cookies */
  .nrx-cookies { position: fixed; inset-inline: 16px; bottom: 16px; max-width: 440px; margin-inline: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 16px 18px; z-index: 70; transform: translateY(160%); transition: transform .3s ease; }
  .nrx-cookies.-shown { transform: translateY(0); }
  .nrx-cookies p { font-size: .85rem; margin: 0 0 10px; color: var(--ink-soft); }
  .nrx-cookies button { font-family: var(--font-head); font-weight: 600; font-size: .85rem; background: var(--ink); color: #fff; border: 0; border-radius: var(--r-sm); padding: 9px 16px; cursor: pointer; }

  /* drawer — CSS-driven (visibility + opacity) */
  .nrx-drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; opacity: 0; transition: opacity .26s ease, visibility .26s ease; }
  .nrx-drawer[aria-hidden="false"] { visibility: visible; opacity: 1; }
  .nrx-drawer .backdrop { position: absolute; inset: 0; background: rgba(15,17,21,.46); backdrop-filter: blur(2px); }
  .nrx-drawer .panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(86vw, 340px); background: var(--paper); padding: 22px; display: flex; flex-direction: column; gap: 8px; transform: translateX(100%); transition: transform .26s ease; box-shadow: var(--shadow-md); }
  [dir="rtl"] .nrx-drawer .panel { transform: translateX(-100%); }
  .nrx-drawer[aria-hidden="false"] .panel { transform: translateX(0); }
  .nrx-drawer .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .nrx-drawer .close { background: none; border: 0; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }
  .nrx-drawer nav { display: grid; gap: 2px; }
  .nrx-drawer nav a { padding: 11px 8px; color: var(--ink); font-weight: 500; border-radius: var(--r-sm); }
  .nrx-drawer nav a:hover { background: var(--paper-2); text-decoration: none; }
  .nrx-drawer .foot { margin-top: auto; display: grid; gap: 12px; }

  /* burger (mobile only) */
  .nrx-burger { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
  .nrx-burger svg { stroke: var(--ink); }

  /* prose / legal */
  .nrx-prose { max-width: 72ch; }
  .nrx-prose h2 { margin-top: 1.8em; }
  .nrx-prose h3 { margin-top: 1.4em; }
  .nrx-prose ul, .nrx-prose ol { padding-inline-start: 22px; color: var(--ink-soft); }
  .nrx-prose li { margin-bottom: 8px; }
  .nrx-prose .meta { font-size: .85rem; color: var(--ink-mute); }

  /* table */
  .nrx-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
  .nrx-table th, .nrx-table td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .nrx-table th { font-family: var(--font-head); font-weight: 600; background: var(--paper-2); }

  /* status dots */
  .nrx-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 7px; }
  .nrx-dot.-ok { background: #2f9e44; }
  .nrx-dot.-warn { background: #e8a13a; }

  /* redirect overlay — spinner only */
  .nrx-overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.82); backdrop-filter: blur(3px); visibility: hidden; opacity: 0; transition: opacity .2s; }
  .nrx-overlay.-on { visibility: visible; opacity: 1; }
  .nrx-spin { width: 46px; height: 46px; border: 4px solid var(--paper-3); border-top-color: var(--brand); border-radius: 50%; animation: nrx-rot .8s linear infinite; }
  @keyframes nrx-rot { to { transform: rotate(360deg); } }
}

/* ---------------- utils ---------------- */
@layer utils {
  .nrx-hide-m { display: revert; }
  .nrx-only-m { display: none; }
  .center { text-align: center; }
  .mt { margin-top: 24px; }
  .mt-lg { margin-top: 40px; }
  .muted { color: var(--ink-mute); }
  .small { font-size: .85rem; }
  .sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .flow > * + * { margin-top: 1rem; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 860px) {
  .nrx-hero .inner { grid-template-columns: 1fr; }
  .nrx-grid.-c2, .nrx-grid.-c4 { grid-template-columns: 1fr 1fr; }
  .nrx-footer .cols { grid-template-columns: 1fr 1fr; }
  .nrx-nav, .nrx-hide-m { display: none !important; }
  .nrx-burger { display: inline-flex; }
  .nrx-only-m { display: revert; }
}
@media (max-width: 540px) {
  .nrx-grid.-c2, .nrx-grid.-c4 { grid-template-columns: 1fr; }
  .nrx-footer .cols { grid-template-columns: 1fr; }
  .nrx-strip { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .nrx-spin { animation-duration: 1.6s; }
}

/* ---------------- RTL / Arabic ---------------- */
[dir="rtl"] body,
[dir="rtl"] .nrx-logo .word,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  font-family: "IBM Plex Sans Arabic", "Cairo", "Segoe UI", system-ui, sans-serif;
}
[dir="rtl"] .nrx-eyebrow { letter-spacing: 0; }
[dir="rtl"] .nrx-hero::before {
  -webkit-mask-image: radial-gradient(120% 90% at 20% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 20% 0%, #000 30%, transparent 75%);
}
[dir="rtl"] .nrx-faq summary::after { content: "+"; }
[dir="rtl"] .nrx-faq details[open] summary::after { content: "\2013"; }
