/*
Theme Name: NoRot
Theme URI: https://norot.app/
Author: NoRot
Author URI: https://norot.app/
Description: A fast, SEO-friendly and AI-friendly conversion-focused theme for the NoRot screen-time / brainrot-avoidance app. Built from scratch with semantic HTML5, structured data (JSON-LD), and a sticky App Store download card on every blog post. Inspired by modern digital-wellness landing pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: norot
Tags: blog, one-column, two-columns, custom-colors, custom-logo, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready, full-site-editing
*/

/* =================================================================
   NoRot Theme — Design System
   Palette + tokens mirror the NoRot iOS app: powder-blue canvas,
   lemon-yellow primary, ink near-black, raised neo-brutalist cards.
   ================================================================= */

:root {
  /* Color */
  --nr-bg: #ffffff;
  --nr-bg-alt: #f4f8fd;
  --nr-bg-wash: #eef4fb;
  --nr-surface: #ffffff;
  --nr-ink: #14181f;
  --nr-ink-soft: #41505f;
  --nr-primary: #ffd600;       /* lemon yellow */
  --nr-primary-deep: #f2c200;
  --nr-accent: #3d7bff;        /* sky/cta blue */
  --nr-accent-deep: #2a5fd6;
  --nr-good: #2fbf71;          /* "brain healing" green */
  --nr-bad: #ff5c5c;           /* doomscroll red */
  --nr-line: #14181f;

  /* Shadows (hard, neo-brutalist) */
  --nr-shadow: 6px 6px 0 var(--nr-ink);
  --nr-shadow-sm: 4px 4px 0 var(--nr-ink);
  --nr-shadow-lg: 10px 10px 0 var(--nr-ink);

  /* Geometry */
  --nr-radius: 18px;
  --nr-radius-sm: 12px;
  --nr-border: 2.5px solid var(--nr-ink);

  /* Type */
  --nr-font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --nr-maxw: 1140px;
  --nr-gap: clamp(1rem, 3vw, 2rem);
  --nr-section-y: clamp(3.5rem, 8vw, 7rem);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--nr-font);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--nr-ink);
  background-color: var(--nr-bg);
  background-image:
    radial-gradient(40rem 40rem at 8% -6%, rgba(255, 214, 0, 0.10), transparent 60%),
    radial-gradient(38rem 38rem at 100% 4%, rgba(61, 123, 255, 0.07), transparent 60%),
    radial-gradient(40rem 40rem at 92% 98%, rgba(47, 191, 113, 0.06), transparent 62%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
video { max-width: 100%; height: auto; display: block; }

a { color: var(--nr-accent-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--nr-ink); }

h1, h2, h3, h4 { line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 1.6rem + 4vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); }
p { margin: 0 0 1.1em; }

ul, ol { padding-left: 1.25em; }

:focus-visible {
  outline: 3px solid var(--nr-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--nr-ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Layout helpers ---------- */
.nr-container {
  width: 100%;
  max-width: var(--nr-maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.nr-section { padding-block: var(--nr-section-y); }
.nr-section--tint { background: var(--nr-bg-alt); }
.nr-section--ink { background: var(--nr-ink); color: #fff; }
.nr-section--ink h1,
.nr-section--ink h2,
.nr-section--ink h3 { color: #fff; }

.nr-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--nr-primary);
  color: var(--nr-ink);
  border: var(--nr-border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  box-shadow: var(--nr-shadow-sm);
  margin-bottom: 1rem;
}

.nr-lead { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); color: var(--nr-ink-soft); max-width: 56ch; }
.nr-center { text-align: center; }
.nr-center .nr-lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.nr-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  text-decoration: none;
  padding: 1rem 1.6rem;
  border: var(--nr-border);
  border-radius: 999px;
  background: var(--nr-primary);
  color: var(--nr-ink);
  box-shadow: var(--nr-shadow);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  will-change: transform;
}
.nr-btn:hover { color: var(--nr-ink); transform: translate(-2px, -2px); box-shadow: var(--nr-shadow-lg); }
.nr-btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--nr-ink); }
.nr-btn--accent { background: var(--nr-accent); color: #fff; }
.nr-btn--accent:hover { color: #fff; }
.nr-btn--ghost { background: var(--nr-surface); }
.nr-btn--lg { font-size: 1.15rem; padding: 1.15rem 2rem; }

/* App Store badge button */
.nr-appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--nr-ink);
  color: #fff;
  border: var(--nr-border);
  border-radius: 14px;
  padding: 0.7rem 1.25rem 0.7rem 1.1rem;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--nr-primary);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  line-height: 1;
}
.nr-appstore:hover { color: #fff; transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--nr-primary); }
.nr-appstore:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--nr-primary); }
.nr-appstore svg { width: 26px; height: 26px; flex: none; }
.nr-appstore .nr-appstore__txt { display: flex; flex-direction: column; text-align: left; }
.nr-appstore .nr-appstore__small { font-size: 0.7rem; opacity: 0.85; letter-spacing: 0.02em; }
.nr-appstore .nr-appstore__big { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }

