:root {
  --saffron: #E8650A;
  --saffron-light: #FF9340;
  --gold: #C47F00;
  --cream: #FDF6EC;
  --cream-dark: #F5E8CF;
  --bark: #3D1F0D;
  --bark-mid: #6B3A1F;
  --bark-soft: rgba(61,31,13,0.76);
  --glass: rgba(255,255,255,0.76);
  --border: rgba(255,255,255,0.42);
  --shadow: rgba(196,127,0,0.12);
  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body: 'DM Sans', system-ui, sans-serif;
  --radius-card: 28px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--bark);
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(232,101,10,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 65% 55% at 82% 92%, rgba(196,127,0,0.11) 0%, transparent 62%),
    linear-gradient(160deg, #FDF6EC 0%, #F8EDD8 42%, #F2DFC0 100%);
  line-height: 1.75;
}
a { color: inherit; }

.page-wrap { width: min(1160px, calc(100vw - 24px)); margin: 0 auto; padding: 36px 0 72px; }
.site-nav {
  position: sticky; top: 16px; z-index: 30;
  width: min(1160px, calc(100vw - 24px)); margin: 16px auto 0; padding: 14px 18px;
  border-radius: var(--radius-pill); background: rgba(253,246,236,0.82);
  border: 1px solid var(--border); box-shadow: 0 12px 32px var(--shadow);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.nav-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { font: 700 1.28rem/1 var(--ff-display); color: var(--saffron); text-decoration: none; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--bark-mid); font-size: 0.95rem; }
.nav-links .nav-cta {
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
  color: white; box-shadow: 0 8px 24px rgba(232,101,10,0.24);
}
.language-switcher { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.language-pill {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px;
  padding: 8px 12px; border-radius: var(--radius-pill); text-decoration: none;
  border: 1px solid rgba(196,127,0,0.16); background: rgba(255,255,255,0.56);
  color: var(--bark-mid); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em;
}
.language-pill.active { background: linear-gradient(135deg, rgba(232,101,10,0.16), rgba(196,127,0,0.14)); color: var(--saffron); border-color: rgba(232,101,10,0.2); }

.nj-breadcrumb { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 20px auto 0; font-size: 0.82rem; color: var(--bark-mid); }
.nj-breadcrumb a { text-decoration: none; color: var(--bark-mid); }
.nj-breadcrumb a:hover { color: var(--saffron); }
.nj-breadcrumb span[aria-current] { color: var(--saffron); font-weight: 600; }

.nj-hero { text-align: center; max-width: 720px; margin: 20px auto 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill);
  background: rgba(232,101,10,0.1); color: var(--saffron); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nj-hero h1 { font-family: var(--ff-display); font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin: 16px 0 0; line-height: 1.15; }
.nj-hero p { color: var(--bark-mid); font-size: 1.05rem; margin: 14px 0 0; }

.nj-tool-card {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: 0 18px 48px var(--shadow); padding: 28px; max-width: 640px; margin: 28px auto;
}
.nj-picker-group { margin-bottom: 14px; }
.nj-picker-group-label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.nj-picker-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.nj-pill {
  flex: 0 0 auto; border: 1px solid rgba(196,127,0,0.18); background: rgba(255,255,255,0.6);
  color: var(--bark-mid); padding: 8px 14px; border-radius: var(--radius-pill); font-size: 0.85rem;
  font-family: var(--ff-body); cursor: pointer; white-space: nowrap;
}
.nj-pill.active { background: linear-gradient(135deg, var(--saffron), var(--saffron-light)); color: #fff; border-color: transparent; }

.nj-mantra-header { text-align: center; margin: 20px 0 10px; }
.nj-mantra-header h2 { font-family: var(--ff-display); font-size: 1.7rem; margin: 0; }
.nj-mantra-script { font-size: 1.1rem; color: var(--bark-mid); margin-top: 4px; }
.nj-mantra-toggle { display: inline-block; margin-top: 8px; background: none; border: none; color: var(--saffron); font-size: 0.85rem; font-weight: 700; cursor: pointer; padding: 0; }
.nj-mantra-text { margin: 12px auto 0; max-width: 520px; color: var(--bark-mid); font-size: 0.95rem; line-height: 1.6; text-align: center; }
.nj-mantra-text[hidden] { display: none; }
.nj-mantra-meaning { margin: 8px auto 0; max-width: 480px; color: var(--bark-soft); font-size: 0.88rem; font-style: italic; line-height: 1.6; text-align: center; }

.nj-dial-wrap { display: flex; justify-content: center; margin: 24px 0 14px; }
.nj-dial {
  position: relative; width: 220px; height: 220px; border: none; background: none; padding: 0; cursor: pointer;
}
.nj-dial:active { transform: scale(0.98); }
.nj-dial.nj-dial-pulse { animation: nj-pulse 0.18s ease; }
.nj-dial.nj-dial-celebrate .nj-dial-ring-fill { stroke: var(--gold); }
.nj-dial.nj-dial-celebrate { animation: nj-celebrate 0.6s ease; }
@keyframes nj-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes nj-celebrate { 0% { transform: scale(1); } 30% { transform: scale(1.12); } 60% { transform: scale(0.97); } 100% { transform: scale(1); } }
.nj-dial-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.nj-dial-ring-track { fill: none; stroke: var(--cream-dark); stroke-width: 14; }
.nj-dial-ring-fill { fill: none; stroke: var(--saffron); stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 0.25s ease; }
.nj-dial-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--ff-display); }
.nj-dial-count { font-size: 3rem; font-weight: 700; line-height: 1; color: var(--bark); }
.nj-dial-hint { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bark-mid); margin-top: 6px; }

