:root{--bg:#FFF8EE;--fg:#3A2418;--muted:#7A5F50;--card:#FFFDF8;--orange:#F0702A;--ember:#D8392B;--sun:#F7D15A;--border:#EEDCC8;--green:#78917A;--grad:linear-gradient(120deg,#F7D15A,#F0702A 55%,#D8392B)}
*{box-sizing:border-box;margin:0;padding:0}
body{background:var(--bg);color:var(--fg);font-family:Nunito,system-ui,sans-serif;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit}.wrap{width:min(1120px,calc(100% - 36px));margin:auto}
header{position:sticky;top:0;z-index:20;height:68px;border-bottom:1px solid var(--border);background:#FFF8EEE8;backdrop-filter:blur(12px)}
.top{height:100%;display:flex;align-items:center;justify-content:space-between}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:1.25rem;font-weight:900}
.dot{width:20px;height:20px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#FFE58A,#F7B232 35%,#F0702A 70%,#D8392B);box-shadow:0 0 0 5px #F0702A20}
.controls{display:flex;gap:9px;align-items:center}.lang button,.back{border:1px solid var(--border);background:#fff;border-radius:999px;padding:8px 12px;font:inherit;font-size:.82rem;font-weight:900;text-decoration:none;cursor:pointer}.lang button.active{background:var(--orange);color:#fff}
main{padding:clamp(42px,7vw,78px) 0 88px}
.hero{max-width:760px;margin:0 auto 34px;text-align:center}.eyebrow{color:var(--green);font-size:.75rem;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
h1{font-size:clamp(2.5rem,6vw,4.3rem);line-height:1.04;letter-spacing:-.045em;margin:12px 0}h1 em{font-family:Literata,Georgia,serif;font-weight:500;color:var(--orange)}
.hero p{font-size:1.05rem;color:var(--muted);max-width:60ch;margin:auto}
.search{display:flex;gap:10px;max-width:640px;margin:24px auto 0}.search input{min-width:0;flex:1;border:1px solid var(--border);border-radius:999px;background:#fff;padding:13px 18px;font:inherit;color:var(--fg);outline:none}.search input:focus{border-color:var(--orange);box-shadow:0 0 0 3px #F0702A22}
.filters{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:18px auto 32px}.filter{border:1px solid var(--border);background:#fff;color:var(--muted);border-radius:999px;padding:8px 13px;font:inherit;font-size:.84rem;font-weight:900;cursor:pointer}.filter.active{background:var(--fg);border-color:var(--fg);color:#fff}
.save-article{border:1px solid var(--border);background:#fffaf4;color:var(--muted);border-radius:999px;padding:6px 10px;font:inherit;font-size:.74rem;font-weight:900;cursor:pointer;white-space:nowrap}.save-article[aria-pressed="true"]{background:#F7EFE3;border-color:#D8B68F;color:var(--fg)}.save-article:focus-visible,.filter:focus-visible{outline:3px solid #F0702A55;outline-offset:2px}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.card{background:var(--card);border:1px solid var(--border);border-radius:24px;padding:25px;box-shadow:0 1px 0 #fff inset,0 18px 34px -27px #78462866;display:flex;flex-direction:column;min-height:260px;transition:transform .2s,box-shadow .2s}
.card:hover{transform:translateY(-3px);box-shadow:0 14px 35px -24px #78462888}
.card[hidden]{display:none}
.meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.tag{font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--green)}.read{font-size:.78rem;color:var(--muted)}
.card h2{font-size:1.35rem;line-height:1.2;margin-bottom:9px}.card p{font-size:.94rem;color:var(--muted)}
.try{margin-top:16px;padding:13px 15px;border-radius:15px;background:#F7EFE3;color:var(--fg);font-size:.88rem}.try strong{display:block;color:var(--orange);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;margin-bottom:4px}
.source{margin-top:auto;padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:12px}.source a{font-weight:900;color:var(--orange);text-decoration:none;font-size:.88rem}.source a:hover{text-decoration:underline}.source small{color:var(--muted);font-size:.75rem}
.read-more{display:inline-block;align-self:flex-start;margin-top:12px;max-width:100%;font-weight:900;color:var(--orange);text-decoration:none;font-size:.88rem}.read-more:hover{text-decoration:underline}
#cards .whop-upsell{margin-top:14px;padding:14px 0 0}
.empty{grid-column:1/-1;padding:30px;text-align:center;color:var(--muted);border:1px dashed var(--border);border-radius:20px}
.note{margin:24px auto 0;max-width:850px;padding:18px 20px;border-left:3px solid var(--green);background:#F2F0E7;border-radius:0 16px 16px 0;color:var(--muted);font-size:.86rem}
footer{text-align:center;border-top:1px solid var(--border);padding:24px;color:var(--muted);font-size:.85rem}
.library-more{margin-top:8px}
.library-more a{font-weight:800;color:var(--fg);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
@media(max-width:700px){.grid{grid-template-columns:1fr}.card{min-height:0}.search{flex-direction:column}.search input{width:100%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}

/* NEPSIS SIGNATURE REDESIGN — strong editorial layout, original palette preserved */
:root { scroll-behavior:smooth; }
body { -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
::selection { background:rgba(216,57,43,.18); color:var(--fg,#3A2418); }

/* Shared brand system */
header.top, body > header, body > .wrap > header {
  position:sticky; top:0; z-index:50;
  background:rgba(255,248,238,.94);
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(58,36,24,.09);
}
.logo { letter-spacing:-.065em !important; font-weight:850 !important; }
.menu-btn { transition:transform .28s ease,background .28s ease; }
.menu-btn:hover { transform:rotate(90deg); }
main .page-heading, main > .wrap > .page-heading { padding-top:clamp(64px,10vw,132px); padding-bottom:clamp(48px,7vw,88px); }
.page-heading h1, .intro h1, main > .wrap > h1, .hero h1 {
  letter-spacing:-.065em !important; line-height:.98 !important;
}
.page-heading p, .intro p { max-width:62ch; line-height:1.8 !important; }
.content-section, .faq-list, .content, .panel, .tool-panel, .room, .privacy, .welcome {
  border-radius:26px !important;
}
.info-card, .step-card, .card, .stat, .tool-panel, .tip {
  transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s ease,border-color .35s ease;
}
.info-card:hover, .step-card:hover, .stat:hover, .tip:hover {
  transform:translateY(-5px); box-shadow:0 22px 50px -34px rgba(58,36,24,.32);
}
button,.btn,.back,.filter { transition:transform .25s ease,box-shadow .25s ease,background .25s ease; }
button:hover,.btn:hover,.back:hover { transform:translateY(-2px); }
.drawer { box-shadow:-28px 0 80px rgba(58,36,24,.14); }

/* Homepage: unmistakable hero composition */
body.home-page .hero {
  min-height:min(940px,calc(100svh - 76px));
  display:flex; align-items:center; isolation:isolate; overflow:hidden;
  padding:clamp(80px,10vh,140px) 0 110px;
  background:
    radial-gradient(ellipse at 78% 48%,rgba(87,153,193,.16),transparent 43%),
    radial-gradient(ellipse at 12% 92%,rgba(247,209,90,.2),transparent 34%),
    var(--bg);
}
body.home-page .hero::before {
  content:""; position:absolute; z-index:-1; width:min(72vw,980px); aspect-ratio:1;
  right:-13vw; top:50%; transform:translateY(-50%);
  border:1px solid rgba(58,36,24,.08); border-radius:50%;
  box-shadow:0 0 0 42px rgba(58,36,24,.018),0 0 0 92px rgba(58,36,24,.014);
  pointer-events:none;
}
body.home-page .hero::after {
  background:linear-gradient(90deg,var(--bg) 0%,rgba(255,248,238,.98) 28%,rgba(255,248,238,.84) 43%,rgba(255,248,238,0) 69%);
}
body.home-page .hero-copy { position:relative; z-index:3; max-width:620px; }
body.home-page .hero .badge { display:inline-flex; align-items:center; gap:10px; padding:10px 15px; border:1px solid var(--border); border-radius:99px; background:rgba(255,255,255,.54); }
body.home-page .hero h1 { font-size:clamp(4rem,7.4vw,7.6rem); max-width:8.8ch; margin:32px 0 24px; }
body.home-page .hero h1 em { color:var(--orange); font-style:normal; }
body.home-page .hero p.lead { max-width:32ch; font-size:clamp(1.1rem,1.5vw,1.35rem); line-height:1.65; }
body.home-page .hero .btns { gap:14px; margin-top:38px; }
body.home-page .hero .btn-primary { padding:17px 25px; min-height:58px; box-shadow:0 16px 34px -20px rgba(216,57,43,.75); }
body.home-page .hero .btn-ghost { padding:16px 12px; }
body.home-page .hero-earth {
  width:min(76vw,1120px); height:min(76vw,1120px); right:-4vw; top:50%;
  transform:translateY(-50%); z-index:1;
  filter:drop-shadow(0 34px 56px rgba(35,74,104,.2));
}
body.home-page .hero-earth canvas { cursor:grab; }
body.home-page .hero-earth canvas:active { cursor:grabbing; }
body.home-page .globe-drag-hint { left:34%; bottom:9%; z-index:4; }
body.home-page .hero-country {
  z-index:5; left:clamp(22px,5vw,76px); right:auto; bottom:26px;
  width:245px; padding:15px 18px; border:1px solid rgba(58,36,24,.1);
  background:rgba(255,253,248,.88); backdrop-filter:blur(16px);
  box-shadow:0 18px 50px -34px rgba(58,36,24,.35);
}
body.home-page .home-discovery { padding:clamp(100px,13vw,180px) 0; }
body.home-page .home-intro { max-width:850px; margin-bottom:70px; }
body.home-page .home-intro h2 { max-width:12ch; font-size:clamp(3.1rem,6vw,6rem); line-height:.98; letter-spacing:-.065em; }
body.home-page .home-intro p { max-width:52ch; font-size:1.12rem; line-height:1.8; }
body.home-page .home-links {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px;
  border:0;
}
body.home-page .home-link {
  position:relative; min-height:220px; padding:26px 26px 30px;
  display:flex; flex-direction:column; align-items:flex-start; gap:14px;
  border:1px solid var(--border); border-radius:22px; background:var(--card);
  box-shadow:0 8px 28px -24px rgba(58,36,24,.3);
  transition:transform .35s cubic-bezier(.2,.8,.2,1),border-color .35s ease,box-shadow .35s ease;
}
body.home-page .home-link:hover { transform:translateY(-7px); border-color:rgba(216,57,43,.42); box-shadow:0 24px 48px -32px rgba(58,36,24,.32); }
body.home-page .home-link-number { font-size:.72rem; font-weight:850; letter-spacing:.15em; color:var(--orange); }
body.home-page .home-link strong { font-size:1.35rem; line-height:1.2; letter-spacing:-.04em; }
body.home-page .home-link > span:nth-of-type(2) { max-width:30ch; line-height:1.65; }
body.home-page .home-link-arrow { right:24px; bottom:22px; font-size:1.45rem; }
body.home-page .home-footnote { max-width:70ch; margin:34px 0 0; text-align:left; line-height:1.8; }
body.home-page .block { padding:clamp(96px,12vw,164px) 0; }
body.home-page .block .head { max-width:850px; margin-bottom:54px; }
body.home-page .block .head h2 { font-size:clamp(2.8rem,5.2vw,5.4rem); line-height:1; letter-spacing:-.06em; }
body.home-page .calc { display:grid; grid-template-columns:1fr 1fr; gap:clamp(28px,6vw,80px); padding:clamp(28px,5vw,64px); border-radius:30px; }
body.home-page .result { border-radius:24px; padding:34px; }
body.home-page .compare { gap:18px; }
body.home-page .cmp { border-radius:26px; padding:clamp(24px,4vw,42px); }
body.home-page .stages { gap:16px; }
body.home-page .stage { border-radius:26px; }
body.home-page footer { padding-top:42px; }

/* Practice experience: make the actual tool feel like a product dashboard */
body.practice-page main > .hero { min-height:460px; padding:68px 0 42px; }
body.practice-page .hero-copy { max-width:760px; }
body.practice-page .hero h1 { font-size:clamp(3.4rem,6vw,6.2rem); max-width:10ch; }
body.practice-page .hero-earth { opacity:.34; width:min(55vw,700px); height:min(55vw,700px); right:-7vw; }
body.practice-page .hero-country { display:none; }
body.practice-page .block { padding:clamp(72px,9vw,120px) 0; }
body.practice-page .head { max-width:800px; margin-bottom:38px; }
body.practice-page .head h2 { font-size:clamp(2.6rem,5vw,4.8rem); letter-spacing:-.06em; line-height:1.02; }
body.practice-page .daily-challenge {
  position:relative; overflow:hidden; padding:clamp(30px,5vw,58px);
  border-radius:30px; border:1px solid rgba(216,57,43,.2);
  background:linear-gradient(125deg,rgba(247,209,90,.22),rgba(255,255,255,.72) 58%,rgba(87,153,193,.1));
  box-shadow:0 22px 60px -48px rgba(58,36,24,.36);
}
body.practice-page .daily-challenge h3 { max-width:18ch; font-size:clamp(2rem,4vw,3.5rem); line-height:1.05; letter-spacing:-.055em; }
body.practice-page .daily-challenge p { max-width:56ch; line-height:1.75; }
body.practice-page .progress-card { border-radius:26px; padding:clamp(22px,3vw,34px) !important; }
body.practice-page #quiz { border-radius:26px !important; padding:clamp(24px,4vw,42px) !important; }
body.practice-page .stages { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; }
body.practice-page .stage {
  min-height:270px; border-radius:26px; padding:22px 16px;
  box-shadow:0 12px 36px -28px rgba(58,36,24,.38);
}
body.practice-page .stage .ring { transform:scale(1.08); }
body.practice-page .stage .start { min-height:44px; border-radius:99px; }
body.practice-page .knowledge-note { border-radius:24px; padding:clamp(24px,4vw,42px); }

/* Other pages: editorial headers and calmer content surfaces */
body:not(.home-page):not(.practice-page) main { padding-bottom:clamp(64px,9vw,120px); }
body:not(.home-page):not(.practice-page) .page-heading,
body:not(.home-page):not(.practice-page) .intro,
body:not(.home-page):not(.practice-page) main > .wrap > .hero {
  position:relative; padding-top:clamp(66px,9vw,118px); padding-bottom:clamp(44px,6vw,76px);
}
body:not(.home-page):not(.practice-page) .page-heading h1,
body:not(.home-page):not(.practice-page) .intro h1,
body:not(.home-page):not(.practice-page) main > .wrap > .hero h1,
body:not(.home-page):not(.practice-page) main > .wrap > h1 {
  font-size:clamp(3rem,6.6vw,6.2rem); max-width:12ch;
}
body:not(.home-page):not(.practice-page) .page-heading::after,
body:not(.home-page):not(.practice-page) .intro::after,
body:not(.home-page):not(.practice-page) main > .wrap > .hero::after {
  content:""; display:block; width:min(100%,240px); height:3px; margin-top:34px;
  background:linear-gradient(90deg,var(--orange),rgba(216,57,43,0));
  transform-origin:left; animation:nepsis-line-in .8s .15s both;
}
@keyframes nepsis-line-in { from{transform:scaleX(.08);opacity:.3} to{transform:scaleX(1);opacity:1} }
body:not(.home-page):not(.practice-page) .content-grid,
body:not(.home-page):not(.practice-page) .grid,
body:not(.home-page):not(.practice-page) .stats,
body:not(.home-page):not(.practice-page) .tools-grid { gap:16px !important; }
body:not(.home-page):not(.practice-page) .info-card,
body:not(.home-page):not(.practice-page) .step-card,
body:not(.home-page):not(.practice-page) .card,
body:not(.home-page):not(.practice-page) .stat,
body:not(.home-page):not(.practice-page) .panel,
body:not(.home-page):not(.practice-page) .tool-panel,
body:not(.home-page):not(.practice-page) .content {
  border-radius:24px !important;
}
body:not(.home-page):not(.practice-page) .faq-list details {
  border-radius:18px; margin:10px 0; padding:20px 24px;
  border:1px solid var(--border); background:var(--card);
}
body:not(.home-page):not(.practice-page) .faq-list summary { font-weight:750; }
body:not(.home-page):not(.practice-page) .hero .search,
body:not(.home-page):not(.practice-page) .search { max-width:700px; }
body:not(.home-page):not(.practice-page) .filters { display:flex; flex-wrap:wrap; gap:9px; margin:24px 0 34px; }
body:not(.home-page):not(.practice-page) .filter { border-radius:99px; padding:10px 17px; }
body:not(.home-page):not(.practice-page) .privacy { padding:22px 26px; }
body:not(.home-page):not(.practice-page) .room { padding:clamp(26px,5vw,54px); }
body:not(.home-page):not(.practice-page) footer { margin-top:64px; }

/* Responsive art direction */
@media(max-width:900px) {
  body.home-page .hero { min-height:820px; align-items:flex-start; padding-top:48px; }
  body.home-page .hero-earth { width:min(92vw,760px); height:min(92vw,760px); right:-25vw; top:47%; opacity:.92; }
  body.home-page .hero-copy { max-width:590px; }
  body.home-page .hero h1 { font-size:clamp(3.5rem,9vw,6rem); }
  body.home-page .home-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.practice-page .stages { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:600px) {
  body.home-page .hero { min-height:760px; padding:30px 0 40px; }
  body.home-page .hero-earth { width:112vw; height:112vw; right:-38vw; top:38%; opacity:.72; }
  body.home-page .hero::after { background:linear-gradient(180deg,rgba(255,248,238,.1),rgba(255,248,238,.2) 45%,var(--bg) 76%); }
  body.home-page .hero-copy { padding-top:0; }
  body.home-page .hero h1 { font-size:clamp(3.15rem,13vw,4.5rem); max-width:9ch; }
  body.home-page .hero-country { left:22px; bottom:16px; width:min(230px,calc(100% - 44px)); }
  body.home-page .globe-drag-hint { left:auto; right:18px; bottom:20%; }
  body.home-page .home-links { grid-template-columns:1fr; }
  body.home-page .home-link { min-height:174px; }
  body.home-page .calc { grid-template-columns:1fr; }
  body.practice-page main > .hero { min-height:360px; }
  body.practice-page .hero-earth { opacity:.2; right:-36vw; }
  body.practice-page .stages { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body:not(.home-page):not(.practice-page) .page-heading h1,
  body:not(.home-page):not(.practice-page) .intro h1,
  body:not(.home-page):not(.practice-page) main > .wrap > .hero h1,
  body:not(.home-page):not(.practice-page) main > .wrap > h1 { font-size:clamp(2.7rem,12vw,4rem); }
}
@media(max-width:390px) {
  body.practice-page .stages { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}



@media(max-width:380px){
  .top{gap:6px}
  .logo{gap:6px;font-size:1.08rem}
  .controls{gap:5px;min-width:0;flex-wrap:nowrap}
  .controls .lang button{padding:6px 7px;font-size:.72rem}
  .controls .back{padding:6px 7px;font-size:.68rem}
  .nepsis-menu-button{min-width:34px;min-height:34px;flex:0 0 34px;padding:0}
}


@media(max-width:380px){
  #cards{width:100%;min-width:0;grid-template-columns:minmax(0,1fr)}
  #cards>.card{width:100%;min-width:0}
  #cards .meta{min-width:0;flex-wrap:wrap}
  #cards h2,#cards p,#cards .try,#cards .source,#cards .whop-upsell{min-width:0;overflow-wrap:anywhere}
}