.nr-cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.nr-center .nr-cta-row { justify-content: center; }

/* ---------- Cards (raised) ---------- */
.nr-card {
  background: var(--nr-surface);
  border: var(--nr-border);
  border-radius: var(--nr-radius);
  box-shadow: var(--nr-shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.nr-card--lift { transition: transform 0.12s ease, box-shadow 0.12s ease; }
.nr-card--lift:hover { transform: translate(-3px, -3px); box-shadow: var(--nr-shadow-lg); }

/* =================================================================
   HEADER / NAV
   ================================================================= */
.nr-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 2.5px solid var(--nr-ink);
}
.nr-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.nr-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--nr-ink); text-decoration: none; }
.nr-brand img { height: 34px; width: auto; }
.nr-brand .nr-brand__dot { color: var(--nr-accent); }

.nr-nav { display: flex; align-items: center; gap: 1.5rem; }
.nr-nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.nr-nav a { color: var(--nr-ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nr-nav a:hover { color: var(--nr-accent-deep); }
.nr-header__cta { display: flex; align-items: center; gap: 0.75rem; }

.nr-menu-toggle {
  display: none;
  background: var(--nr-primary);
  border: var(--nr-border);
  border-radius: 10px;
  box-shadow: var(--nr-shadow-sm);
  width: 46px; height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nr-menu-toggle span,
.nr-menu-toggle span::before,
.nr-menu-toggle span::after {
  content: "";
  display: block;
  width: 22px; height: 2.5px;
  background: var(--nr-ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nr-menu-toggle span::before { position: absolute; top: -7px; }
.nr-menu-toggle span::after { position: absolute; top: 7px; }
.nr-menu-toggle[aria-expanded="true"] span { background: transparent; }
.nr-menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nr-menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nr-menu-toggle { display: inline-flex; }
  .nr-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--nr-bg);
    border-bottom: 2.5px solid var(--nr-ink);
    padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.5rem;
    gap: 1rem;
    display: none;
  }
  .nr-nav.is-open { display: flex; }
  .nr-nav ul { flex-direction: column; gap: 0.4rem; }
  .nr-nav a { display: block; padding: 0.5rem 0; font-size: 1.1rem; }
}
/* Single header App Store badge: compact on small screens (icon-forward) */
@media (max-width: 600px) {
  .nr-header__cta .nr-appstore { padding: 0.5rem 0.7rem; gap: 0.45rem; box-shadow: 3px 3px 0 var(--nr-primary); }
  .nr-header__cta .nr-appstore__small { display: none; }
  .nr-header__cta .nr-appstore__big { font-size: 0.95rem; }
}

/* =================================================================
   HERO
   ================================================================= */
.nr-hero { padding-block: clamp(2.5rem, 6vw, 5rem) var(--nr-section-y); position: relative; }
.nr-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.nr-hero h1 { margin-bottom: 0.4em; }
.nr-hero h1 .nr-hl { color: var(--nr-accent-deep); }
.nr-hero__sub { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); color: var(--nr-ink-soft); max-width: 48ch; margin-bottom: 1.6rem; }
.nr-hero__proof { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.8rem; }
.nr-hero__proof .nr-mini { font-size: 0.95rem; color: var(--nr-ink-soft); }
.nr-hero__proof .nr-mini strong { display: block; font-size: 1.6rem; color: var(--nr-ink); }

.nr-hero__art { position: relative; display: flex; justify-content: center; }
.nr-phone {
  width: min(320px, 80%);
  aspect-ratio: 9 / 19;
  background: var(--nr-surface);
  border: 3px solid var(--nr-ink);
  border-radius: 38px;
  box-shadow: var(--nr-shadow-lg);
  padding: 14px;
  position: relative;
}
.nr-phone__screen {
  height: 100%;
  border-radius: 26px;
  background: linear-gradient(160deg, var(--nr-bg) 0%, var(--nr-bg-alt) 100%);
  border: 2px solid var(--nr-ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-align: center;
  padding: 1.2rem;
}
.nr-phone__screen img { border-radius: 18px; }

@media (max-width: 820px) {
  .nr-hero__grid { grid-template-columns: 1fr; text-align: center; }
  .nr-hero__sub { margin-inline: auto; }
  .nr-hero .nr-cta-row { justify-content: center; }
  .nr-hero__proof { justify-content: center; }
}

/* =================================================================
   STAT STRIP
   ================================================================= */
.nr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--nr-gap); }
.nr-stat { text-align: center; }
.nr-stat .nr-stat__num { font-size: clamp(2rem, 1.4rem + 2.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; color: var(--nr-accent-deep); }
.nr-stat .nr-stat__label { font-size: 0.98rem; color: var(--nr-ink-soft); }

/* =================================================================
   FEATURES
   ================================================================= */
.nr-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--nr-gap); margin-top: clamp(2rem, 5vw, 3.5rem); }
.nr-feature__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--nr-primary);
  border: var(--nr-border);
  border-radius: 14px;
  box-shadow: var(--nr-shadow-sm);
  margin-bottom: 1rem;
  font-size: 1.6rem;
}
.nr-feature h3 { margin-bottom: 0.35em; }
.nr-feature p { color: var(--nr-ink-soft); margin: 0; }