.nj-round-label { text-align: center; color: var(--bark-mid); font-size: 0.95rem; margin-bottom: 12px; }
.nj-stats-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 0.85rem; color: var(--bark-mid); margin-bottom: 14px; }

.nj-goal-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 10px; font-size: 0.85rem; color: var(--bark-mid); }
.nj-goal-row select {
  border: 1px solid rgba(196,127,0,0.2); border-radius: var(--radius-pill); padding: 6px 10px;
  font-family: var(--ff-body); background: rgba(255,255,255,0.7); color: var(--bark);
}
.nj-goal-bar { max-width: 320px; margin: 0 auto 6px; height: 8px; border-radius: 999px; background: var(--cream-dark); overflow: hidden; }
.nj-goal-bar-fill { height: 100%; background: linear-gradient(90deg, var(--saffron), var(--saffron-light)); width: 0%; transition: width 0.25s ease; }
.nj-goal-remaining { text-align: center; font-size: 0.85rem; color: var(--bark-mid); margin: 0 0 14px; }

.nj-action-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.nj-action-button {
  background: rgba(255,255,255,0.7); border: 1px solid rgba(196,127,0,0.16);
  color: var(--bark); padding: 8px 16px; border-radius: var(--radius-pill); font-size: 0.85rem; cursor: pointer;
  font-family: var(--ff-body);
}
.nj-action-button:disabled { opacity: 0.4; cursor: not-allowed; }
.nj-action-button[aria-pressed="true"] { background: linear-gradient(135deg, rgba(232,101,10,0.16), rgba(196,127,0,0.14)); color: var(--saffron); border-color: rgba(232,101,10,0.24); }
.nj-timer { text-align: center; font-variant-numeric: tabular-nums; color: var(--bark-mid); font-size: 0.9rem; margin-bottom: 10px; }

.nj-content { max-width: 800px; margin: 48px auto 0; display: grid; gap: 32px; }
.nj-content section { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: 0 12px 32px var(--shadow); padding: 26px 28px; min-width: 0; }
.nj-content section h2 { font-family: var(--ff-display); font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.nj-content section p, .nj-content section li { color: var(--bark-soft); line-height: 1.75; }
.nj-content section h3 { font-family: var(--ff-display); font-size: 1.15rem; margin: 18px 0 6px; color: var(--bark); }
.nj-table-wrap { overflow-x: auto; margin-top: 12px; }
.nj-compare-table { width: 100%; min-width: 480px; border-collapse: collapse; }
.nj-compare-table th, .nj-compare-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(196,127,0,0.14); font-size: 0.92rem; }
.nj-compare-table th { color: var(--gold); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.nj-compare-table tr:nth-child(even) { background: rgba(196,127,0,0.04); }
.nj-faq-item { border-bottom: 1px solid rgba(196,127,0,0.14); padding: 14px 0; }
.nj-faq-item:last-child { border-bottom: none; }
.nj-faq-item h3 { font-family: var(--ff-display); font-size: 1.2rem; margin: 0 0 6px; }
.nj-faq-item p { margin: 0; color: var(--bark-soft); }

.nj-mantra-grid { display: grid; gap: 14px; margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.nj-mantra-card { padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,0.55); border: 1px solid rgba(196,127,0,0.12); }
.nj-mantra-card h3 { font-family: var(--ff-display); font-size: 1.05rem; margin: 0 0 4px; color: var(--bark); }
.nj-mantra-card h3 a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(196,127,0,0.35); }
.nj-mantra-card h3 a:hover, .nj-mantra-card h3 a:focus-visible { color: var(--saffron); border-bottom-color: var(--saffron); }
.nj-mantra-card .nj-mantra-card-script { font-size: 0.9rem; color: var(--gold); margin-bottom: 6px; }
.nj-mantra-card p { margin: 0; font-size: 0.88rem; line-height: 1.6; }