/* =================================================================
   HOW IT WORKS
   ================================================================= */
.nr-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--nr-gap); margin-top: clamp(2rem, 5vw, 3.5rem); counter-reset: step; }
.nr-step { position: relative; }
.nr-step__num {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  background: var(--nr-accent); color: #fff;
  border: var(--nr-border);
  border-radius: 50%;
  box-shadow: var(--nr-shadow-sm);
  font-weight: 700; font-size: 1.2rem;
  margin-bottom: 0.9rem;
}
.nr-step h3 { margin-bottom: 0.3em; }
.nr-step p { color: var(--nr-ink-soft); margin: 0; }

/* =================================================================
   TESTIMONIALS
   ================================================================= */
.nr-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--nr-gap); margin-top: clamp(2rem, 5vw, 3.5rem); }
.nr-quote__stars { color: var(--nr-primary-deep); letter-spacing: 2px; font-size: 1.1rem; margin-bottom: 0.6rem; -webkit-text-stroke: 0.6px var(--nr-ink); }
.nr-quote p { font-size: 1.05rem; }
.nr-quote__who { font-weight: 700; margin-top: 0.8rem; }
.nr-quote__who span { display: block; font-weight: 400; font-size: 0.9rem; color: var(--nr-ink-soft); }

/* =================================================================
   FAQ
   ================================================================= */
.nr-faq { max-width: 800px; margin-inline: auto; margin-top: clamp(2rem, 5vw, 3rem); display: grid; gap: 1rem; }
.nr-faq details {
  background: var(--nr-surface);
  border: var(--nr-border);
  border-radius: var(--nr-radius-sm);
  box-shadow: var(--nr-shadow-sm);
  padding: 0 1.25rem;
  overflow: hidden;
}
.nr-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.1rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.nr-faq summary::-webkit-details-marker { display: none; }
.nr-faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; transition: transform 0.2s ease; }
.nr-faq details[open] summary::after { transform: rotate(45deg); }
.nr-faq details > p { padding-bottom: 1.1rem; margin: 0; color: var(--nr-ink-soft); }

/* =================================================================
   FINAL CTA
   ================================================================= */
.nr-finalcta { text-align: center; }
.nr-finalcta .nr-card {
  background: var(--nr-primary);
  border-width: 3px;
  box-shadow: var(--nr-shadow-lg);
  padding: clamp(2rem, 6vw, 4rem);
}
.nr-finalcta h2 { max-width: 18ch; margin-inline: auto; }

/* =================================================================
   FOOTER
   ================================================================= */
.nr-footer { background: var(--nr-ink); color: #cbd6e2; padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.nr-footer a { color: #e8f1fb; text-decoration: none; }
.nr-footer a:hover { color: var(--nr-primary); }
.nr-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--nr-gap); }
.nr-footer__brand .nr-brand { color: #fff; }
.nr-footer__brand p { color: #9fb0c2; max-width: 32ch; margin-top: 0.8rem; }
.nr-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.nr-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.nr-footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #2b3645; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 0.9rem; color: #9fb0c2; }
.nr-social { display: flex; gap: 0.75rem; }
.nr-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid #3a475a; border-radius: 10px; }
.nr-social a:hover { background: var(--nr-primary); border-color: var(--nr-primary); }
.nr-social svg { width: 20px; height: 20px; }

@media (max-width: 700px) { .nr-footer__grid { grid-template-columns: 1fr 1fr; } .nr-footer__brand { grid-column: 1 / -1; } }

/* =================================================================
   BLOG — listing + single
   ================================================================= */
.nr-page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 1rem; text-align: center; }
.nr-page-head .nr-lead { margin-inline: auto; }

.nr-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--nr-gap); }
.nr-postcard { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.nr-postcard__thumb { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: var(--nr-border); background: var(--nr-bg-alt); }
.nr-postcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.nr-postcard__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.nr-postcard__meta { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--nr-accent-deep); margin-bottom: 0.6rem; }
.nr-postcard h3 { margin-bottom: 0.5rem; }
.nr-postcard h3 a { color: var(--nr-ink); text-decoration: none; }
.nr-postcard h3 a:hover { color: var(--nr-accent-deep); }
.nr-postcard p { color: var(--nr-ink-soft); margin: 0 0 1rem; }
.nr-postcard__more { margin-top: auto; font-weight: 700; color: var(--nr-accent-deep); text-decoration: none; }

/* Single post: content + sticky download card */
.nr-single { padding-block: clamp(2rem, 5vw, 3.5rem) var(--nr-section-y); }
.nr-single__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.nr-article { max-width: 72ch; }
.nr-article__head { margin-bottom: 1.5rem; }
.nr-article__meta { font-size: 0.9rem; color: var(--nr-ink-soft); display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 0.8rem; }
.nr-article__meta .nr-cat { background: var(--nr-primary); color: var(--nr-ink); border: 2px solid var(--nr-ink); border-radius: 999px; padding: 0.15rem 0.7rem; font-weight: 700; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; }
.nr-article__hero { border: var(--nr-border); border-radius: var(--nr-radius); box-shadow: var(--nr-shadow); overflow: hidden; margin-bottom: 1.8rem; }
.nr-article__hero img { width: 100%; }

/* Article typography */
.nr-prose { font-size: 1.12rem; line-height: 1.75; }
.nr-prose h2 { margin-top: 1.8em; }
.nr-prose h3 { margin-top: 1.5em; }
.nr-prose img { border: var(--nr-border); border-radius: var(--nr-radius-sm); box-shadow: var(--nr-shadow-sm); margin-block: 1.5rem; }
.nr-prose blockquote { margin: 1.6rem 0; padding: 1rem 1.4rem; border-left: 5px solid var(--nr-primary); background: var(--nr-surface); border-radius: 0 var(--nr-radius-sm) var(--nr-radius-sm) 0; font-style: italic; }
.nr-prose pre { background: var(--nr-ink); color: #e8f1fb; padding: 1.2rem; border-radius: var(--nr-radius-sm); overflow-x: auto; }
.nr-prose code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.9em; }
.nr-prose :not(pre) > code { background: var(--nr-bg-alt); padding: 0.15em 0.4em; border-radius: 6px; }
.nr-prose a { color: var(--nr-accent-deep); }
.nr-prose ul, .nr-prose ol { margin-block: 1rem; }
.nr-prose li { margin-bottom: 0.4rem; }

/* Sticky download card */
.nr-dl-aside { position: sticky; top: 90px; }
.nr-dl-card { text-align: center; }
.nr-dl-card__icon { width: 76px; height: 76px; border-radius: 18px; border: var(--nr-border); box-shadow: var(--nr-shadow-sm); margin: 0 auto 0.9rem; display: block; background: var(--nr-primary); }
.nr-dl-card h3 { margin-bottom: 0.25rem; font-size: 1.3rem; }
.nr-dl-card__tag { color: var(--nr-ink-soft); font-size: 0.95rem; margin-bottom: 0.9rem; }
.nr-dl-card__stars { color: var(--nr-primary-deep); -webkit-text-stroke: 0.6px var(--nr-ink); letter-spacing: 2px; margin-bottom: 0.2rem; }
.nr-dl-card__rating { font-size: 0.85rem; color: var(--nr-ink-soft); margin-bottom: 1.1rem; }
.nr-dl-card .nr-appstore { width: 100%; justify-content: center; }
.nr-dl-card__bullets { list-style: none; padding: 0; margin: 1.1rem 0 0; text-align: left; display: grid; gap: 0.5rem; font-size: 0.92rem; }
.nr-dl-card__bullets li { display: flex; gap: 0.5rem; align-items: flex-start; }
.nr-dl-card__bullets li::before { content: "✓"; color: var(--nr-good); font-weight: 700; }