.nj-content section blockquote { margin: 14px 0 0; padding: 18px 22px; border-left: 3px solid var(--saffron); border-radius: 0 16px 16px 0; background: rgba(255,255,255,0.55); }
.nj-content section blockquote p { margin: 0 0 10px; font-family: var(--ff-display); font-size: 1.05rem; }
.nj-content section blockquote p:last-child { margin-bottom: 0; }

.nj-related-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.nj-related-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.6); border: 1px solid rgba(196,127,0,0.16); text-decoration: none; color: var(--bark-mid); font-size: 0.88rem; }
.nj-related-links a:hover { color: var(--saffron); border-color: rgba(232,101,10,0.3); }

.hero-button {
  display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px;
  border-radius: var(--radius-pill); text-decoration: none; font-weight: 700;
}
.hero-button.primary { background: linear-gradient(135deg, var(--saffron), var(--saffron-light)); color: white; box-shadow: 0 10px 24px rgba(232,101,10,0.2); }
.nj-cta-panel {
  margin: 40px auto 0; max-width: 640px; padding: 26px; border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(232,101,10,0.12), rgba(255,255,255,0.75));
  border: 1px solid rgba(232,101,10,0.16); text-align: center;
}
.nj-cta-panel .hero-button.primary { margin-top: 14px; }

/* Milestone toast */
.nj-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  padding: 12px 22px; border-radius: var(--radius-pill); z-index: 60; max-width: calc(100vw - 32px);
  background: linear-gradient(135deg, var(--saffron), var(--gold)); color: #fff; text-align: center;
  font-weight: 700; font-size: 0.95rem; box-shadow: 0 14px 34px rgba(232,101,10,0.34);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease;
}
.nj-toast.nj-toast-show { opacity: 1; transform: translate(-50%, 0); }

/* Immersive focus mode — dial, count and round label only; everything else hidden */
body.nj-focus { overflow: hidden; }
body.nj-focus .site-nav,
body.nj-focus .nj-breadcrumb,
body.nj-focus .nj-hero,
body.nj-focus .nj-content,
body.nj-focus .nj-cta-panel,
body.nj-focus .site-footer,
body.nj-focus .nj-picker-group,
body.nj-focus .nj-stats-row,
body.nj-focus .nj-goal-row,
body.nj-focus .nj-goal-bar,
body.nj-focus .nj-goal-remaining,
body.nj-focus .nj-mantra-toggle,
body.nj-focus .nj-mantra-text,
body.nj-focus .nj-mantra-meaning,
body.nj-focus #njUndoButton,
body.nj-focus #njResetButton { display: none !important; }
body.nj-focus .nj-tool-card {
  position: fixed; inset: 0; z-index: 50; margin: 0; max-width: none; border-radius: 0; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; overflow-y: auto;
  padding: 20px 16px;
  background: linear-gradient(160deg, #FDF6EC 0%, #F5E8CF 55%, #EFD6AE 100%);
}
/* Sized off both axes so the centred column never overflows (and clips) a short viewport. */
body.nj-focus .nj-dial { width: min(70vw, 46vh, 300px); height: min(70vw, 46vh, 300px); }
body.nj-focus .nj-mantra-header { margin: 0 0 6px; }
body.nj-focus .nj-dial-wrap { margin: 10px 0 8px; }
/* auto-margin pseudo-children: centre when there is free space, scroll from the top when there isn't */
body.nj-focus .nj-tool-card::before,
body.nj-focus .nj-tool-card::after { content: ""; margin: auto; }
body.nj-focus .nj-dial-ring-track { stroke: rgba(196,127,0,0.22); }
body.nj-focus .nj-dial-count { font-size: clamp(3rem, 11vw, 4.4rem); }
body.nj-focus .nj-mantra-header h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
body.nj-focus .nj-timer { font-size: 1.3rem; color: var(--gold); font-family: var(--ff-display); }

@media (max-width: 640px) {
  .nj-tool-card { padding: 20px; margin: 20px 12px; }
  .nj-dial { width: 180px; height: 180px; }
  .nj-dial-count { font-size: 2.4rem; }
  .site-nav { top: 8px; margin-top: 8px; border-radius: 26px; padding: 14px; }
}