/* Full-width sticky bottom download banner (shown on every blog post) */
.nr-dl-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(150%) blur(12px);
  border-top: 2.5px solid var(--nr-ink);
  padding: 0.65rem clamp(1rem, 4vw, 2rem);
  box-shadow: 0 -8px 26px rgba(20, 24, 31, 0.14);
}
.nr-dl-bar__inner {
  width: 100%;
  max-width: var(--nr-maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nr-dl-bar__info { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.nr-dl-bar__info img,
.nr-dl-bar__info .nr-dl-bar__icon { width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--nr-ink); flex: none; }
.nr-dl-bar__txt { min-width: 0; }
.nr-dl-bar__txt b { display: block; font-size: 1rem; line-height: 1.2; }
.nr-dl-bar__txt span { font-size: 0.82rem; color: var(--nr-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.nr-dl-bar__stars { color: var(--nr-primary-deep); -webkit-text-stroke: 0.5px var(--nr-ink); font-size: 0.85rem; letter-spacing: 1px; }

@media (max-width: 980px) {
  .nr-single__grid { grid-template-columns: 1fr; }
  .nr-dl-aside { position: static; }
  .nr-dl-aside .nr-dl-card { display: none; } /* sidebar card hidden on mobile; banner is the CTA */
}
@media (max-width: 540px) {
  .nr-dl-bar .nr-appstore__small { display: none; }
  .nr-dl-bar__txt span { display: none; }
  .nr-dl-bar { padding-block: 0.55rem; }
}

/* Keep the footer clear of the fixed banner on posts */
body.single .nr-footer { padding-bottom: 6rem; }

/* =================================================================
   Comments
   ================================================================= */
.nr-comments { max-width: 72ch; margin-top: 3rem; }
.nr-comments ol { list-style: none; padding: 0; }
.nr-comments .comment-body { background: var(--nr-surface); border: var(--nr-border); border-radius: var(--nr-radius-sm); box-shadow: var(--nr-shadow-sm); padding: 1.1rem 1.3rem; margin-bottom: 1rem; }
.nr-comments .children { margin-left: 1.5rem; }
.nr-comments input[type="text"],
.nr-comments input[type="email"],
.nr-comments input[type="url"],
.nr-comments textarea {
  width: 100%; font-family: inherit; font-size: 1rem;
  padding: 0.75rem 1rem; border: var(--nr-border); border-radius: var(--nr-radius-sm);
  background: var(--nr-surface); margin-bottom: 1rem;
}

/* =================================================================
   Pagination
   ================================================================= */
.nr-pagination { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: clamp(2rem, 5vw, 3rem); }
.nr-pagination a, .nr-pagination span {
  display: grid; place-items: center;
  min-width: 46px; height: 46px; padding: 0 0.75rem;
  border: var(--nr-border); border-radius: 12px;
  font-weight: 700; text-decoration: none; color: var(--nr-ink);
  background: var(--nr-surface); box-shadow: var(--nr-shadow-sm);
}
.nr-pagination a:hover { background: var(--nr-primary); }
.nr-pagination .current { background: var(--nr-accent); color: #fff; }

/* =================================================================
   Misc / utility
   ================================================================= */
.nr-mt-0 { margin-top: 0; }
.nr-prose > *:first-child { margin-top: 0; }

.nr-page-content { padding-block: clamp(2rem, 5vw, 3.5rem) var(--nr-section-y); }
.nr-page-content .nr-prose { margin-inline: auto; }

/* WP core alignment classes */
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: 0.85rem; color: var(--nr-ink-soft); text-align: center; margin-top: 0.5rem; }

/* =================================================================
   PREMIUM / DECORATIVE LAYER
   Adds story + texture: grain, floating doodles, hero stickers,
   a marquee band, and richer section depth.
   ================================================================= */

/* Fine grain overlay for a premium, printed feel. Sits above the body
   gradient but below content (negative z-index child of <body>). */
.nr-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Doodles — positioned absolutely inside sections. */
.nr-doodle {
  position: absolute;
  width: 64px;
  height: 64px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}
/* Sections that host doodles need containment + content above them. */
.nr-section,
.nr-hero,
.nr-finalcta .nr-card { position: relative; }
.nr-section { overflow: clip; }
.nr-section > .nr-container { position: relative; z-index: 1; }

/* Hero doodles */
.nr-hero .nr-d-1 { top: 4%; right: 46%; width: 46px; color: var(--nr-primary-deep); transform: rotate(-8deg); }
.nr-hero .nr-d-2 { bottom: 8%; left: -10px; width: 90px; color: var(--nr-accent); opacity: 0.22; }
.nr-hero .nr-d-3 { top: 8%; right: 2%; width: 70px; color: var(--nr-good); opacity: 0.5; }

/* Floating sticker badges around the hero phone */
.nr-sticker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--nr-surface);
  border: var(--nr-border);
  border-radius: 14px;
  box-shadow: var(--nr-shadow-sm);
  padding: 0.5rem 0.8rem;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  z-index: 3;
  animation: nr-float 5s ease-in-out infinite;
}
.nr-sticker--a { top: 6%; left: -4%; transform: rotate(-7deg); background: var(--nr-primary); }
.nr-sticker--b { top: 38%; right: -8%; transform: rotate(6deg); animation-delay: 1.2s; }
.nr-sticker--c { bottom: 6%; left: 2%; transform: rotate(4deg); animation-delay: 2.1s; }
.nr-sticker .nr-sticker__em { font-size: 1.05rem; }
@keyframes nr-float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-9px) rotate(var(--r, 0deg)); } }
.nr-sticker--a { --r: -7deg; }
.nr-sticker--b { --r: 6deg; }
.nr-sticker--c { --r: 4deg; }
@media (max-width: 820px) { .nr-sticker--b { right: 2%; } .nr-sticker--a { left: 2%; } }
@media (max-width: 560px) { .nr-sticker { display: none; } }

/* Generic decorative doodles in content sections */
.nr-section .nr-d-tl { top: 6%; left: 3%; color: var(--nr-accent); opacity: 0.16; width: 100px; }
.nr-section .nr-d-tr { top: 10%; right: 4%; color: var(--nr-primary-deep); opacity: 0.7; width: 52px; transform: rotate(12deg); }
.nr-section .nr-d-br { bottom: 8%; right: 5%; color: var(--nr-good); opacity: 0.18; width: 110px; }
.nr-section .nr-d-bl { bottom: 6%; left: 4%; color: var(--nr-primary-deep); opacity: 0.55; width: 46px; transform: rotate(-14deg); }
@media (max-width: 720px) { .nr-section .nr-d-tl, .nr-section .nr-d-br { display: none; } }

/* Marquee ticker band */
.nr-marquee {
  background: var(--nr-ink);
  border-block: 2.5px solid var(--nr-ink);
  overflow: hidden;
  padding-block: 0.85rem;
}
.nr-marquee__track {
  display: inline-flex;
  gap: 2.5rem;
  white-space: nowrap;
  will-change: transform;
  animation: nr-marquee 26s linear infinite;
}
.nr-marquee__track span {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
}
.nr-marquee__track .nr-marquee__star { color: var(--nr-primary); }
@keyframes nr-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Richer feature cards: colored icon tiles + top accent */
.nr-feature { position: relative; overflow: hidden; }
.nr-feature::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--nr-primary); }
.nr-features .nr-feature:nth-child(2)::before { background: var(--nr-accent); }
.nr-features .nr-feature:nth-child(3)::before { background: var(--nr-good); }
.nr-features .nr-feature:nth-child(4)::before { background: var(--nr-bad); }
.nr-features .nr-feature:nth-child(2) .nr-feature__icon { background: var(--nr-accent); }
.nr-features .nr-feature:nth-child(3) .nr-feature__icon { background: var(--nr-good); }
.nr-features .nr-feature:nth-child(4) .nr-feature__icon { background: #ffc7d1; }

/* Dark contrast band (value section) */
.nr-section--ink { overflow: clip; }
.nr-section--ink .nr-lead { color: #cbd6e2; }
.nr-section--ink .nr-eyebrow { background: var(--nr-primary); color: var(--nr-ink); }
.nr-band-glow { position: absolute; width: 38rem; height: 38rem; border-radius: 50%; filter: blur(10px); opacity: 0.18; z-index: 0; pointer-events: none; }
.nr-band-glow--1 { top: -16rem; left: -10rem; background: radial-gradient(closest-side, var(--nr-primary), transparent); opacity: 0.28; }
.nr-band-glow--2 { bottom: -18rem; right: -10rem; background: radial-gradient(closest-side, var(--nr-accent), transparent); opacity: 0.3; }

/* Step cards get a connecting feel + numbered chip already styled */
.nr-step { background: var(--nr-surface); border: var(--nr-border); border-radius: var(--nr-radius); box-shadow: var(--nr-shadow); padding: clamp(1.25rem, 3vw, 1.8rem); }

/* Final CTA: doodles + mascot room */
.nr-finalcta .nr-card { overflow: hidden; }
.nr-finalcta .nr-d-cta1 { top: -10px; left: 6%; width: 70px; color: var(--nr-ink); opacity: 0.12; }
.nr-finalcta .nr-d-cta2 { bottom: -6px; right: 8%; width: 90px; color: var(--nr-ink); opacity: 0.1; }
.nr-finalcta__mascot { width: clamp(96px, 18vw, 150px); height: auto; margin: 0 auto 0.5rem; display: block; }

/* Blog cards: subtle top accent + decorative listing background already from body */
.nr-postcard { position: relative; }

/* =================================================================
   MASCOT + CELEBRATION
   ================================================================= */
.nr-mascot-wrap { position: relative; display: inline-block; line-height: 0; }
.nr-mascot { display: block; }
.nr-mascot--emoji { line-height: 1; }

/* Celebrate motions */
.nr-mascot.is-celebrating { animation: nr-cheer 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes nr-cheer {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  25%      { transform: translateY(-8px) rotate(2deg); }
  50%      { transform: translateY(0) rotate(-2deg); }
  75%      { transform: translateY(-5px) rotate(1deg); }
}

/* Hero mascot — flying superhero swooping toward the phone */
.nr-mascot--hero { width: 100%; }
.nr-mascot--hero.nr-mascot--emoji { font-size: clamp(80px, 14vw, 150px); text-align: center; }
.nr-mascot--hero.is-celebrating { animation: nr-fly 4.5s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes nr-fly {
  0%, 100% { transform: translate(0, 0) rotate(-3deg); }
  50%      { transform: translate(10px, -14px) rotate(2deg); }
}

/* Testimonials / value "calm" + "cheer" mascots */
.nr-mascot--cheer { width: clamp(64px, 9vw, 92px); margin: 0 auto 0.4rem; }
.nr-mascot--cheer.nr-mascot--emoji { font-size: 3rem; }
.nr-mascot--zen { width: clamp(64px, 9vw, 96px); margin: 0 auto 0.6rem; filter: drop-shadow(0 8px 18px rgba(0,0,0,.3)); }
.nr-mascot--zen.nr-mascot--emoji { font-size: 3rem; }
.nr-mascot--zen.is-celebrating { animation: none; } /* meditation = stillness */
.nr-center .nr-mascot-wrap { display: block; }

/* Final-CTA mascot */
.nr-mascot--cta { width: clamp(80px, 12vw, 116px); margin: 0 auto 0.3rem; }
.nr-mascot--cta.nr-mascot--emoji { font-size: 3rem; }

/* Lottie containers keep aspect via the SVG; the variant class sets the width */
.nr-lottie svg { display: block; width: 100%; height: auto; }

/* =================================================================
   3D HERO STAGE
   ================================================================= */
.nr-hero__art { perspective: 1300px; }
.nr-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  transform-style: preserve-3d;
}
.nr-stage__phone { position: relative; z-index: 2; display: flex; justify-content: center; }
.nr-phone--3d {
  transform: rotateY(-15deg) rotateX(6deg) rotateZ(1.5deg);
  transform-style: preserve-3d;
  box-shadow:
    -34px 30px 50px rgba(20, 24, 31, 0.22),
    var(--nr-shadow-lg);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.nr-hero__art:hover .nr-phone--3d { transform: rotateY(-7deg) rotateX(3deg) rotateZ(0.5deg); }
.nr-phone__notch {
  position: absolute;
  top: 16px; left: 50%; transform: translateX(-50%);
  width: 38%; height: 22px;
  background: var(--nr-ink);
  border-radius: 0 0 14px 14px;
  z-index: 3;
}

/* Flying mascot placement over the stage (positioned wrapper) */
.nr-hero__mascot {
  position: absolute;
  z-index: 6;
  top: -16%;
  left: -14%;
  width: clamp(160px, 23vw, 240px);
  filter: drop-shadow(0 18px 22px rgba(20, 24, 31, 0.20));
}
.nr-parallax { will-change: translate; transition: translate 0.2s ease-out; }

@media (max-width: 820px) {
  .nr-phone--3d { transform: rotateY(-8deg) rotateX(3deg); }
  .nr-hero__mascot { top: -14%; left: 2%; width: clamp(140px, 34vw, 200px); }
}
@media (max-width: 560px) {
  .nr-hero__mascot { position: relative; top: auto; left: auto; width: 150px; margin: 1rem auto 0; }
  .nr-stage { display: flex; flex-direction: column; align-items: center; }
}

/* Confetti burst around celebrating mascots */
.nr-confetti { position: absolute; inset: -20% -10% 0; pointer-events: none; z-index: 5; }
.nr-confetti i {
  position: absolute;
  top: 30%; left: 50%;
  width: 9px; height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: nr-pop 2.8s ease-in-out infinite;
}
.nr-confetti i:nth-child(3n)   { background: var(--nr-primary); }
.nr-confetti i:nth-child(3n+1) { background: var(--nr-accent); }
.nr-confetti i:nth-child(3n+2) { background: var(--nr-good); }
.nr-confetti i:nth-child(1)  { --x: -120px; --y: -90px;  animation-delay: 0s;    }
.nr-confetti i:nth-child(2)  { --x: 110px;  --y: -100px; animation-delay: .2s;   }
.nr-confetti i:nth-child(3)  { --x: -70px;  --y: -130px; animation-delay: .45s;  }
.nr-confetti i:nth-child(4)  { --x: 80px;   --y: -120px; animation-delay: .1s;   }
.nr-confetti i:nth-child(5)  { --x: -150px; --y: -40px;  animation-delay: .6s;   }
.nr-confetti i:nth-child(6)  { --x: 150px;  --y: -50px;  animation-delay: .35s;  }
.nr-confetti i:nth-child(7)  { --x: -30px;  --y: -150px; animation-delay: .8s;   }
.nr-confetti i:nth-child(8)  { --x: 40px;   --y: -140px; animation-delay: .5s;   }
.nr-confetti i:nth-child(9)  { --x: -100px; --y: -110px; animation-delay: .25s;  }
.nr-confetti i:nth-child(10) { --x: 130px;  --y: -80px;  animation-delay: .7s;   }
.nr-confetti i:nth-child(11) { --x: -55px;  --y: -70px;  animation-delay: .15s;  }
.nr-confetti i:nth-child(12) { --x: 60px;   --y: -65px;  animation-delay: .9s;   }
.nr-confetti i:nth-child(13) { --x: -10px;  --y: -160px; animation-delay: .4s;   }
.nr-confetti i:nth-child(14) { --x: 20px;   --y: -100px; animation-delay: .55s;  }
@keyframes nr-pop {
  0%   { opacity: 0; transform: translate(0,0) rotate(0); }
  12%  { opacity: 1; }
  60%  { opacity: 1; transform: translate(var(--x), var(--y)) rotate(220deg); }
  100% { opacity: 0; transform: translate(calc(var(--x) * 1.15), calc(var(--y) + 60px)) rotate(360deg); }
}

/* Soft organic blob behind the hero phone (depth on white) */
.nr-blobby {
  position: absolute;
  z-index: 0;
  border-radius: 42% 58% 63% 37% / 47% 42% 58% 53%;
  filter: blur(2px);
}
.nr-blobby--1 {
  width: clamp(260px, 38vw, 420px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255,214,0,0.5), rgba(255,214,0,0.18) 70%, transparent);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: nr-morph 14s ease-in-out infinite;
}
@keyframes nr-morph {
  0%,100% { border-radius: 42% 58% 63% 37% / 47% 42% 58% 53%; }
  50%     { border-radius: 58% 42% 38% 62% / 55% 58% 42% 45%; }
}

/* =================================================================
   SCREENSHOT SHOWCASE
   ================================================================= */
.nr-screens {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.nr-screens__phone { transform: rotate(var(--tilt, 0deg)); transition: transform 0.2s ease; }
.nr-screens__phone:hover { transform: rotate(0deg) translateY(-6px); }
.nr-screens__frame {
  width: clamp(150px, 20vw, 220px);
  aspect-ratio: 9 / 19.5;
  background: var(--nr-ink);
  border: 3px solid var(--nr-ink);
  border-radius: 30px;
  padding: 7px;
  box-shadow: var(--nr-shadow);
  overflow: hidden;
}
.nr-screens__frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 23px; display: block; }
@media (max-width: 700px) {
  .nr-screens { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 1rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .nr-screens__phone { scroll-snap-align: center; flex: 0 0 auto; }
  .nr-screens__frame { width: 60vw; max-width: 240px; }
}

/* =================================================================
   3D DEPTH — premium layered shadows + cursor-follow card tilt
   ================================================================= */
/* Softer secondary shadow under every raised card for real depth */
.nr-card { box-shadow: var(--nr-shadow), 0 18px 34px -22px rgba(20, 24, 31, 0.35); }
.nr-finalcta .nr-card { box-shadow: var(--nr-shadow-lg), 0 30px 50px -24px rgba(20, 24, 31, 0.4); }

/* Grids become 3D stages */
.nr-features, .nr-steps, .nr-testimonials, .nr-posts { perspective: 1300px; }

/* Cards lift + tilt in 3D. JS sets --rx/--ry from the pointer; the hover
   fallback gives a fixed tilt for no-JS / touch. */
.nr-card--lift, .nr-step, .nr-quote {
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s ease;
}
.nr-tilting {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px) !important;
  box-shadow: var(--nr-shadow-lg), 0 34px 50px -20px rgba(20, 24, 31, 0.3) !important;
}
@media (hover: hover) {
  .nr-card--lift:hover, .nr-step:hover, .nr-quote:hover {
    transform: translateY(-6px) rotateX(4deg) rotateY(-5deg);
    box-shadow: var(--nr-shadow-lg), 0 34px 50px -20px rgba(20, 24, 31, 0.28);
  }
}

/* Screenshot row in true 3D */
.nr-screens { perspective: 1600px; transform-style: preserve-3d; }
.nr-screens__phone {
  transform: rotateY(calc(var(--tilt, 0deg) * 1.6)) rotateZ(calc(var(--tilt, 0deg) * 0.35)) translateZ(0);
}
.nr-screens__phone:hover { transform: rotateY(0deg) rotateZ(0deg) translateZ(40px) translateY(-6px); }
.nr-screens__frame { box-shadow: var(--nr-shadow), 0 26px 40px -18px rgba(20, 24, 31, 0.4); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .nr-marquee__track { animation: none; }
}
